Logic is the study of correct reasoning. Among other things, it enables us to prove, deduce, and solve puzzles.
This chapter is about Logic because Eberbanās jargon is based on Logic jargon.
Naturally, this chapter is really jargon-heavy, so itās alright if it takes a while to understand it all. The jargon blocks below are the only bits relevant to Eberban; the rest is just extra for experts š
Propositional Logic
šŖ¶ Jargon: Propositions
In logic, a proposition is a statement that is true or false.
Propositions appear in everyday speech all the time.
Everyday propositions v1:
- Itās raining.
- I walk to work.
- Itās open on Sundays too.
- Sheās been to Uluru.
- This is the top floor.
These propositions are atomic because they cannot be broken down any further. We can make propositions more complex with connectives.
Everyday propositions v2:
Connective | Name | Example | Translation |
---|---|---|---|
Conjunction | Itās raining and I forgot my umbrella. | ||
Disjunction | I walk or catch the train to work. | ||
Negation | Itās not open on Sundays either. | ||
Material Implication | If sheās been to Uluru, then sheās been to Australia. | ||
Biconditional | This is the top floor if and only if thereās no floor above it. |
Now that we know of these connections, we can reason. Reasoning also happens all the time in everyday speech. Take a look:
āļø Examples:
āHas she been to Australia?ā
āYeah, sheās been to Uluru.ā
Finally, no more stairs! Looks like Iāve made it to the top floor.
You can connect as many propositions as youād like and still have a proposition. For example:
This is so wordy that weāve spread this across several lines! Letās instead denote each constituent proposition as a variable and see what it looks like.
šŖ¶ Jargon: Variables
A variable is anything that can vary in value. You can use variables to represent absolutely anything.
By convention, uppercase variables denote propositions and predicates while lowercase variables denote entities (things that exist).
Given the constituent propositions (choice of letter is arbitrary):
We state the following:
Now we can focus on the connectives and start looking at what we can conclude from this!
Predicate Logic
If you play around with propositions, you may start to notice their limitations. For example, itās tedious to denote that the travellers Alice, Bob, and Carol have all been to Uluru:
This is because propositions arenāt related unless theyāre logically connected, so we have to write them all out and join them.
Thankfully we can better express this with a predicate. Letās define one for travellers who have been to Uluru.
šŖ¶ Jargon: Predicates
A predicate is a proposition with associated variables (called arguments). Predicates are neither true nor false until all of their variables are substituted for values.
is lowercase as it is an entity. So are , , and Shortening this predicate to , we substitute for our travellers:
If we want to talk about more than one entity without using a connective, then we have to quantify. Hereās how you talk about all the travellers:
Domain of discourse: {Alice, Bob, Carol}
For all t, where t is all of Alice, Bob, Carol; t has been to Uluru.Simply put: all of Alice, Bob, Carol, have been to Uluru.
The domain of discourse is the set of all possible values that can range over. So, whenever we quantify, we need the domain of discourse.
šŖ¶ Jargon: Sets
A set is an unordered collection of distinct things. These things can be entities, predicates, or anything else.
Sets are denoted with curly braces {}.
Instead of using ā (the universal quantifier) to denote all travellers, we can use ā (the existential quantifier) to speak about just one.
Domain of discourse: {Alice, Bob, Carol}
For some t, where t is all of Alice, Bob, Carol; t has been to Uluru.Simply put: at least one of Alice, Bob, Carol has been to Uluru.
Now that weāve covered quantification and variables, letās derive predicates from our everyday propositions v2.
Everyday propositions v3:
Domain of discourse: All people
Domain of discourse: All people
Domains of discourse: d: Days, s: Stores
Domain of discourse: All travellers
Domain of discourse: Floors
Look how expressive predicates are!
Notice how a predicate can have any number of arguments. This number is called arity.
šŖ¶ Jargon: Arity
Arity refers to the number of arguments a predicate has.
A 0-ary predicate is a proposition. Propositions have no variables, e.g. .
A unary predicate takes one argument and is also called a property. Properties describe entities, like or .
A binary predicate takes two arguments and is also called a relation. We relate two entities to each other like or .
A ternary predicate takes three arguments, and an n-ary, n-arguments.
Higher-order Logic
If predicates of Predicate Logic are tools to talk about the world more specifically, then these tools are limited. So far, weāve only been using entities as variables.
With Higher-order Logic, we can use predicates as variables. Through this, we can give ourselves more tools.
By design, Eberban translates into higher-order logic and uses this idea of making more tools to increase vocabulary and grammatical function.
Letās try to make more tools for ourselves: Letās take one of our everyday propositions and make it higher order.
For reference, here is one of our everyday propositions v3.
Domains of discourse: d: Days, s: Stores
Now here is the higher-order version, using the same domain.
The predicate is generic and can be used whenever you find yourself using the word neither (or words not either).