Skip to content

Commit b76ce36

Browse files
committed
chore(LinearAlgebra/CliffordAlgebra/EvenEquiv): remove erws (leanprover-community#38684)
- rewrites the `toEven` and `toEven_ι` proofs through `even_toSubmodule`, replacing the `erw` steps with `simp` and `rw` Extracted from leanprover-community#38415 [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/)
1 parent 08340f4 commit b76ce36

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

Mathlib/LinearAlgebra/CliffordAlgebra/EvenEquiv.lean

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,13 @@ def toEven : CliffordAlgebra Q →ₐ[R] CliffordAlgebra.even (Q' Q) := by
113113
rw [Subtype.coe_mk, pow_two]
114114
exact Submodule.mul_mem_mul (LinearMap.mem_range_self _ _) (LinearMap.mem_range_self _ _)
115115
· ext1
116-
rw [Subalgebra.coe_mul] -- Porting note: was part of the `dsimp only` below
117-
erw [LinearMap.codRestrict_apply] -- Porting note: was part of the `dsimp only` below
118-
dsimp only [LinearMap.comp_apply, LinearMap.mulLeft_apply, Subalgebra.coe_algebraMap]
119-
rw [← mul_assoc, e0_mul_v_mul_e0, v_sq_scalar]
116+
simp only [Subalgebra.coe_mul, ← even_toSubmodule]
117+
rw [LinearMap.codRestrict_apply]
118+
simp [← mul_assoc, v_sq_scalar]
120119

121120
theorem toEven_ι (m : M) : (toEven Q (ι Q m) : CliffordAlgebra (Q' Q)) = e0 Q * v Q m := by
122-
rw [toEven, CliffordAlgebra.lift_ι_apply]
123-
-- Porting note (https://github.com/leanprover-community/mathlib4/issues/11224): was `rw`
124-
erw [LinearMap.codRestrict_apply]
125-
rw [LinearMap.coe_comp, Function.comp_apply, LinearMap.mulLeft_apply]
121+
simp only [toEven, CliffordAlgebra.lift_ι_apply, ← even_toSubmodule]
122+
rw [LinearMap.codRestrict_apply, LinearMap.coe_comp, Function.comp_apply, LinearMap.mulLeft_apply]
126123

127124
/-- The embedding from the even subalgebra with an extra dimension into the original algebra. -/
128125
def ofEven : CliffordAlgebra.even (Q' Q) →ₐ[R] CliffordAlgebra Q := by

0 commit comments

Comments
 (0)