NF weak partition development: SemanticCore.Lowering.
Read a bounded valuation at a Fin index.
Equations
- NFChoice.SemanticCore.Lowering.lookup xs i = xs.nth ↑i ⋯
Instances For
Lower class membership-at-a-candidate to the literal membership language.
Equations
- NFChoice.SemanticCore.Lowering.lowerClassPred rho candidate (NFChoice.SemanticCore.Class.cv x_1) = NFChoice.Foundation.Formula.mem candidate (rho x_1)
- NFChoice.SemanticCore.Lowering.lowerClassPred rho candidate (NFChoice.SemanticCore.Class.cab x_1 p) = NFChoice.SemanticCore.Lowering.lowerWff (Function.update rho x_1 candidate) p
Instances For
Compositional lowering of the nominal core to intrinsically scoped FOL.
Equations
- One or more equations did not get rendered due to their size.
- NFChoice.SemanticCore.Lowering.lowerWff rho NFChoice.SemanticCore.Wff.falsum = NFChoice.Foundation.Formula.falsum
- NFChoice.SemanticCore.Lowering.lowerWff rho (p.imp q) = (NFChoice.SemanticCore.Lowering.lowerWff rho p).imp (NFChoice.SemanticCore.Lowering.lowerWff rho q)
- NFChoice.SemanticCore.Lowering.lowerWff rho (NFChoice.SemanticCore.Wff.all x_1 p) = (NFChoice.SemanticCore.Lowering.lowerWff (NFChoice.SemanticCore.Lowering.bindRho rho x_1) p).all
- NFChoice.SemanticCore.Lowering.lowerWff rho (NFChoice.SemanticCore.Wff.objEq x_1 y) = NFChoice.Foundation.Formula.equal (rho x_1) (rho y)
- NFChoice.SemanticCore.Lowering.lowerWff rho (NFChoice.SemanticCore.Wff.objMem x_1 y) = NFChoice.Foundation.Formula.mem (rho x_1) (rho y)
Instances For
def
NFChoice.SemanticCore.Lowering.FormulaHolds
(S : Fol.Structure Foundation.LNF)
{n : ℕ}
:
DVec S.carrier n → Foundation.Formula n → Prop
Direct semantics of the small intrinsically scoped formula front end.
Equations
- One or more equations did not get rendered due to their size.
- NFChoice.SemanticCore.Lowering.FormulaHolds S x✝ NFChoice.Foundation.Formula.falsum = False
- NFChoice.SemanticCore.Lowering.FormulaHolds S x✝ (NFChoice.Foundation.Formula.equal x_4 y) = (NFChoice.SemanticCore.Lowering.lookup x✝ x_4 = NFChoice.SemanticCore.Lowering.lookup x✝ y)
- NFChoice.SemanticCore.Lowering.FormulaHolds S x✝ (p.imp q) = (NFChoice.SemanticCore.Lowering.FormulaHolds S x✝ p → NFChoice.SemanticCore.Lowering.FormulaHolds S x✝ q)
- NFChoice.SemanticCore.Lowering.FormulaHolds S x✝ p.all = ∀ (a : S.carrier), NFChoice.SemanticCore.Lowering.FormulaHolds S (NFChoice.DVec.cons a x✝) p
Instances For
@[simp]
theorem
NFChoice.SemanticCore.Lowering.formulaHolds_neg
{S : Fol.Structure Foundation.LNF}
{n : ℕ}
{xs : DVec S.carrier n}
{p : Foundation.Formula n}
:
@[simp]
theorem
NFChoice.SemanticCore.Lowering.formulaHolds_conj
{S : Fol.Structure Foundation.LNF}
{n : ℕ}
{xs : DVec S.carrier n}
{p q : Foundation.Formula n}
:
@[simp]
theorem
NFChoice.SemanticCore.Lowering.formulaHolds_biimp
{S : Fol.Structure Foundation.LNF}
{n : ℕ}
{xs : DVec S.carrier n}
{p q : Foundation.Formula n}
:
@[simp]
theorem
NFChoice.SemanticCore.Lowering.formulaHolds_ex
{S : Fol.Structure Foundation.LNF}
{n : ℕ}
{xs : DVec S.carrier n}
{p : Foundation.Formula (n + 1)}
:
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)
:
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)
:
Semantic correctness of nominal-wff lowering.
theorem
NFChoice.SemanticCore.Lowering.formulaHolds_toFlypitch
{S : Fol.Structure Foundation.LNF}
{n : ℕ}
(xs : DVec S.carrier n)
(p : Foundation.Formula n)
:
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.