Documentation

GaudisCrypt.Examples.SHA3.SimulatorRepresentable

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.

A PRIMITIVE built as a pair: its init is the first component.

The simulator's init, as a functor of the oracle.

Equations
Instances For
    theorem GaudisCrypt.SHA3.Indifferentiability.SIMULATOR.initF_app (p f_in f_out : Type) (S : SIMULATOR p f_in f_out) (F : DFUNCTIONALITY p f_in f_out) :
    (initF p f_in f_out S).app' F = S(F).init

    Applying SIMULATOR.initF is taking the init of the simulator's result.

    noncomputable def GaudisCrypt.SHA3.Indifferentiability.SIMULATOR.fF (p f_in f_out : Type) (S : SIMULATOR p f_in f_out) :

    The simulator's f, as a functor of the oracle.

    Equations
    Instances For
      noncomputable def GaudisCrypt.SHA3.Indifferentiability.SIMULATOR.fiF (p f_in f_out : Type) (S : SIMULATOR p f_in f_out) :

      The simulator's fi, as a functor of the oracle.

      Equations
      Instances For
        theorem GaudisCrypt.SHA3.Indifferentiability.SIMULATOR.fF_app (p f_in f_out : Type) (S : SIMULATOR p f_in f_out) (F : DFUNCTIONALITY p f_in f_out) :
        (fF p f_in f_out S).app' F = S(F).f

        Applying SIMULATOR.fF is taking the f of the simulator's result.

        theorem GaudisCrypt.SHA3.Indifferentiability.SIMULATOR.fiF_app (p f_in f_out : Type) (S : SIMULATOR p f_in f_out) (F : DFUNCTIONALITY p f_in f_out) :
        (fiF p f_in f_out S).app' F = S(F).fi

        Applying SIMULATOR.fiF is taking the fi of the simulator's result.

        noncomputable def GaudisCrypt.SHA3.Indifferentiability.constProc (f_in f_out : Type) [Nonempty f_in] [Nonempty f_out] :

        A procedure f_in -> f_out that touches no global (an oracle for init's hole).

        Equations
        Instances For
          theorem GaudisCrypt.SHA3.Indifferentiability.SIMULATOR.representable_of_init (p f_in f_out : Type) [Nonempty f_in] [Nonempty f_out] (S : SIMULATOR p f_in f_out) (hinit : ∀ (F F' : DFUNCTIONALITY p f_in f_out), S(F).init.procedure = S(F').init.procedure) :
          Representable p f_in f_out S

          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.