Documentation

CslibFrontier.Logics.Propositional.LineProof.SemanticDerivation

Semantic derivations from LineProof derivations #

Any Cslib.Logic.PL.LineProof whose rules have at most two premises and are sound with respect to models : L → Set W reverses into a semantic derivation (Cslib.Logic.PL.IsSemanticDerivation) in the sense of Krajíček, Definition 4.1: axioms become Set.univ, unary rules repeat their single premise index twice, and binary rules intersect their two earlier premise sets. When the derivation also contains an unsatisfiable line, the reversed sequence of model sets is a semantic refutation (Cslib.Logic.PL.IsSemanticRefutation) of the same length.

Main results #

References #

theorem Cslib.Logic.PL.LineProof.toSemanticDerivation {L : Type u_1} {W : Type u_2} {R : Set (LineRule L)} {Γ : Set L} {ls : List L} {init : Set (Set W)} {models : L → Set W} (h : LineProof R Γ ls) (hinit : ∀ x ∈ Γ, models x ∈ init) (harity : ∀ r ∈ R, r.premises.length ≤ 2) (hsound : ∀ r ∈ R, ∀ (w : W), (∀ p ∈ r.premises, w ∈ models p) → w ∈ models r.concl) :
IsSemanticDerivation init fun (j : Fin ls.reverse.length) => models ls.reverse[j]

Semantic derivation of a reversed LineProof Krajíček, Definition 4.1: for any rule set R whose rules have at most two premises and are sound with respect to models, reading ls from its first line (ls.reverse) and taking models at each line yields a semantic derivation from init.

theorem Cslib.Logic.PL.LineProof.toSemanticRefutation {L : Type u_1} {W : Type u_2} {R : Set (LineRule L)} {Γ : Set L} {ls : List L} {init : Set (Set W)} {models : L → Set W} (h : LineProof R Γ ls) (hinit : ∀ x ∈ Γ, models x ∈ init) (harity : ∀ r ∈ R, r.premises.length ≤ 2) (hsound : ∀ r ∈ R, ∀ (w : W), (∀ p ∈ r.premises, w ∈ models p) → w ∈ models r.concl) {bot : L} (hbot : bot ∈ ls) (hunsat : ∀ (w : W), w ∉ models bot) :
IsSemanticRefutation init fun (j : Fin ls.reverse.length) => models ls.reverse[j]

Semantic refutation of a reversed LineProof: if moreover ls contains an unsatisfiable line bot (∀ w, w ∉ models bot), the reversed model sequence is a semantic refutation of init with ls.reverse.length lines.