Documentation

Cslib.Logics.Propositional.NaturalDeduction.Lemmas

Auxilliary results on natural deduction #

In this file we prove the expected results that ND₁ T is always intuitionistic, and that various axiomatisations of classical logic (CPL Atom using double-negation elimination, LEM Atom using the law of excluded middle, and Peirce Atom using Peirce's law) are classical inference systems. We provide derived rules for common intuitionistic and classical proof patterns.

Classes of inference systems #

@[instance_reducible]
Equations
  • One or more equations did not get rendered due to their size.
def Cslib.Logic.PL.NaturalDeduction.contra {Atom : Type u} [DecidableEq Atom] {T : Set (Proposition Atom)} {Γ : Ctx Atom} (A B : Proposition Atom) (hΓ : A ∈ Γ := by membership) (hΓ' : HasNot.not A ∈ Γ := by membership) :

Prove any proposition from contradictory hypotheses.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Proof by contradiction as a derived rule.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      Law of excluded middle in a classical theory.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Peirce's law in a classical theory.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          @[instance_reducible]
          Equations
          • One or more equations did not get rendered due to their size.
          @[instance_reducible]
          Equations
          • One or more equations did not get rendered due to their size.

          Further operations on deductions #

          def Cslib.Logic.PL.NaturalDeduction.Derivation.collectAx {Atom : Type u} [DecidableEq Atom] {T : Set (Proposition Atom)} {Γ : Ctx Atom} {B : Proposition Atom} :
          Derivation T Γ B → (Δ : { Δ : Ctx Atom // ↑Δ ⊆ T }) × Derivation (IPL Atom) (Γ ∪ ↑Δ) B

          Move the axioms used in a derivation D to the context, obtaining a derivation in intuitionistic logic.

          Equations
          Instances For
            theorem Cslib.Logic.PL.NaturalDeduction.derivableIn_collect_ax {Atom : Type u} [DecidableEq Atom] {T : Set (Proposition Atom)} {Γ : Ctx Atom} {B : Proposition Atom} :
            InferenceSystem.DerivableIn (ND T) (Γ, B) → ∃ (Δ : Ctx Atom), InferenceSystem.DerivableIn (ND (IPL Atom)) (Γ ∪ Δ, B) ∧ ↑Δ ⊆ T
            def Cslib.Logic.PL.NaturalDeduction.Derivation.assToAx {Atom : Type u} [DecidableEq Atom] {T : Set (Proposition Atom)} {Γ Δ : Ctx Atom} {B : Proposition Atom} (D : Derivation T (Γ ∪ Δ) B) :
            Derivation (T ∪ ↑Δ) Γ B

            Remove dependence on some assumptions by adding them to the theory.

            Equations
            Instances For
              theorem Cslib.Logic.PL.NaturalDeduction.derivableIn_ass_to_ax {Atom : Type u} [DecidableEq Atom] {T : Set (Proposition Atom)} {Γ Δ : Ctx Atom} {B : Proposition Atom} :
              InferenceSystem.DerivableIn (ND T) (Γ ∪ Δ, B) → InferenceSystem.DerivableIn (ND (T ∪ ↑Δ)) (Γ, B)
              def Cslib.Logic.PL.NaturalDeduction.Derivation.axToAss {Atom : Type u} [DecidableEq Atom] {T : Set (Proposition Atom)} {Γ Δ : Ctx Atom} {B : Proposition Atom} (D : InferenceSystem.derivation (ND (T ∪ ↑Δ)) (Γ, B)) :

              Move a finset of axioms to the context.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                theorem Cslib.Logic.PL.NaturalDeduction.derivableIn_ax_to_ass {Atom : Type u} [DecidableEq Atom] {T : Set (Proposition Atom)} {Γ Δ : Ctx Atom} {B : Proposition Atom} :
                InferenceSystem.DerivableIn (ND (T ∪ ↑Δ)) (Γ, B) → InferenceSystem.DerivableIn (ND T) (Γ ∪ Δ, B)
                theorem Cslib.Logic.PL.NaturalDeduction.derivableIn_iff_exists {Atom : Type u} [DecidableEq Atom] {T : Set (Proposition Atom)} {Γ : Ctx Atom} {B : Proposition Atom} :
                InferenceSystem.DerivableIn (ND T) (Γ, B) ↔ ∃ (Δ : Ctx Atom), InferenceSystem.DerivableIn (ND (IPL Atom)) (Γ ∪ Δ, B) ∧ ↑Δ ⊆ T