Classical Semantics #
Truth, satisfaction and semantic consequence for Formula.
A valuation assigns a Lean proposition to each atom. eval extends a valuation
to all formulas. A theory is satisfied by a valuation when every member is true
under it. A theory semantically entails a formula when every valuation that
satisfies the theory makes the formula true.
This semantics is classical. It is stronger than the abstract consequence system in Neutral Substrate requires, for example explosion holds. Results in this repository that depend on classical features are therefore results about this instance.
A valuation assigns a Lean proposition to each atom.
Equations
- SE.CommonGround.Logic.Valuation Atom = (Atom → Prop)
Instances For
Truth of a formula under a valuation.
Equations
- SE.CommonGround.Logic.eval v (SE.CommonGround.Logic.Formula.atom a) = v a
- SE.CommonGround.Logic.eval v SE.CommonGround.Logic.Formula.bot = False
- SE.CommonGround.Logic.eval v f.neg = ¬SE.CommonGround.Logic.eval v f
- SE.CommonGround.Logic.eval v (f.conj g) = (SE.CommonGround.Logic.eval v f ∧ SE.CommonGround.Logic.eval v g)
Instances For
An atom is true under a valuation exactly when the valuation makes it true.
The contradiction is false under any valuation.
A valuation satisfies a theory when every member of the theory is true under it.
Equations
- SE.CommonGround.Logic.Satisfies v T = ∀ (f : SE.CommonGround.Logic.Formula Atom), f ∈ T → SE.CommonGround.Logic.eval v f
Instances For
A theory semantically entails a formula when every valuation satisfying the theory makes the formula true.
Equations
- SE.CommonGround.Logic.SemanticEntails T f = ∀ (v : SE.CommonGround.Logic.Valuation Atom), SE.CommonGround.Logic.Satisfies v T → SE.CommonGround.Logic.eval v f
Instances For
Satisfying a larger theory implies satisfying any subset of it.
A theory semantically entails the contradiction exactly when no valuation satisfies it.