Propositional Logic
- Formalizing Propositional Logic
- Proof Theories
- Propositional Logic
Propositional Logic is also known as zeroth-order logic
Syntax
A formula in propositional logic consists of the following symbols:
- Two constant symbols: true and false
- Prime proposition symbols (letters)
- Propositional connectives (
) - Brackets
Well-formed formulas of propositional logic are obtained by the following construction rules:
- Proposition symbols and constants are WFF (atomic formulas)
- If
and are WFFs, then each of the following are WFF (compound propositions):
Semantics
See: Logic#Semantics
Semantics give propositions meanings by the WFF of a syntax to its truth table/truth function
- Satisfiable <=> contingent or tautology
- Formula is not satisfiable <=> contradiction
- A formula
is a tautology <=> is a contradiction
Boolean Valuation
A boolean valuations is a function denoted with []
In all boolean valuations:
, - For connectives:
This may seem obvious since we have already attached the meaning of the syntax to these operators. However, syntax without semantics has no meaning, and is only used to form well-formed formulas.
what is the meaning of this formula in the following boolean valuation?
solution
Validity
An argument is valid iff for all boolean valuations where the premises are T, the conclusion is T.
Logical Implication
A formula
where the formulas are in red and meta-symbols are in black.
Logical Equivalence
Two formulas,
Formula Properties
Satisfiability
A formula
Tautology
Formula
We write
Syntax Semantics
Contradiction
Formula
Contingency
A contingent formula is one that is neither a tautology nor a contradiction, i.e a mix of T/F
Consistency
A collection of formulas is consistent iff there exists a boolean valuation in which all the formulas are
We have the issue of vacuous truths, meaning that nothing can be proven about a system if there are inconsistent premises. Often our premises describe the environment a system executes in. We need to make sure these premises are consistent, such that the environment we describe could possibly exist.
Normal Forms
Every formula can be converted to an equivalent formula in CNF and DNF.
Literal
A literal is a proposition symbol or the negation of a proposition symbol
Disjunctive Normal Form (DNF)
A formula is in disjunctive normal form if it is a disjunction of one or more clauses, where a clause is a conjunction of literals or a single literal
Cognate with the concept of canonical sum-of-products.
It is very easy to find a satisfying assignment in DNF because you only need one clause to be true
Conjunctive Normal Form (CNF)
A formula is in conjunctive normal form if it is a conjunction of one or more clauses, where a clause is a disjunction of literals or a single literal
Cognate with the concept of canonical product-of-sums.
Find the conjunctive normal form of
solution
Most SAT (satisfiability solvers) accept a formula in CNF form. SAT solving is a well-known NP-complete problem. We can't avoid that complexity.
There is an algorithm for converting any propositional logic formula into CNF in linear time by adding extra variables (Tseytin Transformation).
We can convert any propositional logic problem to CNF in linear time, but determining the satisfiability is NP-complete. For DNF, the complexity is in the conversion and not the solving.
Example: Separation Minima
Imagine you're a requirements engineer for a system that determines how much separation is required between two aircraft in the North Atlantic Region. The inputs are information about the aircraft, and the output should be information about how much vertical separation is required.
For two aircraft A and B, the vertical separation minimum shall be:
- 1000 feet if flight
is above FL290 - 2000 feet if flight
is at or above FL290, except if flight is above FL450 and flight is supersonic, where 4000 feet shall be used
- Under what conditions are each of the amounts of vertical separation required?
- Is there an amount of vertical separation required for all possible input conditions?
- Is there only one amount of vertical separation required for all possible input conditions? (i.e., is the specification unambiguous?)
solution
(1)
- 1000:
- 2000:
- 4000:
Where:
means flight is below FL290 means flight is above FL450 means flight is supersonic
(2)
Show that our formula is satisfiable with a Transformational Proof:
proof
(3)
Proof with Semantic Tableaux:
proof