| @@ -45,7 +45,7 @@ theorem cover_injective : Function.Injective cover := by |
| 45 | 45 | |
| 46 | 46 | theorem cover_pow_injective (n : ℕ) : Function.Injective (cover ^ n : Plane →L[ℝ] Plane) := by |
| 47 | 47 | induction n with |
| 48 | | - | zero => simpa using Function.injective_id |
| 48 | + | zero => exact Function.injective_id |
| 49 | 49 | | succ n ih => |
| 50 | 50 | intro x y h |
| 51 | 51 | rw [pow_succ', _root_.mul_apply_eq_comp, _root_.mul_apply_eq_comp] at h |
| @@ -78,7 +78,7 @@ theorem norm_cover_pow_le (n : ℕ) (x : Plane) : |
| 78 | 78 | theorem cover_pow_positive (n : ℕ) (x : Plane) (hx : 0 < x.1) (hy : 0 ≤ x.2) : |
| 79 | 79 | 0 < ((cover ^ n) x).1 ∧ 0 ≤ ((cover ^ n) x).2 := by |
| 80 | 80 | induction n with |
| 81 | | - | zero => simpa using And.intro hx hy |
| 81 | + | zero => exact And.intro hx hy |
| 82 | 82 | | succ n ih => |
| 83 | 83 | rw [pow_succ', _root_.mul_apply_eq_comp, cover_apply] |
| 84 | 84 | dsimp |
| @@ -102,8 +102,7 @@ theorem denominator_pos (m D : ℕ) : 0 < denominator m D := by |
| 102 | 102 | def center (m D : ℕ) (i : Fin m) : Plane := |
| 103 | 103 | (((i.val : ℝ) + 1) / denominator m D, 0) |
| 104 | 104 | |
| 105 | | -theorem center_first_pos (m D : ℕ) (i : Fin m) : 0 < (center m D i).1 := by |
| 106 | | - exact div_pos (by positivity) (denominator_pos m D) |
| 105 | +theorem center_first_pos (m D : ℕ) (i : Fin m) : 0 < (center m D i).1 := div_pos (by positivity) (denominator_pos m D) |
| 107 | 106 | |
| 108 | 107 | theorem center_norm (m D : ℕ) (i : Fin m) : ‖center m D i‖ = (center m D i).1 := by |
| 109 | 108 | change max |(center m D i).1| |(0 : ℝ)| = (center m D i).1 |
| @@ -183,8 +182,7 @@ theorem centers_avoid_covering (m D : ℕ) (i j : Fin m) (n : ℕ) (hn : n ≤ D |
| 183 | 182 | (hij : 0 < n ∨ i ≠ j) : ¬ torusEq ((cover ^ n) (center m D i)) (center m D j) := by |
| 184 | 183 | intro h |
| 185 | 184 | have hi := cover_pow_positive n (center m D i) (center_first_pos m D i) le_rfl |
| 186 | | - have hj : ‖center m D j‖ < 1 := by |
| 187 | | - simpa using cover_center_norm_lt_one m D j 0 (Nat.zero_le D) |
| 185 | + have hj : ‖center m D j‖ < 1 := cover_center_norm_lt_one m D j 0 (Nat.zero_le D) |
| 188 | 186 | have heq := torusEq_of_unit_square h hi.1.le hi.2 (center_first_pos m D j).le le_rfl |
| 189 | 187 | (cover_center_norm_lt_one m D i n hn) hj |
| 190 | 188 | rcases hij with hpos | hne |
| @@ -193,7 +191,7 @@ theorem centers_avoid_covering (m D : ℕ) (i j : Fin m) (n : ℕ) (hn : n ≤ D |
| 193 | 191 | exact (lt_irrefl 0) hp |
| 194 | 192 | · by_cases hn0 : n = 0 |
| 195 | 193 | · subst n |
| 196 | | - exact hne (center_injective m D (by simpa using heq)) |
| 194 | + exact hne (center_injective m D (heq)) |
| 197 | 195 | · have hp := cover_pow_second_positive (Nat.pos_of_ne_zero hn0) |
| 198 | 196 | (center m D i) (center_first_pos m D i) le_rfl |
| 199 | 197 | rw [heq] at hp |
| @@ -341,7 +339,7 @@ theorem cover_torusEq {x y : Plane} (h : torusEq x y) : torusEq (cover x) (cover |
| 341 | 339 | theorem cover_pow_torusEq (n : ℕ) {x y : Plane} (h : torusEq x y) : |
| 342 | 340 | torusEq ((cover ^ n) x) ((cover ^ n) y) := by |
| 343 | 341 | induction n with |
| 344 | | - | zero => simpa using h |
| 342 | + | zero => exact h |
| 345 | 343 | | succ n ih => |
| 346 | 344 | rw [pow_succ', _root_.mul_apply_eq_comp, _root_.mul_apply_eq_comp] |
| 347 | 345 | exact cover_torusEq ih |
| @@ -382,7 +380,7 @@ theorem orientedRectangle_subset (c a b : Plane) (r : ℝ) (hr : 0 ≤ r) : |
| 382 | 380 | _ ≤ (r / (1 + ‖a‖ + ‖b‖)) * (‖a‖ + ‖b‖) := by |
| 383 | 381 | nlinarith [mul_le_mul_of_nonneg_right hξ (norm_nonneg a), |
| 384 | 382 | mul_le_mul_of_nonneg_right hη (norm_nonneg b)] |
| 385 | | - _ ≤ (r / (1 + ‖a‖ + ‖b‖)) * (1 + ‖a‖ + ‖b‖) := by nlinarith |
| 383 | + _ ≤ (r / (1 + ‖a‖ + ‖b‖)) * (1 + ‖a‖ + ‖b‖) := by linarith |
| 386 | 384 | _ = r := div_mul_cancel₀ _ (ne_of_gt hden) |
| 387 | 385 | |
| 388 | 386 | /-- In particular this applies to the manuscript's two eigendirections. |
| @@ -401,7 +399,7 @@ theorem exists_oriented_slots (m D : ℕ) (a b : Plane) : |
| 401 | 399 | have hr : 0 < r := div_pos hR (by positivity) |
| 402 | 400 | have hsub (i : Fin m) : orientedRectangle (center m D i) a b (2 * r) ⊆ |
| 403 | 401 | rectangle (center m D i) (2 * R) := by |
| 404 | | - simpa only [r, mul_div_assoc] using |
| 402 | + simpa only [mul_div_assoc] using |
| 405 | 403 | orientedRectangle_subset (center m D i) a b (2 * R) (by positivity) |
| 406 | 404 | refine ⟨r, hr, ?_, ?_⟩ |
| 407 | 405 | · intro level n hn i j hij |