From 8dbe99432db14b5f73585b9e34ecff6e61e76ca8 Mon Sep 17 00:00:00 2001
From: Andreas Grois <andi@grois.info>
Date: Sun, 13 Apr 2025 13:22:53 +0200
Subject: Lean 4.16

---
 Day17.lean | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'Day17.lean')

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
-- 
cgit v1.2.3

