Tests of subst_states (Logic/StateEq.lean).
Equations
- GaudisCrypt.StateEqTest.gA = GaudisCrypt.varLens (GaudisCrypt.VariableName.mk "GaudisCrypt.StateEqTest.gA" ℕ)
Instances For
Equations
- GaudisCrypt.StateEqTest.gB = GaudisCrypt.varLens (GaudisCrypt.VariableName.mk "GaudisCrypt.StateEqTest.gB" ℕ)
Instances For
Equations
- GaudisCrypt.StateEqTest.gC = GaudisCrypt.varLens (GaudisCrypt.VariableName.mk "GaudisCrypt.StateEqTest.gC" ℕ)
Instances For
proc main of module Init0 as a module: Module.proc Init0.main.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — Init0.main.apply_simp says exactly that.
Equations
Instances For
The body of proc main of module Init0, as a procedure of its own: it calls no module parameter, so it has no holes.
A hole stands for a call whose callee is not known here — a module parameter is supplied only when the module is applied — so the body is a ProcedureWithHoles, to be instantiated (see Init0.main.procedure.apply_simp) rather than run. Use Init0.main for this procedure as a module.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instantiating the holes of Init0.main.procedure with a tuple holeArgs of procedures: the body of proc main as written, with each hole call replaced by the matching holeArgs.lookup (HoleIndex.zero being the first hole the body declared). True by rfl.
Deliberately not @[simp], unlike the other apply_simp lemmas: its right-hand side is the whole body written out, so letting it fire on its own would turn any goal mentioning an instantiated procedure into that body. Inlining a procedure is a step to ask for by name (simp [Init0.main.procedure.apply_simp]).
The module declared by module Init0: the record of its procedures Init0.main.
The declaration has no parameter list, so no procedure of it can call one either and the module is not a function — it is the plain record itself, and there is no Init0.apply_simp to apply it with.
Instances For
@[simp]: Init0.main = Module.proc Init0.main.procedure — true by definition, proc main using no module parameter and so having no holes to fill.