@@ -183,7 +183,7 @@ theorem shiftUp_bottom_subset_bottoms (hc : (cs i).xm ≠ 1) :
183183 (cs i).shiftUp.bottom ⊆ ⋃ i : ι, (cs i).bottom := by
184184 intro p hp; obtain ⟨hp0, hps⟩ := hp; rw [tail_shiftUp] at hps
185185 have : p ∈ (unitCube : Cube (n + 1 )).toSet := by
186- simp only [toSet, forall_iff_succ, hp0, side_unitCube, mem_setOf_eq , mem_Ico, head_shiftUp]
186+ simp only [toSet, forall_iff_succ, hp0, side_unitCube, mem_ofPred_eq , mem_Ico, head_shiftUp]
187187 refine ⟨⟨?_, ?_⟩, ?_⟩
188188 · rw [← zero_add (0 : ℝ)]; apply add_le_add
189189 · apply zero_le_b h
@@ -223,10 +223,10 @@ variable {c : Cube (n + 1)} (h : Correct cs) (v : Valley cs c)
223223theorem valley_unitCube [Nontrivial ι] (h : Correct cs) : Valley cs unitCube := by
224224 refine ⟨?_, ?_, ?_⟩
225225 · intro v
226- simp only [bottom, and_imp, mem_iUnion, mem_setOf_eq ]
226+ simp only [bottom, and_imp, mem_iUnion, mem_ofPred_eq ]
227227 intro h0 hv
228228 have : v ∈ (unitCube : Cube (n + 1 )).toSet := by
229- dsimp only [toSet, unitCube, mem_setOf_eq ]
229+ dsimp only [toSet, unitCube, mem_ofPred_eq ]
230230 rw [forall_iff_succ, h0]; constructor
231231 · norm_num [side, unitCube]
232232 · exact hv
@@ -410,7 +410,7 @@ theorem mi_not_onBoundary (j : Fin n) : ¬OnBoundary (mi_mem_bcubes : mi h v ∈
410410 have i'_i'' : i' ≠ i'' := by
411411 rintro ⟨⟩
412412 have : (cs i).b ∈ (cs i').toSet := by
413- simp only [toSet, forall_iff_succ, hi.1 , bottom_mem_side h2i', true_and, mem_setOf_eq ]
413+ simp only [toSet, forall_iff_succ, hi.1 , bottom_mem_side h2i', true_and, mem_ofPred_eq ]
414414 intro j₂; by_cases hj₂ : j₂ = j
415415 · simpa [p', side_tail, hj'.symm, hj₂] using hi''.2 j
416416 · simpa [p, hj₂] using ! hi'.2 j₂
@@ -456,7 +456,7 @@ theorem valley_mi : Valley cs (cs (mi h v)).shiftUp := by
456456 simp only [not_subset, tail_shiftUp] at h2i'
457457 rcases h2i' with ⟨p1, hp1, h2p1⟩
458458 have : ∃ p3, p3 ∈ (cs i').tail.toSet ∧ p3 ∉ (cs i).tail.toSet ∧ p3 ∈ c.tail.toSet := by
459- simp only [toSet, not_forall, mem_setOf_eq ] at h2p1; obtain ⟨j, hj⟩ := h2p1
459+ simp only [toSet, not_forall, mem_ofPred_eq ] at h2p1; obtain ⟨j, hj⟩ := h2p1
460460 rcases Ico_lemma (mi_not_onBoundary' j).1 (by simp [hw]) (mi_not_onBoundary' j).2
461461 (le_trans (hp2 j).1 <| le_of_lt (h2p2 j).2 ) (le_trans (h2p2 j).1 <| le_of_lt (hp2 j).2 )
462462 ⟨hj, hp1 j⟩ with
@@ -465,7 +465,7 @@ theorem valley_mi : Valley cs (cs (mi h v)).shiftUp := by
465465 · intro j'; by_cases h : j' = j
466466 · simp only [if_pos h]; exact h ▸ h3w
467467 · simp only [if_neg h]; exact hp2 j'
468- · simp only [toSet, not_forall, mem_setOf_eq ]; use j; rw [if_pos rfl]; convert! h2w
468+ · simp only [toSet, not_forall, mem_ofPred_eq ]; use j; rw [if_pos rfl]; convert! h2w
469469 · intro j'; by_cases h : j' = j
470470 · simp only [if_pos h, side_tail]; exact h ▸ hw
471471 · simp only [if_neg h]; apply hi.2 ; apply h2p2
@@ -483,7 +483,7 @@ theorem valley_mi : Valley cs (cs (mi h v)).shiftUp := by
483483 let p' := @cons n (fun _ => ℝ) (cs i).xm p3
484484 have hp' : p' ∈ (cs i').toSet := by simpa [i, p', toSet, forall_iff_succ, hi'.symm] using ! h1p3
485485 have h2p' : p' ∈ (cs i'').toSet := by
486- simp only [p', toSet, forall_iff_succ, cons_succ, cons_zero, mem_setOf_eq ]
486+ simp only [p', toSet, forall_iff_succ, cons_succ, cons_zero, mem_ofPred_eq ]
487487 refine ⟨?_, by simpa [toSet] using ! hi''.2 ⟩
488488 have : (cs i).b 0 = (cs i'').b 0 := by rw [hi.1 , h2i''.1 ]
489489 simp [side, hw', xm, this, h3i'']
0 commit comments