Mathlib.Algebra.Notation.Pi.Basic
46 declarations. Mathlib docs · Source
theorem Pi.mulSingle.congr_simp E1 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → One (M i)] {inst_1 : DecidableEq ι} [inst_2 : DecidableEq ι]
(i : ι) (x x_1 : M i), x = x_1 → ∀ (j : ι), Pi.mulSingle i x j = Pi.mulSingle i x_1 j
theorem Pi.single.congr_simp E1 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → Zero (M i)] {inst_1 : DecidableEq ι} [inst_2 : DecidableEq ι]
(i : ι) (x x_1 : M i), x = x_1 → ∀ (j : ι), Pi.single i x j = Pi.single i x_1 j
def Pi.mulSingle E1 #
{ι : Type u_1} → {M : ι → Type u_4} → [(i : ι) → One (M i)] → [DecidableEq ι] → (i : ι) → M i → (j : ι) → M j
The function supported at i, with value x there, and 1 elsewhere.
def Pi.single E1 #
{ι : Type u_1} → {M : ι → Type u_4} → [(i : ι) → Zero (M i)] → [DecidableEq ι] → (i : ι) → M i → (j : ι) → M j
The function supported at i, with value x there, and 0 elsewhere.
theorem Pi.mulSingle_eq_same E0 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → One (M i)] [inst_1 : DecidableEq ι] (i : ι) (x : M i),
Pi.mulSingle i x i = x
theorem Pi.single_eq_same E0 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → Zero (M i)] [inst_1 : DecidableEq ι] (i : ι) (x : M i),
Pi.single i x i = x
theorem Pi.single_eq_of_ne E0 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → Zero (M i)] [inst_1 : DecidableEq ι] {i i' : ι},
i' ≠ i → ∀ (x : M i), Pi.single i x i' = 0
theorem Pi.mulSingle_eq_of_ne E0 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → One (M i)] [inst_1 : DecidableEq ι] {i i' : ι},
i' ≠ i → ∀ (x : M i), Pi.mulSingle i x i' = 1
theorem Pi.mulSingle_eq_of_ne' E0 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → One (M i)] [inst_1 : DecidableEq ι] {i i' : ι},
i ≠ i' → ∀ (x : M i), Pi.mulSingle i x i' = 1
Abbreviation for mulSingle_eq_of_ne h.symm, for ease of use by simp.
theorem Pi.single_eq_of_ne' E0 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → Zero (M i)] [inst_1 : DecidableEq ι] {i i' : ι},
i ≠ i' → ∀ (x : M i), Pi.single i x i' = 0
Abbreviation for single_eq_of_ne h.symm, for ease of use by simp.
theorem Pi.single_zero E0 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → Zero (M i)] [inst_1 : DecidableEq ι] (i : ι), Pi.single i 0 = 0
theorem Pi.mulSingle_one E0 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → One (M i)] [inst_1 : DecidableEq ι] (i : ι), Pi.mulSingle i 1 = 1
theorem Pi.mulSingle_eq_one_iff E0 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → One (M i)] [inst_1 : DecidableEq ι] {i : ι} {x : M i},
Pi.mulSingle i x = 1 ↔ x = 1
theorem Pi.single_eq_zero_iff E0 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → Zero (M i)] [inst_1 : DecidableEq ι] {i : ι} {x : M i},
Pi.single i x = 0 ↔ x = 0
theorem Pi.mulSingle_eq_one_iff' E0 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → One (M i)] [inst_1 : DecidableEq ι] {i : ι} {x : M i} {j : ι},
Pi.mulSingle i x j = 1 ↔ j = i → x = 1
theorem Pi.single_eq_zero_iff' E0 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → Zero (M i)] [inst_1 : DecidableEq ι] {i : ι} {x : M i} {j : ι},
Pi.single i x j = 0 ↔ j = i → x = 0
theorem Pi.single_ne_zero_iff E0 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → Zero (M i)] [inst_1 : DecidableEq ι] {i : ι} {x : M i},
Pi.single i x ≠ 0 ↔ x ≠ 0
theorem Pi.mulSingle_ne_one_iff E0 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → One (M i)] [inst_1 : DecidableEq ι] {i : ι} {x : M i},
Pi.mulSingle i x ≠ 1 ↔ x ≠ 1
theorem Pi.apply_single E1 #
∀ {ι : Type u_1} {M : ι → Type u_4} {N : ι → Type u_5} [inst : (i : ι) → Zero (M i)] [inst_1 : (i : ι) → Zero (N i)]
[inst_2 : DecidableEq ι] (f' : (i : ι) → M i → N i),
(∀ (i : ι), f' i 0 = 0) → ∀ (i : ι) (x : M i) (j : ι), f' j (Pi.single i x j) = Pi.single i (f' i x) j
theorem Pi.apply_mulSingle E1 #
∀ {ι : Type u_1} {M : ι → Type u_4} {N : ι → Type u_5} [inst : (i : ι) → One (M i)] [inst_1 : (i : ι) → One (N i)]
[inst_2 : DecidableEq ι] (f' : (i : ι) → M i → N i),
(∀ (i : ι), f' i 1 = 1) → ∀ (i : ι) (x : M i) (j : ι), f' j (Pi.mulSingle i x j) = Pi.mulSingle i (f' i x) j
theorem Pi.apply_mulSingle₂ E1 #
∀ {ι : Type u_1} {M : ι → Type u_4} {N : ι → Type u_5} {O : ι → Type u_6} [inst : (i : ι) → One (M i)]
[inst_1 : (i : ι) → One (N i)] [inst_2 : (i : ι) → One (O i)] [inst_3 : DecidableEq ι]
(f' : (i : ι) → M i → N i → O i),
(∀ (i : ι), f' i 1 1 = 1) →
∀ (i : ι) (x : M i) (y : N i) (j : ι), f' j (Pi.mulSingle i x j) (Pi.mulSingle i y j) = Pi.mulSingle i (f' i x y) j
theorem Pi.apply_single₂ E1 #
∀ {ι : Type u_1} {M : ι → Type u_4} {N : ι → Type u_5} {O : ι → Type u_6} [inst : (i : ι) → Zero (M i)]
[inst_1 : (i : ι) → Zero (N i)] [inst_2 : (i : ι) → Zero (O i)] [inst_3 : DecidableEq ι]
(f' : (i : ι) → M i → N i → O i),
(∀ (i : ι), f' i 0 0 = 0) →
∀ (i : ι) (x : M i) (y : N i) (j : ι), f' j (Pi.single i x j) (Pi.single i y j) = Pi.single i (f' i x y) j
theorem Pi.mulSingle_op E1 #
∀ {ι : Type u_1} {M : ι → Type u_4} {N : ι → Type u_5} [inst : (i : ι) → One (M i)] [inst_1 : (i : ι) → One (N i)]
[inst_2 : DecidableEq ι] (op : (i : ι) → M i → N i),
(∀ (i : ι), op i 1 = 1) → ∀ (i : ι) (x : M i), Pi.mulSingle i (op i x) = fun j ↦ op j (Pi.mulSingle i x j)
theorem Pi.single_op E1 #
∀ {ι : Type u_1} {M : ι → Type u_4} {N : ι → Type u_5} [inst : (i : ι) → Zero (M i)] [inst_1 : (i : ι) → Zero (N i)]
[inst_2 : DecidableEq ι] (op : (i : ι) → M i → N i),
(∀ (i : ι), op i 0 = 0) → ∀ (i : ι) (x : M i), Pi.single i (op i x) = fun j ↦ op j (Pi.single i x j)
theorem Pi.mulSingle_op₂ E1 #
∀ {ι : Type u_1} {M : ι → Type u_4} {N : ι → Type u_5} {O : ι → Type u_6} [inst : (i : ι) → One (M i)]
[inst_1 : (i : ι) → One (N i)] [inst_2 : (i : ι) → One (O i)] [inst_3 : DecidableEq ι]
(op : (i : ι) → M i → N i → O i),
(∀ (i : ι), op i 1 1 = 1) →
∀ (i : ι) (x : M i) (y : N i), Pi.mulSingle i (op i x y) = fun j ↦ op j (Pi.mulSingle i x j) (Pi.mulSingle i y j)
theorem Pi.single_op₂ E1 #
∀ {ι : Type u_1} {M : ι → Type u_4} {N : ι → Type u_5} {O : ι → Type u_6} [inst : (i : ι) → Zero (M i)]
[inst_1 : (i : ι) → Zero (N i)] [inst_2 : (i : ι) → Zero (O i)] [inst_3 : DecidableEq ι]
(op : (i : ι) → M i → N i → O i),
(∀ (i : ι), op i 0 0 = 0) →
∀ (i : ι) (x : M i) (y : N i), Pi.single i (op i x y) = fun j ↦ op j (Pi.single i x j) (Pi.single i y j)
theorem Pi.single_injective E1 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → Zero (M i)] [inst_1 : DecidableEq ι] (i : ι),
Function.Injective (Pi.single i)
theorem Pi.mulSingle_injective E1 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → One (M i)] [inst_1 : DecidableEq ι] (i : ι),
Function.Injective (Pi.mulSingle i)
theorem Pi.single_inj E0 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → Zero (M i)] [inst_1 : DecidableEq ι] (i : ι) {x y : M i},
Pi.single i x = Pi.single i y ↔ x = y
theorem Pi.mulSingle_inj E0 #
∀ {ι : Type u_1} {M : ι → Type u_4} [inst : (i : ι) → One (M i)] [inst_1 : DecidableEq ι] (i : ι) {x y : M i},
Pi.mulSingle i x = Pi.mulSingle i y ↔ x = y
theorem Pi.mulSingle_congr E1 #
∀ {ι : Type u_1} [inst : DecidableEq ι] {M : Type u_7} [inst_1 : One M] {i₁ i₂ : ι},
i₁ = i₂ → ∀ {x₁ x₂ : M}, x₁ = x₂ → ∀ {j₁ j₂ : ι}, j₁ = j₂ → Pi.mulSingle i₁ x₁ j₁ = Pi.mulSingle i₂ x₂ j₂
A congruence lemma for Pi.mulSingle, specialized for the non-dependent case. Without this,
simp can't rewrite in the first and third argument (i and j) because of dependence.
See also https://github.com/leanprover/lean4/issues/12478.
theorem Pi.single_congr E1 #
∀ {ι : Type u_1} [inst : DecidableEq ι] {M : Type u_7} [inst_1 : Zero M] {i₁ i₂ : ι},
i₁ = i₂ → ∀ {x₁ x₂ : M}, x₁ = x₂ → ∀ {j₁ j₂ : ι}, j₁ = j₂ → Pi.single i₁ x₁ j₁ = Pi.single i₂ x₂ j₂
A congruence lemma for Pi.single, specialized for the non-dependent case. Without this,
simp can't rewrite in the first and third argument (i and j) because of dependence.
See also https://github.com/leanprover/lean4/issues/12478.
theorem Pi.mulSingle_apply E0 #
∀ {ι : Type u_1} [inst : DecidableEq ι] {M : Type u_7} [inst_1 : One M] (i : ι) (x : M) (i' : ι),
Pi.mulSingle i x i' = if i' = i then x else 1
On non-dependent functions, Pi.mulSingle can be expressed as an ite
theorem Pi.single_apply E0 #
∀ {ι : Type u_1} [inst : DecidableEq ι] {M : Type u_7} [inst_1 : Zero M] (i : ι) (x : M) (i' : ι),
Pi.single i x i' = if i' = i then x else 0
On non-dependent functions, Pi.single can be expressed as an ite
theorem Pi.mulSingle_comm E1 #
∀ {ι : Type u_1} [inst : DecidableEq ι] {M : Type u_7} [inst_1 : One M] (i : ι) (x : M) (j : ι),
Pi.mulSingle i x j = Pi.mulSingle j x i
On non-dependent functions, Pi.mulSingle is symmetric in the two indices.
theorem Pi.single_comm E1 #
∀ {ι : Type u_1} [inst : DecidableEq ι] {M : Type u_7} [inst_1 : Zero M] (i : ι) (x : M) (j : ι),
Pi.single i x j = Pi.single j x i
On non-dependent functions, Pi.single is symmetric in the two indices.
theorem Pi.curry_mulSingle E0 #
∀ {ι : Type u_1} {ι' : Type u_2} [inst : DecidableEq ι] {M : Type u_7} [inst_1 : One M] [inst_2 : DecidableEq ι']
(i : ι × ι') (b : M), Function.curry (Pi.mulSingle i b) = Pi.mulSingle i.1 (Pi.mulSingle i.2 b)
theorem Pi.curry_single E0 #
∀ {ι : Type u_1} {ι' : Type u_2} [inst : DecidableEq ι] {M : Type u_7} [inst_1 : Zero M] [inst_2 : DecidableEq ι']
(i : ι × ι') (b : M), Function.curry (Pi.single i b) = Pi.single i.1 (Pi.single i.2 b)
theorem Pi.uncurry_single_single E0 #
∀ {ι : Type u_1} {ι' : Type u_2} [inst : DecidableEq ι] {M : Type u_7} [inst_1 : Zero M] [inst_2 : DecidableEq ι']
(i : ι) (i' : ι') (b : M), Function.uncurry (Pi.single i (Pi.single i' b)) = Pi.single (i, i') b
theorem Pi.uncurry_mulSingle_mulSingle E0 #
∀ {ι : Type u_1} {ι' : Type u_2} [inst : DecidableEq ι] {M : Type u_7} [inst_1 : One M] [inst_2 : DecidableEq ι']
(i : ι) (i' : ι') (b : M), Function.uncurry (Pi.mulSingle i (Pi.mulSingle i' b)) = Pi.mulSingle (i, i') b
theorem Pi.single_eq_single_iff E0 #
∀ {ι : Type u_1} [inst : DecidableEq ι] {i : ι} {M : Type u_7} [inst_1 : Zero M] {j : ι} {m n : M},
Pi.single i m = Pi.single j n ↔ i = j ∧ m = n ∨ m = 0 ∧ n = 0
theorem Pi.mulSingle_eq_mulSingle_iff E0 #
∀ {ι : Type u_1} [inst : DecidableEq ι] {i : ι} {M : Type u_7} [inst_1 : One M] {j : ι} {m n : M},
Pi.mulSingle i m = Pi.mulSingle j n ↔ i = j ∧ m = n ∨ m = 1 ∧ n = 1
theorem Pi.single_left_injective E1 #
∀ {ι : Type u_1} [inst : DecidableEq ι] {M : Type u_7} [inst_1 : Zero M] {m : M},
m ≠ 0 → Function.Injective fun i ↦ Pi.single i m
theorem Pi.mulSingle_left_injective E1 #
∀ {ι : Type u_1} [inst : DecidableEq ι] {M : Type u_7} [inst_1 : One M] {m : M},
m ≠ 1 → Function.Injective fun i ↦ Pi.mulSingle i m
theorem Pi.single_left_inj E1 #
∀ {ι : Type u_1} [inst : DecidableEq ι] {i : ι} {M : Type u_7} [inst_1 : Zero M] {j : ι} {m : M},
m ≠ 0 → (Pi.single i m = Pi.single j m ↔ i = j)
theorem Pi.mulSingle_left_inj E1 #
∀ {ι : Type u_1} [inst : DecidableEq ι] {i : ι} {M : Type u_7} [inst_1 : One M] {j : ι} {m : M},
m ≠ 1 → (Pi.mulSingle i m = Pi.mulSingle j m ↔ i = j)