Documentation

LeanPool.NFWeakPartition.NominalAlphaTransport

NF weak partition development: NominalAlphaTransport.

Proof-relevant alpha certificates for the direct syntactic replay.

The semantic replay's AlphaVar/AlphaWff/AlphaClass live in Prop, so Lean may not eliminate them into the proof-object type Fol.prf. These parallel Type-valued certificates retain the same constructor shapes. Their eliminator proves that paired nominal binders lower to identical de-Bruijn formulas; the public handlers then reduce alpha transport to reflexivity.

@[reducible, inline]

Paired nominal binders, nearest binder first.

Equations
Instances For

    Proof-relevant correspondence of variable occurrences.

    Instances For

      Proof-relevant alpha equivalence of nominal classes.

      Instances For

        Proof-relevant alpha equivalence of nominal formulas.

        Instances For

          The two de-Bruijn environments agree on every paired occurrence.

          Equations
          Instances For
            theorem NFChoice.DirectNominalPrf.Nominal.TRhoAgree.bind {env : TBinderEnv} {rho sigma : SemanticCore.Var → ℕ} (h : TRhoAgree env rho sigma) (x y : SemanticCore.Var) :
            TRhoAgree ((x, y) :: env) (bindRho rho x) (bindRho sigma y)
            theorem NFChoice.DirectNominalPrf.Nominal.TRhoAgree.update {env : TBinderEnv} {rho sigma : SemanticCore.Var → ℕ} (h : TRhoAgree env rho sigma) (x y : SemanticCore.Var) (candidate : ℕ) :
            TRhoAgree ((x, y) :: env) (updateRho rho x candidate) (updateRho sigma y candidate)
            theorem NFChoice.DirectNominalPrf.Nominal.TRhoAgree.lift {env : TBinderEnv} {rho sigma : SemanticCore.Var → ℕ} (h : TRhoAgree env rho sigma) :
            TRhoAgree env (liftRho rho) (liftRho sigma)
            theorem NFChoice.DirectNominalPrf.Nominal.TAlphaClass.lower_eq {env : TBinderEnv} {A B : SemanticCore.Class} (h : TAlphaClass env A B) {rho sigma : SemanticCore.Var → ℕ} (hrho : TRhoAgree env rho sigma) (candidate : ℕ) :
            lowerClassPred rho candidate A = lowerClassPred sigma candidate B

            Alpha-equivalent classes lower to the same candidate predicate.

            theorem NFChoice.DirectNominalPrf.Nominal.TAlphaWff.lower_eq {env : TBinderEnv} {p q : SemanticCore.Wff} (h : TAlphaWff env p q) {rho sigma : SemanticCore.Var → ℕ} (hrho : TRhoAgree env rho sigma) :
            lowerWff rho p = lowerWff sigma q

            Alpha-equivalent formulas lower to the same de-Bruijn formula.

            Proof-translation construction identified upstream as neg.

            Equations
            Instances For
              def NFChoice.DirectNominalPrf.Nominal.TAlphaWff.conj {env : TBinderEnv} {p p' q q' : SemanticCore.Wff} (hp : TAlphaWff env p p') (hq : TAlphaWff env q q') :
              TAlphaWff env (p.conj q) (p'.conj q')

              Proof-translation construction identified upstream as conj.

              Equations
              Instances For
                def NFChoice.DirectNominalPrf.Nominal.TAlphaWff.biimp {env : TBinderEnv} {p p' q q' : SemanticCore.Wff} (hp : TAlphaWff env p p') (hq : TAlphaWff env q q') :
                TAlphaWff env (p.biimp q) (p'.biimp q')

                Proof-translation construction identified upstream as biimp.

                Equations
                Instances For

                  Proof-translation construction identified upstream as ex.

                  Equations
                  Instances For

                    Freshness condition used by mechanically emitted reflexive subtrees.

                    Equations
                    Instances For

                      Every binder environment is fresh for an empty support.

                      theorem NFChoice.DirectNominalPrf.Nominal.TEnvFresh.cons {env : TBinderEnv} {support : Finset SemanticCore.Var} {x y : SemanticCore.Var} (hx : x ∉ support) (hy : y ∉ support) (htail : TEnvFresh env support) :
                      TEnvFresh ((x, y) :: env) support

                      Extend a fresh binder environment by two fresh endpoints.

                      theorem NFChoice.DirectNominalPrf.Nominal.TEnvFresh.mono {env : TBinderEnv} {small large : Finset SemanticCore.Var} (h : TEnvFresh env large) (hsub : small ⊆ large) :
                      TEnvFresh env small

                      Proof-translation construction identified upstream as TAlphaVar.refl_of_fresh.

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

                        Proof-relevant reflexivity for every free variable in a support.

                        Equations
                        Instances For
                          def NFChoice.DirectNominalPrf.Nominal.TReflOn.mono {env : TBinderEnv} {small large : Finset SemanticCore.Var} (h : TReflOn env large) (hsub : small ⊆ large) :
                          TReflOn env small

                          Proof-translation construction identified upstream as TReflOn.mono.

                          Equations
                          Instances For

                            Proof-translation construction identified upstream as TEnvFresh.reflOn.

                            Equations
                            Instances For

                              Proof-translation construction identified upstream as TReflOn.extend_same.

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

                                Reflexive class certificate from exact semantic free-variable support.

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

                                  Reflexive formula certificate from exact semantic free-variable support.

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

                                    A closed nominal class is alpha-reflexive in every binder environment.

                                    Equations
                                    Instances For

                                      Reflexive class certificate under externally fresh renamed binders.

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

                                        Reflexive formula certificate under externally fresh renamed binders.

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

                                          Direct syntactic transport for Wff-valued alpha definitions.

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

                                            Direct syntactic transport for class-valued alpha definitions.

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