Theorema88_huge_dec_float
A88: a JSON number beyond the floats decodes at Float as an infinity. [native] (the rounding of Float.ofScientific is the C library's)
Statement
theorem a88_huge_dec_float : (dec .float (.num (jnum 1 400))).isSome = true ∧
(match dec .float (.num (jnum 1 400)) with
| some (.sv (.float x)) => x.isInf
| _ => false) = trueProof
by
native_decideProved by native_decide: the decision procedure is compiled and run, and its answer is trusted. This is used where values are compared as they print, floats above all, which the kernel cannot compare.
About ruling A88 of the book, where the implementations disagreed or were silent and the definition decides.
In StandardElmMech/Eff/Properties.lean: APPLY of the effect values has one member; the rulings A74, A76, A88 and A92; canonical payload types, the decimality of a float's exact value, and that every value of a payload type has a canonical encoding (enc_total).
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.