Simulators are representable #
A SIMULATOR is a functor from DFUNCTIONALITY (one procedure) to PRIMITIVE (three). Each of
the result's procedures f, fi, as a functor of the oracle, is a first-order functor module
(SIMULATOR.fF, SIMULATOR.fiF: the simulator followed by a projection), and so is represented
(Module.exists_representation_of_firstOrder). SIMULATOR.RepresentedBy also asks init to be
a fixed procedure, independent of the oracle (EasyCrypt's init calls nothing): that is the one
hypothesis of SIMULATOR.representable_of_init. Removes exception E2 for a concrete simulator.
The simulator's init, as a functor of the oracle.
Equations
- GaudisCrypt.SHA3.Indifferentiability.SIMULATOR.initF p f_in f_out S = (S.expression.app (GaudisCrypt.ModuleExpression.var 0)).fst.abs.toModule ⋯
Instances For
Applying SIMULATOR.initF is taking the init of the simulator's result.
The simulator's f, as a functor of the oracle.
Equations
- GaudisCrypt.SHA3.Indifferentiability.SIMULATOR.fF p f_in f_out S = (S.expression.app (GaudisCrypt.ModuleExpression.var 0)).snd.fst.abs.toModule ⋯
Instances For
The simulator's fi, as a functor of the oracle.
Equations
- GaudisCrypt.SHA3.Indifferentiability.SIMULATOR.fiF p f_in f_out S = (S.expression.app (GaudisCrypt.ModuleExpression.var 0)).snd.snd.abs.toModule ⋯
Instances For
Applying SIMULATOR.fF is taking the f of the simulator's result.
Applying SIMULATOR.fiF is taking the fi of the simulator's result.
A procedure f_in -> f_out that touches no global (an oracle for init's hole).
Equations
- GaudisCrypt.SHA3.Indifferentiability.constProc f_in f_out = proc (_x : f_in) : f_out { skip; return Classical.ofNonempty }
Instances For
A simulator whose init does not depend on the oracle is representable
(SIMULATOR.Representable, exception E2 as a theorem): its procedures by
Module.exists_representation_of_firstOrder, init's hole filled with constProc.