Theorema27_float_default
A27 (revised 2026-11-10; dynamic-core, "Defaulting of number"): the number of 2 ^ -1 is fixed by nothing, so it is Float, and both integer constants (2, and the 1 of the derived Basics.negate 1) are constants at Float.
Statement
theorem a27_float_default :
onOk a27FloatView (endToEnd Btest s_a27_float_default) = some (some [.intF 2, .intF 1])Proof
by
decide +kernelProved by decide +kernel: Lean's kernel itself runs the decision procedure, here the evaluator, and checks that the answer is true, so nothing outside the kernel is trusted.
About ruling A27 of the book, where the implementations disagreed or were silent and the definition decides.
In StandardElmMech/Stat/SpecExamples.lean: The rulings on small programs: A27 (a free number is Float, annotations bind), A87 (the default copy is made), A93 (vacuous variables), polymorphic recursion, copy names, abs$Int, exposing items, payload types, kinds of main, eight copies, renaming invariance, record-pattern copies.
A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.