Skip to content

Commit c98df61

Browse files
committed
chore(Algebra): fix whitespace (leanprover-community#32906)
1 parent ec2c1d7 commit c98df61

94 files changed

Lines changed: 132 additions & 141 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/AddConstMap/Basic.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ structure AddConstMap (G H : Type*) [Add G] [Add H] (a : G) (b : H) where
4646
map_add_const' (x : G) : toFun (x + a) = toFun x + b
4747

4848
@[inherit_doc]
49-
scoped [AddConstMap] notation:25 G " →+c[" a ", " b "] " H => AddConstMap G H a b
49+
scoped[AddConstMap] notation:25 G " →+c[" a ", " b "] " H => AddConstMap G H a b
5050

5151
/-- Typeclass for maps satisfying `f (x + a) = f x + b`.
5252
@@ -67,7 +67,7 @@ namespace AddConstMapClass
6767
In this section we prove properties like `f (x + n • a) = f x + n • b`.
6868
-/
6969

70-
scoped [AddConstMapClass] attribute [simp] map_add_const
70+
scoped[AddConstMapClass] attribute [simp] map_add_const
7171

7272
variable {F G H : Type*} [FunLike F G H] {a : G} {b : H}
7373

Mathlib/Algebra/AffineMonoid/Basic.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ monoids.
1717
public section
1818

1919
/-- An affine monoid is a finitely generated cancellative torsion-free commutative monoid. -/
20-
class abbrev IsAffineAddMonoid (M : Type*) [AddCommMonoid M] : Prop :=
20+
class abbrev IsAffineAddMonoid(M : Type*)[AddCommMonoid M] : Prop :=
2121
IsCancelAdd M, AddMonoid.FG M, IsAddTorsionFree M
2222

2323
/-- An affine monoid is a finitely generated cancellative torsion-free commutative monoid. -/
2424
@[to_additive]
25-
class abbrev IsAffineMonoid (M : Type*) [CommMonoid M] : Prop :=
25+
class abbrev IsAffineMonoid(M : Type*)[CommMonoid M] : Prop :=
2626
IsCancelMul M, Monoid.FG M, IsMulTorsionFree M

Mathlib/Algebra/Algebra/Operations.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ protected theorem smul_assoc {B} [Semiring B] [Module R B] [Module A B] [Module
185185
fun m₁ m₂ ↦ (smul_add r m₁ m₂) ▸ add_mem)
186186

187187
theorem smul_iSup {ι : Sort*} {I : Submodule R A} {t : ι → Submodule R M} :
188-
I • (⨆ i, t i)= ⨆ i, I • t i :=
188+
I • (⨆ i, t i) = ⨆ i, I • t i :=
189189
toAddSubmonoid_injective <| by
190190
simp only [smul_toAddSubmonoid, iSup_toAddSubmonoid, AddSubmonoid.smul_iSup]
191191

Mathlib/Algebra/Algebra/Spectrum/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ theorem unit_smul_eq_smul (a : A) (r : Rˣ) : σ (r • a) = r • σ a := by
231231
constructor
232232
· exact fun h => ⟨r⁻¹ • x, ⟨h, show r • r⁻¹ • x = x by simp⟩⟩
233233
· rintro ⟨w, _, (x'_eq : r • w = x)⟩
234-
simpa [← x'_eq ]
234+
simpa [← x'_eq]
235235

236236
-- `r ∈ σ(a*b) ↔ r ∈ σ(b*a)` for any `r : Rˣ`
237237
theorem unit_mem_mul_comm {a b : A} {r : Rˣ} : ↑r ∈ σ (a * b) ↔ ↑r ∈ σ (b * a) := by

Mathlib/Algebra/Algebra/Spectrum/Quasispectrum.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ lemma NonUnitalAlgHom.quasispectrum_apply_subset' {F R : Type*} (S : Type*) {A B
280280
forall_exists_index]
281281
refine fun hx this ↦ ⟨hx, ?_⟩
282282
rw [Units.smul_def, ← smul_one_smul S] at this ⊢
283-
simpa [- smul_assoc] using this.map φ
283+
simpa [-smul_assoc] using this.map φ
284284

285285
/-- If `φ` is non-unital algebra homomorphism over a scalar ring `R`, then
286286
`quasispectrum R (φ a) ⊆ quasispectrum R a`. -/

Mathlib/Algebra/Algebra/Subalgebra/Pointwise.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ section Pointwise
2525
variable {R : Type*} {A : Type*} [CommSemiring R] [Semiring A] [Algebra R A]
2626

2727
theorem mul_toSubmodule_le (S T : Subalgebra R A) :
28-
(Subalgebra.toSubmodule S)* (Subalgebra.toSubmodule T) ≤ Subalgebra.toSubmodule (S ⊔ T) := by
28+
(Subalgebra.toSubmodule S) * (Subalgebra.toSubmodule T) ≤ Subalgebra.toSubmodule (S ⊔ T) := by
2929
rw [Submodule.mul_le]
3030
intro y hy z hz
3131
change y * z ∈ S ⊔ T

Mathlib/Algebra/Algebra/Tower.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,4 +404,4 @@ theorem Algebra.algebraMapSubmonoid_map_map {R A B : Type*} [CommSemiring R] [Co
404404
algebraMapSubmonoid B (algebraMapSubmonoid A M) = algebraMapSubmonoid B M :=
405405
algebraMapSubmonoid_map_eq _ (IsScalarTower.toAlgHom R A B)
406406

407-
end Algebra.algebraMapSubmonoid
407+
end Algebra.algebraMapSubmonoid

Mathlib/Algebra/Algebra/ZMod.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ abbrev algebra (p : ℕ) [CharP R p] : Algebra (ZMod p) R :=
5050
/-- Any ring with a `ZMod p`-module structure can be upgraded to a `ZMod p`-algebra. Not an
5151
instance because this is usually not the default way, and this will cause typeclass search loop. -/
5252
def algebraOfModule (n : ℕ) (R : Type*) [Ring R] [Module (ZMod n) R] : Algebra (ZMod n) R :=
53-
Algebra.ofModule' (proof · ·|>.1) (proof · ·|>.2) where
53+
Algebra.ofModule' (proof · · |>.1) (proof · · |>.2) where
5454
proof (r : ZMod n) (x : R) : r • 1 * x = r • x ∧ x * r • 1 = r • x := by
5555
obtain _ | n := n
5656
· obtain rfl : (inferInstanceAs (Module ℤ R)) = ‹_› := Subsingleton.elim _ _

Mathlib/Algebra/BigOperators/Group/Finset/Defs.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ open Batteries.ExtendedBinder Lean Meta
106106
/-- A `bigOpBinder` is like an `extBinder` and has the form `x`, `x : ty`, or `x pred`
107107
where `pred` is a `binderPred` like `< 2`.
108108
Unlike `extBinder`, `x` is a term. -/
109-
syntax bigOpBinder := term:max ((" : " term) <|> binderPred)?
109+
syntax bigOpBinder := term:max((" : "term) <|> binderPred)?
110110
/-- A BigOperator binder in parentheses -/
111111
syntax bigOpBinderParenthesized := " (" bigOpBinder ")"
112112
/-- A list of parenthesized binders -/

Mathlib/Algebra/BigOperators/Group/List/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ theorem prod_hom₂ (l : List ι) (f : M → N → P) (hf : ∀ a b c d, f (a *
6464
(hf' : f 1 1 = 1) (f₁ : ι → M) (f₂ : ι → N) :
6565
(l.map fun i => f (f₁ i) (f₂ i)).prod = f (l.map f₁).prod (l.map f₂).prod := by
6666
simp only [prod_eq_foldr, foldr_map]
67-
rw [← foldr_hom₂ l f _ _ ((fun x y => f (f₁ x) (f₂ x) * y) ) _ _ (by simp [hf]), hf']
67+
rw [← foldr_hom₂ l f _ _ ((fun x y => f (f₁ x) (f₂ x) * y)) _ _ (by simp [hf]), hf']
6868

6969
@[to_additive (attr := simp)]
7070
theorem prod_map_mul {M : Type*} [CommMonoid M] {l : List ι} {f g : ι → M} :

0 commit comments

Comments
 (0)