Abstract calls of a simulator #
EasyCrypt's call (_ : inv) on a simulator's procedure S(F).init, S(F).f, S(F).fi (in
proc (inv) of an outer abstract call): from SIMULATOR.RepresentedBy, each is a procedure with
the hole F.f (none for init), and the abstract call rule applies at a region F ⊇ glob S
(prhlProc_abstract_callF). Used for the nested calls Dist(…, S(F)) of the indifferentiability
proofs.
theorem
GaudisCrypt.SHA3.Indifferentiability.SIMULATOR.call_init
(p f_in f_out : Type)
{Ω : Type}
(L : Lens Ω VariableAssignment)
(S : SIMULATOR p f_in f_out)
(hS : Representable p f_in f_out S)
(F : Footprint VariableAssignment)
(hSF : FVP.fvP S ≤ F)
(hFL : F ≤ L.footprintᶜ)
(I : Ω → Ω → Prop)
(F₁ F₂ : DFUNCTIONALITY p f_in f_out)
:
prhlProc
(fun (a₁ : (procsig () → Unit).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig () → Unit).ParamType)
(g₂ : VariableAssignment) =>
a₁ = a₂ ∧ globInvF L F I g₁ g₂)
S(F₁).init.procedure S(F₂).init.procedure
fun (r₁ : (procsig () → Unit).ret) (g₁ : VariableAssignment) (r₂ : (procsig () → Unit).ret)
(g₂ : VariableAssignment) =>
r₁ = r₂ ∧ globInvF L F I g₁ g₂
The abstract call rule for a simulator's init (no oracle).
theorem
GaudisCrypt.SHA3.Indifferentiability.SIMULATOR.call_f
(p f_in f_out : Type)
{Ω : Type}
(L : Lens Ω VariableAssignment)
(S : SIMULATOR p f_in f_out)
(hS : Representable p f_in f_out S)
(F : Footprint VariableAssignment)
(hSF : FVP.fvP S ≤ F)
(hFL : F ≤ L.footprintᶜ)
(I : Ω → Ω → Prop)
[Countable f_in]
(F₁ F₂ : DFUNCTIONALITY p f_in f_out)
(horacle :
prhlProc
(fun (a₁ : (procsig (f_in) → f_out).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig (f_in) → f_out).ParamType)
(g₂ : VariableAssignment) =>
a₁ = a₂ ∧ globInvF L F I g₁ g₂)
(DFUNCTIONALITY.f p f_in f_out F₁).procedure (DFUNCTIONALITY.f p f_in f_out F₂).procedure
fun (r₁ : (procsig (f_in) → f_out).ret) (g₁ : VariableAssignment) (r₂ : (procsig (f_in) → f_out).ret)
(g₂ : VariableAssignment) =>
r₁ = r₂ ∧ globInvF L F I g₁ g₂)
:
prhlProc
(fun (a₁ : (procsig (p) → p).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig (p) → p).ParamType)
(g₂ : VariableAssignment) =>
a₁ = a₂ ∧ globInvF L F I g₁ g₂)
S(F₁).f.procedure S(F₂).f.procedure
fun (r₁ : (procsig (p) → p).ret) (g₁ : VariableAssignment) (r₂ : (procsig (p) → p).ret) (g₂ : VariableAssignment) =>
r₁ = r₂ ∧ globInvF L F I g₁ g₂
The abstract call rule for a simulator's f, whose oracle is the functionality's f.
theorem
GaudisCrypt.SHA3.Indifferentiability.SIMULATOR.call_fi
(p f_in f_out : Type)
{Ω : Type}
(L : Lens Ω VariableAssignment)
(S : SIMULATOR p f_in f_out)
(hS : Representable p f_in f_out S)
(F : Footprint VariableAssignment)
(hSF : FVP.fvP S ≤ F)
(hFL : F ≤ L.footprintᶜ)
(I : Ω → Ω → Prop)
[Countable f_in]
(F₁ F₂ : DFUNCTIONALITY p f_in f_out)
(horacle :
prhlProc
(fun (a₁ : (procsig (f_in) → f_out).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig (f_in) → f_out).ParamType)
(g₂ : VariableAssignment) =>
a₁ = a₂ ∧ globInvF L F I g₁ g₂)
(DFUNCTIONALITY.f p f_in f_out F₁).procedure (DFUNCTIONALITY.f p f_in f_out F₂).procedure
fun (r₁ : (procsig (f_in) → f_out).ret) (g₁ : VariableAssignment) (r₂ : (procsig (f_in) → f_out).ret)
(g₂ : VariableAssignment) =>
r₁ = r₂ ∧ globInvF L F I g₁ g₂)
:
prhlProc
(fun (a₁ : (procsig (p) → p).ParamType) (g₁ : VariableAssignment) (a₂ : (procsig (p) → p).ParamType)
(g₂ : VariableAssignment) =>
a₁ = a₂ ∧ globInvF L F I g₁ g₂)
S(F₁).fi.procedure S(F₂).fi.procedure
fun (r₁ : (procsig (p) → p).ret) (g₁ : VariableAssignment) (r₂ : (procsig (p) → p).ret) (g₂ : VariableAssignment) =>
r₁ = r₂ ∧ globInvF L F I g₁ g₂
The abstract call rule for a simulator's fi.