carrier := {a | a * p = a}
zero_mem' := zero_mul p
add_mem' {a b} ha hb :=by
change a * p = a at ha
change b * p = b at hb
change (a + b) * p = a + b
rw [add_mul, ha, hb]
smul_mem' c a ha :=by
change (c * a) * p = c * a
rw [mul_assoc, ha]
defprojection (p : C) (hp : p * p = p) : C→ₗ[C] fixedRight q p where
body · 3
lines
toFun a := ⟨a * p, by change (a * p) * p = a * p; rw [mul_assoc, hp]⟩
map_add' a b :=Subtype.ext (add_mul a b p)
map_smul' c a :=Subtype.ext (mul_assoc c a p)
defrightBetween (p r z : C) (hz : z * r = z) :
fixedRight q p →ₗ[C] fixedRight q r where
body · 3
lines
toFun a := ⟨(a : C) * z, by change ((a : C) * z) * r = (a : C) * z; rw [mul_assoc, hz]⟩
map_add' a b :=Subtype.ext (add_mul (a : C) (b : C) z)
map_smul' c a :=Subtype.ext (mul_assoc c (a : C) z)
theoremE_expand (a : E q) : (a : C) =
(a : C).coeff e • basisVector q e + (a : C).coeff x • basisVector q x +
(a : C).coeff y • basisVector q y + (a : C).coeff z • basisVector q z +
(a : C).coeff t • basisVector q t + (a : C).coeff j • basisVector q j :=by
theoremmul_u_formula (a : E q) : (a : C) * basisVector q u =
(a : C).coeff e • basisVector q u +
((a : C).coeff x + (a : C).coeff y) • basisVector q v +
((1 + q) * (a : C).coeff t) • basisVector q n :=by
theoremmul_ell_formula (r : k) (a : E q) : (a : C) * ell q r =
(a : C).coeff e • ell q r +
(q * r * (a : C).coeff x + (a : C).coeff y) • basisVector q z +
((1 + q ^ 2 * r) * (a : C).coeff t) • basisVector q j :=by
theoremmul_u_eq_zero_iff (hq : 1 + q ≠0) (a : E q) :
(a : C) * basisVector q u = 0↔
(a : C).coeff e = 0∧ (a : C).coeff t = 0∧ (a : C).coeff y = (a : C).coeff x :=by
proof · 11
lines
rw [mul_u_formula]
constructor
· intro h
have he := congrArg (funb : C=> b.coeff u) h
have ht := congrArg (funb : C=> b.coeff n) h
have hy := congrArg (funb : C=> b.coeff v) h
simp only [coeff_add, coeff_smul, coeff_basisVector, coeff_zero] at he ht hy
simp only [reduceCtorEq, ↓reduceIte, mul_zero, mul_one, add_zero, zero_add] at he ht hy
exact ⟨he, (mul_eq_zero.mp ht).resolve_left hq, (CharTwo.add_eq_zero.mp hy).symm⟩
· rintro ⟨he, ht, hy⟩
simp [he, ht, hy, CharTwo.add_self_eq_zero]
theoremmul_ell_eq_zero_iff (r : k) (hr : 1 + q ^ 2 * r ≠0) (a : E q) :
(a : C) * ell q r = 0↔
(a : C).coeff e = 0∧ (a : C).coeff t = 0∧
(a : C).coeff y = q * r * (a : C).coeff x :=by
proof · 10
lines
rw [mul_ell_formula]
constructor
· intro h
have he := congrArg (funb : C=> b.coeff x) h
have ht := congrArg (funb : C=> b.coeff j) h
have hy := congrArg (funb : C=> b.coeff z) h
simp [ell] at he ht hy
exact ⟨he, ht.resolve_left hr, (CharTwo.add_eq_zero.mp hy).symm⟩
· rintro ⟨he, ht, hy⟩
simp [he, ht, hy, CharTwo.add_self_eq_zero]
theoremuKernel_expand (hq : 1 + q ≠0) (a : E q)
(ha : (a : C) * basisVector q u = 0) :
(a : C) = (a : C).coeff x • ell q 1 +
(a : C).coeff z • basisVector q z + (a : C).coeff j • basisVector q j :=by
proof · 3
lines
obtain ⟨he, ht, hy⟩ := (mul_u_eq_zero_iff q hq a).mp ha
ext i
cases i <;> simp [ell, he, ht, hy]
theoremellKernel_expand (r : k) (hr : 1 + q ^ 2 * r ≠0) (a : E q)
(ha : (a : C) * ell q r = 0) :
(a : C) = (a : C).coeff x • ell q (q * r) +
(a : C).coeff z • basisVector q z + (a : C).coeff j • basisVector q j :=by
proof · 4
lines
obtain ⟨he, ht, hy⟩ := (mul_ell_eq_zero_iff q r hr a).mp ha
ext i
cases i <;> simp [ell, he, ht, hy]
ring