Skip to content

Commit e315e52

Browse files
harahugrunweg
andcommitted
chore(LinearAlgebra): fix whitespace (leanprover-community#33169)
Found by extending the commandStart linter to proof bodies. Co-authored-by: Michael Rothgang <rothgang@math.uni-bonn.de>
1 parent 736607b commit e315e52

7 files changed

Lines changed: 8 additions & 7 deletions

File tree

Mathlib/LinearAlgebra/AffineSpace/Simplex/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def faceOpposite {n : ℕ} [NeZero n] (s : Simplex k P n) (i : Fin (n + 1)) : Si
129129
s.face (fs := {i}ᶜ) (by simp [card_compl, NeZero.one_le])
130130

131131
@[simp] lemma range_faceOpposite_points {n : ℕ} [NeZero n] (s : Simplex k P n) (i : Fin (n + 1)) :
132-
Set.range (s.faceOpposite i).points = s.points '' {i}ᶜ := by
132+
Set.range (s.faceOpposite i).points = s.points '' {i}ᶜ := by
133133
simp [faceOpposite]
134134

135135
lemma faceOpposite_point_eq_point_succAbove {n : ℕ} [NeZero n] (s : Simplex k P n)

Mathlib/LinearAlgebra/Eigenspace/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ lemma genEigenspace_inf_le_add
821821
suffices (((f₁ - μ₁ • 1) ^ i) * ((f₂ - μ₂ • 1) ^ j)) m = 0 by
822822
rw [LinearMap.smul_apply, this, smul_zero]
823823
rw [Finset.mem_antidiagonal] at hij
824-
obtain hi|hj : l₁ ≤ i ∨ l₂ ≤ j := by lia
824+
obtain hi | hj : l₁ ≤ i ∨ l₂ ≤ j := by lia
825825
· rw [(h.pow_pow i j).eq, Module.End.mul_apply, Module.End.pow_map_zero_of_le hi hl₁, map_zero]
826826
· rw [Module.End.mul_apply, Module.End.pow_map_zero_of_le hj hl₂, map_zero]
827827

Mathlib/LinearAlgebra/FreeAlgebra.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ end
4646

4747
theorem rank_eq [CommRing R] [Nontrivial R] :
4848
Module.rank R (FreeAlgebra R X) = Cardinal.lift.{u} (Cardinal.mk (List X)) := by
49-
rw [← (Basis.mk_eq_rank'.{_,_,_,u} (basisFreeMonoid R X)).trans (Cardinal.lift_id _),
49+
rw [← (Basis.mk_eq_rank'.{_, _, _, u} (basisFreeMonoid R X)).trans (Cardinal.lift_id _),
5050
Cardinal.lift_umax.{v, u}, FreeMonoid]
5151

5252
end FreeAlgebra

Mathlib/LinearAlgebra/FreeModule/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ instance self : Module.Free R R :=
158158
instance ulift [Free R M] : Free R (ULift M) := of_equiv ULift.moduleEquiv.symm
159159

160160
instance (priority := 100) of_subsingleton [Subsingleton N] : Module.Free R N :=
161-
of_basis.{u,z,z} (Basis.empty N : Basis PEmpty R N)
161+
of_basis.{u, z, z} (Basis.empty N : Basis PEmpty R N)
162162

163163
-- This was previously a global instance,
164164
-- but it doesn't appear to be used and has been implicated in slow typeclass resolutions.

Mathlib/LinearAlgebra/Matrix/Charpoly/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ lemma charmatrix_fromBlocks :
116116
charmatrix (fromBlocks M₁₁ M₁₂ M₂₁ M₂₂) =
117117
fromBlocks (charmatrix M₁₁) (- M₁₂.map C) (- M₂₁.map C) (charmatrix M₂₂) := by
118118
simp only [charmatrix]
119-
ext (i|i) (j|j) : 2 <;> simp [diagonal]
119+
ext (i | i) (j | j) : 2 <;> simp [diagonal]
120120

121121
-- TODO: importing block triangular here is somewhat expensive, if more lemmas about it are added
122122
-- to this file, it may be worth extracting things out to Charpoly/Block.lean

Mathlib/LinearAlgebra/Matrix/Determinant/Misc.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ theorem submatrix_succAbove_det_eq_negOnePow_submatrix_succAbove_det {n : ℕ}
4747
· replace hv := congr_fun hv b
4848
rw [Fin.sum_univ_succAbove _ i.succ, Pi.add_apply, Finset.sum_apply] at hv
4949
rwa [h, Fin.succAbove_castSucc_self, neg_eq_iff_add_eq_zero, add_comm]
50-
· obtain h|h := ne_iff_lt_or_gt.mp h
50+
· obtain h | h := ne_iff_lt_or_gt.mp h
5151
· rw [Fin.succAbove_castSucc_of_lt _ _ h,
5252
Fin.succAbove_of_succ_le _ _ (Fin.succ_lt_succ_iff.mpr h).le]
5353
· rw [Fin.succAbove_succ_of_lt _ _ h, Fin.succAbove_castSucc_of_le _ _ h.le]

Mathlib/LinearAlgebra/Matrix/FixedDetMatrices.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ private lemma prop_red_T_pow (hS : ∀ B, C B → C (S • B)) (hT : ∀ B, C B
229229
induction n with
230230
| zero => simp only [zpow_zero, one_smul]
231231
| succ n hn =>
232-
simpa only [add_comm (n:ℤ), zpow_add _ 1, ← smul_eq_mul, zpow_one, smul_assoc, prop_red_T hS hT]
232+
simpa only [add_comm (n : ℤ), zpow_add _ 1, ← smul_eq_mul, zpow_one, smul_assoc,
233+
prop_red_T hS hT]
233234
| pred m hm =>
234235
rwa [sub_eq_neg_add, zpow_add, zpow_neg_one, ← prop_red_T hS hT, mul_smul, smul_inv_smul]
235236

0 commit comments

Comments
 (0)