Algebraic semantics of propositions #
A valuation v : Atom → α of the atoms in a Heyting algebra α extends to every proposition
(Cslib.Logic.PL.Proposition.eval): falsum is ⊥, conjunction is ⊓, disjunction is ⊔ and
implication is the Heyting implication ⇨. Negation ¬A, defined as A → ⊥, is then the
pseudo-complement A ⇨ ⊥. Heyting algebras are the algebraic models of intuitionistic
propositional logic and Boolean algebras those of classical logic.
Truth tables are the instance α = Bool, whose equations are the Bool simp lemmas below.
Mathlib's Prop is another instance: a Heyting algebra constructively and a Boolean algebra
classically. The soundness of Frege proofs (Cslib.Logic.PL.Frege.IsProof.eval) and the Tseitin
transformation (Cslib.Logic.PL.Proposition.tseitinCNF) are stated with the Bool instance.
Main definitions #
Cslib.Logic.PL.Proposition.eval: the value of a proposition under a valuation of its atoms.Cslib.Logic.PL.Proposition.atoms: all atom occurrences appearing in a proposition.
Main results #
Cslib.Logic.PL.Proposition.eval_congr: evaluation depends only on the atoms appearing in the proposition.Cslib.Logic.PL.Proposition.eval_prop_of_forall_eval_bool: a truth-table tautology holds under every valuation inProp.
The value of a proposition in a Heyting algebra under a valuation v of its atoms.
All atom occurrences appearing in a proposition.
Evaluating a proposition depends only on the values assigned to its atoms.
Truth tables #
Propositions #
Truth tables decide propositions over Prop, classically: a proposition holds under a
valuation in Prop exactly when it is true under the Boolean valuation that decides each atom.
A truth-table tautology holds under every valuation in Prop. The proof decides each
atom classically, so this is a statement about classical logic.