EasyCrypt's programmable random oracles (theories/crypto/PROM.ec), FullRO #
The abstract theory FullRO's types in_t, out_t, d_in_t, d_out_t and its operator
dout are section variables, so a clone is an application. Only what ported developments use
is here: the module types, MainD, the oracles RO, LRO, FRO and FullEager.RRO, and the
statement of FullEager.RO_LRO_D.
Translation notes (see notes/SHA3/README.md):
- EasyCrypt's module type and module
ROshare a name, as doFROandFRO; the module types areRO_TandFRO_T(exception E3 of the SHA-3 port). module RO : RO, ROmaphas both types: it is declared atROmap(the larger), andRO.asROis itsRO_Tview.proc init = RO.init(a procedure alias) is the same procedure:LROandRROare assembled withRO_T.mk/FRO_T.mkfrom the procedures they share.- The module variables
RO.m,FRO.mare parameters: each clone declares its ownglobal_vars (F.RO.m,F2.RO.m…) and passes them.
Equations
fv \is f: the flag of a (bound) entry.
Equations
- GaudisCrypt.EC.PROM.is_ fv f = ((GaudisCrypt.EC.oget fv).2 = f)
Instances For
What is derivable about the accessor RO_T.init, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
RO_T.init.utilities.accessorModule : RO_T →ₘ …— the accessor as a module, a projection being a module morphism;RO_T.init.utilities.apply_simp—Module.app RO_T.init.utilities.accessorModule m = RO_T.init m: applying that module is the accessor;RO_T.init.utilities.expression_eq— the same at the level of expressions:(RO_T.init m).expression = (RO_T.init.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The module type declared by moduletype RO_T, with fields init, get, set, rem, sample: the type Module RO_T.typeRep of modules that are a right-nested tuple of the field types.
Build one from a record of its fields with RO_T.mk, read a single field off one with the accessors RO_T.init, RO_T.get, RO_T.set, RO_T.rem, RO_T.sample, and get the whole record back with RO_T.structure.
Equations
- GaudisCrypt.EC.PROM.FullRO.RO_T in_t out_t = GaudisCrypt.Module (GaudisCrypt.EC.PROM.FullRO.RO_T.typeRep in_t out_t)
Instances For
@[simp]: reading the field set back off a module built from a record — RO_T.set (RO_T.mk r) = r.set.
It is what carries the right-hand side of an X.apply_simp (which is an RO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.set.apply_simp.
The field set of a module of type RO_T: the projection onto component 2 of the right-nested tuple RO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
RO_T.set.mk_simp reads this field back off a module built by RO_T.mk; RO_T.set.utilities has the accessor as a module, and the lemmas about it.
Its parameters are named x, y, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).
Equations
- GaudisCrypt.EC.PROM.FullRO.RO_T.set in_t out_t theModule✝ = (GaudisCrypt.Module.snd' theModule✝).snd'.fst'
Instances For
What is derivable about the accessor RO_T.set, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
RO_T.set.utilities.accessorModule : RO_T →ₘ …— the accessor as a module, a projection being a module morphism;RO_T.set.utilities.apply_simp—Module.app RO_T.set.utilities.accessorModule m = RO_T.set m: applying that module is the accessor;RO_T.set.utilities.expression_eq— the same at the level of expressions:(RO_T.set m).expression = (RO_T.set.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: reading the field get back off a module built from a record — RO_T.get (RO_T.mk r) = r.get.
It is what carries the right-hand side of an X.apply_simp (which is an RO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.get.apply_simp.
@[simp]: RO_T.mk (RO_T.structure m) = m — rebuilding a module from its own fields gives that module back.
The ModuleTypeRep underlying RO_T, the module type declared by moduletype RO_T: the right-nested product of its 5 field types, in declaration order.
RO_T is by definition Module RO_T.typeRep.
Equations
- One or more equations did not get rendered due to their size.
Instances For
What is derivable about the accessor RO_T.sample, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
RO_T.sample.utilities.accessorModule : RO_T →ₘ …— the accessor as a module, a projection being a module morphism;RO_T.sample.utilities.apply_simp—Module.app RO_T.sample.utilities.accessorModule m = RO_T.sample m: applying that module is the accessor;RO_T.sample.utilities.expression_eq— the same at the level of expressions:(RO_T.sample m).expression = (RO_T.sample.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The field rem of a module of type RO_T: the projection onto component 3 of the right-nested tuple RO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
RO_T.rem.mk_simp reads this field back off a module built by RO_T.mk; RO_T.rem.utilities has the accessor as a module, and the lemmas about it.
Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).
Equations
- GaudisCrypt.EC.PROM.FullRO.RO_T.rem in_t out_t theModule✝ = (GaudisCrypt.Module.snd' theModule✝).snd'.snd'.fst'
Instances For
What is derivable about the accessor RO_T.get, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
RO_T.get.utilities.accessorModule : RO_T →ₘ …— the accessor as a module, a projection being a module morphism;RO_T.get.utilities.apply_simp—Module.app RO_T.get.utilities.accessorModule m = RO_T.get m: applying that module is the accessor;RO_T.get.utilities.expression_eq— the same at the level of expressions:(RO_T.get m).expression = (RO_T.get.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 — RO_T.init (RO_T.mk r) = r.init.
It is what carries the right-hand side of an X.apply_simp (which is an RO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.init.apply_simp.
The field sample of a module of type RO_T: the projection onto component 4 of the right-nested tuple RO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
RO_T.sample.mk_simp reads this field back off a module built by RO_T.mk; RO_T.sample.utilities has the accessor as a module, and the lemmas about it.
Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).
Equations
- GaudisCrypt.EC.PROM.FullRO.RO_T.sample in_t out_t theModule✝ = (GaudisCrypt.Module.snd' theModule✝).snd'.snd'.snd'
Instances For
@[simp]: reading the field rem back off a module built from a record — RO_T.rem (RO_T.mk r) = r.rem.
It is what carries the right-hand side of an X.apply_simp (which is an RO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.rem.apply_simp.
The field init of a module of type RO_T: the projection onto component 0 of the right-nested tuple RO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
RO_T.init.mk_simp reads this field back off a module built by RO_T.mk; RO_T.init.utilities has the accessor as a module, and the lemmas about it.
It takes no parameters (recorded in @[gaudiProcParamNames]).
Equations
- GaudisCrypt.EC.PROM.FullRO.RO_T.init in_t out_t theModule✝ = GaudisCrypt.Module.fst' theModule✝
Instances For
The record of a module's fields: RO_T.structure m is RO_T.Structure.mk applied to RO_T.init, RO_T.get, RO_T.set, RO_T.rem, RO_T.sample of m.
Inverse of RO_T.mk (RO_T.mk_destruct, RO_T.destruct_mk).
Equations
- One or more equations did not get rendered due to their size.
Instances For
What is derivable about the accessor RO_T.rem, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
RO_T.rem.utilities.accessorModule : RO_T →ₘ …— the accessor as a module, a projection being a module morphism;RO_T.rem.utilities.apply_simp—Module.app RO_T.rem.utilities.accessorModule m = RO_T.rem m: applying that module is the accessor;RO_T.rem.utilities.expression_eq— the same at the level of expressions:(RO_T.rem m).expression = (RO_T.rem.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Builds a module of type RO_T from the record RO_T.Structure of its fields, as a right-nested Module.pair'. @[reducible].
Inverse of RO_T.structure (RO_T.mk_destruct, RO_T.destruct_mk); a single field of a module built this way is read back by the @[simp] lemmas RO_T.init.mk_simp, RO_T.get.mk_simp, RO_T.set.mk_simp, RO_T.rem.mk_simp, RO_T.sample.mk_simp.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: reading the field sample back off a module built from a record — RO_T.sample (RO_T.mk r) = r.sample.
It is what carries the right-hand side of an X.apply_simp (which is an RO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.sample.apply_simp.
@[simp]: RO_T.structure (RO_T.mk r) = r — destructing a module built from a record gives that record back.
The field get of a module of type RO_T: the projection onto component 1 of the right-nested tuple RO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
RO_T.get.mk_simp reads this field back off a module built by RO_T.mk; RO_T.get.utilities has the accessor as a module, and the lemmas about it.
Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).
Equations
- GaudisCrypt.EC.PROM.FullRO.RO_T.get in_t out_t theModule✝ = (GaudisCrypt.Module.snd' theModule✝).fst'
Instances For
The IsModule RO_T instance: RO_T is a module type, with representation RO_T.typeRep.
It is what lets the name RO_T stand where a module type is expected — in Module.Arr/Module.Prod (→ₘ/×ₘ), say — which the underlying Module RO_T.typeRep would do on its own but RO_T, a plain (non-reducible) def, would not.
Equations
- GaudisCrypt.EC.PROM.FullRO.instIsModuleRO_T in_t out_t = { moduleTypeRep := GaudisCrypt.EC.PROM.FullRO.RO_T.typeRep in_t out_t, isModule := ⋯ }
The record of a module's fields: ROmap.structure m is ROmap.Structure.mk applied to ROmap.init, ROmap.get, ROmap.set, ROmap.rem, ROmap.sample, ROmap.restrK of m.
Inverse of ROmap.mk (ROmap.mk_destruct, ROmap.destruct_mk).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The field restrK of a module of type ROmap: the projection onto component 5 of the right-nested tuple ROmap.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
ROmap.restrK.mk_simp reads this field back off a module built by ROmap.mk; ROmap.restrK.utilities has the accessor as a module, and the lemmas about it.
It takes no parameters (recorded in @[gaudiProcParamNames]).
Equations
- GaudisCrypt.EC.PROM.FullRO.ROmap.restrK in_t out_t theModule✝ = (GaudisCrypt.Module.snd' theModule✝).snd'.snd'.snd'.snd'
Instances For
What is derivable about the accessor ROmap.init, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
ROmap.init.utilities.accessorModule : ROmap →ₘ …— the accessor as a module, a projection being a module morphism;ROmap.init.utilities.apply_simp—Module.app ROmap.init.utilities.accessorModule m = ROmap.init m: applying that module is the accessor;ROmap.init.utilities.expression_eq— the same at the level of expressions:(ROmap.init m).expression = (ROmap.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 — ROmap.init (ROmap.mk r) = r.init.
It is what carries the right-hand side of an X.apply_simp (which is an ROmap.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.init.apply_simp.
The field rem of a module of type ROmap: the projection onto component 3 of the right-nested tuple ROmap.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
ROmap.rem.mk_simp reads this field back off a module built by ROmap.mk; ROmap.rem.utilities has the accessor as a module, and the lemmas about it.
Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).
Equations
- GaudisCrypt.EC.PROM.FullRO.ROmap.rem in_t out_t theModule✝ = (GaudisCrypt.Module.snd' theModule✝).snd'.snd'.fst'
Instances For
Builds a module of type ROmap from the record ROmap.Structure of its fields, as a right-nested Module.pair'. @[reducible].
Inverse of ROmap.structure (ROmap.mk_destruct, ROmap.destruct_mk); a single field of a module built this way is read back by the @[simp] lemmas ROmap.init.mk_simp, ROmap.get.mk_simp, ROmap.set.mk_simp, ROmap.rem.mk_simp, ROmap.sample.mk_simp, ROmap.restrK.mk_simp.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: reading the field set back off a module built from a record — ROmap.set (ROmap.mk r) = r.set.
It is what carries the right-hand side of an X.apply_simp (which is an ROmap.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.set.apply_simp.
The field init of a module of type ROmap: the projection onto component 0 of the right-nested tuple ROmap.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
ROmap.init.mk_simp reads this field back off a module built by ROmap.mk; ROmap.init.utilities has the accessor as a module, and the lemmas about it.
It takes no parameters (recorded in @[gaudiProcParamNames]).
Equations
- GaudisCrypt.EC.PROM.FullRO.ROmap.init in_t out_t theModule✝ = GaudisCrypt.Module.fst' theModule✝
Instances For
What is derivable about the accessor ROmap.get, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
ROmap.get.utilities.accessorModule : ROmap →ₘ …— the accessor as a module, a projection being a module morphism;ROmap.get.utilities.apply_simp—Module.app ROmap.get.utilities.accessorModule m = ROmap.get m: applying that module is the accessor;ROmap.get.utilities.expression_eq— the same at the level of expressions:(ROmap.get m).expression = (ROmap.get.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: ROmap.structure (ROmap.mk r) = r — destructing a module built from a record gives that record back.
@[simp]: reading the field sample back off a module built from a record — ROmap.sample (ROmap.mk r) = r.sample.
It is what carries the right-hand side of an X.apply_simp (which is an ROmap.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.sample.apply_simp.
@[simp]: reading the field restrK back off a module built from a record — ROmap.restrK (ROmap.mk r) = r.restrK.
It is what carries the right-hand side of an X.apply_simp (which is an ROmap.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.restrK.apply_simp.
The ModuleTypeRep underlying ROmap, the module type declared by moduletype ROmap: the right-nested product of its 6 field types, in declaration order.
ROmap is by definition Module ROmap.typeRep.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: reading the field get back off a module built from a record — ROmap.get (ROmap.mk r) = r.get.
It is what carries the right-hand side of an X.apply_simp (which is an ROmap.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.get.apply_simp.
The field get of a module of type ROmap: the projection onto component 1 of the right-nested tuple ROmap.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
ROmap.get.mk_simp reads this field back off a module built by ROmap.mk; ROmap.get.utilities has the accessor as a module, and the lemmas about it.
Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).
Equations
- GaudisCrypt.EC.PROM.FullRO.ROmap.get in_t out_t theModule✝ = (GaudisCrypt.Module.snd' theModule✝).fst'
Instances For
What is derivable about the accessor ROmap.sample, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
ROmap.sample.utilities.accessorModule : ROmap →ₘ …— the accessor as a module, a projection being a module morphism;ROmap.sample.utilities.apply_simp—Module.app ROmap.sample.utilities.accessorModule m = ROmap.sample m: applying that module is the accessor;ROmap.sample.utilities.expression_eq— the same at the level of expressions:(ROmap.sample m).expression = (ROmap.sample.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The IsModule ROmap instance: ROmap is a module type, with representation ROmap.typeRep.
It is what lets the name ROmap stand where a module type is expected — in Module.Arr/Module.Prod (→ₘ/×ₘ), say — which the underlying Module ROmap.typeRep would do on its own but ROmap, a plain (non-reducible) def, would not.
Equations
- GaudisCrypt.EC.PROM.FullRO.instIsModuleROmap in_t out_t = { moduleTypeRep := GaudisCrypt.EC.PROM.FullRO.ROmap.typeRep in_t out_t, isModule := ⋯ }
The field sample of a module of type ROmap: the projection onto component 4 of the right-nested tuple ROmap.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
ROmap.sample.mk_simp reads this field back off a module built by ROmap.mk; ROmap.sample.utilities has the accessor as a module, and the lemmas about it.
Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).
Equations
- GaudisCrypt.EC.PROM.FullRO.ROmap.sample in_t out_t theModule✝ = (GaudisCrypt.Module.snd' theModule✝).snd'.snd'.snd'.fst'
Instances For
The field set of a module of type ROmap: the projection onto component 2 of the right-nested tuple ROmap.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
ROmap.set.mk_simp reads this field back off a module built by ROmap.mk; ROmap.set.utilities has the accessor as a module, and the lemmas about it.
Its parameters are named x, y, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).
Equations
- GaudisCrypt.EC.PROM.FullRO.ROmap.set in_t out_t theModule✝ = (GaudisCrypt.Module.snd' theModule✝).snd'.fst'
Instances For
What is derivable about the accessor ROmap.set, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
ROmap.set.utilities.accessorModule : ROmap →ₘ …— the accessor as a module, a projection being a module morphism;ROmap.set.utilities.apply_simp—Module.app ROmap.set.utilities.accessorModule m = ROmap.set m: applying that module is the accessor;ROmap.set.utilities.expression_eq— the same at the level of expressions:(ROmap.set m).expression = (ROmap.set.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: ROmap.mk (ROmap.structure m) = m — rebuilding a module from its own fields gives that module back.
What is derivable about the accessor ROmap.restrK, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
ROmap.restrK.utilities.accessorModule : ROmap →ₘ …— the accessor as a module, a projection being a module morphism;ROmap.restrK.utilities.apply_simp—Module.app ROmap.restrK.utilities.accessorModule m = ROmap.restrK m: applying that module is the accessor;ROmap.restrK.utilities.expression_eq— the same at the level of expressions:(ROmap.restrK m).expression = (ROmap.restrK.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
What is derivable about the accessor ROmap.rem, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
ROmap.rem.utilities.accessorModule : ROmap →ₘ …— the accessor as a module, a projection being a module morphism;ROmap.rem.utilities.apply_simp—Module.app ROmap.rem.utilities.accessorModule m = ROmap.rem m: applying that module is the accessor;ROmap.rem.utilities.expression_eq— the same at the level of expressions:(ROmap.rem m).expression = (ROmap.rem.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: reading the field rem back off a module built from a record — ROmap.rem (ROmap.mk r) = r.rem.
It is what carries the right-hand side of an X.apply_simp (which is an ROmap.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.rem.apply_simp.
The module type declared by moduletype ROmap, with fields init, get, set, rem, sample, restrK: the type Module ROmap.typeRep of modules that are a right-nested tuple of the field types.
Build one from a record of its fields with ROmap.mk, read a single field off one with the accessors ROmap.init, ROmap.get, ROmap.set, ROmap.rem, ROmap.sample, ROmap.restrK, and get the whole record back with ROmap.structure.
Equations
- GaudisCrypt.EC.PROM.FullRO.ROmap in_t out_t = GaudisCrypt.Module (GaudisCrypt.EC.PROM.FullRO.ROmap.typeRep in_t out_t)
Instances For
What is derivable about the accessor FRO_T.rem, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
FRO_T.rem.utilities.accessorModule : FRO_T →ₘ …— the accessor as a module, a projection being a module morphism;FRO_T.rem.utilities.apply_simp—Module.app FRO_T.rem.utilities.accessorModule m = FRO_T.rem m: applying that module is the accessor;FRO_T.rem.utilities.expression_eq— the same at the level of expressions:(FRO_T.rem m).expression = (FRO_T.rem.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
What is derivable about the accessor FRO_T.allKnown, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
FRO_T.allKnown.utilities.accessorModule : FRO_T →ₘ …— the accessor as a module, a projection being a module morphism;FRO_T.allKnown.utilities.apply_simp—Module.app FRO_T.allKnown.utilities.accessorModule m = FRO_T.allKnown m: applying that module is the accessor;FRO_T.allKnown.utilities.expression_eq— the same at the level of expressions:(FRO_T.allKnown m).expression = (FRO_T.allKnown.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: reading the field rem back off a module built from a record — FRO_T.rem (FRO_T.mk r) = r.rem.
It is what carries the right-hand side of an X.apply_simp (which is an FRO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.rem.apply_simp.
The field rem of a module of type FRO_T: the projection onto component 3 of the right-nested tuple FRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
FRO_T.rem.mk_simp reads this field back off a module built by FRO_T.mk; FRO_T.rem.utilities has the accessor as a module, and the lemmas about it.
Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO_T.rem in_t out_t theModule✝ = (GaudisCrypt.Module.snd' theModule✝).snd'.snd'.fst'
Instances For
What is derivable about the accessor FRO_T.queried, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
FRO_T.queried.utilities.accessorModule : FRO_T →ₘ …— the accessor as a module, a projection being a module morphism;FRO_T.queried.utilities.apply_simp—Module.app FRO_T.queried.utilities.accessorModule m = FRO_T.queried m: applying that module is the accessor;FRO_T.queried.utilities.expression_eq— the same at the level of expressions:(FRO_T.queried m).expression = (FRO_T.queried.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: reading the field get back off a module built from a record — FRO_T.get (FRO_T.mk r) = r.get.
It is what carries the right-hand side of an X.apply_simp (which is an FRO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.get.apply_simp.
The field allKnown of a module of type FRO_T: the projection onto component 6 of the right-nested tuple FRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
FRO_T.allKnown.mk_simp reads this field back off a module built by FRO_T.mk; FRO_T.allKnown.utilities has the accessor as a module, and the lemmas about it.
It takes no parameters (recorded in @[gaudiProcParamNames]).
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO_T.allKnown in_t out_t theModule✝ = (GaudisCrypt.Module.snd' theModule✝).snd'.snd'.snd'.snd'.snd'
Instances For
The module type declared by moduletype FRO_T, with fields init, get, set, rem, sample, queried, allKnown: the type Module FRO_T.typeRep of modules that are a right-nested tuple of the field types.
Build one from a record of its fields with FRO_T.mk, read a single field off one with the accessors FRO_T.init, FRO_T.get, FRO_T.set, FRO_T.rem, FRO_T.sample, FRO_T.queried, FRO_T.allKnown, and get the whole record back with FRO_T.structure.
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO_T in_t out_t = GaudisCrypt.Module (GaudisCrypt.EC.PROM.FullRO.FRO_T.typeRep in_t out_t)
Instances For
The IsModule FRO_T instance: FRO_T is a module type, with representation FRO_T.typeRep.
It is what lets the name FRO_T stand where a module type is expected — in Module.Arr/Module.Prod (→ₘ/×ₘ), say — which the underlying Module FRO_T.typeRep would do on its own but FRO_T, a plain (non-reducible) def, would not.
Equations
- GaudisCrypt.EC.PROM.FullRO.instIsModuleFRO_T in_t out_t = { moduleTypeRep := GaudisCrypt.EC.PROM.FullRO.FRO_T.typeRep in_t out_t, isModule := ⋯ }
Builds a module of type FRO_T from the record FRO_T.Structure of its fields, as a right-nested Module.pair'. @[reducible].
Inverse of FRO_T.structure (FRO_T.mk_destruct, FRO_T.destruct_mk); a single field of a module built this way is read back by the @[simp] lemmas FRO_T.init.mk_simp, FRO_T.get.mk_simp, FRO_T.set.mk_simp, FRO_T.rem.mk_simp, FRO_T.sample.mk_simp, FRO_T.queried.mk_simp, FRO_T.allKnown.mk_simp.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: reading the field allKnown back off a module built from a record — FRO_T.allKnown (FRO_T.mk r) = r.allKnown.
It is what carries the right-hand side of an X.apply_simp (which is an FRO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.allKnown.apply_simp.
@[simp]: FRO_T.structure (FRO_T.mk r) = r — destructing a module built from a record gives that record back.
What is derivable about the accessor FRO_T.sample, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
FRO_T.sample.utilities.accessorModule : FRO_T →ₘ …— the accessor as a module, a projection being a module morphism;FRO_T.sample.utilities.apply_simp—Module.app FRO_T.sample.utilities.accessorModule m = FRO_T.sample m: applying that module is the accessor;FRO_T.sample.utilities.expression_eq— the same at the level of expressions:(FRO_T.sample m).expression = (FRO_T.sample.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
What is derivable about the accessor FRO_T.set, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
FRO_T.set.utilities.accessorModule : FRO_T →ₘ …— the accessor as a module, a projection being a module morphism;FRO_T.set.utilities.apply_simp—Module.app FRO_T.set.utilities.accessorModule m = FRO_T.set m: applying that module is the accessor;FRO_T.set.utilities.expression_eq— the same at the level of expressions:(FRO_T.set m).expression = (FRO_T.set.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The field sample of a module of type FRO_T: the projection onto component 4 of the right-nested tuple FRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
FRO_T.sample.mk_simp reads this field back off a module built by FRO_T.mk; FRO_T.sample.utilities has the accessor as a module, and the lemmas about it.
Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO_T.sample in_t out_t theModule✝ = (GaudisCrypt.Module.snd' theModule✝).snd'.snd'.snd'.fst'
Instances For
@[simp]: reading the field sample back off a module built from a record — FRO_T.sample (FRO_T.mk r) = r.sample.
It is what carries the right-hand side of an X.apply_simp (which is an FRO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.sample.apply_simp.
The record of a module's fields: FRO_T.structure m is FRO_T.Structure.mk applied to FRO_T.init, FRO_T.get, FRO_T.set, FRO_T.rem, FRO_T.sample, FRO_T.queried, FRO_T.allKnown of m.
Inverse of FRO_T.mk (FRO_T.mk_destruct, FRO_T.destruct_mk).
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: reading the field queried back off a module built from a record — FRO_T.queried (FRO_T.mk r) = r.queried.
It is what carries the right-hand side of an X.apply_simp (which is an FRO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.queried.apply_simp.
The field init of a module of type FRO_T: the projection onto component 0 of the right-nested tuple FRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
FRO_T.init.mk_simp reads this field back off a module built by FRO_T.mk; FRO_T.init.utilities has the accessor as a module, and the lemmas about it.
It takes no parameters (recorded in @[gaudiProcParamNames]).
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO_T.init in_t out_t theModule✝ = GaudisCrypt.Module.fst' theModule✝
Instances For
@[simp]: FRO_T.mk (FRO_T.structure m) = m — rebuilding a module from its own fields gives that module back.
What is derivable about the accessor FRO_T.get, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
FRO_T.get.utilities.accessorModule : FRO_T →ₘ …— the accessor as a module, a projection being a module morphism;FRO_T.get.utilities.apply_simp—Module.app FRO_T.get.utilities.accessorModule m = FRO_T.get m: applying that module is the accessor;FRO_T.get.utilities.expression_eq— the same at the level of expressions:(FRO_T.get m).expression = (FRO_T.get.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The field set of a module of type FRO_T: the projection onto component 2 of the right-nested tuple FRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
FRO_T.set.mk_simp reads this field back off a module built by FRO_T.mk; FRO_T.set.utilities has the accessor as a module, and the lemmas about it.
Its parameters are named x, y, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO_T.set in_t out_t theModule✝ = (GaudisCrypt.Module.snd' theModule✝).snd'.fst'
Instances For
The field get of a module of type FRO_T: the projection onto component 1 of the right-nested tuple FRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
FRO_T.get.mk_simp reads this field back off a module built by FRO_T.mk; FRO_T.get.utilities has the accessor as a module, and the lemmas about it.
Its parameters are named x, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO_T.get in_t out_t theModule✝ = (GaudisCrypt.Module.snd' theModule✝).fst'
Instances For
The field queried of a module of type FRO_T: the projection onto component 5 of the right-nested tuple FRO_T.typeRep, as a chain of Module.fst'/Module.snd'. Tagged @[module_accessor].
FRO_T.queried.mk_simp reads this field back off a module built by FRO_T.mk; FRO_T.queried.utilities has the accessor as a module, and the lemmas about it.
Its parameters are named x, f, in that order (recorded in @[gaudiProcParamNames], a ProcedureSignature holding only their types).
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO_T.queried in_t out_t theModule✝ = (GaudisCrypt.Module.snd' theModule✝).snd'.snd'.snd'.snd'.fst'
Instances For
@[simp]: reading the field set back off a module built from a record — FRO_T.set (FRO_T.mk r) = r.set.
It is what carries the right-hand side of an X.apply_simp (which is an FRO_T.mk) on to the field the caller actually asked for, so that simp chains X.apply_simp into X.set.apply_simp.
What is derivable about the accessor FRO_T.init, bundled into one ModuleTypeUtilities (one name per field in the namespace, rather than one per fact):
FRO_T.init.utilities.accessorModule : FRO_T →ₘ …— the accessor as a module, a projection being a module morphism;FRO_T.init.utilities.apply_simp—Module.app FRO_T.init.utilities.accessorModule m = FRO_T.init m: applying that module is the accessor;FRO_T.init.utilities.expression_eq— the same at the level of expressions:(FRO_T.init m).expression = (FRO_T.init.utilities.proj m.expression).reduce.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The ModuleTypeRep underlying FRO_T, the module type declared by moduletype FRO_T: the right-nested product of its 7 field types, in declaration order.
FRO_T is by definition Module FRO_T.typeRep.
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 — FRO_T.init (FRO_T.mk r) = r.init.
It is what carries the right-hand side of an X.apply_simp (which is an FRO_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 module type RO_Distinguisher (G : RO) = { proc distinguish(_ : d_in_t): d_out_t }.
Equations
- GaudisCrypt.EC.PROM.FullRO.RO_Distinguisher in_t out_t d_in_t d_out_t = GaudisCrypt.Module.Arr (GaudisCrypt.EC.PROM.FullRO.RO_T in_t out_t) (procmod (d_in_t) → d_out_t)
Instances For
EC's module type FRO_Distinguisher (G : FRO) = { proc distinguish(_ : d_in_t): d_out_t }.
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO_Distinguisher in_t out_t d_in_t d_out_t = GaudisCrypt.Module.Arr (GaudisCrypt.EC.PROM.FullRO.FRO_T in_t out_t) (procmod (d_in_t) → d_out_t)
Instances For
The oracle procedures an RO_Distinguisher may call: all of RO's (EasyCrypt's module type
puts no restriction on them). The holes of its representation (Module.Representable, exception
E2 of the SHA-3 port).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The oracle procedures an FRO_Distinguisher may call: all of FRO's.
Equations
- One or more equations did not get rendered due to their size.
Instances For
G.init, G.get … G.allKnown out of the oracle G.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Every RO_Distinguisher is representable over all of RO's procedures
(Module.representable_of_firstOrder): for it, exception E2 is a theorem.
An RO_Distinguisher is EasyCrypt-like as soon as it has finitely many globals: its
representability is RO_Distinguisher.representable.
Every FRO_Distinguisher is representable over all of FRO's procedures.
@[simp]: applying MainD to a tuple of its 2 parameters D, RO — the record of its procedures MainD.distinguish, each applied to the parameters it uses.
This is the lemma that unfolds a module use: simp rewrites with it, then with the field lemmas of the module type (N.f.mk_simp) to get at the one procedure the goal is about, and then with MainD.distinguish.apply_simp to fill that procedure's holes.
proc distinguish of module MainD as a module, abstracted over the module parameters it uses (D, RO, in declaration order): Module.Arr … (Module.Proc (procsig …)).
Apply it with the @[simp] lemma MainD.distinguish.apply_simp, which fills the holes of MainD.distinguish.procedure with the callees the body called.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: applying MainD.distinguish to the parameters proc distinguish uses (D, RO) is Module.proc (MainD.distinguish.procedure.instantiate …) — the procedure with its holes filled by the callees they were made from, each written as it was in the body (with the arguments in place of the module parameters) and turned into a Procedure by Module.Proc.procedure.
Instantiating the holes of MainD.distinguish.procedure with a tuple holeArgs of procedures: the body of proc distinguish 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 [MainD.distinguish.procedure.apply_simp]).
The body of proc distinguish of module MainD, as a procedure of its own: the 2 calls it makes to module parameters (D, RO) are its holes, in the order the body makes them.
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 MainD.distinguish.procedure.apply_simp) rather than run. Use MainD.distinguish for this procedure as a module.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The module declared by module MainD, abstracted over its 2 parameters D, RO, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the anonymous product of the procedures' own types, the declaration naming no module type.
Applied to such a tuple it is the record of its procedures MainD.distinguish, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma MainD.apply_simp says.
Equations
- One or more equations did not get rendered due to their size.
Instances For
RO's module variable m is a parameter: a clone declares its own (F.RO.m) and passes it,
so two clones never share it.
The body of proc rem of module RO, 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 RO.rem.procedure.apply_simp) rather than run. Use RO.rem for this procedure as a module.
Equations
Instances For
The body of proc restrK of module RO, 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 RO.restrK.procedure.apply_simp) rather than run. Use RO.restrK for this procedure as a module.
Equations
- GaudisCrypt.EC.PROM.FullRO.RO.restrK.procedure in_t out_t dout m = proc () : (GaudisCrypt.EC.FMap in_t out_t) { skip; return §m }
Instances For
@[simp]: RO.rem = Module.proc RO.rem.procedure — true by definition, proc rem using no module parameter and so having no holes to fill.
proc sample of module RO as a module: Module.proc RO.sample.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — RO.sample.apply_simp says exactly that.
Equations
- GaudisCrypt.EC.PROM.FullRO.RO.sample in_t out_t dout m = GaudisCrypt.Module.proc (GaudisCrypt.EC.PROM.FullRO.RO.sample.procedure in_t out_t dout m)
Instances For
proc get of module RO as a module: Module.proc RO.get.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — RO.get.apply_simp says exactly that.
Equations
- GaudisCrypt.EC.PROM.FullRO.RO.get in_t out_t dout m = GaudisCrypt.Module.proc (GaudisCrypt.EC.PROM.FullRO.RO.get.procedure in_t out_t dout m)
Instances For
Instantiating the holes of RO.set.procedure with a tuple holeArgs of procedures: the body of proc set 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 [RO.set.procedure.apply_simp]).
Instantiating the holes of RO.sample.procedure with a tuple holeArgs of procedures: the body of proc sample 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 [RO.sample.procedure.apply_simp]).
The body of proc get of module RO, 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 RO.get.procedure.apply_simp) rather than run. Use RO.get 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 RO.get.procedure with a tuple holeArgs of procedures: the body of proc get 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 [RO.get.procedure.apply_simp]).
The module declared by module RO: the record of its procedures RO.init, RO.get, RO.set, RO.rem, RO.sample, RO.restrK.
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 RO.apply_simp to apply it with.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: RO.get = Module.proc RO.get.procedure — true by definition, proc get using no module parameter and so having no holes to fill.
proc restrK of module RO as a module: Module.proc RO.restrK.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — RO.restrK.apply_simp says exactly that.
Equations
- GaudisCrypt.EC.PROM.FullRO.RO.restrK in_t out_t dout m = GaudisCrypt.Module.proc (GaudisCrypt.EC.PROM.FullRO.RO.restrK.procedure in_t out_t dout m)
Instances For
Instantiating the holes of RO.restrK.procedure with a tuple holeArgs of procedures: the body of proc restrK 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 [RO.restrK.procedure.apply_simp]).
proc init of module RO as a module: Module.proc RO.init.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — RO.init.apply_simp says exactly that.
Equations
- GaudisCrypt.EC.PROM.FullRO.RO.init in_t out_t dout m = GaudisCrypt.Module.proc (GaudisCrypt.EC.PROM.FullRO.RO.init.procedure in_t out_t dout m)
Instances For
@[simp]: RO.restrK = Module.proc RO.restrK.procedure — true by definition, proc restrK using no module parameter and so having no holes to fill.
The body of proc sample of module RO, 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 RO.sample.procedure.apply_simp) rather than run. Use RO.sample for this procedure as a module.
Equations
- GaudisCrypt.EC.PROM.FullRO.RO.sample.procedure in_t out_t dout m = proc (x : in_t) : Unit { call (GaudisCrypt.EC.PROM.FullRO.RO.get in_t out_t dout m).procedure (§x); return () }
Instances For
@[simp]: RO.set = Module.proc RO.set.procedure — true by definition, proc set using no module parameter and so having no holes to fill.
proc rem of module RO as a module: Module.proc RO.rem.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — RO.rem.apply_simp says exactly that.
Equations
- GaudisCrypt.EC.PROM.FullRO.RO.rem in_t out_t dout m = GaudisCrypt.Module.proc (GaudisCrypt.EC.PROM.FullRO.RO.rem.procedure in_t out_t dout m)
Instances For
proc set of module RO as a module: Module.proc RO.set.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — RO.set.apply_simp says exactly that.
Equations
- GaudisCrypt.EC.PROM.FullRO.RO.set in_t out_t dout m = GaudisCrypt.Module.proc (GaudisCrypt.EC.PROM.FullRO.RO.set.procedure in_t out_t dout m)
Instances For
@[simp]: RO.sample = Module.proc RO.sample.procedure — true by definition, proc sample using no module parameter and so having no holes to fill.
The body of proc set of module RO, 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 RO.set.procedure.apply_simp) rather than run. Use RO.set for this procedure as a module.
Equations
Instances For
Instantiating the holes of RO.rem.procedure with a tuple holeArgs of procedures: the body of proc rem 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 [RO.rem.procedure.apply_simp]).
@[simp]: RO.init = Module.proc RO.init.procedure — true by definition, proc init using no module parameter and so having no holes to fill.
The body of proc init of module RO, 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 RO.init.procedure.apply_simp) rather than run. Use RO.init for this procedure as a module.
Equations
- GaudisCrypt.EC.PROM.FullRO.RO.init.procedure in_t out_t dout m = proc () : Unit { m <- GaudisCrypt.EC.FMap.empty; return () }
Instances For
Instantiating the holes of RO.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 [RO.init.procedure.apply_simp]).
RO at its type RO (EasyCrypt's module RO : RO, ROmap).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The body of proc sample of module LRO.sample_, 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 LRO.sample_.sample.procedure.apply_simp) rather than run. Use LRO.sample_.sample for this procedure as a module.
Equations
- GaudisCrypt.EC.PROM.FullRO.LRO.sample_.sample.procedure in_t out_t = proc (x : in_t) : Unit { skip; return () }
Instances For
proc sample of module LRO.sample_ as a module: Module.proc LRO.sample_.sample.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — LRO.sample_.sample.apply_simp says exactly that.
Equations
Instances For
@[simp]: LRO.sample_.sample = Module.proc LRO.sample_.sample.procedure — true by definition, proc sample using no module parameter and so having no holes to fill.
The module declared by module LRO.sample_: the record of its procedures LRO.sample_.sample.
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 LRO.sample_.apply_simp to apply it with.
Equations
- GaudisCrypt.EC.PROM.FullRO.LRO.sample_ in_t out_t = GaudisCrypt.EC.PROM.FullRO.LRO.sample_.sample in_t out_t
Instances For
Instantiating the holes of LRO.sample_.sample.procedure with a tuple holeArgs of procedures: the body of proc sample 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 [LRO.sample_.sample.procedure.apply_simp]).
EC's MkRO.LRO: RO with proc sample(x : in_t) = { } (and proc init = RO.init …).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The footprints of RO and LRO: their procedures touch m only (LRO is not a module:
fp_disjoint reads them here).
@[simp]: FRO.allKnown = Module.proc FRO.allKnown.procedure — true by definition, proc allKnown using no module parameter and so having no holes to fill.
proc get of module FRO as a module: Module.proc FRO.get.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — FRO.get.apply_simp says exactly that.
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO.get in_t out_t dout m = GaudisCrypt.Module.proc (GaudisCrypt.EC.PROM.FullRO.FRO.get.procedure in_t out_t dout m)
Instances For
@[simp]: FRO.rem = Module.proc FRO.rem.procedure — true by definition, proc rem using no module parameter and so having no holes to fill.
proc queried of module FRO as a module: Module.proc FRO.queried.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — FRO.queried.apply_simp says exactly that.
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO.queried in_t out_t dout m = GaudisCrypt.Module.proc (GaudisCrypt.EC.PROM.FullRO.FRO.queried.procedure in_t out_t dout m)
Instances For
proc sample of module FRO as a module: Module.proc FRO.sample.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — FRO.sample.apply_simp says exactly that.
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO.sample in_t out_t dout m = GaudisCrypt.Module.proc (GaudisCrypt.EC.PROM.FullRO.FRO.sample.procedure in_t out_t dout m)
Instances For
Instantiating the holes of FRO.sample.procedure with a tuple holeArgs of procedures: the body of proc sample 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 [FRO.sample.procedure.apply_simp]).
The body of proc init of module FRO, 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 FRO.init.procedure.apply_simp) rather than run. Use FRO.init for this procedure as a module.
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO.init.procedure in_t out_t dout m = proc () : Unit { m <- GaudisCrypt.EC.FMap.empty; return () }
Instances For
@[simp]: FRO.queried = Module.proc FRO.queried.procedure — true by definition, proc queried using no module parameter and so having no holes to fill.
The body of proc sample of module FRO, 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 FRO.sample.procedure.apply_simp) rather than run. Use FRO.sample 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 set of module FRO, 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 FRO.set.procedure.apply_simp) rather than run. Use FRO.set for this procedure as a module.
Equations
Instances For
Instantiating the holes of FRO.set.procedure with a tuple holeArgs of procedures: the body of proc set 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 [FRO.set.procedure.apply_simp]).
@[simp]: FRO.sample = Module.proc FRO.sample.procedure — true by definition, proc sample using no module parameter and so having no holes to fill.
@[simp]: FRO.init = Module.proc FRO.init.procedure — true by definition, proc init using no module parameter and so having no holes to fill.
Instantiating the holes of FRO.rem.procedure with a tuple holeArgs of procedures: the body of proc rem 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 [FRO.rem.procedure.apply_simp]).
The body of proc get of module FRO, 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 FRO.get.procedure.apply_simp) rather than run. Use FRO.get 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 rem of module FRO, 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 FRO.rem.procedure.apply_simp) rather than run. Use FRO.rem for this procedure as a module.
Equations
Instances For
The body of proc allKnown of module FRO, 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 FRO.allKnown.procedure.apply_simp) rather than run. Use FRO.allKnown for this procedure as a module.
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO.allKnown.procedure in_t out_t dout m = proc () : (GaudisCrypt.EC.FMap in_t out_t) { skip; return GaudisCrypt.EC.FMap.restr GaudisCrypt.EC.PROM.Known §m }
Instances For
proc rem of module FRO as a module: Module.proc FRO.rem.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — FRO.rem.apply_simp says exactly that.
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO.rem in_t out_t dout m = GaudisCrypt.Module.proc (GaudisCrypt.EC.PROM.FullRO.FRO.rem.procedure in_t out_t dout m)
Instances For
proc set of module FRO as a module: Module.proc FRO.set.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — FRO.set.apply_simp says exactly that.
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO.set in_t out_t dout m = GaudisCrypt.Module.proc (GaudisCrypt.EC.PROM.FullRO.FRO.set.procedure in_t out_t dout m)
Instances For
The module declared by module FRO: the record of its procedures FRO.init, FRO.get, FRO.set, FRO.rem, FRO.sample, FRO.queried, FRO.allKnown.
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 FRO.apply_simp to apply it with.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instantiating the holes of FRO.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 [FRO.init.procedure.apply_simp]).
@[simp]: FRO.get = Module.proc FRO.get.procedure — true by definition, proc get using no module parameter and so having no holes to fill.
Instantiating the holes of FRO.queried.procedure with a tuple holeArgs of procedures: the body of proc queried 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 [FRO.queried.procedure.apply_simp]).
Instantiating the holes of FRO.get.procedure with a tuple holeArgs of procedures: the body of proc get 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 [FRO.get.procedure.apply_simp]).
Instantiating the holes of FRO.allKnown.procedure with a tuple holeArgs of procedures: the body of proc allKnown 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 [FRO.allKnown.procedure.apply_simp]).
The body of proc queried of module FRO, 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 FRO.queried.procedure.apply_simp) rather than run. Use FRO.queried for this procedure as a module.
Equations
- One or more equations did not get rendered due to their size.
Instances For
proc allKnown of module FRO as a module: Module.proc FRO.allKnown.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — FRO.allKnown.apply_simp says exactly that.
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO.allKnown in_t out_t dout m = GaudisCrypt.Module.proc (GaudisCrypt.EC.PROM.FullRO.FRO.allKnown.procedure in_t out_t dout m)
Instances For
@[simp]: FRO.set = Module.proc FRO.set.procedure — true by definition, proc set using no module parameter and so having no holes to fill.
proc init of module FRO as a module: Module.proc FRO.init.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — FRO.init.apply_simp says exactly that.
Equations
- GaudisCrypt.EC.PROM.FullRO.FRO.init in_t out_t dout m = GaudisCrypt.Module.proc (GaudisCrypt.EC.PROM.FullRO.FRO.init.procedure in_t out_t dout m)
Instances For
FRO at the type RO (EasyCrypt's subtyping FRO <: RO: D(FRO) for an
RO_Distinguisher D).
Equations
- One or more equations did not get rendered due to their size.
Instances For
EC's RO_FRO_init … RO_FRO_D: RO and FRO agree up to the flags.
equiv RO_FRO_init : RO.init ~ FRO.init : true ==> RO.m{1} = noflags FRO.m{2}.
equiv RO_FRO_get : RO.get ~ FRO.get : ={x} /\ RO.m{1} = noflags FRO.m{2} ==> ={res} /\ RO.m{1} = noflags FRO.m{2}.
equiv RO_FRO_set : RO.set ~ FRO.set : ={x, y} /\ RO.m{1} = noflags FRO.m{2} ==> RO.m{1} = noflags FRO.m{2}.
equiv RO_FRO_rem : RO.rem ~ FRO.rem : ={x} /\ RO.m{1} = noflags FRO.m{2} ==> RO.m{1} = noflags FRO.m{2}.
equiv RO_FRO_sample : RO.sample ~ FRO.sample : ={x} /\ RO.m{1} = noflags FRO.m{2} ==> RO.m{1} = noflags FRO.m{2}.
equiv RO_FRO_D (D <: RO_Distinguisher { -RO, -FRO }) : D(RO).distinguish ~ D(FRO).distinguish : ={arg, glob D} /\ RO.m{1} = noflags FRO.m{2} ==> ={res, glob D} /\ RO.m{1} = noflags FRO.m{2}. RO.m and FRO.m are distinct variables, and the
oracles' arguments countable (exception E8).
@[simp]: RRO.I.f = Module.proc RRO.I.f.procedure — true by definition, proc f using no module parameter and so having no holes to fill.
The module declared by module RRO.I: the record of its procedures RRO.I.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 RRO.I.apply_simp to apply it with.
Equations
- GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.I in_t out_t dout m = GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.I.f in_t out_t dout m
Instances For
The body of proc f of module RRO.I, 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 RRO.I.f.procedure.apply_simp) rather than run. Use RRO.I.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 RRO.I.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 [RRO.I.f.procedure.apply_simp]).
proc f of module RRO.I as a module: Module.proc RRO.I.f.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — RRO.I.f.apply_simp says exactly that.
Equations
- GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.I.f in_t out_t dout m = GaudisCrypt.Module.proc (GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.I.f.procedure in_t out_t dout m)
Instances For
Instantiating the holes of RRO.own.get.procedure with a tuple holeArgs of procedures: the body of proc get 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 [RRO.own.get.procedure.apply_simp]).
The body of proc resample of module RRO.own, 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 RRO.own.resample.procedure.apply_simp) rather than run. Use RRO.own.resample 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 RRO.own.resample.procedure with a tuple holeArgs of procedures: the body of proc resample 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 [RRO.own.resample.procedure.apply_simp]).
The body of proc get of module RRO.own, 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 RRO.own.get.procedure.apply_simp) rather than run. Use RRO.own.get for this procedure as a module.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: RRO.own.resample = Module.proc RRO.own.resample.procedure — true by definition, proc resample using no module parameter and so having no holes to fill.
@[simp]: RRO.own.get = Module.proc RRO.own.get.procedure — true by definition, proc get using no module parameter and so having no holes to fill.
proc get of module RRO.own as a module: Module.proc RRO.own.get.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — RRO.own.get.apply_simp says exactly that.
Equations
- GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.own.get in_t out_t dout m = GaudisCrypt.Module.proc (GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.own.get.procedure in_t out_t dout m)
Instances For
proc resample of module RRO.own as a module: Module.proc RRO.own.resample.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — RRO.own.resample.apply_simp says exactly that.
Equations
- GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.own.resample in_t out_t dout m = GaudisCrypt.Module.proc (GaudisCrypt.EC.PROM.FullRO.FullEager.RRO.own.resample.procedure in_t out_t dout m)
Instances For
The module declared by module RRO.own: the record of its procedures RRO.own.get, RRO.own.resample.
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 RRO.own.apply_simp to apply it with.
Equations
- One or more equations did not get rendered due to their size.
Instances For
EC's FullEager.RRO : FRO (with proc init = FRO.init …; its extra procedure resample is
RRO.own.resample).
Equations
- One or more equations did not get rendered due to their size.
Instances For
RRO at the type RO (EasyCrypt's subtyping FRO <: RO: D(RRO) for an
RO_Distinguisher D).
Equations
- One or more equations did not get rendered due to their size.
Instances For
RRO.resample();, the block of PROM's eager judgments, as a program on the globals.
Equations
- One or more equations did not get rendered due to their size.
Instances For
RRO.resample touches only FRO.m (EC: by its code).
RRO.resample() keeps every region outside FRO.m, glob D in particular.
RRO.I.f's run: sample c, write FRO.m.[t] <- (c, Unknown).
equiv iter_perm2 : Iter(RRO.I).iter_12 ~ Iter(RRO.I).iter_21 : ={glob RRO.I, t1, t2} ==> ={glob RRO.I}, denotationally (exception E9: the form iter_perm and iter1_perm take). EC:
proc; inline*; case: ((t1 = t2){1}); first by auto. swap{2} [4..5] -3; auto … set_setE.
RRO.I.f is lossless (EC: proc; auto=> /> &m'; exact/dout_ll in RRO_resample_ll).
lemma RRO_resample_ll : islossless RRO.resample. EC: proc; call (iter_ll RRO.I _)=> //. by proc; auto=> /> &m'; exact/dout_ll.
eager [RRO.resample();, FRO.init ~ RRO.init, RRO.resample(); : ={FRO.m} ==> ={FRO.m}], at
equality invariants (exception E10).
RRO.resample()'s run: Iter(RRO.I).iter over the Unknown entries.
RRO.resample() as the call of Iter(RRO.I).iter it makes.
From a state where x is bound with flag Unknown, RRO.resample() is RRO.I.f(x) then
the iteration over the other Unknown entries (EC's Iter(RRO.I).iter_1s(x, elems (fdom (restr Unknown FRO.m) ` fset1 x)), by iter1_perm RRO.I iter_perm2`).
equiv I_f_eqex x1 mx1 mx2 : RRO.I.f ~ RRO.I.f : ={x} /\ x1 <> x{1} /\ eq_except (pred1 x1) FRO.m{1} FRO.m{2} /\ FRO.m{1}.[x1] = mx1 /\ FRO.m{2}.[x1] = mx2 ==> eq_except (pred1 x1) FRO.m{1} FRO.m{2} /\ FRO.m{1}.[x1] = mx1 /\ FRO.m{2}.[x1] = mx2.
equiv I_f_neq x1 mx1 : RRO.I.f ~ RRO.I.f : ={x, FRO.m} /\ x1 <> x{1} /\ FRO.m{1}.[x1] = mx1 ==> ={FRO.m} /\ FRO.m{1}.[x1] = mx1.
equiv I_f_set x1 r1 : RRO.I.f ~ RRO.I.f : ={x} /\ x1 <> x{1} /\ FRO.m{1}.[x1] = None /\ FRO.m{2} = FRO.m{1}.[x1 <- (r1, Known)] ==> FRO.m{1}.[x1] = None /\ FRO.m{2} = FRO.m{1}.[x1 <- (r1, Known)].
eager [RRO.resample();, FRO.get ~ RRO.get, RRO.resample(); : ={x, FRO.m} ==> ={res, FRO.m}], at equality invariants (exception E10).
eager [RRO.resample();, FRO.set ~ RRO.set, RRO.resample(); : ={x, y} /\ ={FRO.m} ==> ={res, FRO.m}], at equality invariants (exception E10).
eager [RRO.resample();, FRO.rem ~ RRO.rem, RRO.resample(); : ={x} /\ ={FRO.m} ==> ={res, FRO.m}], at equality invariants (exception E10).
eager [RRO.resample();, FRO.sample ~ RRO.sample, RRO.resample(); : ={x, FRO.m} ==> ={res, FRO.m}], at equality invariants (exception E10).
eager [RRO.resample();, FRO.queried ~ RRO.queried, RRO.resample(); : ={x, f} /\ ={FRO.m} ==> ={res, FRO.m}], at equality invariants (exception E10).
eager [RRO.resample();, FRO.allKnown ~ RRO.allKnown, RRO.resample(); : ={FRO.m} ==> ={res, FRO.m}], at equality invariants (exception E10).
lemma eager_D (D <: FRO_Distinguisher {-FRO}) : eager [RRO.resample();, D(FRO).distinguish ~ D(RRO).distinguish, RRO.resample(); : ={glob D, FRO.m, arg} ==> ={FRO.m, glob D} /\ ={res}], at
equality invariants (exception E10). EC: eager proc (={FRO.m}) => //; try by sim; then the seven
eager_* lemmas — here eager_call_module, whose SwapLoc side is footprint disjointness.
EC's eager_D at an RO_Distinguisher (EasyCrypt's subtyping RO_Distinguisher <: FRO_Distinguisher): eager_call_module over RO's procedures, by the same oracle lemmas.
@[simp]: Eager.main2 = Module.proc Eager.main2.procedure — true by definition, proc main2 using no module parameter and so having no holes to fill.
The module declared by module Eager: the record of its procedures Eager.main1, Eager.main2.
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 Eager.apply_simp to apply it with.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instantiating the holes of Eager.main1.procedure with a tuple holeArgs of procedures: the body of proc main1 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 [Eager.main1.procedure.apply_simp]).
proc main2 of module Eager as a module: Module.proc Eager.main2.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — Eager.main2.apply_simp says exactly that.
Equations
- One or more equations did not get rendered due to their size.
Instances For
proc main1 of module Eager as a module: Module.proc Eager.main1.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — Eager.main1.apply_simp says exactly that.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The body of proc main1 of module Eager, 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 Eager.main1.procedure.apply_simp) rather than run. Use Eager.main1 for this procedure as a module.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]: Eager.main1 = Module.proc Eager.main1.procedure — true by definition, proc main1 using no module parameter and so having no holes to fill.
The body of proc main2 of module Eager, 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 Eager.main2.procedure.apply_simp) rather than run. Use Eager.main2 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 Eager.main2.procedure with a tuple holeArgs of procedures: the body of proc main2 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 [Eager.main2.procedure.apply_simp]).
Eager(D).main1's run: FRO.init(), then D(FRO).
Eager(D).main2's run: FRO.init(), D(RRO), then RRO.resample().
FRO.init()'s run: FRO.m <- empty.
EC's inline *; rcondf{2} 3 … restr0 fdom0 elems_fset0: RRO.resample() right after
FRO.init() does nothing.
EC's transitivity{1} { FRO.init(); RRO.resample(); b <@ D(FRO).distinguish(x); } …
and eager call (eager_D D): main2 runs as main1.
main1 against itself, from ={glob D, arg} (EC's seq 1 1 : (={glob D, FRO.m, x}) and the
abstract call of D with FRO on both sides, whose oracles are sim).
EC's FullEager.EagerCore.Eager_1_2, for declare module D <: FRO_Distinguisher {-FRO}
(the oracles' arguments countable: exception E8):
equiv[ Eager(D).main1 ~ Eager(D).main2 : ={glob D, arg} ==> ={res, glob FRO, glob D} ].
EC's LRO_RRO_init … LRO_RRO_D: LRO and RRO agree on the known entries.
equiv LRO_RRO_init : LRO.init ~ RRO.init : true ==> RO.m{1} = restr Known FRO.m{2}.
equiv LRO_RRO_get : LRO.get ~ RRO.get : ={x} /\ RO.m{1} = restr Known FRO.m{2} ==> ={res} /\ RO.m{1} = restr Known FRO.m{2}.
equiv LRO_RRO_set : LRO.set ~ RRO.set : ={x, y} /\ RO.m{1} = restr Known FRO.m{2} ==> RO.m{1} = restr Known FRO.m{2}.
equiv LRO_RRO_rem : LRO.rem ~ RRO.rem : ={x} /\ RO.m{1} = restr Known FRO.m{2} ==> RO.m{1} = restr Known FRO.m{2}.
equiv LRO_RRO_sample : LRO.sample ~ RRO.sample : ={x} /\ RO.m{1} = restr Known FRO.m{2} ==> RO.m{1} = restr Known FRO.m{2} (with the section's dout_ll).
equiv LRO_RRO_D (D <: RO_Distinguisher{-RO, -FRO}) : D(LRO).distinguish ~ D(RRO).distinguish : ={glob D, arg} /\ RO.m{1} = restr Known FRO.m{2} ==> ={res, glob D} /\ RO.m{1} = restr Known FRO.m{2}. RO.m and FRO.m are distinct variables, and
the oracles' arguments countable (exception E8).
EC's FullEager.RO_LRO_D, for declare module D <: RO_Distinguisher {-RO, -FRO} and
axiom dout_ll x : is_lossless (dout x):
equiv[ D(RO).distinguish ~ D(LRO).distinguish : ={glob D, RO.m, arg} ==> ={res, glob D} ].
RO.m and FRO.m are distinct variables, and the oracles' arguments countable (exception E8).
EC's proof: two transitivitys through M.main1 = RRO.resample(); D(FRO) and
M.main2 = D(RRO); RRO.resample(), by RO_FRO_D, eager_D and LRO_RRO_D.
D's procedure may have any signature, not only RO_Distinguisher's procmod (d_in_t) → d_out_t:
EC's proc distinguish() with d_in_t = unit is procmod () → … here, which is not
procmod (Unit) → … (an alias proc distinguish = D(…).distinguish has the callee's).