Documentation

LeanPool.Incompleteness.Foundation.FirstOrder.Basic.Calculus

Calculus #

@[reducible, inline]

Imported declaration from the Incompleteness formalization.

Equations
Instances For
    inductive LO.FirstOrder.Derivation {L : Language} (T : Theory L) :
    Sequent LType u_1

    Imported declaration from the Incompleteness formalization.

    Instances For
      @[reducible, inline]

      Imported declaration from the Incompleteness formalization.

      Equations
      Instances For
        @[reducible, inline]

        Imported declaration from the Incompleteness formalization.

        Equations
        Instances For

          Imported declaration from the Incompleteness formalization.

          Equations
          Instances For

            Imported declaration from the Incompleteness formalization.

            Equations
            Instances For
              def LO.FirstOrder.Derivation.length {L : Language} {T : Theory L} {Δ : Sequent L} :
              T Δ

              Imported declaration from the Incompleteness formalization.

              Equations
              Instances For
                @[simp]
                theorem LO.FirstOrder.Derivation.length_axL {L : Language} {T : Theory L} {Δ : Sequent L} {k : } {r : L.Rel k} {v : Fin kSemiterm L 0} :
                (axL Δ r v).length = 0
                @[simp]
                @[simp]
                theorem LO.FirstOrder.Derivation.length_and {L : Language} {T : Theory L} {Δ : Sequent L} {φ ψ : SyntacticFormula L} (dp : T φ :: Δ) (dq : T ψ :: Δ) :
                (and dp dq).length = (max (length dp) (length dq)).succ
                @[simp]
                theorem LO.FirstOrder.Derivation.length_or {L : Language} {T : Theory L} {Δ : Sequent L} {φ ψ : SyntacticFormula L} (d : T φ :: ψ :: Δ) :
                @[simp]
                theorem LO.FirstOrder.Derivation.length_ex {L : Language} {T : Theory L} {Δ : Sequent L} {t : Semiterm L 0} {φ : SyntacticSemiformula L (Nat.succ 0)} (d : T φ/[t] :: Δ) :
                (ex t d).length = (length d).succ
                @[simp]
                theorem LO.FirstOrder.Derivation.length_wk {L : Language} {T : Theory L} {Δ Γ : Sequent L} (d : T Δ) (h : Δ Γ) :
                (wk d h).length = (length d).succ
                @[simp]
                theorem LO.FirstOrder.Derivation.length_cut {L : Language} {T : Theory L} {Δ : Sequent L} {φ : SyntacticFormula L} (dp : T φ :: Δ) (dn : T φ :: Δ) :
                (cut dp dn).length = (max (length dp) (length dn)).succ
                def LO.FirstOrder.Derivation.repr {L : Language} {T : Theory L} [(k : ) → ToString (L.Func k)] [(k : ) → ToString (L.Rel k)] {Δ : Sequent L} :
                T ΔString

                Imported declaration from the Incompleteness formalization.

                Equations
                Instances For
                  @[implicit_reducible]
                  instance LO.FirstOrder.Derivation.instReprDerivationSyntacticFormulaTheory {L : Language} {T : Theory L} {Δ : Sequent L} [(k : ) → ToString (L.Func k)] [(k : ) → ToString (L.Rel k)] :
                  Repr (T Δ)
                  Equations
                  @[reducible, inline]
                  abbrev LO.FirstOrder.Derivation.cast {L : Language} {T : Theory L} {Δ Γ : Sequent L} (d : T Δ) (e : Δ = Γ) :
                  T Γ

                  Imported declaration from the Incompleteness formalization.

                  Equations
                  Instances For
                    theorem LO.FirstOrder.Derivation.cast_eq {L : Language} {T : Theory L} {Δ : Sequent L} (d : T Δ) (e : Δ = Δ) :
                    @[simp]
                    theorem LO.FirstOrder.Derivation.length_cast {L : Language} {T : Theory L} {Δ Γ : Sequent L} (d : T Δ) (e : Δ = Γ) :
                    theorem LO.FirstOrder.Derivation.length_cast' {L : Language} {T : Theory L} {Δ Γ : Sequent L} (d : T Δ) (e : Δ = Γ) :
                    length (e d) = length d
                    def LO.FirstOrder.Derivation.verum' {L : Language} {T : Theory L} {Δ : Sequent L} (h : Δ) :
                    T Δ

                    Imported declaration from the Incompleteness formalization.

                    Equations
                    Instances For
                      def LO.FirstOrder.Derivation.axL' {L : Language} {T : Theory L} {Δ : Sequent L} {k : } (r : L.Rel k) (v : Fin kSemiterm L 0) (h : Semiformula.rel r v Δ) (hn : Semiformula.nrel r v Δ) :
                      T Δ

                      Imported declaration from the Incompleteness formalization.

                      Equations
                      Instances For
                        def LO.FirstOrder.Derivation.all' {L : Language} {T : Theory L} {Δ : Sequent L} {φ : SyntacticSemiformula L (0 + 1)} (h : ∀' φ Δ) (d : T Rewriting.free φ :: Rewriting.shifts Δ) :
                        T Δ

                        Imported declaration from the Incompleteness formalization.

                        Equations
                        Instances For
                          def LO.FirstOrder.Derivation.ex' {L : Language} {T : Theory L} {Δ : Sequent L} {φ : SyntacticSemiformula L (0 + 1)} (h : ∃' φ Δ) (t : Semiterm L 0) (d : T φ/[t] :: Δ) :
                          T Δ

                          Imported declaration from the Incompleteness formalization.

                          Equations
                          Instances For
                            @[simp]
                            @[irreducible]
                            def LO.FirstOrder.Derivation.em {L : Language} {T : Theory L} {Δ : Sequent L} {φ : SyntacticFormula L} (hpos : φ Δ) (hneg : φ Δ) :
                            T Δ

                            Imported declaration from the Incompleteness formalization.

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

                              Imported declaration from the Incompleteness formalization.

                              Equations
                              Instances For
                                def LO.FirstOrder.Derivation.specialize {L : Language} {T : Theory L} {Γ : Sequent L} {φ : SyntacticSemiformula L 1} (t : SyntacticTerm L) :
                                T (∀' φ) :: ΓT φ/[t] :: Γ

                                Imported declaration from the Incompleteness formalization.

                                Equations
                                Instances For
                                  def LO.FirstOrder.Derivation.specializes {L : Language} {T : Theory L} {k : } {φ : SyntacticSemiformula L k} {Γ : Sequent L} (v : Fin kSyntacticTerm L) :
                                  T (∀* φ) :: ΓT φ <~ v :: Γ

                                  Imported declaration from the Incompleteness formalization.

                                  Equations
                                  Instances For
                                    def LO.FirstOrder.Derivation.instances {L : Language} {T : Theory L} {k : } {φ : SyntacticSemiformula L k} {Γ : Sequent L} {v : Fin kSyntacticTerm L} :
                                    T φ <~ v :: ΓT (∃* φ) :: Γ

                                    Imported declaration from the Incompleteness formalization.

                                    Equations
                                    Instances For

                                      Imported declaration from the Incompleteness formalization.

                                      Equations
                                      Instances For

                                        Imported declaration from the Incompleteness formalization.

                                        Equations
                                        Instances For

                                          Imported declaration from the Incompleteness formalization.

                                          Imported declaration from the Incompleteness formalization.

                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For
                                            def LO.FirstOrder.Derivation.rewrite {L : Language} {T : Theory L} {Δ : List (SyntacticFormula L)} :
                                            T Δ(f : SyntacticTerm L) → T List.map (fun (φ : SyntacticSemiformula L 0) => (Rewriting.app (Rew.rewrite f)) φ) Δ

                                            Imported declaration from the Incompleteness formalization.

                                            Equations
                                            Instances For
                                              def LO.FirstOrder.Derivation.map {L : Language} {T : Theory L} {Δ : Sequent L} (d : T Δ) (f : ) :

                                              Imported declaration from the Incompleteness formalization.

                                              Equations
                                              Instances For
                                                def LO.FirstOrder.Derivation.shift {L : Language} {T : Theory L} {Δ : Sequent L} (d : T Δ) :

                                                Imported declaration from the Incompleteness formalization.

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

                                                  Imported declaration from the Incompleteness formalization.

                                                  Equations
                                                  Instances For

                                                    Imported declaration from the Incompleteness formalization.

                                                    def LO.FirstOrder.Derivation.deduction {L : Language} {T : Theory L} {Γ : Sequent L} {φ : SyntacticFormula L} [(k : ) → DecidableEq (L.Func k)] [(k : ) → DecidableEq (L.Rel k)] (d : insert φ T Γ) :

                                                    Imported declaration from the Incompleteness formalization.

                                                    Equations
                                                    Instances For

                                                      Imported declaration from the Incompleteness formalization.

                                                      Imported declaration from the Incompleteness formalization.

                                                      def LO.FirstOrder.Derivation.genelalizeByNewver {L : Language} {T : Theory L} {Δ : Sequent L} {m : } {φ : SyntacticSemiformula L 1} (hp : ¬Semiformula.FVar? φ m) ( : ψΔ, ¬Semiformula.FVar? ψ m) (d : T φ/[Semiterm.fvar m] :: Δ) :
                                                      T (∀' φ) :: Δ

                                                      Imported declaration from the Incompleteness formalization.

                                                      Equations
                                                      Instances For
                                                        def LO.FirstOrder.Derivation.exOfInstances {L : Language} {T : Theory L} {Γ : Sequent L} (v : List (SyntacticTerm L)) (φ : SyntacticSemiformula L 1) (h : T List.map (fun (x : Semiterm L 0) => φ/[x]) v ++ Γ) :
                                                        T (∃' φ) :: Γ

                                                        Imported declaration from the Incompleteness formalization.

                                                        Equations
                                                        • One or more equations did not get rendered due to their size.
                                                        Instances For
                                                          def LO.FirstOrder.Derivation.exOfInstances' {L : Language} {T : Theory L} {Γ : Sequent L} (v : List (SyntacticTerm L)) (φ : SyntacticSemiformula L 1) (h : T (∃' φ) :: List.map (fun (x : Semiterm L 0) => φ/[x]) v ++ Γ) :
                                                          T (∃' φ) :: Γ

                                                          Imported declaration from the Incompleteness formalization.

                                                          Equations
                                                          Instances For

                                                            Imported declaration from the Incompleteness formalization.

                                                            Equations
                                                            Instances For
                                                              def LO.FirstOrder.Derivation.allNvar {L : Language} {T : Theory L} {Δ : Sequent L} {φ : SyntacticSemiformula L (0 + 1)} (h : ∀' φ Δ) :
                                                              T φ/[Semiterm.fvar (newVar Δ)] :: ΔT Δ

                                                              Imported declaration from the Incompleteness formalization.

                                                              Equations
                                                              Instances For
                                                                def LO.FirstOrder.Derivation.id {L : Language} {T : Theory L} {Δ : Sequent L} {φ : SyntacticFormula L} (hp : φ T) :
                                                                T Semiformula.close φ :: ΔT Δ

                                                                Imported declaration from the Incompleteness formalization.

                                                                Equations
                                                                Instances For

                                                                  An auxiliary structure to provide systems of provability of sentence.

                                                                  • thy : Theory L

                                                                    Imported declaration from the Incompleteness formalization.

                                                                  Instances For
                                                                    @[simp]
                                                                    @[reducible, inline]
                                                                    abbrev LO.FirstOrder.Provable₀ {L : Language} (T : Theory L) (σ : Sentence L) :

                                                                    Imported declaration from the Incompleteness formalization.

                                                                    Equations
                                                                    Instances For

                                                                      Imported declaration from the Incompleteness formalization.

                                                                      Equations
                                                                      Instances For
                                                                        @[reducible, inline]

                                                                        Imported declaration from the Incompleteness formalization.

                                                                        Equations
                                                                        Instances For

                                                                          Imported declaration from the Incompleteness formalization.

                                                                          Equations
                                                                          Instances For
                                                                            @[implicit_reducible]
                                                                            Equations
                                                                            • One or more equations did not get rendered due to their size.
                                                                            theorem LO.FirstOrder.provable₀_iff {L : Language} {T : Theory L} {σ : Sentence L} :
                                                                            T ⊢!. σ T ⊢! σ
                                                                            theorem LO.FirstOrder.unprovable₀_iff {L : Language} {T : Theory L} {σ : Sentence L} :
                                                                            T ⊬. σ T σ