Documentation

LeanPool.NFWeakPartition.SemanticCore.Lowering

NF weak partition development: SemanticCore.Lowering.

def NFChoice.SemanticCore.Lowering.lookup {S : Type u_1} {n : ℕ} (xs : DVec S n) (i : Fin n) :
S

Read a bounded valuation at a Fin index.

Equations
Instances For
    @[simp]
    theorem NFChoice.SemanticCore.Lowering.lookup_cons_zero {S : Type u_1} {n : ℕ} (a : S) (xs : DVec S n) :
    lookup (DVec.cons a xs) 0 = a
    @[simp]
    theorem NFChoice.SemanticCore.Lowering.lookup_cons_succ {S : Type u_1} {n : ℕ} (a : S) (xs : DVec S n) (i : Fin n) :
    lookup (DVec.cons a xs) i.succ = lookup xs i
    def NFChoice.SemanticCore.Lowering.liftRho {n : ℕ} (rho : Var → Fin n) :
    Var → Fin (n + 1)

    Shift an environment under one newly introduced de Bruijn binder.

    Equations
    Instances For
      def NFChoice.SemanticCore.Lowering.bindRho {n : ℕ} (rho : Var → Fin n) (x : Var) :
      Var → Fin (n + 1)

      Shift an environment and bind nominal name x at de Bruijn index zero.

      Equations
      Instances For

        Lower class membership-at-a-candidate to the literal membership language.

        Equations
        Instances For
          theorem NFChoice.SemanticCore.Lowering.lowerClassPred_sound {S : Fol.Structure Foundation.LNF} {n : ℕ} (rho : Var → Fin n) (xs : DVec S.carrier n) (v : Var → S.carrier) (hrho : ∀ (x : Var), lookup xs (rho x) = v x) (candidate : Fin n) (A : Class) :
          Class.Holds S v A (lookup xs candidate) ↔ FormulaHolds S xs (lowerClassPred rho candidate A)

          Semantic correctness of class-predicate lowering.

          theorem NFChoice.SemanticCore.Lowering.lowerWff_sound {S : Fol.Structure Foundation.LNF} {n : ℕ} (rho : Var → Fin n) (xs : DVec S.carrier n) (v : Var → S.carrier) (hrho : ∀ (x : Var), lookup xs (rho x) = v x) (p : Wff) :
          Wff.Holds S v p ↔ FormulaHolds S xs (lowerWff rho p)

          Semantic correctness of nominal-wff lowering.

          The direct front-end semantics agrees with Flypitch realization.

          theorem NFChoice.SemanticCore.Lowering.lowerWff_realize_iff {S : Fol.Structure Foundation.LNF} {n : ℕ} (rho : Var → Fin n) (xs : DVec S.carrier n) (v : Var → S.carrier) (hrho : ∀ (x : Var), lookup xs (rho x) = v x) (p : Wff) :

          End-to-end correctness of nominal lowering at the Flypitch boundary.