Flypitch.Compat.Core collects small compatibility definitions that emulate the dependent-vector
utilities used by the original development. They provide the lightweight data structures and
arity helpers that the first-order syntax layer builds on.
theorem
Flypitch.Function.Injective.ne_iff
{α : Sort u_1}
{β : Sort u_2}
{f : α → β}
(hf : Function.Injective f)
{a₁ a₂ : α}
:
@[implicit_reducible]
Equations
Equations
- Flypitch.dvector.nil.concat x✝ = Flypitch.dvector.cons x✝ Flypitch.dvector.nil
- (Flypitch.dvector.cons y ys).concat x✝ = Flypitch.dvector.cons y (ys.concat x✝)
Instances For
Equations
- Flypitch.dvector.nil.nth x✝¹ x✝ = ⋯.elim
- (Flypitch.dvector.cons x_4 a).nth 0 x_5 = x_4
- (Flypitch.dvector.cons a xs).nth m.succ h = xs.nth m ⋯
Instances For
Equations
- (Flypitch.dvector.cons x_3 a).nth'' Flypitch.dfin.fz = x_3
- (Flypitch.dvector.cons a xs).nth'' m.fs = xs.nth'' m
Instances For
Equations
- Flypitch.dvector.mem x Flypitch.dvector.nil = False
- Flypitch.dvector.mem x (Flypitch.dvector.cons y ys) = (x = y ∨ Flypitch.dvector.mem x ys)
Instances For
@[implicit_reducible]
Equations
- Flypitch.dvector.instMembership = { mem := fun (xs : Flypitch.dvector α n) (x : α) => Flypitch.dvector.mem x xs }
Equations
- Flypitch.dvector.pmem x Flypitch.dvector.nil = Empty
- Flypitch.dvector.pmem x (Flypitch.dvector.cons y ys) = (x = y ⊕' Flypitch.dvector.pmem x ys)
Instances For
Equations
Instances For
The type α → (α → ... (α → β)...) with n copies of α.
Equations
- Flypitch.arity' α β 0 = β
- Flypitch.arity' α β n.succ = (α → Flypitch.arity' α β n)
Instances For
Equations
- Flypitch.arity'.constant x✝ = x✝
- Flypitch.arity'.constant x✝ = fun (x : α) => Flypitch.arity'.constant x✝
Instances For
Equations
- Flypitch.arity'.ofDVectorMap f = f Flypitch.dvector.nil
- Flypitch.arity'.ofDVectorMap f = fun (x : α) => Flypitch.arity'.ofDVectorMap fun (xs : Flypitch.dvector α n) => f (Flypitch.dvector.cons x xs)
Instances For
Equations
- b.app Flypitch.dvector.nil = b
- f.app (Flypitch.dvector.cons x_3 xs) = (f x_3).app xs
Instances For
Equations
- Flypitch.arity'.postcompose g b = g b
- Flypitch.arity'.postcompose g f = fun (x : α) => Flypitch.arity'.postcompose g (f x)
Instances For
Equations
- g.precompose x✝ = g
- g.precompose x✝ = fun (x : α) => (g (x✝ x)).precompose x✝