Documentation

LeanPool.MatchingLogic.EntryIII.Compactness

MatchingLogic.EntryIII.Compactness #

The relational first-order signature associated to a matching-logic signature. sigma of matching arity k becomes a relation of arity k + 1; coordinate zero is the output/current point.

Equations
Instances For
    def MatchingLogic.EntryIII.relSym {S : Signature} (sigma : S.Sym) :
    (relLanguage S).Relations (S.arity sigma + 1)

    The relation symbol associated to a matching symbol.

    Equations
    Instances For
      noncomputable def MatchingLogic.EntryIII.Pattern.toFOAux {S : Signature} {Var : Type} [DecidableEq Var] (p : Pattern S Var) {alpha : Type u} :
      (Varalpha)alpha(relLanguage S).Formula alpha

      Relational FOL translation at named free variables eta and current point cur. The recursive calls may enlarge the free-variable type with finitely many local witness variables; iExs binds exactly those variables.

      Equations
      Instances For
        noncomputable def MatchingLogic.EntryIII.Pattern.toFOFormula {S : Signature} {Var : Type} [DecidableEq Var] (p : Pattern S Var) :

        Translation with free variable none for the current point and some x for the matching-logic valuation of x.

        Equations
        Instances For

          Sentence translation. Mathlib's constants extension names the current point and every matching-logic variable.

          Equations
          Instances For
            @[instance_reducible]

            Interpret the relational FOL signature in a matching-logic model.

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

              Recover a matching-logic model from a structure in the constants-expanded relational language.

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

                Valuation recovered from the named constants.

                Equations
                Instances For

                  Distinguished current point recovered from the named constant.

                  Equations
                  Instances For
                    theorem MatchingLogic.EntryIII.realize_toFOAux_of_rel {S : Signature} {Var : Type} [DecidableEq Var] (M : Model S) [(relLanguage S).Structure M.carrier] (hcompat : ∀ (sigma : S.Sym) (out : M.carrier) (args : Fin (S.arity sigma)M.carrier), FirstOrder.Language.Structure.RelMap (relSym sigma) (Fin.cons out args) out M.interp sigma args) (p : Pattern S Var) {alpha : Type u} (eta : Varalpha) (cur : alpha) (v : alphaM.carrier) :
                    (Pattern.toFOAux p eta cur).Realize v v cur M.denote (v eta) p

                    Correctness of the open-formula translation for any relational structure whose relation maps agree with a matching-logic model.

                    theorem MatchingLogic.EntryIII.realize_toFOAux {S : Signature} {Var : Type} [DecidableEq Var] (M : Model S) (p : Pattern S Var) {alpha : Type u} (eta : Varalpha) (cur : alpha) (v : alphaM.carrier) :
                    (Pattern.toFOAux p eta cur).Realize v v cur M.denote (v eta) p

                    Correctness specialized to the FOL structure built from a matching model.

                    def MatchingLogic.EntryIII.Model.toFOParameters {S : Signature} {Var : Type} (M : Model S) (rho : VarM.carrier) (u : M.carrier) :
                    Option VarM.carrier

                    A valuation of the FOL parameters from a matching valuation and current point.

                    Equations
                    Instances For
                      theorem MatchingLogic.EntryIII.realize_toFOSentence {S : Signature} {Var : Type} [DecidableEq Var] (M : Model S) (rho : VarM.carrier) (u : M.carrier) (p : Pattern S Var) :

                      Correctness of sentence translation in the constants expansion built from a matching model, valuation, and current point.

                      Correctness in an arbitrary structure of the constants-expanded language, after recovering its matching model, valuation, and current point.

                      noncomputable def MatchingLogic.EntryIII.counterTheory {S : Signature} {Var : Type} [DecidableEq Var] (Delta : Set (Pattern S Var)) (phi : Pattern S Var) :

                      The first-order theory describing a counterexample to Delta ⊨loc phi.

                      Equations
                      Instances For
                        theorem MatchingLogic.EntryIII.not_counterTheory_isSatisfiable {S : Signature} {Var : Type} [DecidableEq Var] {Delta : Set (Pattern S Var)} {phi : Pattern S Var} (hlocal : LocalCons Delta phi) :

                        A local semantic consequence has no FOL countermodel under the translation.

                        theorem MatchingLogic.EntryIII.counterTheory_isSatisfiable_of_counterexample {S : Signature} {Var : Type} [DecidableEq Var] {Delta : Set (Pattern S Var)} {phi : Pattern S Var} (M : Model S) (rho : VarM.carrier) (u : M.carrier) (hDelta : u M.denoteSet rho Delta) (hphi : uM.denote rho phi) :

                        Conversely, a matching counterexample yields a model of the FOL counterexample theory.

                        Exact semantic equivalence used by the compactness reduction.

                        theorem MatchingLogic.EntryIII.localCons_compact {S : Signature} {Var : Type} [DecidableEq Var] {Delta : Set (Pattern S Var)} {phi : Pattern S Var} (hlocal : LocalCons Delta phi) :
                        ∃ (l : List (Pattern S Var)), (∀ deltal, delta Delta) LocalCons {delta : Pattern S Var | delta l} phi

                        Semantic local compactness for matching logic. No countability assumption is needed on the matching-symbol type or on the variable type.

                        theorem MatchingLogic.localCons_compact {S : Signature} {Var : Type} [DecidableEq Var] {Delta : Set (Pattern S Var)} {phi : Pattern S Var} (hlocal : LocalCons Delta phi) :
                        ∃ (l : List (Pattern S Var)), (∀ deltal, delta Delta) LocalCons {delta : Pattern S Var | delta l} phi

                        Public form of semantic local compactness, used to reduce arbitrary signatures to the finite symbol support of finitely many premises and the conclusion.