Theorema93_mutual
A93 (option (b), with A27's Float default; dynamic-core, "Every binding of a declaration quantifies all the variables of class number of the declaration"): f's type does not mention the number variable b of g's y, but f's scheme quantifies it; at f 3 nothing fixes it, so it is Float, as are n's and the result's, which f 3 leaves free. There is no copy of the group at b = Int: f and g are emitted once, as their default copies.
Statement
theorem a93_mutual : onOk a93View (endToEnd Btest s_a93_mutual) = some a93ExpectedProof
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 rulings A93, 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.