Skip to content

Commit eb13e32

Browse files
committed
style: fix whitespace (#37993)
Found by extending the whitespace linter to proof bodies in #30658.
1 parent f2e7fa4 commit eb13e32

File tree

153 files changed

+261
-260
lines changed

Some content is hidden

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

153 files changed

+261
-260
lines changed

Mathlib/Algebra/Algebra/Operations.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ theorem restrictScalars_image_smul_eq {S M : Type*}
904904
(algebraMap S R '' s • N).restrictScalars S = s • N.restrictScalars S := by
905905
refine le_antisymm (fun x x_in ↦ ?_) (set_smul_le _ _ _ fun r x r_in x_in ↦ ?_)
906906
· rw [restrictScalars_mem] at x_in
907-
refine set_smul_inductionOn x x_in ?_ ?_ (fun _ _ _ _ h h' ↦ add_mem h h') (zero_mem _)
907+
refine set_smul_inductionOn x x_in ?_ ?_ (fun _ _ _ _ h h' ↦ add_mem h h') (zero_mem _)
908908
· rintro _ x ⟨r, r_in, rfl⟩ x_in
909909
rw [algebraMap_smul]
910910
exact mem_set_smul_of_mem_mem r_in x_in

Mathlib/Algebra/Category/ModuleCat/Presheaf/ColimitFunctor.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ noncomputable def homEquiv {N : ModuleCat.{w} cR.pt} :
252252
rw [hφ]
253253
erw [toPresheaf_map_app_apply]
254254
rw [map_smul]
255-
rfl}
255+
rfl }
256256
left_inv φ := (forget₂ _ AddCommGrpCat).map_injective (by
257257
ext : 1
258258
exact (homEquiv' hcR hcM).left_inv ((forget₂ _ AddCommGrpCat).map φ).hom)

Mathlib/Algebra/Group/Indicator.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ section One
203203
lemma mulSupport_subset_subsingleton_of_disjoint_on_mulSupport [One β] {s : γ → Set α} (f : α → β)
204204
(hs : Pairwise (Disjoint on (fun j ↦ s j ∩ f.mulSupport))) (i : α) (j : γ) (hj : i ∈ s j) :
205205
(fun d ↦ (s d).mulIndicator f i).mulSupport ⊆ {j} := by
206-
suffices ∀ j', j' ≠ j → {i} ⊆ s j → {i} ⊆ s j' → {i} ⊆ mulSupport f → False by by_contra; aesop
206+
suffices ∀ j', j' ≠ j → {i} ⊆ s j → {i} ⊆ s j' → {i} ⊆ mulSupport f → False by by_contra; aesop
207207
intro j' h hj hj' hi
208208
simp only [Pairwise, Disjoint, Set.le_eq_subset, Set.subset_inter_iff] at hs
209209
simpa using hs h ⟨hj', hi⟩ ⟨hj, hi⟩

Mathlib/Algebra/Group/Units/Defs.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,13 +536,13 @@ instance (x : M) [h : Decidable (∃ u : Mˣ, ↑u = x)] : Decidable (IsUnit x)
536536

537537
theorem mul_left_iff {a b : M} (ha : IsUnit a) :
538538
IsUnit (a * b) ↔ IsUnit b :=
539-
show IsUnit (ha.unit * b) ↔ _ by simp [- IsUnit.unit_spec]
539+
show IsUnit (ha.unit * b) ↔ _ by simp [-IsUnit.unit_spec]
540540

541541
grind_pattern mul_left_iff => IsUnit a, IsUnit (a * b)
542542

543543
theorem mul_right_iff {a b : M} (hb : IsUnit b) :
544544
IsUnit (a * b) ↔ IsUnit a :=
545-
show IsUnit (a * hb.unit) ↔ _ by simp [- IsUnit.unit_spec]
545+
show IsUnit (a * hb.unit) ↔ _ by simp [-IsUnit.unit_spec]
546546

547547
grind_pattern mul_right_iff => IsUnit b, IsUnit (a * b)
548548

Mathlib/Algebra/GroupWithZero/Range.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ def ValueGroup₀.restrict₀ : A →*₀ ValueGroup₀ f where
137137
toFun a :=
138138
letI : DecidablePred fun b : B ↦ b = 0 := Classical.decPred fun b ↦ b = 0
139139
if h : f a = 0 then 0 else (⟨Units.mk0 (f a) h, mem_valueGroup _ ⟨a, rfl⟩⟩ : valueGroup f)
140-
map_one' := by simp [← WithZero.coe_one]
141-
map_mul' := by aesop
140+
map_one' := by simp [← WithZero.coe_one]
141+
map_mul' := by aesop
142142
map_zero' := by simp
143143

144144
namespace ValueGroup₀

Mathlib/Algebra/Homology/DerivedCategory/Ext/ExtClass.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ lemma extClass_hom [HasDerivedCategory.{w'} C] : hS.extClass.hom = hS.singleδ :
8888
dsimp [extClass, SmallShiftedHom.equiv]
8989
erw [SmallHom.equiv_comp]
9090
rw [SmallHom.equiv_mkInv, SmallHom.equiv_mk]
91-
dsimp [- Q_obj_single_obj, singleδ, triangleOfSESδ]
91+
dsimp [-Q_obj_single_obj, singleδ, triangleOfSESδ]
9292
rw [Category.assoc, Category.assoc, Category.assoc,
9393
singleFunctorsPostcompQIso_hom_hom, singleFunctorsPostcompQIso_inv_hom,
9494
NatTrans.id_app, Category.id_comp, NatTrans.id_app]

Mathlib/Algebra/Homology/DerivedCategory/Ext/Map.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ lemma ShortComplex.ShortExact.mapShiftedHom_singleδ
105105
[HasDerivedCategory.{t} C] [HasDerivedCategory.{t'} D]
106106
{S : ShortComplex C} (hS : S.ShortExact) (F : C ⥤ D) [F.Additive]
107107
[PreservesFiniteLimits F] [PreservesFiniteColimits F] :
108-
ShiftedHom.map hS.singleδ F.mapDerivedCategory =
108+
ShiftedHom.map hS.singleδ F.mapDerivedCategory =
109109
(F.mapDerivedCategorySingleFunctor 0).hom.app S.X₃ ≫
110110
(hS.map_of_exact F).singleδ ≫ ((F.mapDerivedCategorySingleFunctor 0).inv.app S.X₁)⟦1⟧' := by
111111
simp [← hS.mapShiftedHom_singleδ'_assoc, ← Functor.map_comp]

Mathlib/Algebra/Homology/DerivedCategory/ShortExact.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ lemma triangleOfSESδ_naturality {S₁ S₂ : ShortComplex (CochainComplex C ℤ
5757
simp only [triangleOfSESδ, CochainComplex.mappingCone.triangle_obj₁, Category.assoc,
5858
IsIso.inv_comp_eq]
5959
rw [← Functor.comp_map, ← (Q.commShiftIso (1 : ℤ)).hom.naturality, ← Category.assoc,
60-
← Category.assoc, ← Category.assoc, ← Category.assoc , ← Iso.app_hom,
60+
← Category.assoc, ← Category.assoc, ← Category.assoc, ← Iso.app_hom,
6161
Iso.cancel_iso_hom_right, ← Q.map_comp]
6262
simp only [Functor.comp_obj, Functor.comp_map,
6363
← CochainComplex.mappingCone.descShortComplex_naturality f,

Mathlib/Algebra/Homology/HomotopyCategory/HomComplex.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ def isKernel (hm : n + 1 = m) :
728728
#adaptation_note /-- Prior to https://github.com/leanprover/lean4/pull/12244
729729
this was just `cat_disch`. -/
730730
simp +instances only [HomComplex_X, map_add]
731-
rfl})
731+
rfl })
732732
(by cat_disch) (fun s l hl ↦ by ext : 3; simp [← hl])
733733

734734
end Cocycle

Mathlib/Algebra/Homology/HomotopyCategory/MappingCocone.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ lemma δ_liftCochain (n' : ℤ) (hn' : n + 1 = n') :
243243
dsimp [liftCochain, inl, inr]
244244
ext p q hpq
245245
simp [mappingCone.δ_liftCochain _ _ _ _ n' hn',
246-
Cochain.δ_rightShift _ (-1) _ n' _ n (by lia),
246+
Cochain.δ_rightShift _ (-1) _ n' _ n (by lia),
247247
Cochain.rightShift_v (n := n) _ _ _ _ p _ _ (q + -1) (by lia),
248248
Cochain.rightShift_v _ _ _ _ _ _ _ (q + -1) rfl,
249249
Cochain.rightShift_v _ _ _ _ _ _ _ _ (add_zero (q + -1)),

0 commit comments

Comments
 (0)