The areas / V03. Sets, finite structures and big operators
Mathlib.Data.Fintype.Quotient
35 declarations. Mathlib docs · Source
theorem Quotient.hrecOn.congr_simp E1 #
∀ {α : Sort u} {s : Setoid α} {motive : Quotient s → Sort v} (q : Quotient s) (f f_1 : (a : α) → motive ⟦a⟧)
(e_f : f = f_1) (c : ∀ (a b : α), a ≈ b → f a ≍ f b), Quotient.hrecOn q f c = Quotient.hrecOn q f_1 ⋯
theorem Quotient.finHRecOn.congr_simp E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {inst_1 : DecidableEq ι} [inst_2 : DecidableEq ι] {α : ι → Sort u_2}
{S : (i : ι) → Setoid (α i)} {C : ((i : ι) → Quotient (S i)) → Sort u_4} (q : (i : ι) → Quotient (S i))
(f f_1 : (a : (i : ι) → α i) → C fun x ↦ ⟦a x⟧) (e_f : f = f_1)
(h : ∀ (a b : (i : ι) → α i), (∀ (i : ι), a i ≈ b i) → f a ≍ f b),
Quotient.finHRecOn q f h = Quotient.finHRecOn q f_1 ⋯
theorem List.Pi.tail.congr_simp E1 #
∀ {ι : Type u_1} {α : ι → Sort u_2} {i : ι} {l : List ι} (f f_1 : (j : ι) → j ∈ i :: l → α j),
f = f_1 → ∀ (j : ι) (a : j ∈ l), List.Pi.tail f j a = List.Pi.tail f_1 j a
theorem Quotient.map.congr_simp E1 #
∀ {α : Sort u_1} {β : Sort u_2} {sa : Setoid α} {sb : Setoid β} (f f_1 : α → β) (e_f : f = f_1)
(h : ∀ ⦃a b : α⦄, a ≈ b → f a ≈ f b) (a a_1 : Quotient sa), a = a_1 → Quotient.map f h a = Quotient.map f_1 ⋯ a_1
theorem Quotient.liftOn₂.congr_simp E1 #
∀ {α : Sort uA} {β : Sort uB} {φ : Sort uC} {s₁ : Setoid α} {s₂ : Setoid β} (q₁ q₁_1 : Quotient s₁),
q₁ = q₁_1 →
∀ (q₂ q₂_1 : Quotient s₂),
q₂ = q₂_1 →
∀ (f f_1 : α → β → φ) (e_f : f = f_1)
(c : ∀ (a₁ : α) (b₁ : β) (a₂ : α) (b₂ : β), a₁ ≈ a₂ → b₁ ≈ b₂ → f a₁ b₁ = f a₂ b₂),
q₁.liftOn₂ q₂ f c = q₁_1.liftOn₂ q₂_1 f_1 ⋯
theorem Quotient.liftOn.congr_simp E1 #
∀ {α : Sort u} {β : Sort v} {s : Setoid α} (q q_1 : Quotient s),
q = q_1 → ∀ (f f_1 : α → β) (e_f : f = f_1) (c : ∀ (a b : α), a ≈ b → f a = f b), q.liftOn f c = q_1.liftOn f_1 ⋯
theorem Quotient.finRecOn.congr_simp E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {inst_1 : DecidableEq ι} [inst_2 : DecidableEq ι] {α : ι → Sort u_2}
{S : (i : ι) → Setoid (α i)} {C : ((i : ι) → Quotient (S i)) → Sort u_4} (q : (i : ι) → Quotient (S i))
(f f_1 : (a : (i : ι) → α i) → C fun x ↦ ⟦a x⟧) (e_f : f = f_1)
(h : ∀ (a b : (i : ι) → α i) (h : ∀ (i : ι), a i ≈ b i), ⋯ ▸ f a = f b),
Quotient.finRecOn q f h = Quotient.finRecOn q f_1 ⋯
def Quotient.listChoice E1 #
{ι : Type u_1} →
[DecidableEq ι] →
{α : ι → Sort u_2} →
{S : (i : ι) → Setoid (α i)} → {l : List ι} → ((i : ι) → i ∈ l → Quotient (S i)) → Quotient piSetoid
Given a collection of setoids indexed by a type ι, a list l of indices, and a function that
for each i ∈ l gives a term of the corresponding quotient type, then there is a corresponding
term in the quotient of the product of the setoids indexed by l.
theorem Quotient.listChoice_mk E0 #
∀ {ι : Type u_1} [inst : DecidableEq ι] {α : ι → Sort u_2} {S : (i : ι) → Setoid (α i)} {l : List ι}
(a : (i : ι) → i ∈ l → α i), (Quotient.listChoice fun x1 x2 ↦ ⟦a x1 x2⟧) = ⟦a⟧
theorem Quotient.list_ind E1 #
∀ {ι : Type u_1} [DecidableEq ι] {α : ι → Sort u_2} {S : (i : ι) → Setoid (α i)} {l : List ι}
{C : ((i : ι) → i ∈ l → Quotient (S i)) → Prop},
(∀ (a : (i : ι) → i ∈ l → α i), C fun x1 x2 ↦ ⟦a x1 x2⟧) → ∀ (q : (i : ι) → i ∈ l → Quotient (S i)), C q
Choice-free induction principle for quotients indexed by a List.
theorem Quotient.ind_fintype_pi E1 #
∀ {ι : Type u_1} [Fintype ι] [DecidableEq ι] {α : ι → Sort u_2} {S : (i : ι) → Setoid (α i)}
{C : ((i : ι) → Quotient (S i)) → Prop},
(∀ (a : (i : ι) → α i), C fun x ↦ ⟦a x⟧) → ∀ (q : (i : ι) → Quotient (S i)), C q
Choice-free induction principle for quotients indexed by a finite type.
See Quotient.induction_on_pi for the general version assuming Classical.choice.
theorem Quotient.induction_on_fintype_pi E1 #
∀ {ι : Type u_1} [Fintype ι] [DecidableEq ι] {α : ι → Sort u_2} {S : (i : ι) → Setoid (α i)}
{C : ((i : ι) → Quotient (S i)) → Prop} (q : (i : ι) → Quotient (S i)), (∀ (a : (i : ι) → α i), C fun x ↦ ⟦a x⟧) → C q
Choice-free induction principle for quotients indexed by a finite type.
See Quotient.induction_on_pi for the general version assuming Classical.choice.
def Quotient.finChoice E1 #
{ι : Type u_1} →
[Fintype ι] →
[DecidableEq ι] → {α : ι → Sort u_2} → {S : (i : ι) → Setoid (α i)} → ((i : ι) → Quotient (S i)) → Quotient piSetoid
Given a collection of setoids indexed by a fintype ι and a function that for each i : ι
gives a term of the corresponding quotient type, then there is corresponding term in the quotient
of the product of the setoids.
See Quotient.choice for the noncomputable general version.
theorem Quotient.finChoice_eq E0 #
∀ {ι : Type u_1} [inst : Fintype ι] [inst_1 : DecidableEq ι] {α : ι → Sort u_2} {S : (i : ι) → Setoid (α i)}
(a : (i : ι) → α i), (Quotient.finChoice fun x ↦ ⟦a x⟧) = ⟦a⟧
theorem Quotient.eval_finChoice E1 #
∀ {ι : Type u_1} [inst : Fintype ι] [inst_1 : DecidableEq ι] {α : ι → Sort u_2} {S : (i : ι) → Setoid (α i)}
(f : (i : ι) → Quotient (S i)), (Quotient.finChoice f).eval = f
def Quotient.finLiftOn E1 #
{ι : Type u_1} →
[Fintype ι] →
[DecidableEq ι] →
{α : ι → Sort u_2} →
{S : (i : ι) → Setoid (α i)} →
{β : Sort u_3} →
((i : ι) → Quotient (S i)) →
(f : ((i : ι) → α i) → β) → (∀ (a b : (i : ι) → α i), (∀ (i : ι), a i ≈ b i) → f a = f b) → β
Lift a function on ∀ i, α i to a function on ∀ i, Quotient (S i).
theorem Quotient.finLiftOn_empty E0 #
∀ {ι : Type u_1} [inst : Fintype ι] [inst_1 : DecidableEq ι] {α : ι → Sort u_2} {S : (i : ι) → Setoid (α i)}
{β : Sort u_3} [e : IsEmpty ι] (q : (i : ι) → Quotient (S i)), Quotient.finLiftOn q = fun f x ↦ f fun a ↦ e.elim a
theorem Quotient.finLiftOn_mk E0 #
∀ {ι : Type u_1} [inst : Fintype ι] [inst_1 : DecidableEq ι] {α : ι → Sort u_2} {S : (i : ι) → Setoid (α i)}
{β : Sort u_3} (a : (i : ι) → α i), (Quotient.finLiftOn fun x ↦ ⟦a x⟧) = fun f x ↦ f a
def Quotient.finChoiceEquiv E1 #
{ι : Type u_1} →
[Fintype ι] →
[DecidableEq ι] → {α : ι → Sort u_2} → {S : (i : ι) → Setoid (α i)} → ((i : ι) → Quotient (S i)) ≃ Quotient piSetoid
Quotient.finChoice as an equivalence.
theorem Quotient.finChoiceEquiv_apply E0 #
∀ {ι : Type u_1} [inst : Fintype ι] [inst_1 : DecidableEq ι] {α : ι → Sort u_2} {S : (i : ι) → Setoid (α i)}
(q : (i : ι) → Quotient (S i)), Quotient.finChoiceEquiv q = Quotient.finChoice q
theorem Quotient.finChoiceEquiv_symm_apply E0 #
∀ {ι : Type u_1} [inst : Fintype ι] [inst_1 : DecidableEq ι] {α : ι → Sort u_2} {S : (i : ι) → Setoid (α i)}
(q : Quotient inferInstance) (i : ι), Quotient.finChoiceEquiv.symm q i = q.eval i
def Quotient.finHRecOn E1 #
{ι : Type u_1} →
[Fintype ι] →
[DecidableEq ι] →
{α : ι → Sort u_2} →
{S : (i : ι) → Setoid (α i)} →
{C : ((i : ι) → Quotient (S i)) → Sort u_4} →
(q : (i : ι) → Quotient (S i)) →
(f : (a : (i : ι) → α i) → C fun x ↦ ⟦a x⟧) →
(∀ (a b : (i : ι) → α i), (∀ (i : ι), a i ≈ b i) → f a ≍ f b) → C q
Recursion principle for quotients indexed by a finite type.
def Quotient.finRecOn E1 #
{ι : Type u_1} →
[Fintype ι] →
[DecidableEq ι] →
{α : ι → Sort u_2} →
{S : (i : ι) → Setoid (α i)} →
{C : ((i : ι) → Quotient (S i)) → Sort u_4} →
(q : (i : ι) → Quotient (S i)) →
(f : (a : (i : ι) → α i) → C fun x ↦ ⟦a x⟧) →
(∀ (a b : (i : ι) → α i) (h : ∀ (i : ι), a i ≈ b i), ⋯ ▸ f a = f b) → C q
Recursion principle for quotients indexed by a finite type.
theorem Quotient.finHRecOn_mk E0 #
∀ {ι : Type u_1} [inst : Fintype ι] [inst_1 : DecidableEq ι] {α : ι → Sort u_2} {S : (i : ι) → Setoid (α i)}
{C : ((i : ι) → Quotient (S i)) → Sort u_4} (a : (i : ι) → α i), (Quotient.finHRecOn fun x ↦ ⟦a x⟧) = fun f x ↦ f a
theorem Quotient.finRecOn_mk E0 #
∀ {ι : Type u_1} [inst : Fintype ι] [inst_1 : DecidableEq ι] {α : ι → Sort u_2} {S : (i : ι) → Setoid (α i)}
{C : ((i : ι) → Quotient (S i)) → Sort u_4} (a : (i : ι) → α i), (Quotient.finRecOn fun x ↦ ⟦a x⟧) = fun f x ↦ f a
def Trunc.finChoice E1 #
{ι : Type u_1} → [DecidableEq ι] → [Fintype ι] → {α : ι → Sort u_2} → ((i : ι) → Trunc (α i)) → Trunc ((i : ι) → α i)
Given a function that for each i : ι gives a term of the corresponding
truncation type, then there is corresponding term in the truncation of the product.
theorem Trunc.finChoice_eq E0 #
∀ {ι : Type u_1} [inst : DecidableEq ι] [inst_1 : Fintype ι] {α : ι → Sort u_2} (f : (i : ι) → α i),
(Trunc.finChoice fun i ↦ Trunc.mk (f i)) = Trunc.mk f
def Trunc.finLiftOn E1 #
{ι : Type u_1} →
[DecidableEq ι] →
[Fintype ι] →
{α : ι → Sort u_2} →
{β : Sort u_3} → ((i : ι) → Trunc (α i)) → (f : ((i : ι) → α i) → β) → (∀ (a b : (i : ι) → α i), f a = f b) → β
Lift a function on ∀ i, α i to a function on ∀ i, Trunc (α i).
theorem Trunc.finLiftOn_empty E0 #
∀ {ι : Type u_1} [inst : DecidableEq ι] [inst_1 : Fintype ι] {α : ι → Sort u_2} {β : Sort u_3} [e : IsEmpty ι]
(q : (i : ι) → Trunc (α i)), Trunc.finLiftOn q = fun f x ↦ f fun a ↦ e.elim a
theorem Trunc.finLiftOn_mk E0 #
∀ {ι : Type u_1} [inst : DecidableEq ι] [inst_1 : Fintype ι] {α : ι → Sort u_2} {β : Sort u_3} (a : (i : ι) → α i),
(Trunc.finLiftOn fun x ↦ ⟦a x⟧) = fun f x ↦ f a
def Trunc.finChoiceEquiv E1 #
{ι : Type u_1} → [DecidableEq ι] → [Fintype ι] → {α : ι → Sort u_2} → ((i : ι) → Trunc (α i)) ≃ Trunc ((i : ι) → α i)
Trunc.finChoice as an equivalence.
theorem Trunc.finChoiceEquiv_symm_apply E0 #
∀ {ι : Type u_1} [inst : DecidableEq ι] [inst_1 : Fintype ι] {α : ι → Sort u_2} (q : Trunc ((i : ι) → α i)) (i : ι),
Trunc.finChoiceEquiv.symm q i = Trunc.map (fun x ↦ x i) q
theorem Trunc.finChoiceEquiv_apply E0 #
∀ {ι : Type u_1} [inst : DecidableEq ι] [inst_1 : Fintype ι] {α : ι → Sort u_2} (q : (i : ι) → Trunc (α i)),
Trunc.finChoiceEquiv q = Trunc.finChoice q
def Trunc.finRecOn E1 #
{ι : Type u_1} →
[DecidableEq ι] →
[Fintype ι] →
{α : ι → Sort u_2} →
{C : ((i : ι) → Trunc (α i)) → Sort u_4} →
(q : (i : ι) → Trunc (α i)) →
(f : (a : (i : ι) → α i) → C fun x ↦ Trunc.mk (a x)) → (∀ (a b : (i : ι) → α i), ⋯ ▸ f a = f b) → C q
Recursion principle for Truncs indexed by a finite type.
theorem Trunc.finRecOn_mk E0 #
∀ {ι : Type u_1} [inst : DecidableEq ι] [inst_1 : Fintype ι] {α : ι → Sort u_2} {C : ((i : ι) → Trunc (α i)) → Sort u_4}
(a : (i : ι) → α i), (Trunc.finRecOn fun x ↦ ⟦a x⟧) = fun f x ↦ f a