Skip to content

Commit aeabced

Browse files
committed
chore: annotate locations using manual alignment (leanprover-community#33976)
Continuation of leanprover-community#33789: this is required to get useful output from the whitespace linter.
1 parent c6ab4bb commit aeabced

File tree

40 files changed

+64
-0
lines changed

40 files changed

+64
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ instance : Category (TopModuleCat R) where
7575
id M := ⟨ContinuousLinearMap.id R M⟩
7676
comp φ ψ := ⟨ψ.hom' ∘L φ.hom'⟩
7777

78+
set_option linter.style.whitespace false in -- manual alignment is not recognised
7879
set_option backward.privateInPublic true in
7980
set_option backward.privateInPublic.warn false in
8081
instance : ConcreteCategory (TopModuleCat R) (· →L[R] ·) where

Mathlib/Algebra/GroupWithZero/WithZero.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ instance instMulZeroOneClass [MulOneClass α] : MulZeroOneClass (WithZero α) wh
9191
one_mul := Option.map₂_left_identity one_mul
9292
mul_one := Option.map₂_right_identity mul_one
9393

94+
set_option linter.style.whitespace false in -- manual alignment is not recognised
9495
/-- Coercion as a monoid hom. -/
9596
@[simps apply]
9697
def coeMonoidHom : α →* WithZero α where

Mathlib/Algebra/Polynomial/Derivation.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ variable {R A M : Type*} [CommSemiring R] [CommSemiring A] [Algebra R A] [AddCom
106106

107107
open Polynomial Module
108108

109+
set_option linter.style.whitespace false in -- manual alignment is not recognised
109110
/--
110111
For a derivation `d : A → M` and an element `a : A`, `d.compAEval a` is the
111112
derivation of `R[X]` which takes a polynomial `f` to `d(aeval a f)`.

Mathlib/Algebra/Polynomial/Taylor.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ section CommRing
178178

179179
variable {R : Type*} [CommRing R] (r : R) (f : R[X])
180180

181+
set_option linter.style.whitespace false in -- manual alignment is not recognised
181182
/-- `Polynomial.taylor` as an `AlgEquiv` for commutative rings. -/
182183
noncomputable def taylorEquiv (r : R) : R[X] ≃ₐ[R] R[X] where
183184
invFun := taylorAlgHom (-r)

Mathlib/Algebra/Ring/SumsOfSquares.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ theorem IsSumSq.add [AddMonoid R] [Mul R] {s₁ s₂ : R}
6666
namespace AddSubmonoid
6767
variable {T : Type*} [AddMonoid T] [Mul T] {s : T}
6868

69+
set_option linter.style.whitespace false in -- manual alignment is not recognised
6970
variable (T) in
7071
/--
7172
In an additive monoid with multiplication `R`, `AddSubmonoid.sumSq R` is the submonoid of sums of

Mathlib/Algebra/SkewMonoidAlgebra/Basic.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ theorem single_zero (a : G) : (single a 0 : SkewMonoidAlgebra k G) = 0 := by
259259
theorem single_eq_zero {a : G} {b : k} : single a b = 0 ↔ b = 0 := by
260260
simp [← toFinsupp_inj]
261261

262+
set_option linter.style.whitespace false in -- manual alignment is not recognised
262263
/-- Group isomorphism between `SkewMonoidAlgebra k G` and `G →₀ k`. -/
263264
@[simps apply symm_apply]
264265
def toFinsuppAddEquiv : SkewMonoidAlgebra k G ≃+ (G →₀ k) where
@@ -481,6 +482,7 @@ section mapDomain
481482

482483
variable {G' G'' : Type*} (f : G → G') {g : G' → G''} (v : SkewMonoidAlgebra k G)
483484

485+
set_option linter.style.whitespace false in -- manual alignment is not recognised
484486
/-- Given `f : G → G'` and `v : SkewMonoidAlgebra k G`, `mapDomain f v : SkewMonoidAlgebra k G'`
485487
is the finitely supported additive homomorphism whose value at `a : G'` is the sum of `v x` over
486488
all `x` such that `f x = a`.
@@ -1087,6 +1089,7 @@ variable (k G)
10871089

10881090
variable [Monoid G] [MulSemiringAction G k]
10891091

1092+
set_option linter.style.whitespace false in -- manual alignment is not recognised
10901093
/-- The embedding of a monoid into its skew monoid algebra. -/
10911094
def of : G →* SkewMonoidAlgebra k G where
10921095
toFun a := single a 1

Mathlib/Algebra/SkewMonoidAlgebra/Lift.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ section domCongr
148148

149149
variable {A : Type*}
150150

151+
set_option linter.style.whitespace false in -- manual alignment is not recognised
151152
/-- Given `AddCommMonoid A` and `e : G ≃ H`, `domCongr e` is the corresponding `Equiv` between
152153
`SkewMonoidAlgebra A G` and `SkewMonoidAlgebra A H`. -/
153154
@[simps apply]
@@ -219,6 +220,7 @@ variable [Semiring k] [Monoid G] [MulSemiringAction G k]
219220
variable {V : Type*} [AddCommMonoid V] [Module k V] [Module (SkewMonoidAlgebra k G) V]
220221
[IsScalarTower k (SkewMonoidAlgebra k G) V]
221222

223+
set_option linter.style.whitespace false in -- manual alignment is not recognised
222224
/-- A submodule over `k` which is stable under scalar multiplication by elements of `G` is a
223225
submodule over `SkewMonoidAlgebra k G` -/
224226
def submoduleOfSmulMem (W : Submodule k V) (h : ∀ (g : G) (v : V), v ∈ W → of k G g • v ∈ W) :

Mathlib/Analysis/Normed/Unbundled/AlgebraNorm.lean

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ instance : FunLike (AlgebraNorm R S) S ℝ where
6666
erw [h]
6767
rfl
6868

69+
set_option linter.style.whitespace false in -- manual alignment is not recognised
6970
instance algebraNormClass : AlgebraNormClass (AlgebraNorm R S) R S where
7071
map_zero f := f.map_zero'
7172
map_add_le_add f := f.add_le'
@@ -88,6 +89,7 @@ theorem extends_norm' (hf1 : f 1 = 1) (a : R) : f (a • (1 : S)) = ‖a‖ := b
8889
theorem extends_norm (hf1 : f 1 = 1) (a : R) : f (algebraMap R S a) = ‖a‖ := by
8990
rw [Algebra.algebraMap_eq_smul_one]; exact extends_norm' hf1 _
9091

92+
set_option linter.style.whitespace false in -- manual alignment is not recognised
9193
/-- The restriction of an algebra norm to a subalgebra. -/
9294
def restriction (A : Subalgebra R S) (f : AlgebraNorm R S) : AlgebraNorm R A where
9395
toFun x := f x.val
@@ -99,6 +101,7 @@ def restriction (A : Subalgebra R S) (f : AlgebraNorm R S) : AlgebraNorm R A whe
99101
rw [← ZeroMemClass.coe_eq_zero]; exact eq_zero_of_map_eq_zero f hx
100102
smul' r x := map_smul_eq_mul _ _ _
101103

104+
set_option linter.style.whitespace false in -- manual alignment is not recognised
102105
/-- The restriction of an algebra norm in a scalar tower. -/
103106
def isScalarTower_restriction {A : Type*} [CommRing A] [Algebra R A] [Algebra A S]
104107
[IsScalarTower R A S] (hinj : Function.Injective (algebraMap A S)) (f : AlgebraNorm R S) :
@@ -151,6 +154,7 @@ instance : FunLike (MulAlgebraNorm R S) S ℝ where
151154
simp only [AddGroupSeminorm.toFun_eq_coe, MulRingSeminorm.toFun_eq_coe, DFunLike.coe_fn_eq] at h
152155
obtain ⟨⟨_, _⟩, _⟩ := f; obtain ⟨⟨_, _⟩, _⟩ := f'; congr
153156

157+
set_option linter.style.whitespace false in -- manual alignment is not recognised
154158
instance mulAlgebraNormClass : MulAlgebraNormClass (MulAlgebraNorm R S) R S where
155159
map_zero f := f.map_zero'
156160
map_add_le_add f := f.add_le'
@@ -180,6 +184,7 @@ namespace MulRingNorm
180184

181185
variable {R : Type*} [NonAssocRing R]
182186

187+
set_option linter.style.whitespace false in -- manual alignment is not recognised
183188
/-- The ring norm underlying a multiplicative ring norm. -/
184189
def toRingNorm (f : MulRingNorm R) : RingNorm R where
185190
toFun := f

Mathlib/Analysis/Normed/Unbundled/InvariantExtension.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ variable {K : Type*} [NormedField K] {L : Type*} [Field L] [Algebra K L]
5050
namespace IsUltrametricDist
5151
section algNormOfAlgEquiv
5252

53+
set_option linter.style.whitespace false in -- manual alignment is not recognised
5354
/-- Given a normed field `K`, a finite algebraic extension `L/K` and `σ : L ≃ₐ[K] L`, the function
5455
`L → ℝ` sending `x : L` to `‖ σ x ‖`, where `‖ ⬝ ‖` is any power-multiplicative algebra norm on `L`
5556
extending the norm on `K`, is an algebra norm on `K`. -/

Mathlib/Analysis/Normed/Unbundled/RingSeminorm.lean

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ def normRingNorm (R : Type*) [NonUnitalNormedRing R] : RingNorm R :=
420420

421421
open Int
422422

423+
set_option linter.style.whitespace false in -- manual alignment is not recognised
423424
/-- The seminorm on a `SeminormedRing`, as a `RingSeminorm`. -/
424425
def SeminormedRing.toRingSeminorm (R : Type*) [SeminormedRing R] : RingSeminorm R where
425426
toFun := norm
@@ -428,6 +429,7 @@ def SeminormedRing.toRingSeminorm (R : Type*) [SeminormedRing R] : RingSeminorm
428429
mul_le' := norm_mul_le
429430
neg' := norm_neg
430431

432+
set_option linter.style.whitespace false in -- manual alignment is not recognised
431433
/-- The norm on a `NormedRing`, as a `RingNorm`. -/
432434
@[simps]
433435
def NormedRing.toRingNorm (R : Type*) [NormedRing R] : RingNorm R where
@@ -443,6 +445,7 @@ theorem NormedRing.toRingNorm_apply (R : Type*) [NormedRing R] (x : R) :
443445
(NormedRing.toRingNorm R) x = ‖x‖ :=
444446
rfl
445447

448+
set_option linter.style.whitespace false in -- manual alignment is not recognised
446449
/-- The norm on a `NormedField`, as a `MulRingNorm`. -/
447450
def NormedField.toMulRingNorm (R : Type*) [NormedField R] : MulRingNorm R where
448451
toFun := norm
@@ -453,6 +456,7 @@ def NormedField.toMulRingNorm (R : Type*) [NormedField R] : MulRingNorm R where
453456
neg' := norm_neg
454457
eq_zero_of_map_eq_zero' x hx := by rw [← norm_eq_zero]; exact hx
455458

459+
set_option linter.style.whitespace false in -- manual alignment is not recognised
456460
/-- The norm on a `NormedField`, as an `AbsoluteValue`. -/
457461
def NormedField.toAbsoluteValue (R : Type*) [NormedField R] : AbsoluteValue R ℝ where
458462
toFun := norm

0 commit comments

Comments
 (0)