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
        @[implicit_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.

                            @[implicit_reducible]

                            Whether a Proposition is positive is decidable.

                            Equations
                            @[implicit_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

                                          Convenience definition for rewriting conclusions in proofs.

                                          Equations
                                          Instances For

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

                                            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

                                                    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) :
                                                      a.Equiv b

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

                                                      @[implicit_reducible]
                                                      instance Cslib.Logic.CLL.instCoeEquivEquiv {Atom✝ : Type u_1} {a b : Proposition Atom✝} :
                                                      Coe (a.equiv b) (a.Equiv b)

                                                      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 : a.Equiv 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
                                                            theorem Cslib.Logic.CLL.Proposition.Equiv.refl {Atom : Type u_1} (a : Proposition Atom) :
                                                            a.Equiv a

                                                            Proof-irrelevant equivalence is reflexive.

                                                            theorem Cslib.Logic.CLL.Proposition.Equiv.symm {Atom : Type u_1} {a b : Proposition Atom} (h : a.Equiv b) :
                                                            b.Equiv a

                                                            Proof-irrelevant equivalence is symmetric.

                                                            theorem 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-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.tensor_distrib_oplus {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

                                                                    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 ::ₘ (Γ + Δ)

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

                                                                      Equations
                                                                      Instances For
                                                                        @[implicit_reducible]
                                                                        Equations
                                                                        • One or more equations did not get rendered due to their size.
                                                                        def Cslib.Logic.CLL.Proposition.tensor_assoc {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