summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Day9.lean2
1 files changed, 1 insertions, 1 deletions
diff --git a/Day9.lean b/Day9.lean
index 24cd19d..0d28d27 100644
--- a/Day9.lean
+++ b/Day9.lean
@@ -30,7 +30,7 @@ private def extrapolate : List Int → Int
if a == 0 && as.all (· == 0) then
0
else
- have : List.length (Day9.differences (a :: as)) < Nat.succ (List.length as) := by
+ have : (differences (a :: as)).length < as.length + 1 := by
simp_arith[differences]
induction (as) <;> simp_arith[differences]
case cons b bs hb => rw[←differences_length_independent_arg]