Skip to content

Commit 736607b

Browse files
committed
chore(NumberTheory): fix whitespace (leanprover-community#33167)
Found by extending the commandStart linter to proof bodies.
1 parent 6df41e3 commit 736607b

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

Mathlib/NumberTheory/ArithmeticFunction/Moebius.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ theorem sum_eq_iff_sum_smul_moebius_eq_on [AddCommGroup R] {f g : ℕ → R}
286286
· intro h
287287
let G := fun (n : ℕ) => (∑ i ∈ n.divisors, f i)
288288
intro n hn hnP
289-
suffices ∑ d ∈ n.divisors, μ (n/d) • G d = f n by
289+
suffices ∑ d ∈ n.divisors, μ (n / d) • G d = f n by
290290
rw [sum_divisorsAntidiagonal' (f := fun x y => μ x • g y), ← this, sum_congr rfl]
291291
intro d hd
292292
rw [← h d (pos_of_mem_divisors hd) <| hs d n (dvd_of_mem_divisors hd) hnP]

Mathlib/NumberTheory/Divisors.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,8 @@ lemma mem_divisorsAntidiag :
651651
norm_cast
652652
aesop
653653
| (n : ℕ), (negSucc x, (y : ℕ)) => by
654-
suffices (∃ a, (n = a * y ∧ ¬n = 0) ∧ (a:ℤ) = -1 + -↑x) ↔ (n:ℤ) = (-1 + -↑x) * ↑y ∧ ¬n = 0 by
654+
suffices
655+
(∃ a, (n = a * y ∧ ¬n = 0) ∧ (a : ℤ) = -1 + -↑x) ↔ (n : ℤ) = (-1 + -↑x) * ↑y ∧ ¬n = 0 by
655656
simpa [divisorsAntidiag, eq_comm, negSucc_eq]
656657
simp only [← Int.neg_add, Int.add_comm 1, Int.neg_mul, Int.add_mul]
657658
norm_cast

Mathlib/NumberTheory/LegendreSymbol/QuadraticChar/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ theorem quadraticCharFun_mul (a b : F) :
100100
-- now `a ≠ 0` and `b ≠ 0`
101101
have hab := mul_ne_zero ha hb
102102
by_cases hF : ringChar F = 2
103-
·-- case `ringChar F = 2`
103+
· -- case `ringChar F = 2`
104104
rw [quadraticCharFun_eq_one_of_char_two hF ha, quadraticCharFun_eq_one_of_char_two hF hb,
105105
quadraticCharFun_eq_one_of_char_two hF hab, mul_one]
106106
· -- case of odd characteristic

Mathlib/NumberTheory/Niven.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ theorem niven (hθ : ∃ r : ℚ, θ = r * π) (hcos : ∃ q : ℚ, cos θ = q)
140140
/-- Niven's theorem, but stated for `sin` instead of `cos`. -/
141141
theorem niven_sin (hθ : ∃ r : ℚ, θ = r * π) (hcos : ∃ q : ℚ, sin θ = q) :
142142
sin θ ∈ ({-1, -1 / 2, 0, 1 / 2, 1} : Set ℝ) := by
143-
convert ← niven (θ := θ - π/2) ?_ ?_ using 1
143+
convert ← niven (θ := θ - π / 2) ?_ ?_ using 1
144144
· exact cos_sub_pi_div_two θ
145145
· exact hθ.imp' (· - 1 / 2) (by intros; push_cast; linarith)
146146
· simpa [cos_sub_pi_div_two]

0 commit comments

Comments
 (0)