The infinite random oracle (EasyCrypt proof/IRO.eca) — EC-fidelity port #
It maps values of type from to infinite sequences of values of type to, each sampled
uniformly and independently; it is lazy. Inputs not satisfying the validity predicate are mapped
to the empty list.
Translation (as the pilot SecureRO's):
- the theory's operators are the class
Params to from, whose types areoutParams (a clone is an instance), sovalid,dtoare written without types, as in EC; - the module variables
IRO.mp,IRO'.mp,IRO'.visiblearemodule_vars; - EC's module type
IROand moduleIROshare a name: the module type isIRO_T(exception E3); f's parameters(x, n)are one pair, the type a functionality'sfhas whereIROis one (BlockSponge'sf_in <- block list * int), which EC identifies with two parameters;module IRO : IRO's annotation is left out:IROhas more procedures (fill_in) thanIRO_T.
Declarations of the first port #
Definitions and plain lemmas of the first port of this file (2026-10/11) that the proofs below use; its program-logic proofs are gone.
@[simp]: reading the field init back off a module built from a record — IRO_T.init (IRO_T.mk r) = r.init.
It is what carries the right-hand side of an X.apply_simp (which is an IRO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.init.apply_simp.
The IsModule IRO_T instance: IRO_T is a module type, with representation IRO_T.typeRep.
It is what lets the name IRO_T stand where a module type is expected — in Module.Arr/Module.Prod (→ₘ/×ₘ), say — which the underlying Module IRO_T.typeRep would do on its own but IRO_T, a plain (non-reducible) def, would not.
Equations
- GaudisCrypt.SHA3.IRO.instIsModuleIRO_T «to» «from» = { moduleTypeRep := GaudisCrypt.SHA3.IRO.IRO_T.typeRep «to» «from», isModule := ⋯ }
The field f of a module of type IRO_T: the projection onto component 1 of the right-nested tuple IRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
IRO_T.f.mk_simp reads this field back off a module built by IRO_T.mk; IRO_T.f.utilities has the accessor as a module, and the lemmas about it.
Its parameters are named xn, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).
Equations
- GaudisCrypt.SHA3.IRO.IRO_T.f «to» «from» theModule✝ = GaudisCrypt.Module.snd' theModule✝
Instances For
Builds a module of type IRO_T from the record IRO_T.Structure of its fields, as a right-nested Module.pair'. @[reducible].
Inverse of IRO_T.structure (IRO_T.mk_destruct, IRO_T.destruct_mk); a single field of a module built this way is read back by the @[simp] lemmas IRO_T.init.mk_simp, IRO_T.f.mk_simp.
Equations
- GaudisCrypt.SHA3.IRO.IRO_T.mk «to» «from» theRecord✝ = GaudisCrypt.Module.pair' theRecord✝.init theRecord✝.f
Instances For
The ModuleTypeRep underlying IRO_T, the module type declared by moduletype IRO_T: the right-nested product of its 2 field types, in declaration order.
IRO_T is by definition Module IRO_T.typeRep.
Equations
Instances For
The record of a module's fields: IRO_T.structure m is IRO_T.Structure.mk applied to IRO_T.init, IRO_T.f of m.
Inverse of IRO_T.mk (IRO_T.mk_destruct, IRO_T.destruct_mk).
Equations
- GaudisCrypt.SHA3.IRO.IRO_T.structure «to» «from» theModule✝ = { init := GaudisCrypt.SHA3.IRO.IRO_T.init «to» «from» theModule✝, f := GaudisCrypt.SHA3.IRO.IRO_T.f «to» «from» theModule✝ }
Instances For
@[simp]: IRO_T.mk (IRO_T.structure m) = m — rebuilding a module from its own fields gives that module back.
The module type declared by moduletype IRO_T, with fields init, f: the type Module IRO_T.typeRep of modules that are a right-nested tuple of the field types.
Build one from a record of its fields with IRO_T.mk, read a single field off one with the accessors IRO_T.init, IRO_T.f, and get the whole record back with IRO_T.structure.
Equations
- GaudisCrypt.SHA3.IRO.IRO_T «to» «from» = GaudisCrypt.Module (GaudisCrypt.SHA3.IRO.IRO_T.typeRep «to» «from»)
Instances For
@[simp]: reading the field f back off a module built from a record — IRO_T.f (IRO_T.mk r) = r.f.
It is what carries the right-hand side of an X.apply_simp (which is an IRO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.f.apply_simp.
The field init of a module of type IRO_T: the projection onto component 0 of the right-nested tuple IRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
IRO_T.init.mk_simp reads this field back off a module built by IRO_T.mk; IRO_T.init.utilities has the accessor as a module, and the lemmas about it.
It takes no parameters (recorded in @[gaudiProcParamNames]).
Equations
- GaudisCrypt.SHA3.IRO.IRO_T.init «to» «from» theModule✝ = GaudisCrypt.Module.fst' theModule✝
Instances For
What is derivable about the accessor IRO_T.f, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
IRO_T.f.utilities.accessorModule : IRO_T →ₘ …— the accessor as a module, a projection being a module morphism;IRO_T.f.utilities.apply_simp—Module.app IRO_T.f.utilities.accessorModule m = IRO_T.f m: applying that module is the accessor;IRO_T.f.utilities.expression_eq— the same at the level of expressions:(IRO_T.f m).expression = (IRO_T.f.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The record of the fields of a module of type IRO_T: the fields init, f, one per moduletype field, each of that field's own module type.
IRO_T.mk turns such a record into a IRO_T, IRO_T.structure turns a IRO_T back into one.
Instances For
What is derivable about the accessor IRO_T.init, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
IRO_T.init.utilities.accessorModule : IRO_T →ₘ …— the accessor as a module, a projection being a module morphism;IRO_T.init.utilities.apply_simp—Module.app IRO_T.init.utilities.accessorModule m = IRO_T.init m: applying that module is the accessor;IRO_T.init.utilities.expression_eq— the same at the level of expressions:(IRO_T.init m).expression = (IRO_T.init.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: IRO_T.structure (IRO_T.mk r) = r — destructing a module built from a record gives that record back.
Instantiating the holes of IRO.init.procedure with a tuple holeArgs of procedures: the body of proc init 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 [IRO.init.procedure.apply_simp]).
@[simp]: IRO.init = Module.proc IRO.init.procedure — true by definition, proc init using no module parameter and so having no holes to fill.
The body of proc f of module IRO, 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 IRO.f.procedure.apply_simp) rather than run. Use IRO.f for this procedure as a module.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The body of proc fill_in of module IRO, 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 IRO.fill_in.procedure.apply_simp) rather than run. Use IRO.fill_in for this procedure as a module.
Equations
- One or more equations did not get rendered due to their size.
Instances For
proc f of module IRO as a module: Module.proc IRO.f.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — IRO.f.apply_simp says exactly that.
Equations
- GaudisCrypt.SHA3.IRO.IRO.f «to» «from» valid dto mp = GaudisCrypt.Module.proc (GaudisCrypt.SHA3.IRO.IRO.f.procedure «to» «from» valid dto mp)
Instances For
Instantiating the holes of IRO.f.procedure with a tuple holeArgs of procedures: the body of proc f 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 [IRO.f.procedure.apply_simp]).
proc init of module IRO as a module: Module.proc IRO.init.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — IRO.init.apply_simp says exactly that.
Equations
- GaudisCrypt.SHA3.IRO.IRO.init «to» «from» valid dto mp = GaudisCrypt.Module.proc (GaudisCrypt.SHA3.IRO.IRO.init.procedure «to» «from» valid dto mp)
Instances For
@[simp]: IRO.fill_in = Module.proc IRO.fill_in.procedure — true by definition, proc fill_in using no module parameter and so having no holes to fill.
The body of proc init of module IRO, 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 IRO.init.procedure.apply_simp) rather than run. Use IRO.init for this procedure as a module.
Equations
- GaudisCrypt.SHA3.IRO.IRO.init.procedure «to» «from» valid dto mp = proc () : Unit { mp <- GaudisCrypt.EC.FMap.empty; return () }
Instances For
Instantiating the holes of IRO.fill_in.procedure with a tuple holeArgs of procedures: the body of proc fill_in 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 [IRO.fill_in.procedure.apply_simp]).
@[simp]: IRO.f = Module.proc IRO.f.procedure — true by definition, proc f using no module parameter and so having no holes to fill.
The module declared by module IRO: the record of its procedures IRO.init, IRO.fill_in, IRO.f.
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 IRO.apply_simp to apply it with.
Equations
- One or more equations did not get rendered due to their size.
Instances For
proc fill_in of module IRO as a module: Module.proc IRO.fill_in.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — IRO.fill_in.apply_simp says exactly that.
Equations
- GaudisCrypt.SHA3.IRO.IRO.fill_in «to» «from» valid dto mp = GaudisCrypt.Module.proc (GaudisCrypt.SHA3.IRO.IRO.fill_in.procedure «to» «from» valid dto mp)
Instances For
EC's type to, from., op valid, op dto. The types are outParams: a clone of the
theory is an instance.
- valid : «from» → Bool
- dto : SubProbability «to»
Instances
The IsModule IRO_T instance: IRO_T is a module type, with representation IRO_T.typeRep.
It is what lets the name IRO_T stand where a module type is expected — in Module.Arr/Module.Prod (→ₘ/×ₘ), say — which the underlying Module IRO_T.typeRep would do on its own but IRO_T, a plain (non-reducible) def, would not.
Equations
- GaudisCrypt.SHA3.Pilot.IRO.instIsModuleIRO_T = { moduleTypeRep := GaudisCrypt.SHA3.Pilot.IRO.IRO_T.typeRep, isModule := ⋯ }
@[simp]: reading the field f back off a module built from a record — IRO_T.f (IRO_T.mk r) = r.f.
It is what carries the right-hand side of an X.apply_simp (which is an IRO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.f.apply_simp.
@[simp]: IRO_T.mk (IRO_T.structure m) = m — rebuilding a module from its own fields gives that module back.
The field init of a module of type IRO_T: the projection onto component 0 of the right-nested tuple IRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
IRO_T.init.mk_simp reads this field back off a module built by IRO_T.mk; IRO_T.init.utilities has the accessor as a module, and the lemmas about it.
It takes no parameters (recorded in @[gaudiProcParamNames]).
Equations
- theModule✝.init = GaudisCrypt.Module.fst' theModule✝
Instances For
The field f of a module of type IRO_T: the projection onto component 1 of the right-nested tuple IRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
IRO_T.f.mk_simp reads this field back off a module built by IRO_T.mk; IRO_T.f.utilities has the accessor as a module, and the lemmas about it.
Its parameters are named xn, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).
Equations
- theModule✝.f = GaudisCrypt.Module.snd' theModule✝
Instances For
Builds a module of type IRO_T from the record IRO_T.Structure of its fields, as a right-nested Module.pair'. @[reducible].
Inverse of IRO_T.structure (IRO_T.mk_destruct, IRO_T.destruct_mk); a single field of a module built this way is read back by the @[simp] lemmas IRO_T.init.mk_simp, IRO_T.f.mk_simp.
Equations
- GaudisCrypt.SHA3.Pilot.IRO.IRO_T.mk theRecord✝ = GaudisCrypt.Module.pair' theRecord✝.init theRecord✝.f
Instances For
The record of a module's fields: IRO_T.structure m is IRO_T.Structure.mk applied to IRO_T.init, IRO_T.f of m.
Inverse of IRO_T.mk (IRO_T.mk_destruct, IRO_T.destruct_mk).
Instances For
The module type declared by moduletype IRO_T, with fields init, f: the type Module IRO_T.typeRep of modules that are a right-nested tuple of the field types.
Build one from a record of its fields with IRO_T.mk, read a single field off one with the accessors IRO_T.init, IRO_T.f, and get the whole record back with IRO_T.structure.
Equations
Instances For
@[simp]: IRO_T.structure (IRO_T.mk r) = r — destructing a module built from a record gives that record back.
The ModuleTypeRep underlying IRO_T, the module type declared by moduletype IRO_T: the right-nested product of its 2 field types, in declaration order.
IRO_T is by definition Module IRO_T.typeRep.
Equations
Instances For
What is derivable about the accessor IRO_T.f, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
IRO_T.f.utilities.accessorModule : IRO_T →ₘ …— the accessor as a module, a projection being a module morphism;IRO_T.f.utilities.apply_simp—Module.app IRO_T.f.utilities.accessorModule m = IRO_T.f m: applying that module is the accessor;IRO_T.f.utilities.expression_eq— the same at the level of expressions:(IRO_T.f m).expression = (IRO_T.f.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The record of the fields of a module of type IRO_T: the fields init, f, one per moduletype field, each of that field's own module type.
IRO_T.mk turns such a record into a IRO_T, IRO_T.structure turns a IRO_T back into one.
Instances For
What is derivable about the accessor IRO_T.init, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
IRO_T.init.utilities.accessorModule : IRO_T →ₘ …— the accessor as a module, a projection being a module morphism;IRO_T.init.utilities.apply_simp—Module.app IRO_T.init.utilities.accessorModule m = IRO_T.init m: applying that module is the accessor;IRO_T.init.utilities.expression_eq— the same at the level of expressions:(IRO_T.init m).expression = (IRO_T.init.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: reading the field init back off a module built from a record — IRO_T.init (IRO_T.mk r) = r.init.
It is what carries the right-hand side of an X.apply_simp (which is an IRO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.init.apply_simp.
EC's prefix_closed_equiv m (smt()).
The official version #
Equations
- GaudisCrypt.SHA3.Pilot.IRO.IRO.mp = GaudisCrypt.varLens (GaudisCrypt.VariableName.mk "GaudisCrypt.SHA3.Pilot.IRO.IRO.mp" (GaudisCrypt.EC.FMap («from» × ℤ) «to»))
Instances For
The body of proc init of module IRO, 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 IRO.init.procedure.apply_simp) rather than run. Use IRO.init for this procedure as a module.
Equations
- GaudisCrypt.SHA3.Pilot.IRO.IRO.init.procedure = proc () : Unit { GaudisCrypt.SHA3.Pilot.IRO.IRO.mp <- GaudisCrypt.EC.FMap.empty; return () }
Instances For
@[simp]: IRO.init = Module.proc IRO.init.procedure — true by definition, proc init using no module parameter and so having no holes to fill.
The module declared by module IRO: the record of its procedures IRO.init, IRO.fill_in, IRO.f.
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 IRO.apply_simp to apply it with.
Equations
Instances For
proc fill_in of module IRO as a module: Module.proc IRO.fill_in.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — IRO.fill_in.apply_simp says exactly that.
Equations
Instances For
@[simp]: IRO.fill_in = Module.proc IRO.fill_in.procedure — true by definition, proc fill_in using no module parameter and so having no holes to fill.
Instantiating the holes of IRO.init.procedure with a tuple holeArgs of procedures: the body of proc init 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 [IRO.init.procedure.apply_simp]).
@[simp]: IRO.f = Module.proc IRO.f.procedure — true by definition, proc f using no module parameter and so having no holes to fill.
proc f of module IRO as a module: Module.proc IRO.f.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — IRO.f.apply_simp says exactly that.
Equations
Instances For
The body of proc f of module IRO, 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 IRO.f.procedure.apply_simp) rather than run. Use IRO.f 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 IRO.f.procedure with a tuple holeArgs of procedures: the body of proc f 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 [IRO.f.procedure.apply_simp]).
Instantiating the holes of IRO.fill_in.procedure with a tuple holeArgs of procedures: the body of proc fill_in 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 [IRO.fill_in.procedure.apply_simp]).
proc init of module IRO as a module: Module.proc IRO.init.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — IRO.init.apply_simp says exactly that.
Equations
Instances For
The body of proc fill_in of module IRO, 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 IRO.fill_in.procedure.apply_simp) rather than run. Use IRO.fill_in for this procedure as a module.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The version for the AbsorbToBlocks.ec attempt #
Equations
- GaudisCrypt.SHA3.Pilot.IRO.IRO'.mp = GaudisCrypt.varLens (GaudisCrypt.VariableName.mk "GaudisCrypt.SHA3.Pilot.IRO.IRO'.mp" (GaudisCrypt.EC.FMap («from» × ℤ) «to»))
Instances For
Equations
- GaudisCrypt.SHA3.Pilot.IRO.IRO'.visible = GaudisCrypt.varLens (GaudisCrypt.VariableName.mk "GaudisCrypt.SHA3.Pilot.IRO.IRO'.visible" (GaudisCrypt.EC.FSet («from» × ℤ)))
Instances For
proc f_lazy of module IRO' as a module: Module.proc IRO'.f_lazy.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — IRO'.f_lazy.apply_simp says exactly that.
Equations
Instances For
Instantiating the holes of IRO'.resample_invisible.procedure with a tuple holeArgs of procedures: the body of proc resample_invisible 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 [IRO'.resample_invisible.procedure.apply_simp]).
Instantiating the holes of IRO'.init.procedure with a tuple holeArgs of procedures: the body of proc init 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 [IRO'.init.procedure.apply_simp]).
@[simp]: IRO'.resample_invisible = Module.proc IRO'.resample_invisible.procedure — true by definition, proc resample_invisible using no module parameter and so having no holes to fill.
The body of proc f of module IRO', 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 IRO'.f.procedure.apply_simp) rather than run. Use IRO'.f 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 IRO'.f_lazy.procedure with a tuple holeArgs of procedures: the body of proc f_lazy 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 [IRO'.f_lazy.procedure.apply_simp]).
Instantiating the holes of IRO'.fill_in.procedure with a tuple holeArgs of procedures: the body of proc fill_in 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 [IRO'.fill_in.procedure.apply_simp]).
Instantiating the holes of IRO'.f.procedure with a tuple holeArgs of procedures: the body of proc f 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 [IRO'.f.procedure.apply_simp]).
proc f of module IRO' as a module: Module.proc IRO'.f.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — IRO'.f.apply_simp says exactly that.
Equations
Instances For
proc resample_invisible of module IRO' as a module: Module.proc IRO'.resample_invisible.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — IRO'.resample_invisible.apply_simp says exactly that.
Equations
Instances For
The body of proc f_lazy of module IRO', 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 IRO'.f_lazy.procedure.apply_simp) rather than run. Use IRO'.f_lazy for this procedure as a module.
Equations
- One or more equations did not get rendered due to their size.
Instances For
proc init of module IRO' as a module: Module.proc IRO'.init.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — IRO'.init.apply_simp says exactly that.
Equations
Instances For
The body of proc resample_invisible of module IRO', 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 IRO'.resample_invisible.procedure.apply_simp) rather than run. Use IRO'.resample_invisible for this procedure as a module.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: IRO'.init = Module.proc IRO'.init.procedure — true by definition, proc init using no module parameter and so having no holes to fill.
@[simp]: IRO'.f = Module.proc IRO'.f.procedure — true by definition, proc f using no module parameter and so having no holes to fill.
The module declared by module IRO': the record of its procedures IRO'.resample_invisible, IRO'.init, IRO'.fill_in, IRO'.f, IRO'.f_lazy.
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 IRO'.apply_simp to apply it with.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The body of proc fill_in of module IRO', 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 IRO'.fill_in.procedure.apply_simp) rather than run. Use IRO'.fill_in for this procedure as a module.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The body of proc init of module IRO', 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 IRO'.init.procedure.apply_simp) rather than run. Use IRO'.init for this procedure as a module.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: IRO'.fill_in = Module.proc IRO'.fill_in.procedure — true by definition, proc fill_in using no module parameter and so having no holes to fill.
proc fill_in of module IRO' as a module: Module.proc IRO'.fill_in.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — IRO'.fill_in.apply_simp says exactly that.
Equations
Instances For
@[simp]: IRO'.f_lazy = Module.proc IRO'.f_lazy.procedure — true by definition, proc f_lazy using no module parameter and so having no holes to fill.