Skip to content

Commit 36ff576

Browse files
committed
chore: fix whitespace (#33155)
Found by extending the commandStart linter to proof bodies.
1 parent d306471 commit 36ff576

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

Mathlib/FieldTheory/Extension.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ theorem union_isExtendible [alg : Algebra.IsAlgebraic F E]
158158
· exact (this _ _ <| (hc.total π₁.2 π₂.2).resolve_left h).symm
159159
refine .inl (le_iff.mpr ⟨?_, algHom_ext_of_eq_adjoin _ (eq _) ?_⟩)
160160
· rw [eq, eq]; exact adjoin.mono _ _ _ (Set.union_subset_union_left _ h.1)
161-
rintro x (hx|hx)
161+
rintro x (hx | hx)
162162
· change (θ π₂).emb (inclusion (ge π₂).1 <| inclusion h.1 ⟨x, hx⟩) =
163163
(θ π₁).emb (inclusion (ge π₁).1 ⟨x, hx⟩)
164164
rw [(ge π₁).2, (ge π₂).2, h.2]

Mathlib/FieldTheory/JacobsonNoether.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ theorem exists_separable_and_not_isCentral (H : k ≠ (⊤ : Subring D)) :
122122
change a * ha.choose - ha.choose * a ≠ 0
123123
simpa only [ne_eq, sub_eq_zero] using Ne.symm ha.choose_spec
124124
-- We find a maximum natural number `n` such that `(a * x - x * a) ^ n b ≠ 0`.
125-
obtain ⟨n, hn, hb⟩ : ∃ n, 0 < n ∧ (ad k D a)^[n] b ≠ 0 ∧ (ad k D a)^[n+1] b = 0 := by
125+
obtain ⟨n, hn, hb⟩ : ∃ n, 0 < n ∧ (ad k D a)^[n] b ≠ 0 ∧ (ad k D a)^[n + 1] b = 0 := by
126126
obtain ⟨m, -, hm2⟩ := exist_pow_eq_zero_of_le p ha insep
127-
have h_exist : ∃ n, 0 < n ∧ (ad k D a)^[n+1] b = 0 := ⟨p ^ m,
127+
have h_exist : ∃ n, 0 < n ∧ (ad k D a)^[n + 1] b = 0 := ⟨p ^ m,
128128
⟨expChar_pow_pos D p m, by rw [hm2 (p ^ m + 1) (Nat.le_add_right _ _), Pi.zero_apply]⟩⟩
129129
classical
130130
refine ⟨Nat.find h_exist, ⟨(Nat.find_spec h_exist).1, ?_, (Nat.find_spec h_exist).2⟩⟩

Mathlib/FieldTheory/PurelyInseparable/Basic.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ lemma IsPurelyInseparable.exists_pow_pow_mem_range_tensorProduct_of_expChar
664664
[IsPurelyInseparable k K] (q : ℕ) [ExpChar k q] (x : R ⊗[k] K) :
665665
∃ n, x ^ q ^ n ∈ (algebraMap R (R ⊗[k] K)).range := by
666666
nontriviality (R ⊗[k] K)
667-
obtain (hq|hq) := expChar_is_prime_or_one k q
667+
obtain (hq | hq) := expChar_is_prime_or_one k q
668668
induction x with
669669
| zero => exact ⟨0, 0, by simp⟩
670670
| add x y h h' =>
@@ -691,6 +691,6 @@ lemma IsPurelyInseparable.exists_pow_mem_range_tensorProduct [IsPurelyInseparabl
691691
let q := ringExpChar k
692692
obtain ⟨n, hr⟩ := exists_pow_pow_mem_range_tensorProduct_of_expChar q x
693693
refine ⟨q ^ n, pow_pos ?_ _, hr⟩
694-
obtain (hq|hq) := expChar_is_prime_or_one k q <;> simp [hq, Nat.Prime.pos]
694+
obtain (hq | hq) := expChar_is_prime_or_one k q <;> simp [hq, Nat.Prime.pos]
695695

696696
end

Mathlib/GroupTheory/ArchimedeanDensely.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ noncomputable def LinearOrderedCommGroup.closure_equiv_closure {G G' : Type*}
129129
have ypos : 1 < y' := by
130130
simp [hy', eq_comm, ← hxy, hx]
131131
have hxc : closure {x} = closure {x'} := by
132-
rcases max_cases x x⁻¹ with H|H <;>
132+
rcases max_cases x x⁻¹ with H | H <;>
133133
simp [hx', H.left]
134134
have hyc : closure {y} = closure {y'} := by
135-
rcases max_cases y y⁻¹ with H|H <;>
135+
rcases max_cases y y⁻¹ with H | H <;>
136136
simp [hy', H.left]
137137
refine ⟨⟨⟨
138138
fun a ↦ ⟨y' ^ ((mem_closure_singleton).mp
@@ -182,7 +182,7 @@ lemma Subgroup.isLeast_of_closure_iff_eq_mabs {a b : G} :
182182
rw [← zpow_right_inj this.right, zpow_mul', hm, zpow_one]
183183
rw [Int.mul_eq_one_iff_eq_one_or_neg_one] at key
184184
rw [eq_comm]
185-
rcases key with ⟨rfl, rfl⟩|⟨rfl, rfl⟩ <;>
185+
rcases key with ⟨rfl, rfl⟩ | ⟨rfl, rfl⟩ <;>
186186
simp [this.right.le, this.right, mabs]
187187
· wlog ha : 1 ≤ a generalizing a
188188
· convert @this (a⁻¹) ?_ (by simpa using le_of_not_ge ha) using 4
@@ -269,7 +269,7 @@ lemma LinearOrderedAddCommGroup.discrete_iff_not_denselyOrdered (G : Type*)
269269
[AddCommGroup G] [LinearOrder G] [IsOrderedAddMonoid G] [Archimedean G] :
270270
Nonempty (G ≃+o ℤ) ↔ ¬ DenselyOrdered G := by
271271
suffices ∀ (_ : G ≃+o ℤ), ¬ DenselyOrdered G by
272-
rcases LinearOrderedAddCommGroup.discrete_or_denselyOrdered G with ⟨⟨h⟩⟩|h
272+
rcases LinearOrderedAddCommGroup.discrete_or_denselyOrdered G with ⟨⟨h⟩⟩ | h
273273
· simpa [this h] using ⟨h⟩
274274
· simp only [h, not_true_eq_false, iff_false, not_nonempty_iff]
275275
exact ⟨fun H ↦ (this H) h⟩

Mathlib/GroupTheory/Coxeter/Basic.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,13 +453,13 @@ lemma listTake_alternatingWord (i j : B) (p k : ℕ) (h : k < 2 * p) :
453453
simp only [Nat.not_even_iff_odd.mpr (Even.add_one h_even), ↓reduceIte]
454454
rw [← List.take_concat_get (by simp; lia), alternatingWord_succ, ← hk]
455455
apply congr_arg
456-
rw [getElem_alternatingWord i j (2*p) k (by lia)]
456+
rw [getElem_alternatingWord i j (2 * p) k (by lia)]
457457
simp [(by apply Nat.even_add.mpr; simp [h_even] : Even (2 * p + k))]
458458
· simp only [h_even, ↓reduceIte] at hk
459459
simp only [Odd.add_one (by simpa using h_even), ↓reduceIte]
460460
rw [← List.take_concat_get (by simp; lia), alternatingWord_succ, hk]
461461
apply congr_arg
462-
rw [getElem_alternatingWord i j (2*p) k (by lia)]
462+
rw [getElem_alternatingWord i j (2 * p) k (by lia)]
463463
simp [(by apply Nat.odd_add.mpr; simp [h_even] : Odd (2 * p + k))]
464464

465465
lemma listTake_succ_alternatingWord (i j : B) (p : ℕ) (k : ℕ) (h : k + 1 < 2 * p) :

Mathlib/GroupTheory/Coxeter/Inversion.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ theorem getElem_leftInvSeq_alternatingWord
481481
simp only [getElem_succ_leftInvSeq_alternatingWord cs i j p k h, hk _ _ (by lia),
482482
MulAut.conj_apply, inv_simple, alternatingWord_succ' j i, even_two, Even.mul_right,
483483
↓reduceIte, wordProd_cons]
484-
rw [(by ring: 2 * (k + 1) = 2 * k + 1 + 1), alternatingWord_succ j i, wordProd_concat]
484+
rw [(by ring : 2 * (k + 1) = 2 * k + 1 + 1), alternatingWord_succ j i, wordProd_concat]
485485
simp [mul_assoc]
486486

487487
end CoxeterSystem

Mathlib/GroupTheory/Perm/Cycle/PossibleTypes.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ theorem Equiv.Perm.exists_with_cycleType_iff {m : Multiset ℕ} :
106106
apply List.map_congr_left
107107
intro x hx; simp only [Function.comp_apply]
108108
rw [List.support_formPerm_of_nodup x (hp_nodup x hx)]
109-
·-- length
109+
· -- length
110110
rw [List.toFinset_card_of_nodup (hp_nodup x hx)]
111111
· -- length >= 1
112112
grind

Mathlib/GroupTheory/QuotientGroup/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ noncomputable def quotientInfEquivProdNormalizerQuotient (H N : Subgroup G)
271271
letI := Subgroup.normal_subgroupOf_of_le_normalizer hLE
272272
letI := Subgroup.normal_subgroupOf_sup_of_le_normalizer hLE
273273
let
274-
φ :-- φ is the natural homomorphism H →* (HN)/N.
274+
φ : -- φ is the natural homomorphism H →* (HN)/N.
275275
H →*
276276
_ ⧸ N.subgroupOf (H ⊔ N) :=
277277
(mk' <| N.subgroupOf (H ⊔ N)).comp (inclusion le_sup_left)

Mathlib/GroupTheory/SpecificGroups/Alternating/MaximalSubgroups.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ theorem subgroup_eq_top_of_isPreprimitive (h4 : 4 < Nat.card α)
178178
rw [eq_top_iff, ← Subgroup.map_subtype_le_map_subtype,
179179
← MonoidHom.range_eq_map, Subgroup.range_subtype]
180180
-- By Jordan's theorem, it suffices to prove that G acts primitively
181-
apply alternatingGroup_le_of_isPreprimitive_of_isThreeCycle_mem _ hg3
181+
apply alternatingGroup_le_of_isPreprimitive_of_isThreeCycle_mem _ hg3
182182
· use ⟨g, hg3.mem_alternatingGroup⟩
183183
simpa only [SetLike.mem_coe, Subgroup.subtype_apply, and_true] using hG hg
184184
· let φ := (alternatingGroup α).subtype.subgroupMap G

0 commit comments

Comments
 (0)