Theorema66_batch_order_open
A66: the program has executions delivering 1 then 2, and 2 then 1.
Statement
theorem a66_batch_order_open :
(∃ π hs, ExecL a66PE a66r .none a66K0 [] π hs ∧ outsOn "out" π.forgetLog = [.num 1, .num 2]) ∧
(∃ π hs, ExecL a66PE a66r .none a66K0 [] π hs ∧ outsOn "out" π.forgetLog = [.num 2, .num 1])Proof
⟨⟨_, _, run_sound (a66Ctx .listed) a66K0 [] 20 a66St0 [] (.nil _ _) rfl, a66_listed⟩,
⟨_, _, run_sound (a66Ctx .reversed) a66K0 [] 20 a66St0 [] (.nil _ _) rfl, a66_reversed⟩⟩Proved by a term, which Lean's kernel checks directly.
Theorems it uses
About ruling A66 of the book, where the implementations disagreed or were silent and the definition decides.
In StandardElmMech/Prog/Rulings.lean: The rulings A62, A72, A77, A79, A80 and A81 as theorems, and a66_batch_order_open: a program whose batch is delivered in either order.
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.