NF weak partition development: Flypitch4.ToMathlib.
Lean 3 → Lean 4 Port: Renames and Drops #
Renames (for downstream file porters, search counts in src/) #
imp_self→ba_imp_self(renamed to avoid collision with Lean 4 coreimp_self)- Call sites:
src/henkin.lean:210,src/fol.lean:2097(2 sites)
- Call sites:
le_trans'→le_trans_inf(renamed to avoid collision with mathlib4ge_transalias and Lean 4 corele_trans'for lists)- Call sites:
src/bfol.lean:706,src/bvm.lean:64,:2475,:2481,src/bvm_extras.lean:2121,:2124(6 sites)
- Call sites:
mk_union_le→mk_union_le_impl(kept as wrapper; mathlib4 hasCardinal.mk_union_le)- Call site:
src/collapse.lean:570— when collapse is ported, preferCardinal.mk_union_leover our wrapper
- Call site:
nontrivial.bot_lt_top→nontrivial_bot_lt_top(flattened from sub-namespace dot notation; class accessor pattern changes in Lean 4)- Call sites:
src/bfol.lean:790,src/bvm.lean:1596,src/zfc.lean:519,:534(4 sites)
- Call sites:
Drops (declarations removed because they exist in mathlib4) #
congr1andrexacttactics (src/to_mathlib.lean:492-510)complete_degenerate_boolean_algebra(src/to_mathlib.lean:756)- Replaced by mathlib4's
PUnit.instCompleteBooleanAlgebrainMathlib/Order/CompleteBooleanAlgebra.lean - No downstream
src/file uses this directly
- Replaced by mathlib4's
function namespace #
Function.Injective.ne_iff already exists in mathlib4. No
redeclaration needed.
dvector type and namespace #
Equations
- NFChoice.haszeroDFin = { zero := NFChoice.DFin.fz }
Flypitch construction concat, retained by the first-order soundness and completeness
development.
Equations
- NFChoice.DVec.nil.concat x✝ = NFChoice.DVec.cons x✝ NFChoice.DVec.nil
- (NFChoice.DVec.cons x_3 xs).concat x✝ = NFChoice.DVec.cons x_3 (xs.concat x✝)
Instances For
Flypitch construction nth, retained by the first-order soundness and completeness
development.
Equations
- NFChoice.DVec.nil.nth x✝¹ x✝ = absurd x✝ ⋯
- (NFChoice.DVec.cons x_4 _xs).nth 0 x_5 = x_4
- (NFChoice.DVec.cons _x xs).nth m.succ h = xs.nth m ⋯
Instances For
Flypitch construction nth'', retained by the first-order soundness and completeness
development.
Equations
- (NFChoice.DVec.cons x_3 _xs).nth'' NFChoice.DFin.fz = x_3
- (NFChoice.DVec.cons _x xs).nth'' m.fs = xs.nth'' m
Instances For
Flypitch construction mem, retained by the first-order soundness and completeness
development.
Equations
- NFChoice.DVec.mem x✝ NFChoice.DVec.nil = False
- NFChoice.DVec.mem x✝ (NFChoice.DVec.cons x' xs) = (x✝ = x' ∨ NFChoice.DVec.mem x✝ xs)
Instances For
Equations
- NFChoice.DVec.membershipDVec = { mem := fun (xs : NFChoice.DVec α n) (a : α) => NFChoice.DVec.mem a xs }
Flypitch construction pmem, retained by the first-order soundness and completeness
development.
Equations
- NFChoice.DVec.pmem x✝ NFChoice.DVec.nil = Empty
- NFChoice.DVec.pmem x✝ (NFChoice.DVec.cons x' xs) = (x✝ = x' ⊕' NFChoice.DVec.pmem x✝ xs)
Instances For
Flypitch construction map, retained by the first-order soundness and completeness
development.
Equations
- NFChoice.DVec.map f NFChoice.DVec.nil = NFChoice.DVec.nil
- NFChoice.DVec.map f (NFChoice.DVec.cons x_2 xs) = NFChoice.DVec.cons (f x_2) (NFChoice.DVec.map f xs)
Instances For
Flypitch construction map2, retained by the first-order soundness and completeness
development.
Equations
- NFChoice.DVec.map2 f NFChoice.DVec.nil NFChoice.DVec.nil = NFChoice.DVec.nil
- NFChoice.DVec.map2 f (NFChoice.DVec.cons x_3 xs) (NFChoice.DVec.cons y ys) = NFChoice.DVec.cons (f x_3 y) (NFChoice.DVec.map2 f xs ys)
Instances For
Flypitch construction append, retained by the first-order soundness and completeness
development.
Equations
- NFChoice.DVec.nil.append x✝ = x✝
- (NFChoice.DVec.cons x' xs).append x✝ = NFChoice.DVec.cons x' (xs.append x✝)
Instances For
Flypitch construction insert, retained by the first-order soundness and completeness
development.
Equations
- NFChoice.DVec.insert x✝¹ 0 x✝ = NFChoice.DVec.cons x✝¹ x✝
- NFChoice.DVec.insert x✝¹ x✝ x_6 = NFChoice.DVec.cons x✝¹ NFChoice.DVec.nil
- NFChoice.DVec.insert x✝ k.succ (NFChoice.DVec.cons y ys) = NFChoice.DVec.cons y (NFChoice.DVec.insert x✝ k ys)
Instances For
The n-th initial segment of a vector, given a proof that n ≤ m.
Equations
- NFChoice.DVec.trunc 0 x_4 x_5 = NFChoice.DVec.nil
- NFChoice.DVec.trunc 0 x_4 x_5 = NFChoice.DVec.nil
- NFChoice.DVec.trunc n.succ h x_4 = absurd h ⋯
- NFChoice.DVec.trunc n.succ h (NFChoice.DVec.cons x_4 xs) = NFChoice.DVec.cons x_4 (NFChoice.DVec.trunc n ⋯ xs)
Instances For
Flypitch construction remove_mth, retained by the first-order soundness and completeness
development.
Equations
- NFChoice.DVec.removeMth x✝ x_4 = NFChoice.DVec.nil
- NFChoice.DVec.removeMth 0 (NFChoice.DVec.cons _x ys) = ys
- NFChoice.DVec.removeMth k.succ (NFChoice.DVec.cons y ys) = NFChoice.DVec.cons y (NFChoice.DVec.removeMth k ys)
Instances For
Flypitch construction replace, retained by the first-order soundness and completeness
development.
Equations
- NFChoice.DVec.replace x✝ 0 (NFChoice.DVec.cons _x ys) = NFChoice.DVec.cons x✝ ys
- NFChoice.DVec.replace x✝¹ x✝ ys = ys
- NFChoice.DVec.replace x✝ k.succ (NFChoice.DVec.cons y ys) = NFChoice.DVec.cons y (NFChoice.DVec.replace x✝ k ys)
Instances For
Flypitch construction foldr, retained by the first-order soundness and completeness
development.
Equations
- NFChoice.DVec.foldr f b NFChoice.DVec.nil = b
- NFChoice.DVec.foldr f b (NFChoice.DVec.cons x_2 xs) = f x_2 (NFChoice.DVec.foldr f b xs)
Instances For
Flypitch construction zip, retained by the first-order soundness and completeness
development.
Equations
- NFChoice.DVec.nil.zip NFChoice.DVec.nil = NFChoice.DVec.nil
- (NFChoice.DVec.cons x_3 xs).zip (NFChoice.DVec.cons y ys) = NFChoice.DVec.cons (x_3, y) (xs.zip ys)
Instances For
The finitary infimum
Equations
- xs.fInf = NFChoice.DVec.foldr (fun (x b : α) => x ⊓ b) ⊤ xs
Instances For
The finitary supremum
Equations
- xs.fSup = NFChoice.DVec.foldr (fun (x b : α) => x ⊔ b) ⊥ xs
Instances For
Equations
- NFChoice.DVec.setoidInst = { r := NFChoice.DVec.DVecRel, iseqv := ⋯ }
Flypitch construction quotient_lift, retained by the first-order soundness and
completeness development.
Equations
- NFChoice.DVec.quotientLift f x_4 NFChoice.DVec.nil = f NFChoice.DVec.nil
- NFChoice.DVec.quotientLift f h (NFChoice.DVec.cons q qs) = Quotient.lift (fun (x : α) => NFChoice.DVec.quotientLift (fun (xs : NFChoice.DVec α n) => f (NFChoice.DVec.cons x xs)) ⋯ qs) ⋯ q
Instances For
set namespace #
nat namespace #
classical namespace (logic helpers) #
Flypitch construction psigma_of_exists, retained by the first-order soundness and
completeness development.
Equations
Instances For
list namespace #
additional nat lemmas #
misc prop lemmas #
additional set lemmas #
Flypitch construction change, retained by the first-order soundness and completeness
development.
Equations
- NFChoice.Set.change f z y = if h : x = y then h ▸ z else f y
Instances For
nonempty namespace #
arity' type and namespace #
The type α → (α → ... (α → β)...) with n α's.
Equations
- NFChoice.Arity' α β 0 = β
- NFChoice.Arity' α β n.succ = (α → NFChoice.Arity' α β n)
Instances For
Flypitch construction arity'_constant, retained by the first-order soundness and
completeness development.
Equations
- NFChoice.Arity'.arity'Constant x✝ = x✝
- NFChoice.Arity'.arity'Constant x✝ = fun (x : α) => NFChoice.Arity'.arity'Constant x✝
Instances For
Flypitch construction of_dvector_map, retained by the first-order soundness and
completeness development.
Equations
- NFChoice.Arity'.ofDvectorMap f = f NFChoice.DVec.nil
- NFChoice.Arity'.ofDvectorMap f = fun (x : α) => NFChoice.Arity'.ofDvectorMap fun (xs : NFChoice.DVec α _l) => f (NFChoice.DVec.cons x xs)
Instances For
Flypitch construction arity'_app, retained by the first-order soundness and completeness
development.
Equations
- b.arity'App NFChoice.DVec.nil = b
- f.arity'App (NFChoice.DVec.cons x_3 xs) = (f x_3).arity'App xs
Instances For
Flypitch construction arity'_postcompose, retained by the first-order soundness and
completeness development.
Equations
- NFChoice.Arity'.arity'Postcompose g b = g b
- NFChoice.Arity'.arity'Postcompose g f = fun (x : α) => NFChoice.Arity'.arity'Postcompose g (f x)
Instances For
Flypitch construction arity'_postcompose2, retained by the first-order soundness and
completeness development.
Equations
- NFChoice.Arity'.arity'Postcompose2 h b c = h b c
- NFChoice.Arity'.arity'Postcompose2 h f g = fun (x : α) => NFChoice.Arity'.arity'Postcompose2 h (f x) (g x)
Instances For
Flypitch construction arity'_precompose, retained by the first-order soundness and
completeness development.
Equations
- c.arity'Precompose x✝ = c
- g.arity'Precompose x✝ = fun (x : α) => (g (x✝ x)).arity'Precompose x✝
Instances For
Flypitch construction arity'_respect_setoid, retained by the first-order soundness and
completeness development.
- r_zero {α β : Type u} [R : Setoid α] (b : β) : Arity'RespectSetoid b
- r_succ {α β : Type u} [R : Setoid α] (n : ℕ) (f : Arity' α β (n + 1)) (h₁ : ∀ {a a' : α}, a ≈ a' → f a = f a') (h₂ : (a : α) → (f a).Arity'RespectSetoid) : f.Arity'RespectSetoid
Instances For
Flypitch construction for_all, retained by the first-order soundness and completeness
development.
Equations
- NFChoice.Arity'.forAll P = ∀ (x : α), P x
Instances For
Flypitch construction arity'_map2, retained by the first-order soundness and completeness
development.
Equations
- NFChoice.Arity'.arity'Map2 q f x_3 y = f x_3 y
- NFChoice.Arity'.arity'Map2 q f x_3 y = q fun (z : α) => NFChoice.Arity'.arity'Map2 q f (x_3 z) (y z)
Instances For
Flypitch construction arity'_imp, retained by the first-order soundness and completeness
development.
Equations
- f₁.arity'Imp f₂ = NFChoice.Arity'.arity'Map2 NFChoice.Arity'.forAll (fun (P Q : Prop) => P → Q) f₁ f₂
Instances For
Flypitch construction arity'_iff, retained by the first-order soundness and completeness
development.
Equations
- f₁.arity'Iff f₂ = NFChoice.Arity'.arity'Map2 NFChoice.Arity'.forAll Iff f₁ f₂