logic Flashcards
what is a BNF (Backus Naur Form) and terminal and non-terminal symbols?
BNF looks like this:
lhs ::= rhs₁ |. . .| rhsₙ
where the lhs is a non-terminal symbol (expands into a rhs) and each rhs is either a terminal or non-terminal symbol
what does arity and fixity of a terminal symbol mean?
arity: how many arguments thee symbol takes
fixity: where the symbol is placed in relation to the arguments. either prefix, infix or postfix meaning before, between and after the symbols
what is a metavariable/ schematic variable?
a non-terminal symbol that can be used for general rules but represents an unknown value
what is an axiom schemata?
a general rule that is accepted for all values of a schematic variable such as:
exp+0=exp. this rule with any value for exp is an axiom but as it is true for any exp, it is an axiom schemata
what is the notation for substituting values into an equation?
(eq)[exp1\val1,exp2\val2,…]
example:
(exp+0=exp)[exp\1] outputs 1+0=1
what is propositional logic?
a symbolic logic FORMAL LANGUAGE made of atomic propositions (true/ false propositions) and logical connectives(and, or, not, implication). syntax is
P ::= a | P ^P | P ∨P | P → P | ¬P with two special atoms (⊤,⊥)
what is the scope of a connective and main connective of the formula?
scope of a connective: the connective and what it connects
main connective: the connective whose scope is the whole formula
what are the 8 (10) inference rules of constructive natural deduction for propositional logic?
check here
https://canvas.bham.ac.uk/courses/65481/files/13872848?wrap=1
what is the notation for saying that assuming conditions, something is true?
condition1, condition2, … , ⊢ proven statement
example:
P, P→Q ⊢ Q
what is constructive/ intuitionistic and classical natural deduction?
both are proof theories that together with propositional logic (the formal language) make up a formal proof. they are both a collection of inference rules such as and-implication, negation-elimination etc. classical ND uses
double negation elimination (DNE): ¬¬A ⊢ A
law of excluded middle (LEM): ⊢ A∨¬A
how do semantics work in propositional logic?
semantics means giving meaning to variables with the syntax φ(A) = T, φ(B) = F
what is conjunctive/ disjunctive normal form?
CNF: formulas in the form (P∨P∨…)^(P∨P∨…)^…
DNF: formulas in the form (P^P^…)∨(P^P^…)∨…
where P is a literal meaning an atom or a negation of an atom
every proposition can be expressed in either form rearranging using proven equivalences
what does valid, unsatisfiable, satisfiable, falsifiable and provable mean?
A is valid if φ(A) = T for all possible valuations φ of atoms in A.
A is unsatisfiable if φ(A) = F for all possible valuations φ of atoms in A.
A is satisfiable if there exists a valuation φ on atomic propositions such that φ(A) = T.
A is falsifiable if there exists a valuation φ on atomic propositions such that φ(A) = F.
provable: a formula can be proven with the natural deduction system. written like ⊢A
how would you write that a formula is provable/ valid given premises?
provable: P₁, P₂, … , Pₙ ⊢ C meaning that the conclusion is always T for
(semantically) valid: P₁, P₂, … , Pₙ ⊨ C meaning that if all the premises are true, the conclusion is too. can always be proven using truth tables
with no premises: ⊢A and ⊨B
what does soundness and completeness of a deduction system w.r.t a semantics system mean?
soundness: if ⊢A then ⊨A (if a formula is provable, it is valid)
completeness: if ⊨A then ⊢A (if a formula is valid, it is provable)
natural deduction is both sound and complete w.r.t truth table semantics