The areas / V01. The language of Mathlib
Mathlib.Logic.Equiv.Basic
191 declarations and 1 deprecated aliases. Mathlib docs · Source
theorem Equiv.Perm.subtypeCongr.congr_simp E1 #
∀ {ε : Type u_8} {p : ε → Prop} {inst : DecidablePred p} [inst_1 : DecidablePred p] (ep ep_1 : Equiv.Perm { a // p a }),
ep = ep_1 → ∀ (en en_1 : Equiv.Perm { a // ¬p a }), en = en_1 → ep.subtypeCongr en = ep_1.subtypeCongr en_1
theorem Eq.mpr.congr_simp E1 #
∀ {α β : Sort u} (h : α = β) (b b_1 : β), b = b_1 → h.mpr b = h.mpr b_1
theorem Equiv.sigmaSigmaSubtype.congr_simp E1 #
∀ {α : Type u_8} {β : α → Type u_9} {γ : (a : α) → β a → Type u_10} (p : (a : α) × β a → Prop)
[uniq : Unique { ab // p ab }] {a : α} {b : β a} (h : p ⟨a, b⟩),
Equiv.sigmaSigmaSubtype p h = Equiv.sigmaSigmaSubtype p h
def Equiv.piOptionEquivProd E1 #
{α : Type u_9} → {β : Option α → Type u_8} → ((a : Option α) → β a) ≃ β none × ((a : α) → β (some a))
The product over Option α of β a is the binary product of the
product over α of β (some α) and β none
theorem Equiv.piOptionEquivProd_symm_apply E0 #
∀ {α : Type u_9} {β : Option α → Type u_8} (x : β none × ((a : α) → β (some a))) (a : Option α),
Equiv.piOptionEquivProd.symm x a = Option.casesOn a x.1 x.2
theorem Equiv.piOptionEquivProd_apply E0 #
∀ {α : Type u_9} {β : Option α → Type u_8} (f : (a : Option α) → β a),
Equiv.piOptionEquivProd f = (f none, fun a ↦ f (some a))
def Equiv.subtypeCongr E1 #
{α : Type u_8} →
{p q : α → Prop} →
[DecidablePred p] → [DecidablePred q] → { x // p x } ≃ { x // q x } → { x // ¬p x } ≃ { x // ¬q x } → Equiv.Perm α
Combines an Equiv between two subtypes with an Equiv between their complements to form a
permutation.
def Equiv.Perm.subtypeCongr E1 #
{ε : Type u_8} → {p : ε → Prop} → [DecidablePred p] → Equiv.Perm { a // p a } → Equiv.Perm { a // ¬p a } → Equiv.Perm ε
Combining permutations on ε that permute only inside or outside the subtype
split induced by p : ε → Prop constructs a permutation on ε.
theorem Equiv.Perm.subtypeCongr.apply E1 #
∀ {ε : Type u_8} {p : ε → Prop} [inst : DecidablePred p] (ep : Equiv.Perm { a // p a }) (en : Equiv.Perm { a // ¬p a })
(a : ε), (ep.subtypeCongr en) a = if h : p a then ↑(ep ⟨a, h⟩) else ↑(en ⟨a, h⟩)
theorem Equiv.Perm.subtypeCongr.left_apply E0 #
∀ {ε : Type u_8} {p : ε → Prop} [inst : DecidablePred p] (ep : Equiv.Perm { a // p a }) (en : Equiv.Perm { a // ¬p a })
{a : ε} (h : p a), (ep.subtypeCongr en) a = ↑(ep ⟨a, h⟩)
theorem Equiv.Perm.subtypeCongr.left_apply_subtype E0 #
∀ {ε : Type u_8} {p : ε → Prop} [inst : DecidablePred p] (ep : Equiv.Perm { a // p a }) (en : Equiv.Perm { a // ¬p a })
(a : { a // p a }), (ep.subtypeCongr en) ↑a = ↑(ep a)
theorem Equiv.Perm.subtypeCongr.right_apply E0 #
∀ {ε : Type u_8} {p : ε → Prop} [inst : DecidablePred p] (ep : Equiv.Perm { a // p a }) (en : Equiv.Perm { a // ¬p a })
{a : ε} (h : ¬p a), (ep.subtypeCongr en) a = ↑(en ⟨a, h⟩)
theorem Equiv.Perm.subtypeCongr.right_apply_subtype E0 #
∀ {ε : Type u_8} {p : ε → Prop} [inst : DecidablePred p] (ep : Equiv.Perm { a // p a }) (en : Equiv.Perm { a // ¬p a })
(a : { a // ¬p a }), (ep.subtypeCongr en) ↑a = ↑(en a)
theorem Equiv.Perm.subtypeCongr.refl E0 #
∀ {ε : Type u_8} {p : ε → Prop} [inst : DecidablePred p],
Equiv.Perm.subtypeCongr (Equiv.refl { a // p a }) (Equiv.refl { a // ¬p a }) = Equiv.refl ε
theorem Equiv.Perm.subtypeCongr.symm E0 #
∀ {ε : Type u_8} {p : ε → Prop} [inst : DecidablePred p] (ep : Equiv.Perm { a // p a }) (en : Equiv.Perm { a // ¬p a }),
Equiv.symm (ep.subtypeCongr en) = Equiv.Perm.subtypeCongr (Equiv.symm ep) (Equiv.symm en)
theorem Equiv.Perm.subtypeCongr.trans E0 #
∀ {ε : Type u_8} {p : ε → Prop} [inst : DecidablePred p] (ep ep' : Equiv.Perm { a // p a })
(en en' : Equiv.Perm { a // ¬p a }),
Equiv.trans (ep.subtypeCongr en) (ep'.subtypeCongr en') =
Equiv.Perm.subtypeCongr (Equiv.trans ep ep') (Equiv.trans en en')
def Equiv.subtypePreimage E1 #
{α : Sort u_1} →
{β : Sort u_4} →
(p : α → Prop) → [DecidablePred p] → (x₀ : { a // p a } → β) → { x // x ∘ Subtype.val = x₀ } ≃ ({ a // ¬p a } → β)
For a fixed function x₀ : {a // p a} → β defined on a subtype of α,
the subtype of functions x : α → β that agree with x₀ on the subtype {a // p a}
is naturally equivalent to the type of functions {a // ¬ p a} → β.
theorem Equiv.subtypePreimage_apply E0 #
∀ {α : Sort u_1} {β : Sort u_4} (p : α → Prop) [inst : DecidablePred p] (x₀ : { a // p a } → β)
(x : { x // x ∘ Subtype.val = x₀ }) (a : { a // ¬p a }), (Equiv.subtypePreimage p x₀) x a = ↑x ↑a
theorem Equiv.subtypePreimage_symm_apply_coe E0 #
∀ {α : Sort u_1} {β : Sort u_4} (p : α → Prop) [inst : DecidablePred p] (x₀ : { a // p a } → β) (x : { a // ¬p a } → β)
(a : α), ↑((Equiv.subtypePreimage p x₀).symm x) a = if h : p a then x₀ ⟨a, h⟩ else x ⟨a, h⟩
theorem Equiv.subtypePreimage_symm_apply_coe_pos E1 #
∀ {α : Sort u_1} {β : Sort u_4} (p : α → Prop) [inst : DecidablePred p] (x₀ : { a // p a } → β) (x : { a // ¬p a } → β)
(a : α) (h : p a), ↑((Equiv.subtypePreimage p x₀).symm x) a = x₀ ⟨a, h⟩
theorem Equiv.subtypePreimage_symm_apply_coe_neg E1 #
∀ {α : Sort u_1} {β : Sort u_4} (p : α → Prop) [inst : DecidablePred p] (x₀ : { a // p a } → β) (x : { a // ¬p a } → β)
(a : α) (h : ¬p a), ↑((Equiv.subtypePreimage p x₀).symm x) a = x ⟨a, h⟩
def Equiv.piCongrRight E3 #
{α : Sort u_1} →
{β₁ : α → Sort u_8} → {β₂ : α → Sort u_9} → ((a : α) → β₁ a ≃ β₂ a) → ((a : α) → β₁ a) ≃ ((a : α) → β₂ a)
A family of equivalences ∀ a, β₁ a ≃ β₂ a generates an equivalence between ∀ a, β₁ a and
∀ a, β₂ a.
theorem Equiv.piCongrRight_symm_apply E0 #
∀ {α : Sort u_1} {β₁ : α → Sort u_8} {β₂ : α → Sort u_9} (F : (a : α) → β₁ a ≃ β₂ a) (a : (i : α) → β₂ i) (i : α),
(Equiv.piCongrRight F).symm a i = Pi.map (fun a ↦ ⇑(F a).symm) a i
theorem Equiv.piCongrRight_apply E0 #
∀ {α : Sort u_1} {β₁ : α → Sort u_8} {β₂ : α → Sort u_9} (F : (a : α) → β₁ a ≃ β₂ a) (a : (i : α) → β₁ i) (i : α),
(Equiv.piCongrRight F) a i = Pi.map (fun a ↦ ⇑(F a)) a i
theorem Equiv.piCongrRight_refl E0 #
∀ {α : Sort u_1} {β : α → Sort u_8}, (Equiv.piCongrRight fun a ↦ Equiv.refl (β a)) = Equiv.refl ((a : α) → β a)
def Equiv.piComm E1 #
{α : Sort u_1} → {β : Sort u_4} → (φ : α → β → Sort u_8) → ((a : α) → (b : β) → φ a b) ≃ ((b : β) → (a : α) → φ a b)
Given φ : α → β → Sort*, we have an equivalence between ∀ a b, φ a b and ∀ b a, φ a b.
This is Function.swap as an Equiv.
theorem Equiv.piComm_apply E0 #
∀ {α : Sort u_1} {β : Sort u_4} (φ : α → β → Sort u_8) (f : (x : α) → (y : β) → φ x y) (y : β) (x : α),
(Equiv.piComm φ) f y x = Function.swap f y x
theorem Equiv.piComm_symm E0 #
∀ {α : Sort u_1} {β : Sort u_4} {φ : α → β → Sort u_8}, (Equiv.piComm φ).symm = Equiv.piComm (Function.swap φ)
def Equiv.piCurry E1 #
{α : Type u_10} →
{β : α → Type u_8} →
(γ : (a : α) → β a → Type u_9) → ((x : (i : α) × β i) → γ x.fst x.snd) ≃ ((a : α) → (b : β a) → γ a b)
Dependent curry equivalence: the type of dependent functions on Σ i, β i is equivalent
to the type of dependent functions of two arguments (i.e., functions to the space of functions).
This is Sigma.curry and Sigma.uncurry together as an equiv.
theorem Equiv.piCurry_apply E0 #
∀ {α : Type u_10} {β : α → Type u_8} (γ : (a : α) → β a → Type u_9) (f : (x : (i : α) × β i) → γ x.fst x.snd),
(Equiv.piCurry γ) f = Sigma.curry f
theorem Equiv.piCurry_symm_apply E0 #
∀ {α : Type u_10} {β : α → Type u_8} (γ : (a : α) → β a → Type u_9) (f : (a : α) → (b : β a) → γ a b),
(Equiv.piCurry γ).symm f = Sigma.uncurry f
def Equiv.ofFiberEquiv E1 #
{α : Type u_8} →
{β : Type u_9} → {γ : Type u_10} → {f : α → γ} → {g : β → γ} → ((c : γ) → { a // f a = c } ≃ { b // g b = c }) → α ≃ β
A family of equivalences between fibers gives an equivalence between domains.
theorem Equiv.ofFiberEquiv_apply E0 #
∀ {α : Type u_8} {β : Type u_9} {γ : Type u_10} {f : α → γ} {g : β → γ}
(e : (c : γ) → { a // f a = c } ≃ { b // g b = c }) (a : α),
(Equiv.ofFiberEquiv e) a = ↑((e (f a)) ((Equiv.sigmaFiberEquiv f).symm a).snd)
theorem Equiv.ofFiberEquiv_symm_apply E0 #
∀ {α : Type u_8} {β : Type u_9} {γ : Type u_10} {f : α → γ} {g : β → γ}
(e : (c : γ) → { a // f a = c } ≃ { b // g b = c }) (a : β),
(Equiv.ofFiberEquiv e).symm a = ↑((Equiv.sigmaCongrRight e).symm ((Equiv.sigmaFiberEquiv g).symm a)).snd
theorem Equiv.ofFiberEquiv_map E1 #
∀ {α : Type u_8} {β : Type u_9} {γ : Type u_10} {f : α → γ} {g : β → γ}
(e : (c : γ) → { a // f a = c } ≃ { b // g b = c }) (a : α), g ((Equiv.ofFiberEquiv e) a) = f a
def Equiv.sigmaNatSucc E1 #
(f : ℕ → Type u) → (n : ℕ) × f n ≃ f 0 ⊕ (n : ℕ) × f (n + 1)
An equivalence that separates out the 0th fiber of (Σ (n : ℕ), f n).
def Equiv.natEquivNatSumPUnit E1 #
ℕ ≃ ℕ ⊕ PUnit.{u_8 + 1}
The set of natural numbers is equivalent to ℕ ⊕ PUnit.
def Equiv.intEquivNatSumNat E1 #
ℤ ≃ ℕ ⊕ ℕ
The type of integer numbers is equivalent to ℕ ⊕ ℕ.
def Equiv.uniqueCongr E1 #
{α : Sort u_1} → {β : Sort u_4} → α ≃ β → Unique α ≃ Unique β
If α is equivalent to β, then Unique α is equivalent to Unique β.
theorem Equiv.isEmpty_congr E1 #
∀ {α : Sort u_1} {β : Sort u_4} (e : α ≃ β), IsEmpty α ↔ IsEmpty β
If α is equivalent to β, then IsEmpty α is equivalent to IsEmpty β.
theorem Equiv.isEmpty E1 #
∀ {α : Sort u_1} {β : Sort u_4} (e : α ≃ β) [IsEmpty β], IsEmpty α
def Equiv.subtypeEquiv E1 #
{α : Sort u_1} →
{β : Sort u_4} →
{p : α → Prop} → {q : β → Prop} → (e : α ≃ β) → (∀ (a : α), p a ↔ q (e a)) → { a // p a } ≃ { b // q b }
If α is equivalent to β and the predicates p : α → Prop and q : β → Prop are equivalent
at corresponding points, then {a // p a} is equivalent to {b // q b}.
For the statement where α = β, that is, e : perm α, see Perm.subtypePerm.
theorem Equiv.subtypeEquiv_apply E0 #
∀ {α : Sort u_1} {β : Sort u_4} {p : α → Prop} {q : β → Prop} (e : α ≃ β) (h : ∀ (a : α), p a ↔ q (e a))
(a : { a // p a }), (e.subtypeEquiv h) a = ⟨e ↑a, ⋯⟩
theorem Equiv.coe_subtypeEquiv_eq_map E0 #
∀ {X : Sort u_8} {Y : Sort u_9} {p : X → Prop} {q : Y → Prop} (e : X ≃ Y) (h : ∀ (x : X), p x ↔ q (e x)),
⇑(e.subtypeEquiv h) = Subtype.map ⇑e ⋯
theorem Equiv.subtypeEquiv_refl E0 #
∀ {α : Sort u_1} {p : α → Prop} (h : optParam (∀ (a : α), p a ↔ p ((Equiv.refl α) a)) ⋯),
(Equiv.refl α).subtypeEquiv h = Equiv.refl { a // p a }
theorem Equiv.subtypeEquiv_symm E0 #
∀ {α : Sort u_1} {β : Sort u_4} {p : α → Prop} {q : β → Prop} (e : α ≃ β) (h : ∀ (a : α), p a ↔ q (e a)),
(e.subtypeEquiv h).symm = e.symm.subtypeEquiv ⋯
theorem Equiv.subtypeEquiv_trans E0 #
∀ {α : Sort u_1} {β : Sort u_4} {γ : Sort u_7} {p : α → Prop} {q : β → Prop} {r : γ → Prop} (e : α ≃ β) (f : β ≃ γ)
(h : ∀ (a : α), p a ↔ q (e a)) (h' : ∀ (b : β), q b ↔ r (f b)),
(e.subtypeEquiv h).trans (f.subtypeEquiv h') = (e.trans f).subtypeEquiv ⋯
def Equiv.subtypeEquivRight E1 #
{α : Sort u_1} → {p q : α → Prop} → (∀ (x : α), p x ↔ q x) → { x // p x } ≃ { x // q x }
If two predicates p and q are pointwise equivalent, then {x // p x} is equivalent to
{x // q x}.
theorem Equiv.subtypeEquivRight_apply_coe E0 #
∀ {α : Sort u_1} {p q : α → Prop} (e : ∀ (x : α), p x ↔ q x) (a : { a // p a }), ↑((Equiv.subtypeEquivRight e) a) = ↑a
theorem Equiv.subtypeEquivRight_symm_apply_coe E0 #
∀ {α : Sort u_1} {p q : α → Prop} (e : ∀ (x : α), p x ↔ q x) (b : { b // q b }),
↑((Equiv.subtypeEquivRight e).symm b) = ↑b
theorem Equiv.subtypeEquivRight_apply E0 #
∀ {α : Sort u_1} {p q : α → Prop} (e : ∀ (x : α), p x ↔ q x) (z : { x // p x }), (Equiv.subtypeEquivRight e) z = ⟨↑z, ⋯⟩
theorem Equiv.subtypeEquivRight_symm_apply E0 #
∀ {α : Sort u_1} {p q : α → Prop} (e : ∀ (x : α), p x ↔ q x) (z : { x // q x }),
(Equiv.subtypeEquivRight e).symm z = ⟨↑z, ⋯⟩
def Equiv.subtypeEquivOfSubtype E1 #
{α : Sort u_1} → {β : Sort u_4} → {p : β → Prop} → (e : α ≃ β) → { a // p (e a) } ≃ { b // p b }
If α ≃ β, then for any predicate p : β → Prop the subtype {a // p (e a)} is equivalent
to the subtype {b // p b}.
def Equiv.subtypeEquivOfSubtype' E1 #
{α : Sort u_1} → {β : Sort u_4} → {p : α → Prop} → (e : α ≃ β) → { a // p a } ≃ { b // p (e.symm b) }
If α ≃ β, then for any predicate p : α → Prop the subtype {a // p a} is equivalent
to the subtype {b // p (e.symm b)}. This version is used by equiv_rw.
def Equiv.subtypeEquivProp E1 #
{α : Sort u_1} → {p q : α → Prop} → p = q → Subtype p ≃ Subtype q
If two predicates are equal, then the corresponding subtypes are equivalent.
def Equiv.subtypeSubtypeEquivSubtypeExists E1 #
{α : Sort u_1} → (p : α → Prop) → (q : Subtype p → Prop) → Subtype q ≃ { a // ∃ (h : p a), q ⟨a, h⟩ }
A subtype of a subtype is equivalent to the subtype of elements satisfying both predicates. This
version allows the “inner” predicate to depend on h : p a.
theorem Equiv.subtypeSubtypeEquivSubtypeExists_apply_coe E0 #
∀ {α : Sort u_1} (p : α → Prop) (q : Subtype p → Prop) (a : Subtype q),
↑((Equiv.subtypeSubtypeEquivSubtypeExists p q) a) = ↑↑a
theorem Equiv.subtypeSubtypeEquivSubtypeExists_symm_apply_coe_coe E0 #
∀ {α : Sort u_1} (p : α → Prop) (q : Subtype p → Prop) (a : { a // ∃ (h : p a), q ⟨a, h⟩ }),
↑↑((Equiv.subtypeSubtypeEquivSubtypeExists p q).symm a) = ↑a
def Equiv.subtypeSubtypeEquivSubtypeInter E1 #
{α : Type u} → (p q : α → Prop) → { x // q ↑x } ≃ { x // p x ∧ q x }
A subtype of a subtype is equivalent to the subtype of elements satisfying both predicates.
theorem Equiv.subtypeSubtypeEquivSubtypeInter_apply_coe E0 #
∀ {α : Type u} (p q : α → Prop) (a : { x // q ↑x }), ↑((Equiv.subtypeSubtypeEquivSubtypeInter p q) a) = ↑↑a
theorem Equiv.subtypeSubtypeEquivSubtypeInter_symm_apply_coe_coe E0 #
∀ {α : Type u} (p q : α → Prop) (a : { x // p x ∧ q x }), ↑↑((Equiv.subtypeSubtypeEquivSubtypeInter p q).symm a) = ↑a
def Equiv.subtypeSubtypeEquivSubtype E1 #
{α : Type u_8} → {p q : α → Prop} → (∀ {x : α}, q x → p x) → { x // q ↑x } ≃ Subtype q
If the outer subtype has more restrictive predicate than the inner one, then we can drop the latter.
theorem Equiv.subtypeSubtypeEquivSubtype_apply_coe E0 #
∀ {α : Type u_8} {p q : α → Prop} (h : ∀ {x : α}, q x → p x) (a : { x // q ↑x }),
↑((Equiv.subtypeSubtypeEquivSubtype h) a) = ↑↑a
theorem Equiv.subtypeSubtypeEquivSubtype_symm_apply_coe_coe E0 #
∀ {α : Type u_8} {p q : α → Prop} (h : ∀ {x : α}, q x → p x) (a : Subtype q),
↑↑((Equiv.subtypeSubtypeEquivSubtype h).symm a) = ↑a
def Equiv.subtypeUnivEquiv E1 #
{α : Sort u_8} → {p : α → Prop} → (∀ (x : α), p x) → Subtype p ≃ α
If a proposition holds for all elements, then the subtype is equivalent to the original type.
theorem Equiv.subtypeUnivEquiv_apply E0 #
∀ {α : Sort u_8} {p : α → Prop} (h : ∀ (x : α), p x) (x : Subtype p), (Equiv.subtypeUnivEquiv h) x = ↑x
theorem Equiv.subtypeUnivEquiv_symm_apply E0 #
∀ {α : Sort u_8} {p : α → Prop} (h : ∀ (x : α), p x) (x : α), (Equiv.subtypeUnivEquiv h).symm x = ⟨x, ⋯⟩
def Equiv.subtypeSigmaEquiv E1 #
{α : Type u_8} → (p : α → Type v) → (q : α → Prop) → { y // q y.fst } ≃ (x : Subtype q) × p ↑x
A subtype of a sigma-type is a sigma-type over a subtype.
def Equiv.sigmaSubtypeEquivOfSubset E1 #
{α : Type u_8} → (p : α → Type v) → (q : α → Prop) → (∀ (x : α) (a : p x), q x) → (x : Subtype q) × p ↑x ≃ (x : α) × p x
A sigma type over a subtype is equivalent to the sigma set over the original type, if the fiber is empty outside of the subset
def Equiv.sigmaSubtypeFiberEquiv E1 #
{α : Type u_8} →
{β : Type u_9} → (f : α → β) → (p : β → Prop) → (∀ (x : α), p (f x)) → (y : Subtype p) × { x // f x = ↑y } ≃ α
If a predicate p : β → Prop is true on the range of a map f : α → β, then
Σ y : {y // p y}, {x // f x = y} is equivalent to α.
def Equiv.sigmaSubtypeFiberEquivSubtype E1 #
{α : Type u_8} →
{β : Type u_9} →
(f : α → β) →
{p : α → Prop} → {q : β → Prop} → (∀ (x : α), p x ↔ q (f x)) → (y : Subtype q) × { x // f x = ↑y } ≃ Subtype p
If for each x we have p x ↔ q (f x), then Σ y : {y // q y}, f ⁻¹' {y} is equivalent
to {x // p x}.
def Equiv.sigmaOptionEquivOfSome E1 #
{α : Type u_8} → (p : Option α → Type v) → IsEmpty (p none) → (x : Option α) × p x ≃ (x : α) × p (some x)
A sigma type over an Option is equivalent to the sigma set over the original type,
if the fiber is empty at none.
def Equiv.piEquivSubtypeSigma E1 #
(ι : Type u_9) → (π : ι → Type u_8) → ((i : ι) → π i) ≃ { f // ∀ (i : ι), (f i).fst = i }
The Pi-type ∀ i, π i is equivalent to the type of sections f : ι → Σ i, π i of the
Sigma type such that for all i we have (f i).fst = i.
def Equiv.subtypePiEquivPi E1 #
{α : Sort u_1} →
{β : α → Sort v} → {p : (a : α) → β a → Prop} → { f // ∀ (a : α), p a (f a) } ≃ ((a : α) → { b // p a b })
The type of functions f : ∀ a, β a such that for all a we have p a (f a) is equivalent
to the type of functions ∀ a, {b : β a // p a b}.
def Equiv.sigmaAssocProd E1 #
{α : Type u_8} → {β : Type u_9} → {γ : α → β → Type u_10} → (ab : α × β) × γ ab.1 ab.2 ≃ (a : α) × (b : β) × γ a b
A sigma of a sigma whose second base does not depend on the first is equivalent to a sigma whose base is a product.
theorem Equiv.sigmaAssocProd_apply_fst E0 #
∀ {α : Type u_8} {β : Type u_9} {γ : α → β → Type u_10} (a : (a : α × β) × γ a.1 a.2),
(Equiv.sigmaAssocProd a).fst = ((Equiv.sigmaEquivProd α β).symm.sigmaCongrLeft' a).fst.fst
theorem Equiv.sigmaAssocProd_apply_snd_snd E0 #
∀ {α : Type u_8} {β : Type u_9} {γ : α → β → Type u_10} (a : (a : α × β) × γ a.1 a.2),
(Equiv.sigmaAssocProd a).snd.snd = ((Equiv.sigmaEquivProd α β).symm.sigmaCongrLeft' a).snd
theorem Equiv.sigmaAssocProd_apply_snd_fst E0 #
∀ {α : Type u_8} {β : Type u_9} {γ : α → β → Type u_10} (a : (a : α × β) × γ a.1 a.2),
(Equiv.sigmaAssocProd a).snd.fst = ((Equiv.sigmaEquivProd α β).symm.sigmaCongrLeft' a).fst.snd
theorem Equiv.sigmaAssocProd_symm_apply_snd E0 #
∀ {α : Type u_8} {β : Type u_9} {γ : α → β → Type u_10} (a : (a : α) × (b : β) × γ a b),
(Equiv.sigmaAssocProd.symm a).snd = ((Equiv.sigmaAssoc γ).symm a).snd
theorem Equiv.sigmaAssocProd_symm_apply_fst E0 #
∀ {α : Type u_8} {β : Type u_9} {γ : α → β → Type u_10} (a : (a : α) × (b : β) × γ a b),
(Equiv.sigmaAssocProd.symm a).fst = (((Equiv.sigmaAssoc γ).symm a).fst.fst, ((Equiv.sigmaAssoc γ).symm a).fst.snd)
def Equiv.sigmaSubtype E1 #
{α : Type u_8} → {β : α → Type u_9} → (a : α) → { s // s.fst = a } ≃ β a
A subtype of a sigma which pins down the base of the sigma is equivalent to the respective fiber.
theorem Equiv.sigmaSubtype_symm_apply_coe_snd E0 #
∀ {α : Type u_8} {β : α → Type u_9} (a : α) (b : β a), (↑((Equiv.sigmaSubtype a).symm b)).snd = b
theorem Equiv.sigmaSubtype_apply E0 #
∀ {α : Type u_8} {β : α → Type u_9} (a : α) (x : { s // s.fst = a }),
(Equiv.sigmaSubtype a) x =
match x with
| ⟨⟨fst, b⟩, h⟩ => h ▸ b
theorem Equiv.sigmaSubtype_symm_apply_coe_fst E0 #
∀ {α : Type u_8} {β : α → Type u_9} (a : α) (b : β a), (↑((Equiv.sigmaSubtype a).symm b)).fst = a
def Equiv.sigmaSigmaSubtype E1 #
{α : Type u_8} →
{β : α → Type u_9} →
{γ : (a : α) → β a → Type u_10} →
(p : (a : α) × β a → Prop) →
[uniq : Unique { ab // p ab }] → {a : α} → {b : β a} → p ⟨a, b⟩ → { s // p ⟨s.fst, s.snd.fst⟩ } ≃ γ a b
A subtype of a dependent triple which pins down both bases is equivalent to the respective fiber.
theorem Equiv.sigmaSigmaSubtype_apply E0 #
∀ {α : Type u_8} {β : α → Type u_9} {γ : (a : α) → β a → Type u_10} (p : (a : α) × β a → Prop)
[uniq : Unique { ab // p ab }] {a : α} {b : β a} (h : p ⟨a, b⟩) (a_1 : { s // p ⟨s.fst, s.snd.fst⟩ }),
(Equiv.sigmaSigmaSubtype p h) a_1 = cast ⋯ (↑a_1).snd.snd
theorem Equiv.sigmaSigmaSubtype_symm_apply E0 #
∀ {α : Type u_8} {β : α → Type u_9} {γ : (a : α) → β a → Type u_10} (p : (a : α) × β a → Prop)
[uniq : Unique { ab // p ab }] {a : α} {b : β a} (c : γ a b) (h : p ⟨a, b⟩),
(Equiv.sigmaSigmaSubtype p h).symm c = ⟨⟨a, ⟨b, c⟩⟩, h⟩
def Equiv.sigmaSigmaSubtypeEq E1 #
{α : Type u_8} →
{β : Type u_9} → {γ : α → β → Type u_10} → (a : α) → (b : β) → { s // s.fst = a ∧ s.snd.fst = b } ≃ γ a b
A specialization of sigmaSigmaSubtype to the case where the second base
does not depend on the first, and the property being checked for is simple
equality. Useful e.g. when γ is Hom inside a category.
theorem Equiv.sigmaSigmaSubtypeEq_apply E0 #
∀ {α : Type u_8} {β : Type u_9} {γ : α → β → Type u_10} {a : α} {b : β} (s : { s // s.fst = a ∧ s.snd.fst = b }),
(Equiv.sigmaSigmaSubtypeEq a b) s = cast ⋯ (↑s).snd.snd
theorem Equiv.sigmaSigmaSubtypeEq_symm_apply E0 #
∀ {α : Type u_8} {β : Type u_9} {γ : α → β → Type u_10} {a : α} {b : β} (c : γ a b),
(Equiv.sigmaSigmaSubtypeEq a b).symm c = ⟨⟨a, ⟨b, c⟩⟩, ⋯⟩
def Equiv.subtypeEquivCodomain E1 #
{X : Sort u_8} →
{Y : Sort u_9} → [DecidableEq X] → {x : X} → (f : { x' // x' ≠ x } → Y) → { g // g ∘ Subtype.val = f } ≃ Y
The type of all functions X → Y with prescribed values for all x' ≠ x
is equivalent to the codomain Y.
theorem Equiv.coe_subtypeEquivCodomain E0 #
∀ {X : Sort u_8} {Y : Sort u_9} [inst : DecidableEq X] {x : X} (f : { x' // x' ≠ x } → Y),
⇑(Equiv.subtypeEquivCodomain f) = fun g ↦ ↑g x
theorem Equiv.subtypeEquivCodomain_apply E0 #
∀ {X : Sort u_8} {Y : Sort u_9} [inst : DecidableEq X] {x : X} (f : { x' // x' ≠ x } → Y)
(g : { g // g ∘ Subtype.val = f }), (Equiv.subtypeEquivCodomain f) g = ↑g x
theorem Equiv.coe_subtypeEquivCodomain_symm E0 #
∀ {X : Sort u_8} {Y : Sort u_9} [inst : DecidableEq X] {x : X} (f : { x' // x' ≠ x } → Y),
⇑(Equiv.subtypeEquivCodomain f).symm = fun y ↦ ⟨fun x' ↦ if h : x' ≠ x then f ⟨x', h⟩ else y, ⋯⟩
theorem Equiv.subtypeEquivCodomain_symm_apply E0 #
∀ {X : Sort u_8} {Y : Sort u_9} [inst : DecidableEq X] {x : X} (f : { x' // x' ≠ x } → Y) (y : Y) (x' : X),
↑((Equiv.subtypeEquivCodomain f).symm y) x' = if h : x' ≠ x then f ⟨x', h⟩ else y
theorem Equiv.subtypeEquivCodomain_symm_apply_eq E0 #
∀ {X : Sort u_8} {Y : Sort u_9} [inst : DecidableEq X] {x : X} (f : { x' // x' ≠ x } → Y) (y : Y),
↑((Equiv.subtypeEquivCodomain f).symm y) x = y
theorem Equiv.subtypeEquivCodomain_symm_apply_ne E1 #
∀ {X : Sort u_8} {Y : Sort u_9} [inst : DecidableEq X] {x : X} (f : { x' // x' ≠ x } → Y) (y : Y) (x' : X) (h : x' ≠ x),
↑((Equiv.subtypeEquivCodomain f).symm y) x' = f ⟨x', h⟩
instance Equiv.instCanLiftForallCoeBijective E0 #
∀ {α : Sort u_1} {β : Sort u_4}, CanLift (α → β) (α ≃ β) DFunLike.coe Function.Bijective
def Equiv.Perm.extendDomain E1 #
{α' : Type u_8} → {β' : Type u_9} → Equiv.Perm α' → {p : β' → Prop} → [DecidablePred p] → α' ≃ Subtype p → Equiv.Perm β'
Extend the domain of e : Equiv.Perm α to one that is over β via f : α → Subtype p,
where p : β → Prop, permuting only the b : β that satisfy p b.
This can be used to extend the domain across a function f : α → β,
keeping everything outside of Set.range f fixed. For this use-case Equiv given by f can
be constructed by Equiv.of_leftInverse' or Equiv.of_leftInverse when there is a known
inverse, or Equiv.ofInjective in the general case.
theorem Equiv.Perm.extendDomain_apply_image E0 #
∀ {α' : Type u_8} {β' : Type u_9} (e : Equiv.Perm α') {p : β' → Prop} [inst : DecidablePred p] (f : α' ≃ Subtype p)
(a : α'), (e.extendDomain f) ↑(f a) = ↑(f (e a))
theorem Equiv.Perm.extendDomain_apply_subtype E1 #
∀ {α' : Type u_8} {β' : Type u_9} (e : Equiv.Perm α') {p : β' → Prop} [inst : DecidablePred p] (f : α' ≃ Subtype p)
{b : β'} (h : p b), (e.extendDomain f) b = ↑(f (e (f.symm ⟨b, h⟩)))
theorem Equiv.Perm.extendDomain_apply_not_subtype E1 #
∀ {α' : Type u_8} {β' : Type u_9} (e : Equiv.Perm α') {p : β' → Prop} [inst : DecidablePred p] (f : α' ≃ Subtype p)
{b : β'}, ¬p b → (e.extendDomain f) b = b
theorem Equiv.Perm.extendDomain_refl E0 #
∀ {α' : Type u_8} {β' : Type u_9} {p : β' → Prop} [inst : DecidablePred p] (f : α' ≃ Subtype p),
Equiv.Perm.extendDomain (Equiv.refl α') f = Equiv.refl β'
theorem Equiv.Perm.extendDomain_symm E0 #
∀ {α' : Type u_8} {β' : Type u_9} (e : Equiv.Perm α') {p : β' → Prop} [inst : DecidablePred p] (f : α' ≃ Subtype p),
Equiv.symm (e.extendDomain f) = Equiv.Perm.extendDomain (Equiv.symm e) f
theorem Equiv.Perm.extendDomain_trans E1 #
∀ {α' : Type u_8} {β' : Type u_9} {p : β' → Prop} [inst : DecidablePred p] (f : α' ≃ Subtype p) (e e' : Equiv.Perm α'),
Equiv.trans (e.extendDomain f) (e'.extendDomain f) = Equiv.Perm.extendDomain (Equiv.trans e e') f
def Equiv.subtypeQuotientEquivQuotientSubtype E1 #
{α : Sort u_1} →
(p₁ : α → Prop) →
{s₁ : Setoid α} →
{s₂ : Setoid (Subtype p₁)} →
(p₂ : Quotient s₁ → Prop) →
(∀ (a : α), p₁ a ↔ p₂ ⟦a⟧) → (∀ (x y : Subtype p₁), s₂ x y ↔ s₁ ↑x ↑y) → { x // p₂ x } ≃ Quotient s₂
Subtype of the quotient is equivalent to the quotient of the subtype. Let α be a setoid with
equivalence relation ~. Let p₂ be a predicate on the quotient type α/~, and p₁ be the lift
of this predicate to α: p₁ a ↔ p₂ ⟦a⟧. Let ~₂ be the restriction of ~ to {x // p₁ x}.
Then {x // p₂ x} is equivalent to the quotient of {x // p₁ x} by ~₂.
theorem Equiv.subtypeQuotientEquivQuotientSubtype_mk E0 #
∀ {α : Sort u_1} (p₁ : α → Prop) [s₁ : Setoid α] [s₂ : Setoid (Subtype p₁)] (p₂ : Quotient s₁ → Prop)
(hp₂ : ∀ (a : α), p₁ a ↔ p₂ ⟦a⟧) (h : ∀ (x y : Subtype p₁), s₂ x y ↔ ↑x ≈ ↑y) (x : α) (hx : p₂ ⟦x⟧),
(Equiv.subtypeQuotientEquivQuotientSubtype p₁ p₂ hp₂ h) ⟨⟦x⟧, hx⟩ = ⟦⟨x, ⋯⟩⟧
theorem Equiv.subtypeQuotientEquivQuotientSubtype_symm_mk E0 #
∀ {α : Sort u_1} (p₁ : α → Prop) [s₁ : Setoid α] [s₂ : Setoid (Subtype p₁)] (p₂ : Quotient s₁ → Prop)
(hp₂ : ∀ (a : α), p₁ a ↔ p₂ ⟦a⟧) (h : ∀ (x y : Subtype p₁), s₂ x y ↔ ↑x ≈ ↑y) (x : Subtype p₁),
(Equiv.subtypeQuotientEquivQuotientSubtype p₁ p₂ hp₂ h).symm ⟦x⟧ = ⟨⟦↑x⟧, ⋯⟩
def Equiv.swapCore E1 #
{α : Sort u_1} → [DecidableEq α] → α → α → α → α
A helper function for Equiv.swap.
theorem Equiv.swapCore_self E1 #
∀ {α : Sort u_1} [inst : DecidableEq α] (r a : α), Equiv.swapCore a a r = r
theorem Equiv.swapCore_swapCore E1 #
∀ {α : Sort u_1} [inst : DecidableEq α] (r a b : α), Equiv.swapCore a b (Equiv.swapCore a b r) = r
theorem Equiv.swapCore_comm E1 #
∀ {α : Sort u_1} [inst : DecidableEq α] (r a b : α), Equiv.swapCore a b r = Equiv.swapCore b a r
def Equiv.swap E1 #
{α : Sort u_1} → [DecidableEq α] → α → α → Equiv.Perm α
swap a b is the permutation that swaps a and b and
leaves other values as is.
theorem Equiv.swap_self E0 #
∀ {α : Sort u_1} [inst : DecidableEq α] (a : α), Equiv.swap a a = Equiv.refl α
theorem Equiv.swap_comm E1 #
∀ {α : Sort u_1} [inst : DecidableEq α] (a b : α), Equiv.swap a b = Equiv.swap b a
theorem Equiv.swap_apply_def E0 #
∀ {α : Sort u_1} [inst : DecidableEq α] (a b x : α), (Equiv.swap a b) x = if x = a then b else if x = b then a else x
theorem Equiv.swap_apply_left E0 #
∀ {α : Sort u_1} [inst : DecidableEq α] (a b : α), (Equiv.swap a b) a = b
theorem Equiv.swap_apply_right E0 #
∀ {α : Sort u_1} [inst : DecidableEq α] (a b : α), (Equiv.swap a b) b = a
theorem Equiv.swap_apply_of_ne_of_ne E1 #
∀ {α : Sort u_1} [inst : DecidableEq α] {a b x : α}, x ≠ a → x ≠ b → (Equiv.swap a b) x = x
theorem Equiv.swap_swap E0 #
∀ {α : Sort u_1} [inst : DecidableEq α] (a b : α), Equiv.trans (Equiv.swap a b) (Equiv.swap a b) = Equiv.refl α
theorem Equiv.symm_swap E0 #
∀ {α : Sort u_1} [inst : DecidableEq α] (a b : α), Equiv.symm (Equiv.swap a b) = Equiv.swap a b
theorem Equiv.swap_eq_refl_iff E0 #
∀ {α : Sort u_1} [inst : DecidableEq α] {x y : α}, Equiv.swap x y = Equiv.refl α ↔ x = y
theorem Equiv.swap_comp_apply E0 #
∀ {α : Sort u_1} [inst : DecidableEq α] {a b x : α} (π : Equiv.Perm α),
(Equiv.trans π (Equiv.swap a b)) x = if π x = a then b else if π x = b then a else π x
theorem Equiv.swap_eq_update E1 #
∀ {α : Sort u_1} [inst : DecidableEq α] (i j : α), ⇑(Equiv.swap i j) = Function.update (Function.update id j i) i j
theorem Equiv.comp_swap_eq_update E1 #
∀ {α : Sort u_1} {β : Sort u_4} [inst : DecidableEq α] (i j : α) (f : α → β),
f ∘ ⇑(Equiv.swap i j) = Function.update (Function.update f j (f i)) i (f j)
theorem Equiv.symm_trans_swap_trans E0 #
∀ {α : Sort u_1} {β : Sort u_4} [inst : DecidableEq α] [inst_1 : DecidableEq β] (a b : α) (e : α ≃ β),
(e.symm.trans (Equiv.swap a b)).trans e = Equiv.swap (e a) (e b)
theorem Equiv.trans_swap_trans_symm E0 #
∀ {α : Sort u_1} {β : Sort u_4} [inst : DecidableEq α] [inst_1 : DecidableEq β] (a b : β) (e : α ≃ β),
(e.trans (Equiv.swap a b)).trans e.symm = Equiv.swap (e.symm a) (e.symm b)
theorem Equiv.swap_apply_self E0 #
∀ {α : Sort u_1} [inst : DecidableEq α] (i j a : α), (Equiv.swap i j) ((Equiv.swap i j) a) = a
theorem Equiv.apply_swap_eq_self E1 #
∀ {α : Sort u_1} {β : Sort u_4} [inst : DecidableEq α] {v : α → β} {i j : α},
v i = v j → ∀ (k : α), v ((Equiv.swap i j) k) = v k
A function is invariant to a swap if it is equal at both elements
theorem Equiv.swap_apply_eq_iff E0 #
∀ {α : Sort u_1} [inst : DecidableEq α] {x y z w : α}, (Equiv.swap x y) z = w ↔ z = (Equiv.swap x y) w
theorem Equiv.swap_apply_ne_self_iff E0 #
∀ {α : Sort u_1} [inst : DecidableEq α] {a b x : α}, (Equiv.swap a b) x ≠ x ↔ a ≠ b ∧ (x = a ∨ x = b)
theorem Equiv.swap_injective_of_left E1 #
∀ {α : Sort u_1} [inst : DecidableEq α] (a : α), Function.Injective fun x ↦ Equiv.swap a x
theorem Equiv.swap_injective_of_right E1 #
∀ {α : Sort u_1} [inst : DecidableEq α] (a : α), Function.Injective fun x ↦ Equiv.swap x a
instance Equiv.instNontrivialPerm E0 #
∀ (α : Type u_8) [Nontrivial α], Nontrivial (Equiv.Perm α)
theorem Equiv.image_swap_of_mem_of_notMem E1 #
∀ {α : Type u_8} [inst : DecidableEq α] {s : Set α} {i j : α}, i ∈ s → j ∉ s → ⇑(Equiv.swap i j) '' s = insert j s \ {i}
theorem Equiv.Perm.sumCongr_swap_refl E0 #
∀ {α : Type u_8} {β : Type u_9} [inst : DecidableEq α] [inst_1 : DecidableEq β] (i j : α),
(Equiv.swap i j).sumCongr (Equiv.refl β) = Equiv.swap (Sum.inl i) (Sum.inl j)
theorem Equiv.Perm.sumCongr_refl_swap E0 #
∀ {α : Type u_8} {β : Type u_9} [inst : DecidableEq α] [inst_1 : DecidableEq β] (i j : β),
Equiv.Perm.sumCongr (Equiv.refl α) (Equiv.swap i j) = Equiv.swap (Sum.inr i) (Sum.inr j)
def Equiv.setValue E1 #
{α : Sort u_1} → {β : Sort u_4} → [DecidableEq α] → α ≃ β → α → β → α ≃ β
Augment an equivalence with a prescribed mapping f a = b
theorem Equiv.setValue_eq E0 #
∀ {α : Sort u_1} {β : Sort u_4} [inst : DecidableEq α] (f : α ≃ β) (a : α) (b : β), (f.setValue a b) a = b
def Function.Involutive.toPerm E1 #
{α : Sort u_1} → (f : α → α) → Function.Involutive f → Equiv.Perm α
Convert an involutive function f to a permutation with toFun = invFun = f.
theorem Function.Involutive.coe_toPerm E0 #
∀ {α : Sort u_1} {f : α → α} (h : Function.Involutive f), ⇑(Function.Involutive.toPerm f h) = f
theorem Function.Involutive.toPerm_symm E0 #
∀ {α : Sort u_1} {f : α → α} (h : Function.Involutive f),
Equiv.symm (Function.Involutive.toPerm f h) = Function.Involutive.toPerm f h
theorem Function.Involutive.toPerm_involutive E1 #
∀ {α : Sort u_1} {f : α → α} (h : Function.Involutive f), Function.Involutive ⇑(Function.Involutive.toPerm f h)
theorem Function.Involutive.symm_eq_self_of_involutive E1 #
∀ {α : Sort u_1} (f : Equiv.Perm α), Function.Involutive ⇑f → Equiv.symm f = f
theorem Function.Injective.map_swap E0 #
∀ {α : Sort u_1} {β : Sort u_4} [inst : DecidableEq α] [inst_1 : DecidableEq β] {f : α → β},
Function.Injective f → ∀ (x y z : α), f ((Equiv.swap x y) z) = (Equiv.swap (f x) (f y)) (f z)
def Equiv.piCongrLeft' E1 #
{α : Sort u_1} → {β : Sort u_4} → (P : α → Sort u_8) → (e : α ≃ β) → ((a : α) → P a) ≃ ((b : β) → P (e.symm b))
Transport dependent functions through an equivalence of the base space.
theorem Equiv.piCongrLeft'_symm_apply E0 #
∀ {α : Sort u_1} {β : Sort u_4} (P : α → Sort u_8) (e : α ≃ β) (f : (b : β) → P (e.symm b)) (x : α),
(Equiv.piCongrLeft' P e).symm f x = ⋯ ▸ f (e x)
Note: the "obvious" statement (piCongrLeft' P e).symm g a = g (e a) doesn't typecheck: the
LHS would have type P a while the RHS would have type P (e.symm (e a)). For that reason,
we have to explicitly substitute along e.symm (e a) = a in the statement of this lemma.
theorem Equiv.piCongrLeft'_apply E0 #
∀ {α : Sort u_1} {β : Sort u_4} (P : α → Sort u_8) (e : α ≃ β) (f : (a : α) → P a) (x : β),
(Equiv.piCongrLeft' P e) f x = f (e.symm x)
theorem Equiv.piCongrLeft'_symm E0 #
∀ {α : Sort u_1} {β : Sort u_4} (P : Sort u_8) (e : α ≃ β),
(Equiv.piCongrLeft' (fun x ↦ P) e).symm = Equiv.piCongrLeft' (fun a ↦ P) e.symm
This lemma is impractical to state in the dependent case.
theorem Equiv.piCongrLeft'_symm_apply_apply E0 #
∀ {α : Sort u_1} {β : Sort u_4} (P : α → Sort u_8) (e : α ≃ β) (g : (b : β) → P (e.symm b)) (b : β),
(Equiv.piCongrLeft' P e).symm g (e.symm b) = g b
Note: the "obvious" statement (piCongrLeft' P e).symm g a = g (e a) doesn't typecheck: the
LHS would have type P a while the RHS would have type P (e.symm (e a)). This lemma is a way
around it in the case where a is of the form e.symm b, so we can use g b instead of
g (e (e.symm b)).
theorem Equiv.piCongrLeft'_refl E0 #
∀ {α : Sort u_1} (P : α → Sort u_8), Equiv.piCongrLeft' P (Equiv.refl α) = Equiv.refl ((a : α) → P a)
def Equiv.piCongrLeft E3 #
{α : Sort u_1} → {β : Sort u_4} → (P : β → Sort w) → (e : α ≃ β) → ((a : α) → P (e a)) ≃ ((b : β) → P b)
Transporting dependent functions through an equivalence of the base, expressed as a "simplification".
theorem Equiv.piCongrLeft_apply E0 #
∀ {α : Sort u_1} {β : Sort u_4} (P : β → Sort w) (e : α ≃ β) (f : (a : α) → P (e a)) (b : β),
(Equiv.piCongrLeft P e) f b = ⋯ ▸ f (e.symm b)
Note: the "obvious" statement (piCongrLeft P e) f b = f (e.symm b) doesn't typecheck: the
LHS would have type P b while the RHS would have type P (e (e.symm b)). For that reason,
we have to explicitly substitute along e (e.symm b) = b in the statement of this lemma.
theorem Equiv.piCongrLeft_symm_apply E0 #
∀ {α : Sort u_1} {β : Sort u_4} (P : β → Sort w) (e : α ≃ β) (g : (b : β) → P b) (a : α),
(Equiv.piCongrLeft P e).symm g a = g (e a)
theorem Equiv.piCongrLeft_refl E0 #
∀ {α : Sort u_1} (P : α → Sort u_8), Equiv.piCongrLeft P (Equiv.refl α) = Equiv.refl ((a : α) → P a)
theorem Equiv.piCongrLeft_apply_apply E0 #
∀ {α : Sort u_1} {β : Sort u_4} (P : β → Sort w) (e : α ≃ β) (f : (a : α) → P (e a)) (a : α),
(Equiv.piCongrLeft P e) f (e a) = f a
Note: the "obvious" statement (piCongrLeft P e) f b = f (e.symm b) doesn't typecheck: the
LHS would have type P b while the RHS would have type P (e (e.symm b)). This lemma is a way
around it in the case where b is of the form e a, so we can use f a instead of
f (e.symm (e a)).
theorem Equiv.piCongrLeft_apply_eq_cast E1 #
∀ {α : Sort u_1} {β : Sort u_4} {P : β → Sort v} {e : α ≃ β} (f : (a : α) → P (e a)) (b : β),
(Equiv.piCongrLeft P e) f b = cast ⋯ (f (e.symm b))
theorem Equiv.piCongrLeft_sumInl E1 #
∀ {ι : Type u_9} {ι' : Type u_10} {ι'' : Sort u_11} (π : ι'' → Type u_8) (e : ι ⊕ ι' ≃ ι'')
(f : (i : ι) → π (e (Sum.inl i))) (g : (i : ι') → π (e (Sum.inr i))) (i : ι),
(Equiv.piCongrLeft π e) ((Equiv.sumPiEquivProdPi fun x ↦ π (e x)).symm (f, g)) (e (Sum.inl i)) = f i
theorem Equiv.piCongrLeft_sumInr E1 #
∀ {ι : Type u_9} {ι' : Type u_10} {ι'' : Sort u_11} (π : ι'' → Type u_8) (e : ι ⊕ ι' ≃ ι'')
(f : (i : ι) → π (e (Sum.inl i))) (g : (i : ι') → π (e (Sum.inr i))) (j : ι'),
(Equiv.piCongrLeft π e) ((Equiv.sumPiEquivProdPi fun x ↦ π (e x)).symm (f, g)) (e (Sum.inr j)) = g j
def Equiv.piCongr E1 #
{α : Sort u_1} →
{β : Sort u_4} →
{W : α → Sort w} → {Z : β → Sort z} → (h₁ : α ≃ β) → ((a : α) → W a ≃ Z (h₁ a)) → ((a : α) → W a) ≃ ((b : β) → Z b)
Transport dependent functions through an equivalence of the base spaces and a family of equivalences of the matching fibers.
theorem Equiv.coe_piCongr_symm E0 #
∀ {α : Sort u_1} {β : Sort u_4} {W : α → Sort w} {Z : β → Sort z} (h₁ : α ≃ β) (h₂ : (a : α) → W a ≃ Z (h₁ a)),
⇑(h₁.piCongr h₂).symm = fun f a ↦ (h₂ a).symm (f (h₁ a))
theorem Equiv.piCongr_symm_apply E0 #
∀ {α : Sort u_1} {β : Sort u_4} {W : α → Sort w} {Z : β → Sort z} (h₁ : α ≃ β) (h₂ : (a : α) → W a ≃ Z (h₁ a))
(f : (b : β) → Z b), (h₁.piCongr h₂).symm f = fun a ↦ (h₂ a).symm (f (h₁ a))
theorem Equiv.piCongr_apply_apply E0 #
∀ {α : Sort u_1} {β : Sort u_4} {W : α → Sort w} {Z : β → Sort z} (h₁ : α ≃ β) (h₂ : (a : α) → W a ≃ Z (h₁ a))
(f : (a : α) → W a) (a : α), (h₁.piCongr h₂) f (h₁ a) = (h₂ a) (f a)
def Equiv.piCongr' E1 #
{α : Sort u_1} →
{β : Sort u_4} →
{W : α → Sort w} →
{Z : β → Sort z} → (h₁ : α ≃ β) → ((b : β) → W (h₁.symm b) ≃ Z b) → ((a : α) → W a) ≃ ((b : β) → Z b)
Transport dependent functions through an equivalence of the base spaces and a family of equivalences of the matching fibres.
theorem Equiv.coe_piCongr' E0 #
∀ {α : Sort u_1} {β : Sort u_4} {W : α → Sort w} {Z : β → Sort z} (h₁ : α ≃ β) (h₂ : (b : β) → W (h₁.symm b) ≃ Z b),
⇑(h₁.piCongr' h₂) = fun f b ↦ (h₂ b) (f (h₁.symm b))
theorem Equiv.piCongr'_apply E0 #
∀ {α : Sort u_1} {β : Sort u_4} {W : α → Sort w} {Z : β → Sort z} (h₁ : α ≃ β) (h₂ : (b : β) → W (h₁.symm b) ≃ Z b)
(f : (a : α) → W a), (h₁.piCongr' h₂) f = fun b ↦ (h₂ b) (f (h₁.symm b))
theorem Equiv.piCongr'_symm_apply_symm_apply E0 #
∀ {α : Sort u_1} {β : Sort u_4} {W : α → Sort w} {Z : β → Sort z} (h₁ : α ≃ β) (h₂ : (b : β) → W (h₁.symm b) ≃ Z b)
(f : (b : β) → Z b) (b : β), (h₁.piCongr' h₂).symm f (h₁.symm b) = (h₂ b).symm (f b)
def Equiv.piCongrSigmaFiber E1 #
{α : Type u_8} →
{β : Type u_9} →
{f : α → β} →
{γ₁ : α → Sort u_10} →
{γ₂ : α → Sort u_11} →
((a : α) → γ₁ a ≃ γ₂ a) → ((σ : (y : β) × { x // f x = y }) → γ₁ ↑σ.snd) ≃ ((a : α) → γ₂ a)
A family of equivalences ∀ a, γ₁ a ≃ γ₂ a generates an equivalence between the product
over the fibers of a function f : α → β on index types.
theorem Equiv.piCongrSigmaFiber_apply E0 #
∀ {α : Type u_8} {β : Type u_9} {f : α → β} {γ₁ : α → Sort u_10} {γ₂ : α → Sort u_11} (e : (a : α) → γ₁ a ≃ γ₂ a)
(g : (σ : (y : β) × { x // f x = y }) → γ₁ ↑σ.snd) (a : α), (Equiv.piCongrSigmaFiber e) g a = (e a) (g ⟨f a, ⟨a, ⋯⟩⟩)
theorem Equiv.piCongrSigmaFiber_symm_apply E0 #
∀ {α : Type u_8} {β : Type u_9} {f : α → β} {γ₁ : α → Sort u_10} {γ₂ : α → Sort u_11} (e : (a : α) → γ₁ a ≃ γ₂ a)
(g : (a : α) → γ₂ a) (σ : (y : β) × { x // f x = y }),
(Equiv.piCongrSigmaFiber e).symm g σ = (e ↑σ.snd).symm (g ↑σ.snd)
def Equiv.piCongrFiberwise E1 #
{α : Type u_8} →
{β : Type u_9} →
{γ₁ : α → Type u_10} →
{γ₂ : β → Type u_11} →
{f : α → β} → ((b : β) → ((σ : { a // f a = b }) → γ₁ ↑σ) ≃ γ₂ b) → ((a : α) → γ₁ a) ≃ ((b : β) → γ₂ b)
Let f : α → β be a function on index types. A family of equivalences, indexed by b : β,
between the product over the fiber of b under f given as
∀ (σ : { a : α // f a = b }) → γ₁ σ.1) ≃ γ₂ b lifts to an equivalence over the products
∀ a, γ₁ a ≃ ∀ b, γ₂ b.
theorem Equiv.piCongrFiberwise_apply E0 #
∀ {α : Type u_8} {β : Type u_9} {γ₁ : α → Type u_10} {γ₂ : β → Type u_11} {f : α → β}
(e : (b : β) → ((σ : { a // f a = b }) → γ₁ ↑σ) ≃ γ₂ b) (g : (a : α) → γ₁ a) (b : β),
(Equiv.piCongrFiberwise e) g b = (e b) fun σ ↦ g ↑σ
theorem Equiv.piCongrFiberwise_symm_apply E0 #
∀ {α : Type u_8} {β : Type u_9} {γ₁ : α → Type u_10} {γ₂ : β → Type u_11} {f : α → β}
(e : (b : β) → ((σ : { a // f a = b }) → γ₁ ↑σ) ≃ γ₂ b) (g : (b : β) → γ₂ b) (a : α),
(Equiv.piCongrFiberwise e).symm g a = (e (f a)).symm (g (f a)) ⟨a, ⋯⟩
def Equiv.piCongrSet E1 #
{α : Type u_10} →
{W : α → Sort w} → {s t : Set α} → s = t → ((i : { i // i ∈ s }) → W ↑i) ≃ ((i : { i // i ∈ t }) → W ↑i)
Transport dependent functions through an equality of sets.
theorem Equiv.piCongrSet_apply E0 #
∀ {α : Type u_10} {W : α → Sort w} {s t : Set α} (h : s = t) (f : (i : { i // i ∈ s }) → W ↑i) (i : { i // i ∈ t }),
(Equiv.piCongrSet h) f i = f ⟨↑i, ⋯⟩
theorem Equiv.piCongrSet_symm_apply E0 #
∀ {α : Type u_10} {W : α → Sort w} {s t : Set α} (h : s = t) (f : (i : { i // i ∈ t }) → W ↑i) (i : { i // i ∈ s }),
(Equiv.piCongrSet h).symm f i = f ⟨↑i, ⋯⟩
theorem Equiv.semiconj_conj E1 #
∀ {α₁ : Type u_10} {β₁ : Type u_11} (e : α₁ ≃ β₁) (f : α₁ → α₁), Function.Semiconj (⇑e) f (e.conj f)
theorem Equiv.semiconj₂_conj E1 #
∀ {α₁ : Type u_10} {β₁ : Type u_11} (e : α₁ ≃ β₁) (f : α₁ → α₁ → α₁),
Function.Semiconj₂ (⇑e) f ((e.arrowCongr e.conj) f)
instance Equiv.instAssociativeCoeForallForallArrowCongr E0 #
∀ {α₁ : Type u_10} {β₁ : Type u_11} (e : α₁ ≃ β₁) (f : α₁ → α₁ → α₁) [Std.Associative f],
Std.Associative ((e.arrowCongr (e.arrowCongr e)) f)
instance Equiv.instIdempotentOpCoeForallForallArrowCongr E0 #
∀ {α₁ : Type u_10} {β₁ : Type u_11} (e : α₁ ≃ β₁) (f : α₁ → α₁ → α₁) [Std.IdempotentOp f],
Std.IdempotentOp ((e.arrowCongr (e.arrowCongr e)) f)
theorem Equiv.ulift_symm_down E0 #
∀ {α : Type v} (x : α), (Equiv.ulift.symm x).down = x
theorem Function.Injective.swap_apply E0 #
∀ {α : Sort u_1} {β : Sort u_4} [inst : DecidableEq α] [inst_1 : DecidableEq β] {f : α → β},
Function.Injective f → ∀ (x y z : α), (Equiv.swap (f x) (f y)) (f z) = f ((Equiv.swap x y) z)
theorem Function.Injective.swap_comp E1 #
∀ {α : Sort u_1} {β : Sort u_4} [inst : DecidableEq α] [inst_1 : DecidableEq β] {f : α → β},
Function.Injective f → ∀ (x y : α), ⇑(Equiv.swap (f x) (f y)) ∘ f = f ∘ ⇑(Equiv.swap x y)
def equivOfSubsingletonOfSubsingleton E1 #
{α : Sort u_1} → {β : Sort u_4} → [Subsingleton α] → [Subsingleton β] → (α → β) → (β → α) → α ≃ β
To give an equivalence between two subsingleton types, it is sufficient to give any two functions between them.
def Equiv.punitOfNonemptyOfSubsingleton E1 #
{α : Sort u_1} → [h : Nonempty α] → [Subsingleton α] → α ≃ PUnit.{u_8}
A nonempty subsingleton type is (noncomputably) equivalent to PUnit.
def uniqueUniqueEquiv E1 #
{α : Sort u_1} → Unique (Unique α) ≃ Unique α
Unique (Unique α) is equivalent to Unique α.
def uniqueEquivEquivUnique E1 #
(α : Sort u) → (β : Sort v) → [Unique β] → Unique α ≃ (α ≃ β)
If Unique β, then Unique α is equivalent to α ≃ β.
theorem Function.update_comp_equiv E1 #
∀ {α : Sort u_1} {β : Sort u_4} {α' : Sort u_8} [inst : DecidableEq α'] [inst_1 : DecidableEq α] (f : α → β)
(g : α' ≃ α) (a : α) (v : β), Function.update f a v ∘ ⇑g = Function.update (f ∘ ⇑g) (g.symm a) v
theorem Function.update_apply_equiv_apply E0 #
∀ {α : Sort u_1} {β : Sort u_4} {α' : Sort u_8} [inst : DecidableEq α'] [inst_1 : DecidableEq α] (f : α → β)
(g : α' ≃ α) (a : α) (v : β) (a' : α'), Function.update f a v (g a') = Function.update (f ∘ ⇑g) (g.symm a) v a'
theorem Function.piCongrLeft'_update E1 #
∀ {α : Sort u_1} {β : Sort u_4} [inst : DecidableEq α] [inst_1 : DecidableEq β] (P : α → Sort u_9) (e : α ≃ β)
(f : (a : α) → P a) (b : β) (x : P (e.symm b)),
(Equiv.piCongrLeft' P e) (Function.update f (e.symm b) x) = Function.update ((Equiv.piCongrLeft' P e) f) b x
theorem Function.piCongrLeft'_symm_update E1 #
∀ {α : Sort u_1} {β : Sort u_4} [inst : DecidableEq α] [inst_1 : DecidableEq β] (P : α → Sort u_9) (e : α ≃ β)
(f : (b : β) → P (e.symm b)) (b : β) (x : P (e.symm b)),
(Equiv.piCongrLeft' P e).symm (Function.update f b x) = Function.update ((Equiv.piCongrLeft' P e).symm f) (e.symm b) x
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Equiv.natSumPUnitEquivNat | 2026-11-18 |