Skip to content

Commit 72eadd6

Browse files
committed
chore(Data): fix whitespace (#32931)
1 parent dd38164 commit 72eadd6

File tree

31 files changed

+45
-50
lines changed

31 files changed

+45
-50
lines changed

Mathlib/Data/Complex/Basic.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ theorem re_ofReal_mul (r : ℝ) (z : ℂ) : (r * z).re = r * z.re := by simp [of
218218

219219
theorem im_ofReal_mul (r : ℝ) (z : ℂ) : (r * z).im = r * z.im := by simp [ofReal]
220220

221-
lemma re_mul_ofReal (z : ℂ) (r : ℝ) : (z * r).re = z.re * r := by simp [ofReal]
222-
lemma im_mul_ofReal (z : ℂ) (r : ℝ) : (z * r).im = z.im * r := by simp [ofReal]
221+
lemma re_mul_ofReal (z : ℂ) (r : ℝ) : (z * r).re = z.re * r := by simp [ofReal]
222+
lemma im_mul_ofReal (z : ℂ) (r : ℝ) : (z * r).im = z.im * r := by simp [ofReal]
223223

224224
theorem ofReal_mul' (r : ℝ) (z : ℂ) : ↑r * z = ⟨r * z.re, r * z.im⟩ :=
225225
ext (re_ofReal_mul _ _) (im_ofReal_mul _ _)

Mathlib/Data/ENNReal/Inv.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ lemma mul_iInf' (hinfty : a = ∞ → ⨅ i, f i = 0 → ∃ i, f i = 0) (h₀ :
832832
obtain rfl | ha := eq_or_ne a ∞
833833
· obtain ⟨i, hi⟩ | hf := em (∃ i, f i = 0)
834834
· rw [(iInf_eq_bot _).2, (iInf_eq_bot _).2, bot_eq_zero, mul_zero] <;>
835-
exact fun _ _↦ ⟨i, by simpa [hi]⟩
835+
exact fun _ _ ↦ ⟨i, by simpa [hi]⟩
836836
· rw [top_mul (mt (hinfty rfl) hf), eq_comm, iInf_eq_top]
837837
exact fun i ↦ top_mul fun hi ↦ hf ⟨i, hi⟩
838838
· exact (mulLeftOrderIso _ <| isUnit_iff.2 ⟨ha₀, ha⟩).map_iInf _

Mathlib/Data/EReal/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ theorem induction₂_symm {P : EReal → EReal → Prop} (symm : ∀ {x y}, P x
190190
(fun _ h => symm <| pos_bot _ h) (symm zero_bot) (fun _ h => symm <| neg_bot _ h) bot_bot
191191

192192
protected theorem mul_comm (x y : EReal) : x * y = y * x := by
193-
induction x <;> induction y <;>
193+
induction x <;> induction y <;>
194194
try { rfl }
195195
rw [← coe_mul, ← coe_mul, mul_comm]
196196

Mathlib/Data/Fin/Fin2.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def castSucc {n} : Fin2 n → Fin2 (n + 1)
125125

126126
/-- The greatest value of `Fin2 (n+1)`. -/
127127
def last : {n : Nat} → Fin2 (n + 1)
128-
| 0 => fz
128+
| 0 => fz
129129
| n + 1 => fs (@last n)
130130

131131
/-- Maps `0` to `n-1`, `1` to `n-2`, ..., `n-1` to `0`. -/
@@ -150,7 +150,7 @@ instance : Inhabited (Fin2 1) :=
150150
⟨fz⟩
151151

152152
instance instFintype : ∀ n, Fintype (Fin2 n)
153-
| 0 => ⟨∅, Fin2.elim0⟩
153+
| 0 => ⟨∅, Fin2.elim0⟩
154154
| n + 1 =>
155155
let ⟨elems, compl⟩ := instFintype n
156156
{ elems := elems.map ⟨Fin2.fs, @fs.inj _⟩ |>.cons .fz (by simp)

Mathlib/Data/Finset/Defs.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ instance : IsRefl (Finset α) (· ⊆ ·) :=
209209
inferInstanceAs <| IsRefl (Finset α) (· ≤ ·)
210210

211211
instance : IsTrans (Finset α) (· ⊆ ·) :=
212-
inferInstanceAs <| IsTrans (Finset α) (· ≤ ·)
212+
inferInstanceAs <| IsTrans (Finset α) (· ≤ ·)
213213

214214
instance : IsAntisymm (Finset α) (· ⊆ ·) :=
215215
inferInstanceAs <| IsAntisymm (Finset α) (· ≤ ·)

Mathlib/Data/Finset/Sort.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ variable (r : α → α → Prop) [DecidableRel r] [IsTrans α r] [IsAntisymm α
4141
variable (r' : β → β → Prop) [DecidableRel r'] [IsTrans β r'] [IsAntisymm β r'] [IsTotal β r']
4242

4343
@[simp]
44-
theorem sort_val : Multiset.sort s.val r = sort s r :=
44+
theorem sort_val : Multiset.sort s.val r = sort s r :=
4545
rfl
4646

4747
@[simp]

Mathlib/Data/Finsupp/Interval.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ instance instLocallyFiniteOrder : LocallyFiniteOrder (ι →₀ α) :=
9292

9393
theorem Icc_eq : Icc f g = (f.support ∪ g.support).finsupp (f.rangeIcc g) := rfl
9494

95-
theorem card_Icc : #(Icc f g) = ∏ i ∈ f.support ∪ g.support, #(Icc (f i) (g i)):= by
95+
theorem card_Icc : #(Icc f g) = ∏ i ∈ f.support ∪ g.support, #(Icc (f i) (g i)) := by
9696
simp_rw [Icc_eq, card_finsupp, coe_rangeIcc]
9797

9898
theorem card_Ico : #(Ico f g) = ∏ i ∈ f.support ∪ g.support, #(Icc (f i) (g i)) - 1 := by

Mathlib/Data/Finsupp/MonomialOrder/DegLex.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ example : single (1 : Fin 2) 1 ≺[degLex] single 0 1 := by
238238
exact Nat.one_pos
239239

240240
/-- for the deg-lexicographic ordering, X 0 * X 1 < X 0 ^ 2 -/
241-
example : (single 0 1 + single 1 1) ≺[degLex] single (0 : Fin 2) 2 := by
241+
example : (single 0 1 + single 1 1) ≺[degLex] single (0 : Fin 2) 2 := by
242242
rw [degLex_lt_iff, lt_iff, ofDegLex_toDegLex]
243243
simp only [Fin.isValue, map_add, degree_single, Nat.reduceAdd, ofDegLex_toDegLex,
244244
lt_self_iff_false, toLex_add, true_and, false_or]

Mathlib/Data/Fintype/List.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ instance fintypeNodupList [Fintype α] : Fintype { l : List α // l.Nodup } := b
7575
simp only [_root_.Disjoint]
7676
rw [← m.coe_toList, ← n.coe_toList, Multiset.lists_coe, Multiset.lists_coe]
7777
have := Multiset.coe_disjoint m.toList.permutations n.toList.permutations
78-
rw [_root_.Disjoint] at this
78+
rw [_root_.Disjoint] at this
7979
rw [this]
8080
simp only [ne_eq]
8181
rw [List.disjoint_iff_ne]

Mathlib/Data/Fintype/Option.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ theorem induction_empty_option {P : ∀ (α : Type u) [Fintype α], Prop}
9292
obtain ⟨p⟩ :=
9393
let f_empty := fun i => by convert h_empty
9494
let h_option : ∀ {α : Type u} [Fintype α] [DecidableEq α],
95-
(∀ (h : Fintype α), P α) → ∀ (h : Fintype (Option α)), P (Option α) := by
95+
(∀ (h : Fintype α), P α) → ∀ (h : Fintype (Option α)), P (Option α) := by
9696
rintro α hα - Pα hα'
9797
convert h_option α (Pα _)
9898
@truncRecEmptyOption (fun α => ∀ h, @P α h) (@fun α β e hα hβ => @of_equiv α β hβ e (hα _))

0 commit comments

Comments
 (0)