summaryrefslogtreecommitdiff
path: root/Day17.lean
diff options
context:
space:
mode:
Diffstat (limited to 'Day17.lean')
-rw-r--r--Day17.lean3
1 files changed, 1 insertions, 2 deletions
diff --git a/Day17.lean b/Day17.lean
index 769474b..d6772f4 100644
--- a/Day17.lean
+++ b/Day17.lean
@@ -280,8 +280,7 @@ instance : Finite (PathNode heatLossMap) where
rewrite (occs := .pos [2]) [←Function.comp_assoc]
simp only[Finite.nth_inverse_enumerate, Function.id_comp, PathNode.ofTuple_inv_toTuple]
-instance : LeanAStar.AStarNode (PathNode heatLossMap) where
- Costs := Nat
+instance : LeanAStar.AStarNode (PathNode heatLossMap) Nat where
costsLe := Nat.ble
costs_order := ⟨BinaryHeap.nat_ble_to_heap_transitive_le, BinaryHeap.nat_ble_to_heap_le_total⟩
remaining_costs_heuristic := PathNode.estimateMinimumCostToGoal