Documentation

Cslib.Logics.LinearLogic.CLL.Basic

Classical Linear Logic #

TODO #

References #

inductive Cslib.Logic.CLL.Proposition (Atom : Type u) :

Propositions.

Instances For
    def Cslib.Logic.CLL.instDecidableEqProposition.decEq {Atom✝ : Type u_1} [DecidableEq Atom✝] (x✝ x✝¹ : Proposition Atom✝) :
    Decidable (x✝ = x✝¹)
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def Cslib.Logic.CLL.instBEqProposition.beq {Atom✝ : Type u_1} [BEq Atom✝] :
      Proposition Atom✝Proposition Atom✝Bool
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        @[instance_reducible]
        instance Cslib.Logic.CLL.instBEqProposition {Atom✝ : Type u_1} [BEq Atom✝] :
        BEq (Proposition Atom✝)
        Equations

        The multiplicative conjunction connective.

        Equations
        Instances For

          The additive disjunction connective.

          Equations
          Instances For

            The multiplicative disjunction connective.

            Equations
            Instances For

              The additive conjunction connective.

              Equations
              Instances For

                The "of course" exponential.

                Equations
                Instances For

                  The "why not" exponential. This is written as ʔ, or _?, to distinguish itself from the lean syntatical hole ? syntax

                  Equations
                  Instances For

                    Propositional contexts (single-hole contexts for propositions).

                    Instances For
                      def Cslib.Logic.CLL.Proposition.instDecidableEqContext.decEq {Atom✝ : Type u_1} [DecidableEq Atom✝] (x✝ x✝¹ : Context Atom✝) :
                      Decidable (x✝ = x✝¹)
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        def Cslib.Logic.CLL.Proposition.instBEqContext.beq {Atom✝ : Type u_1} [BEq Atom✝] :
                        Context Atom✝Context Atom✝Bool
                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          def Cslib.Logic.CLL.Proposition.Context.fill {Atom : Type u_1} (c : Context Atom) (a : Proposition Atom) :

                          Replaces the hole in a propositional context with a propositions.

                          Equations
                          Instances For
                            theorem Cslib.Logic.CLL.Proposition.context_fill_def {Atom : Type u_1} (c : Context Atom) (a : Proposition Atom) :
                            c<[a] = c.fill a

                            Definition of context filling.

                            @[instance_reducible]

                            Whether a Proposition is positive is decidable.

                            Equations
                            @[instance_reducible]

                            Whether a Proposition is negative is decidable.

                            Equations

                            Propositional duality.

                            Equations
                            Instances For
                              @[simp]

                              Duality preserves size.

                              theorem Cslib.Logic.CLL.Proposition.dual_neq {Atom : Type u_1} (a : Proposition Atom) :
                              a a.dual

                              No proposition is equal to its dual.

                              @[simp]
                              theorem Cslib.Logic.CLL.Proposition.dual_inj {Atom : Type u_1} (a b : Proposition Atom) :
                              a.dual = b.dual a = b

                              Two propositions are equal iff their respective duals are equal.

                              @[simp]

                              Duality is an involution.

                              Linear implication.

                              Equations
                              Instances For
                                @[reducible, inline]
                                abbrev Cslib.Logic.CLL.Sequent (Atom : Type u_1) :
                                Type u_1

                                A sequent in CLL is a multiset of propositions.

                                Equations
                                Instances For
                                  def Cslib.Logic.CLL.Sequent.allQuest {Atom : Type u_1} (Γ : Sequent Atom) :

                                  Checks that all propositions in a sequent Γ are question marks.

                                  Equations
                                  Instances For

                                    Judgemental contexts for CLL.

                                    Equations
                                    Instances For
                                      def Cslib.Logic.CLL.Sequent.Context.fill {Atom : Type u_1} (Γc : Context Atom) (a : Proposition Atom) :

                                      Filling a judgemental context returns a sequent.

                                      Equations
                                      Instances For
                                        inductive Cslib.Logic.CLL.Proof {Atom : Type u} :
                                        Sequent AtomType u

                                        A proof in the sequent calculus for classical linear logic.

                                        Instances For
                                          def Cslib.Logic.CLL.Proof.rwConclusion {Atom : Type u_1} {Γ Δ : Sequent Atom} (h : Γ = Δ) (p : Γ) :
                                          Δ

                                          Convenience definition for rewriting conclusions in proofs.

                                          Equations
                                          Instances For
                                            def Cslib.Logic.CLL.Proof.ax' {Atom : Type u_1} {a : Proposition Atom} :
                                            {a.dual, a}

                                            The axiom, but where the order of propositions is reversed.

                                            Equations
                                            Instances For
                                              def Cslib.Logic.CLL.Proof.cut' {Atom✝ : Type u_1} {a : Proposition Atom✝} {Γ Δ : Multiset (Proposition Atom✝)} (p : ⇓(a.dual ::ₘ Γ)) (q : ⇓(a ::ₘ Δ)) :
                                              ⇓(Γ + Δ)

                                              Cut, but where the premises are reversed.

                                              Equations
                                              Instances For
                                                def Cslib.Logic.CLL.Proof.botInversion {Atom : Type u_1} {Γ : Sequent Atom} (h : ⇓( ::ₘ Γ)) :
                                                Γ

                                                Inversion of the ⊥ rule.

                                                Equations
                                                Instances For
                                                  def Cslib.Logic.CLL.Proof.withInversion₁ {Atom : Type u_1} {a b : Proposition Atom} {Γ : Sequent Atom} (h : ⇓(a.with b ::ₘ Γ)) :
                                                  ⇓(a ::ₘ Γ)

                                                  Inversion of the & rule, first component.

                                                  Equations
                                                  Instances For
                                                    def Cslib.Logic.CLL.Proof.withInversion₂ {Atom : Type u_1} {a b : Proposition Atom} {Γ : Sequent Atom} (h : ⇓(a.with b ::ₘ Γ)) :
                                                    ⇓(b ::ₘ Γ)

                                                    Inversion of the & rule, second component.

                                                    Equations
                                                    Instances For

                                                      Logical equivalences #

                                                      def Cslib.Logic.CLL.Proposition.equiv {Atom : Type u_1} (a b : Proposition Atom) :
                                                      Type u_1

                                                      Two propositions are equivalent if one implies the other and vice versa. Proof-relevant version.

                                                      Equations
                                                      Instances For

                                                        Two propositions are equivalent if one implies the other and vice versa. Proof-relevant version.

                                                        Equations
                                                        Instances For

                                                          Propositional equivalence, proof-irrelevant version (Prop).

                                                          Equations
                                                          Instances For
                                                            theorem Cslib.Logic.CLL.Proposition.equiv.toProp {Atom✝ : Type u_1} {a b : Proposition Atom✝} (h : a.equiv b) :

                                                            Conversion from proof-relevant to proof-irrelevant versions of propositional equivalence.

                                                            @[instance_reducible]
                                                            instance Cslib.Logic.CLL.instCoeEquivRPropositionEquiv {Atom✝ : Type u_1} {a b : Proposition Atom✝} :

                                                            Proof-relevant equivalence is coerciable into proof-irrelevant equivalence.

                                                            Equations
                                                            noncomputable def Cslib.Logic.CLL.chooseEquiv {Atom✝ : Type u_1} {a b : Proposition Atom✝} (h : DefaultCongruence.r a b) :
                                                            a.equiv b

                                                            Transforms a proof-irrelevant equivalence into a proof-relevant one (this is not computable).

                                                            Equations
                                                            Instances For
                                                              def Cslib.Logic.CLL.Proposition.equiv.symm {Atom : Type u_1} {b : Proposition Atom} (a : Proposition Atom) (h : a.equiv b) :
                                                              b.equiv a

                                                              Proof-relevant equivalence is symmetric.

                                                              Equations
                                                              Instances For
                                                                def Cslib.Logic.CLL.Proposition.equiv.trans {Atom : Type u_1} {a b c : Proposition Atom} (hab : a.equiv b) (hbc : b.equiv c) :
                                                                a.equiv c

                                                                Proof-relevant equivalence is transitive.

                                                                Equations
                                                                Instances For

                                                                  Proof-irrelevant equivalence is reflexive.

                                                                  Proof-irrelevant equivalence is symmetric.

                                                                  Proof-irrelevant equivalence is transitive.

                                                                  The canonical equivalence relation for propositions.

                                                                  Equations
                                                                  Instances For

                                                                    ʔ0 ≡⇓ ⊥

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

                                                                      a ⅋ ⊤ ≡⇓ ⊤

                                                                      Equations
                                                                      • One or more equations did not get rendered due to their size.
                                                                      Instances For
                                                                        def Cslib.Logic.CLL.Proposition.tensorDistribOplus {Atom : Type u_1} (a b c : Proposition Atom) :
                                                                        (a.tensor (b.oplus c)).equiv ((a.tensor b).oplus (a.tensor c))

                                                                        ⊗ distributes over ⊕.

                                                                        Equations
                                                                        • One or more equations did not get rendered due to their size.
                                                                        Instances For
                                                                          def Cslib.Logic.CLL.Proposition.substEqvHead {Atom : Type u_1} {a b : Proposition Atom} {Γ : Sequent Atom} (heqv : a.equiv b) (p : ⇓(a ::ₘ Γ)) :
                                                                          ⇓(b ::ₘ Γ)

                                                                          The proposition at the head of a proof can be substituted by an equivalent proposition.

                                                                          Equations
                                                                          Instances For
                                                                            theorem Cslib.Logic.CLL.Proposition.add_middle_eq_cons {Atom : Type u_1} {Γ Δ : Multiset (Proposition Atom)} {a : Proposition Atom} :
                                                                            Γ + {a} + Δ = a ::ₘ (Γ + Δ)
                                                                            def Cslib.Logic.CLL.Proposition.substEqv {Atom : Type u_1} {a b : Proposition Atom} {Γ Δ : Sequent Atom} (heqv : a.equiv b) (p : ⇓(Γ + {a} + Δ)) :
                                                                            ⇓(Γ + {b} + Δ)

                                                                            Any proposition in a proof (regardless of its position) can be substituted by an equivalent proposition.

                                                                            Equations
                                                                            Instances For
                                                                              @[instance_reducible]
                                                                              Equations
                                                                              • One or more equations did not get rendered due to their size.
                                                                              def Cslib.Logic.CLL.Proposition.tensorAssoc {Atom : Type u_1} {a b c : Proposition Atom} :
                                                                              (a.tensor (b.tensor c)).equiv ((a.tensor b).tensor c)

                                                                              ⊗ is associative.

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