@@ -182,8 +182,8 @@ theorem zero_le_b {i j} : 0 ≤ (cs i).b j :=
182182theorem b_add_w_le_one {j} : (cs i).b j + (cs i).w ≤ 1 := by
183183 have : side (cs i) j ⊆ Ico 0 1 := side_subset h
184184 rw [side, Ico_subset_Ico_iff] at this
185- convert this.2
186- simp [hw]
185+ · convert this.2
186+ · simp [hw]
187187#align theorems_100.«82 ».correct.b_add_w_le_one Theorems100.«82 ».Correct.b_add_w_le_one
188188
189189theorem nontrivial_fin : Nontrivial (Fin n) :=
@@ -199,9 +199,10 @@ theorem w_ne_one [Nontrivial ι] (i : ι) : (cs i).w ≠ 1 := by
199199 have h2p : p ∈ (cs i).toSet := by
200200 intro j; constructor
201201 trans (0 : ℝ)
202- · rw [← add_le_add_iff_right (1 : ℝ)]; convert b_add_w_le_one h; rw [hi]; rw [zero_add]
203- apply zero_le_b h; apply lt_of_lt_of_le (side_subset h <| (cs i').b_mem_side j).2
204- simp [hi, zero_le_b h]
202+ · rw [← add_le_add_iff_right (1 : ℝ)]; convert b_add_w_le_one h; (· rw [hi]); rw [zero_add]
203+ · apply zero_le_b h
204+ · apply lt_of_lt_of_le (side_subset h <| (cs i').b_mem_side j).2
205+ simp [hi, zero_le_b h]
205206 exact (h.PairwiseDisjoint hi').le_bot ⟨hp, h2p⟩
206207#align theorems_100.«82 ».correct.w_ne_one Theorems100.«82 ».Correct.w_ne_one
207208
@@ -213,7 +214,7 @@ theorem shiftUp_bottom_subset_bottoms (hc : (cs i).xm ≠ 1) :
213214 have : p ∈ (unitCube : Cube (n + 1 )).toSet := by
214215 simp only [toSet, forall_fin_succ, hp0, side_unitCube, mem_setOf_eq, mem_Ico, head_shiftUp]
215216 refine' ⟨⟨_, _⟩, _⟩
216- · rw [← zero_add (0 : ℝ)]; apply add_le_add; apply zero_le_b h; apply (cs i).hw'
217+ · rw [← zero_add (0 : ℝ)]; apply add_le_add; (· apply zero_le_b h) ; apply (cs i).hw'
217218 · exact lt_of_le_of_ne (b_add_w_le_one h) hc
218219 intro j; exact side_subset h (hps j)
219220 rw [← h.2 , mem_iUnion] at this; rcases this with ⟨i', hi'⟩
@@ -222,9 +223,9 @@ theorem shiftUp_bottom_subset_bottoms (hc : (cs i).xm ≠ 1) :
222223 have := h.1 this
223224 rw [onFun, comp_apply, comp_apply, toSet_disjoint, exists_fin_succ] at this
224225 rcases this with (h0 | ⟨j, hj⟩)
225- rw [hp0]; symm; apply eq_of_Ico_disjoint h0 (by simp [hw]) _
226- convert hi' 0 ; rw [hp0]; rfl
227- exfalso; apply not_disjoint_iff.mpr ⟨tail p j, hps j, hi' j.succ⟩ hj
226+ · rw [hp0]; symm; apply eq_of_Ico_disjoint h0 (by simp [hw]) _
227+ convert hi' 0 ; rw [hp0]; rfl
228+ · exfalso; apply not_disjoint_iff.mpr ⟨tail p j, hps j, hi' j.succ⟩ hj
228229#align theorems_100.«82 ».correct.shift_up_bottom_subset_bottoms Theorems100.«82 ».Correct.shiftUp_bottom_subset_bottoms
229230
230231end Correct
@@ -255,11 +256,11 @@ theorem valley_unitCube [Nontrivial ι] (h : Correct cs) : Valley cs unitCube :=
255256 intro h0 hv
256257 have : v ∈ (unitCube : Cube (n + 1 )).toSet := by
257258 dsimp only [toSet, unitCube, mem_setOf_eq]
258- rw [forall_fin_succ, h0]; constructor; norm_num [side, unitCube]; exact hv
259+ rw [forall_fin_succ, h0]; constructor; (· norm_num [side, unitCube]) ; exact hv
259260 rw [← h.2 , mem_iUnion] at this; rcases this with ⟨i, hi⟩
260261 use i
261262 constructor
262- · apply le_antisymm; rw [h0]; exact h.zero_le_b; exact (hi 0 ).1
263+ · apply le_antisymm; (· rw [h0]; exact h.zero_le_b) ; exact (hi 0 ).1
263264 intro j; exact hi _
264265 · intro i _ _; rw [toSet_subset]; intro j; convert h.side_subset using 1 ; simp [side_tail]
265266 · intro i _; exact h.w_ne_one i
@@ -290,7 +291,7 @@ theorem b_le_b (hi : i ∈ bcubes cs c) (j : Fin n) : c.b j.succ ≤ (cs i).b j.
290291theorem t_le_t (hi : i ∈ bcubes cs c) (j : Fin n) :
291292 (cs i).b j.succ + (cs i).w ≤ c.b j.succ + c.w := by
292293 have h' := tail_sub hi j; dsimp only [side] at h'; rw [Ico_subset_Ico_iff] at h'
293- exact h'.2 ; simp [hw]
294+ (· exact h'.2 ) ; simp [hw]
294295#align theorems_100.«82 ».t_le_t Theorems100.«82 ».t_le_t
295296
296297/-- Every cube in the valley must be smaller than it -/
@@ -362,9 +363,9 @@ theorem mi_strict_minimal (hii' : mi h v ≠ i) (hi : i ∈ bcubes cs c) :
362363/-- The top of `mi` cannot be 1, since there is a larger cube in the valley -/
363364theorem mi_xm_ne_one : (cs <| mi h v).xm ≠ 1 := by
364365 apply ne_of_lt; rcases (nontrivial_bcubes h v).exists_ne (mi h v) with ⟨i, hi, h2i⟩
365- apply lt_of_lt_of_le _ h.b_add_w_le_one; exact i; exact 0
366- rw [xm, mi_mem_bcubes.1 , hi.1 , _root_.add_lt_add_iff_left]
367- exact mi_strict_minimal h2i.symm hi
366+ · apply lt_of_lt_of_le _ h.b_add_w_le_one; (· exact i); (· exact 0 )
367+ rw [xm, mi_mem_bcubes.1 , hi.1 , _root_.add_lt_add_iff_left]
368+ exact mi_strict_minimal h2i.symm hi
368369#align theorems_100.«82 ».mi_xm_ne_one Theorems100.«82 ».mi_xm_ne_one
369370
370371/-- If `mi` lies on the boundary of the valley in dimension j, then this lemma expresses that all
@@ -382,8 +383,8 @@ theorem smallest_onBoundary {j} (bi : OnBoundary (mi_mem_bcubes : mi h v ∈ _)
382383 · simp [side, bi, hw', w_lt_w h v hi]
383384 · intro h'; simpa [lt_irrefl] using h'.2
384385 intro i' hi' i'_i h2i'; constructor
385- apply le_trans h2i'.1
386- · simp [hw']
386+ · apply le_trans h2i'.1
387+ simp [hw']
387388 apply lt_of_lt_of_le (add_lt_add_left (mi_strict_minimal i'_i.symm hi') _)
388389 simp [bi.symm, b_le_b hi']
389390 let s := bcubes cs c \ {i}
@@ -401,7 +402,7 @@ theorem smallest_onBoundary {j} (bi : OnBoundary (mi_mem_bcubes : mi h v ∈ _)
401402 rw [add_assoc, le_add_iff_nonneg_right, ← sub_eq_add_neg, sub_nonneg]
402403 apply le_of_lt (w_lt_w h v hi')
403404 · simp only [side, not_and_or, not_lt, not_le, mem_Ico]; left; exact hx
404- intro i'' hi'' h2i'' h3i''; constructor; swap; apply lt_trans hx h3i''.2
405+ intro i'' hi'' h2i'' h3i''; constructor; swap; · apply lt_trans hx h3i''.2
405406 rw [le_sub_iff_add_le]
406407 refine' le_trans _ (t_le_t hi'' j); rw [add_le_add_iff_left]; apply h3i' i'' ⟨hi'', _⟩
407408 simp [mem_singleton, h2i'']
@@ -429,14 +430,14 @@ theorem mi_not_onBoundary (j : Fin n) : ¬OnBoundary (mi_mem_bcubes : mi h v ∈
429430 have h2i' : i' ∈ bcubes cs c := ⟨hi'.1 .symm, v.2 .1 i' hi'.1 .symm ⟨tail p, hi'.2 , hp.2 ⟩⟩
430431 have i_i' : i ≠ i' := by rintro rfl; simpa [p, side_tail, h2x] using hi'.2 j
431432 have : Nonempty (↥((cs i').tail.side j' \ (cs i).tail.side j')) := by
432- apply nonempty_Ico_sdiff; apply mi_strict_minimal i_i' h2i'; apply hw
433+ apply nonempty_Ico_sdiff; (· apply mi_strict_minimal i_i' h2i') ; apply hw
433434 rcases this with ⟨⟨x', hx'⟩⟩
434435 let p' : Fin (n + 1 ) → ℝ := cons (c.b 0 ) fun j₂ => if j₂ = j' then x' else (cs i).b j₂.succ
435436 have hp' : p' ∈ c.bottom := by
436437 suffices ∀ j : Fin n, ite (j = j') x' ((cs i).b j.succ) ∈ c.side j.succ by
437438 simpa [p', bottom, toSet, tail, side_tail]
438439 intro j₂
439- by_cases hj₂ : j₂ = j'; simp [hj₂]; apply tail_sub h2i'; apply hx'.1
440+ by_cases hj₂ : j₂ = j'; · simp [hj₂]; apply tail_sub h2i'; apply hx'.1
440441 simp only [if_congr, if_false, hj₂]; apply tail_sub hi; apply b_mem_side
441442 rcases v.1 hp' with ⟨_, ⟨i'', rfl⟩, hi''⟩
442443 have h2i'' : i'' ∈ bcubes cs c := ⟨hi''.1 .symm, v.2 .1 i'' hi''.1 .symm ⟨tail p', hi''.2 , hp'.2 ⟩⟩
@@ -474,10 +475,10 @@ theorem mi_not_onBoundary' (j : Fin n) :
474475 have := mi_not_onBoundary h v j
475476 simp only [OnBoundary, not_or] at this; cases' this with h1 h2
476477 constructor
477- apply lt_of_le_of_ne (b_le_b mi_mem_bcubes _) h1
478- apply lt_of_le_of_ne _ h2
479- apply ((Ico_subset_Ico_iff _).mp (tail_sub mi_mem_bcubes j)).2
480- simp [hw]
478+ · apply lt_of_le_of_ne (b_le_b mi_mem_bcubes _) h1
479+ · apply lt_of_le_of_ne _ h2
480+ apply ((Ico_subset_Ico_iff _).mp (tail_sub mi_mem_bcubes j)).2
481+ simp [hw]
481482#align theorems_100.«82 ».mi_not_on_boundary' Theorems100.«82 ».mi_not_onBoundary'
482483
483484/-- The top of `mi` gives rise to a new valley, since the neighbouring cubes extend further upward
@@ -512,7 +513,7 @@ theorem valley_mi : Valley cs (cs (mi h v)).shiftUp := by
512513 rcases v.1 hp with ⟨_, ⟨i'', rfl⟩, hi''⟩
513514 have h2i'' : i'' ∈ bcubes cs c := by
514515 use hi''.1 .symm; apply v.2 .1 i'' hi''.1 .symm
515- use tail p; constructor; exact hi''.2 ; rw [tail_cons]; exact h3p3
516+ use tail p; constructor; (· exact hi''.2 ) ; rw [tail_cons]; exact h3p3
516517 have h3i'' : (cs i).w < (cs i'').w := by
517518 apply mi_strict_minimal _ h2i''; rintro rfl; apply h2p3; convert hi''.2
518519 let p' := @cons n (fun _ => ℝ) (cs i).xm p3
0 commit comments