diff options
| author | Andreas Grois <andi@grois.info> | 2025-11-16 14:24:46 +0100 |
|---|---|---|
| committer | Andreas Grois <andi@grois.info> | 2025-11-16 14:24:46 +0100 |
| commit | 6d10b7594f487bdfbef99d05bda34405dd85c8b8 (patch) | |
| tree | 42c630d3612322af6cabcd3ac197912507872e45 /Day16.lean | |
| parent | 4fbeb023e0b2c58895e8df8d169035e274159537 (diff) | |
Lean 4.23
Diffstat (limited to 'Day16.lean')
| -rw-r--r-- | Day16.lean | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -300,7 +300,7 @@ private theorem OpticsTable.findFirstExitDirectionNotSeenInQueue_notContains {ta have h₂ := Option.some.inj h₁ subst result generalize { x := Fin.cast _ b.snd.x, y := Fin.cast _ b.snd.y : seenDirections.Coordinate } = c at * - have h₂ : ed ∈ List.filter (fun d => !seenDirections.toRectangularGrid[c].contains d) (OpticsElement.outputDirections table[b.snd] b.fst) := by simp only [heq, List.mem_singleton, List.mem_cons, true_or] + have h₂ : ed ∈ List.filter (fun d => !seenDirections.toRectangularGrid[c].contains d) (OpticsElement.outputDirections table[b.snd] b.fst) := by simp only [heq, List.mem_cons, true_or] exact (Bool.not_eq_true' _).mp (List.mem_filter.mp h₂).right private def OpticsTable.followPath {table : OpticsTable} (seenDirections : SeenExitDirections table) (beams : List (EnterDirection × table.Coordinate)) : SeenExitDirections table := |
