Skip to content

Commit cc0ebd1

Browse files
committed
chore: fix more whitespace formatting (leanprover-community#33342)
Found by extending the commandStart linter to proof bodies. Extracted from leanprover-community#30658.
1 parent d68c4dc commit cc0ebd1

66 files changed

Lines changed: 122 additions & 121 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Mathlib/Algebra/Category/ModuleCat/Topology/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ instance {J : Type*} [Category* J] {F : J ⥤ TopModuleCat.{v} R}
324324
PreservesLimit F (forget₂ _ TopCat) :=
325325
preservesLimit_of_preserves_limit_cone (isLimit (limit.isLimit _))
326326
(TopCat.isLimitConeOfForget (F := F ⋙ forget₂ _ TopCat)
327-
((forget _).mapCone (getLimitCone (F ⋙ forget₂ _ (ModuleCat.{v} R))).1:)
327+
((forget _).mapCone (getLimitCone (F ⋙ forget₂ _ (ModuleCat.{v} R))).1 :)
328328
(isLimitOfPreserves (forget (ModuleCat R)) (limit.isLimit _)))
329329

330330
instance {J : Type*} [Category* J]

Mathlib/Algebra/Lie/Sl2.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ lemma mem_toLieSubalgebra_iff {x : L} {t : IsSl2Triple h e f} :
143143
namespace HasPrimitiveVectorWith
144144

145145
variable {m : M} {μ : R} {t : IsSl2Triple h e f}
146-
local notation "ψ" n => ((toEnd R L M f) ^ n) m
146+
local notation " n => ((toEnd R L M f) ^ n) m
147147

148148
-- Although this is true by definition, we include this lemma (and the assumption) to mirror the API
149149
-- for `lie_h_pow_toEnd_f` and `lie_e_pow_succ_toEnd_f`.

Mathlib/Algebra/Pointwise/Stabilizer.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ variable {G : Type*} [CommGroup G] (s : Set G)
242242
@[to_additive (attr := simp)]
243243
lemma mul_stabilizer_self : s * stabilizer G s = s := by rw [mul_comm, stabilizer_mul_self]
244244

245-
local notation " Q " => G ⧸ stabilizer G s
246-
local notation " q " => ((↑) : G → Q)
245+
local notation "Q" => G ⧸ stabilizer G s
246+
local notation "q" => ((↑) : G → Q)
247247

248248
@[to_additive]
249249
lemma stabilizer_image_coe_quotient : stabilizer Q (q '' s) = ⊥ := by

Mathlib/Algebra/Polynomial/CoeffMem.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ of `q`.
2424
namespace Polynomial
2525
variable {ι R S : Type*} [CommRing R] [Ring S] [Algebra R S]
2626

27-
local notation "deg("p")" => natDegree p
27+
local notation3 "deg("p")" => natDegree p
2828
local notation3 "coeffs("p")" => Set.range (coeff p)
2929
local notation3 "spanCoeffs("p")" => 1 ⊔ Submodule.span R coeffs(p)
3030

Mathlib/Algebra/Polynomial/Roots.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ lemma eq_of_natDegree_lt_card_of_eval_eq {R} [CommRing R] [IsDomain R]
663663
(p q : R[X]) {ι} [Fintype ι] {f : ι → R} (hf : Function.Injective f)
664664
(heval : ∀ i : ι, eval (f i) p = eval (f i) q)
665665
(hcard : max p.natDegree q.natDegree < Fintype.card ι) : p = q := by
666-
rw [←sub_eq_zero]
666+
rw [← sub_eq_zero]
667667
apply eq_zero_of_natDegree_lt_card_of_eval_eq_zero _ hf
668668
· simpa [sub_eq_zero]
669669
· grind [natDegree_sub_le]

Mathlib/Algebra/QuadraticDiscriminant.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ theorem quadratic_eq_zero_iff_discrim_eq_sq [NeZero (2 : R)] [NoZeroDivisors R]
7070
linear_combination -h
7171

7272
/-- A quadratic has no root if its discriminant has no square root. -/
73-
theorem quadratic_ne_zero_of_discrim_ne_sq (h : ∀ s : R, discrim a b c ≠ s^2) (x : R) :
73+
theorem quadratic_ne_zero_of_discrim_ne_sq (h : ∀ s : R, discrim a b c ≠ s ^ 2) (x : R) :
7474
a * (x * x) + b * x + c ≠ 0 :=
7575
mt discrim_eq_sq_of_quadratic_eq_zero (h _)
7676

Mathlib/Algebra/Vertex/VertexOperator.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ theorem coeff_eq_ncoeff (A : VertexOperator R V)
6969
@[deprecated (since := "2025-08-30")] alias ncoeff_smul := map_smul
7070

7171
theorem ncoeff_eq_zero_of_lt_order (A : VertexOperator R V) (n : ℤ) (x : V)
72-
(h : -n - 1 < HahnSeries.order ((HahnModule.of R).symm (A x))) : (A [[n]]) x = 0 := by
72+
(h : -n - 1 < HahnSeries.order ((HahnModule.of R).symm (A x))) : (A[[n]]) x = 0 := by
7373
simp only [ncoeff, HVertexOperator.coeff, LinearMap.coe_mk, AddHom.coe_mk]
7474
exact HahnSeries.coeff_eq_zero_of_lt_order h
7575

@@ -96,7 +96,7 @@ theorem of_coeff_apply_coeff (f : ℤ → Module.End R V)
9696
@[simp]
9797
theorem ncoeff_of_coeff (f : ℤ → Module.End R V)
9898
(hf : ∀ (x : V), ∃ (n : ℤ), ∀ (m : ℤ), m < n → (f m) x = 0) (n : ℤ) :
99-
(of_coeff f hf) [[n]] = f (-n - 1) := by
99+
(of_coeff f hf)[[n]] = f (-n - 1) := by
100100
ext v
101101
rw [ncoeff_apply, coeff_apply_apply, of_coeff_apply_coeff]
102102

Mathlib/AlgebraicGeometry/AffineSpace.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ universe v u
3939
variable (n : Type v) (S : Scheme.{max u v})
4040

4141
local notation3 "ℤ[" n "]" => CommRingCat.of (MvPolynomial n (ULift ℤ))
42-
local notation3 "ℤ[" n "].{" u "," v "}" => CommRingCat.of (MvPolynomial n (ULift.{max u v} ℤ))
42+
local notation3 "ℤ[" n "].{" u ", " v "}" => CommRingCat.of (MvPolynomial n (ULift.{max u v} ℤ))
4343

4444
/-- `𝔸(n; S)` is the affine `n`-space over `S`.
4545
Note that `n` is an arbitrary index type (e.g. `Fin m`). -/
@@ -49,7 +49,7 @@ def AffineSpace (n : Type v) (S : Scheme.{max u v}) : Scheme.{max u v} :=
4949
namespace AffineSpace
5050

5151
/-- `𝔸(n; S)` is the affine `n`-space over `S`. -/
52-
scoped[AlgebraicGeometry] notation "𝔸("n"; "S")" => AffineSpace n S
52+
scoped[AlgebraicGeometry] notation "𝔸(" n "; " S ")" => AffineSpace n S
5353

5454
variable {n} in
5555
lemma of_mvPolynomial_int_ext {R} {f g : ℤ[n] ⟶ R} (h : ∀ i, f (.X i) = g (.X i)) : f = g := by

Mathlib/Analysis/Analytic/Constructions.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ lemma FormalMultilinearSeries.le_radius_pi (h : ∀ i, r ≤ (p i).radius) :
449449
⟨∑ i, C i, Finset.sum_nonneg (fun i _ ↦ (C_pos i).le),
450450
fun i ↦ Finset.single_le_sum (fun j _ ↦ (C_pos j).le) (Finset.mem_univ _)⟩
451451
apply le_radius_of_bound _ D (fun n ↦ ?_)
452-
rcases le_or_gt ((r' : ℝ)^n) 0 with hr' | hr'
452+
rcases le_or_gt ((r' : ℝ) ^ n) 0 with hr' | hr'
453453
· exact le_trans (mul_nonpos_of_nonneg_of_nonpos (by positivity) hr') D_nonneg
454454
· simp only [pi]
455455
rw [← le_div_iff₀ hr', ContinuousMultilinearMap.opNorm_pi,

Mathlib/Analysis/Calculus/LogDeriv.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ lemma logDeriv_fun_zpow {f : 𝕜 → 𝕜'} {x : 𝕜} (hdf : DifferentiableAt
8787
rcases eq_or_ne n 0 with rfl | hn; · simp
8888
rcases eq_or_ne (f x) 0 with hf | hf
8989
· simp [logDeriv_apply, zero_zpow, *]
90-
· rw [logDeriv_apply, ← comp_def (·^n), deriv_comp _ (differentiableAt_zpow.2 <| .inl hf) hdf,
90+
· rw [logDeriv_apply, ← comp_def (· ^ n), deriv_comp _ (differentiableAt_zpow.2 <| .inl hf) hdf,
9191
deriv_zpow, logDeriv_apply]
9292
simp [field, zpow_sub_one₀ hf]
9393

0 commit comments

Comments
 (0)