@@ -249,12 +249,12 @@ lemma Path.findFstEq_eq_find?_le (p : Path N) (r : Fin (N + 2)) : p.findFstEq r
249249
250250lemma Path.firstMonster_isSome {p : Path N} {m : MonsterData N} :
251251 (p.firstMonster m).isSome = true ↔ ∃ x, x ∈ p.cells ∧ x ∈ m.monsterCells := by
252- convert List.find?_isSome
252+ convert! List.find?_isSome
253253 simp
254254
255255lemma Path.firstMonster_eq_none {p : Path N} {m : MonsterData N} :
256256 (p.firstMonster m) = none ↔ ∀ x, x ∈ p.cells → x ∉ m.monsterCells := by
257- convert List.find?_eq_none
257+ convert! List.find?_eq_none
258258 simp
259259
260260lemma Path.one_lt_length_cells (p : Path N) : 1 < p.cells.length := by
@@ -339,7 +339,7 @@ lemma Path.firstMonster_eq_of_findFstEq_mem {p : Path N} {m : MonsterData N}
339339 List.isChain_iff_getElem.1 p.valid_move_seq 0 (by lia)
340340 simp_rw [Adjacent, Nat.dist] at adj
341341 have hc0 : (p.cells[0 ].1 : ℕ) = 0 := by
342- convert Fin.ext_iff.1 p.head_first_row
342+ convert! Fin.ext_iff.1 p.head_first_row
343343 exact List.getElem_zero _
344344 have hc1 : (p.cells[1 ].1 : ℕ) ≠ 0 := Fin.val_ne_iff.2 h0
345345 have h1 : (p.cells[1 ].1 : ℕ) = 1 := by lia
@@ -452,7 +452,7 @@ def Path.reflect (p : Path N) : Path N where
452452lemma Path.firstMonster_reflect (p : Path N) (m : MonsterData N) :
453453 p.reflect.firstMonster m.reflect = (p.firstMonster m).map Cell.reflect := by
454454 simp_rw [firstMonster, reflect, List.find?_map]
455- convert rfl
455+ convert! rfl
456456 simp only [Function.comp_apply, decide_eq_decide, MonsterData.monsterCells]
457457 refine ⟨fun h ↦ ?_, fun h ↦ ?_⟩
458458 · rcases h with ⟨i, hi⟩
@@ -509,7 +509,7 @@ lemma Strategy.play_two (s : Strategy N) (m : MonsterData N) {k : ℕ} (hk : 2 <
509509 · have h : (1 : Fin 2 ) = Fin.last 1 := rfl
510510 simp only [Fin.snoc_zero, Nat.reduceAdd, Fin.mk_one, Fin.isValue, Matrix.cons_val]
511511 simp only [h, Fin.snoc_last]
512- convert rfl
512+ convert! rfl
513513 simp_rw [Fin.fin_one_eq_zero, Matrix.cons_val]
514514
515515lemma Strategy.WinsIn.mono (s : Strategy N) (m : MonsterData N) {k₁ k₂ : ℕ} (h : s.WinsIn m k₁)
@@ -555,7 +555,7 @@ lemma row1_mem_monsterCells_monsterData12 (hN : 2 ≤ N) (c₁ c₂ : Fin (N + 1
555555
556556lemma row2_mem_monsterCells_monsterData12 (hN : 2 ≤ N) {c₁ c₂ : Fin (N + 1 )} (h : c₁ ≠ c₂) :
557557 (⟨2 , by lia⟩, c₂) ∈ (monsterData12 hN c₁ c₂).monsterCells := by
558- convert Set.mem_range_self (row2 hN)
558+ convert! Set.mem_range_self (row2 hN)
559559 exact (monsterData12_apply_row2 hN h).symm
560560
561561lemma Strategy.not_forcesWinIn_two (s : Strategy N) (hN : 2 ≤ N) : ¬ s.ForcesWinIn 2 := by
0 commit comments