Documentation

GaudisCrypt.Examples.SHA3.SHA3_OIndiff

Indifferentiability of the sponge with failing oracles (EasyCrypt proof/SHA3_OIndiff.ec) — #

EC-fidelity port

SHA3OIndiff, the one lemma of SHA3_OIndiff.ec, in EC's script, over the first port's declarations of the file's modules (section FirstPort below: FSome, PSome, Poget, CSome, OSimulator, Counter, OFC, OPC, ODRestr, DFSome, DPSome, OD), as SHA3Indiff.lean over the first port's.

Translation:

Gap list (batch-fix later, see TRANSFER_SKILL.md §1.6):

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.

The first port's translation notes (some mention declarations that went with its proofs):

`clone import OptionIndifferentiability as OIndif with type p <- state, #

type f_out <- bool list, type f_in <- bool list * int`

@[implicit_reducible]

EC's subtyping OPRIMITIVE <: ODPRIMITIVE (its f, fi).

Equations
  • One or more equations did not get rendered due to their size.
@[implicit_reducible]

EC's subtyping OFUNCTIONALITY <: ODFUNCTIONALITY (its f).

Equations
  • One or more equations did not get rendered due to their size.

proc init = …; of module FSome: an alias, EasyCrypt's proc init = M.g — the callee itself, as a module abstracted over the module parameters it uses (F, in declaration order). It has no FSome.init.procedure: applied with the @[simp] lemma FSome.init.apply_simp, it is the callee.

Equations
Instances For

    Instantiating the holes of FSome.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 [FSome.f.procedure.apply_simp]).

    proc f of module FSome as a module, abstracted over the module parameters it uses (F, in declaration order): Module.Arr … (Module.Proc (procsig …)).

    Apply it with the @[simp] lemma FSome.f.apply_simp, which fills the holes of FSome.f.procedure with the callees the body called.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      The body of proc f of module FSome, as a procedure of its own: the one call it makes to a module parameter (F) is its single hole.

      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 FSome.f.procedure.apply_simp) rather than run. Use FSome.f for this procedure as a module.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        @[simp]

        @[simp]: applying FSome to a tuple of its single parameter F — the record of its procedures FSome.init, FSome.f, 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 FSome.init.apply_simp, FSome.f.apply_simp to fill that procedure's holes.

        @[simp]

        @[simp]: applying FSome.f to the parameters proc f uses (F) is Module.proc (FSome.f.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.

        @[simp]

        @[simp]: the alias FSome.init, applied to the parameters its callee uses (F), is its callee, as written in the declaration.

        The module declared by module FSome, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the module type it was declared with.

        Applied to such a tuple it is the record of its procedures FSome.init, FSome.f, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma FSome.apply_simp says.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          proc fi of module PSome.own as a module, abstracted over the module parameters it uses (P, in declaration order): Module.Arr … (Module.Proc (procsig …)).

          Apply it with the @[simp] lemma PSome.own.fi.apply_simp, which fills the holes of PSome.own.fi.procedure with the callees the body called.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            The module declared by module PSome.own, abstracted over its single parameter P, 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 PSome.own.f, PSome.own.fi, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma PSome.own.apply_simp says.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              proc f of module PSome.own as a module, abstracted over the module parameters it uses (P, in declaration order): Module.Arr … (Module.Proc (procsig …)).

              Apply it with the @[simp] lemma PSome.own.f.apply_simp, which fills the holes of PSome.own.f.procedure with the callees the body called.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                @[simp]

                @[simp]: applying PSome.own.fi to the parameters proc fi uses (P) is Module.proc (PSome.own.fi.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.

                @[simp]

                @[simp]: applying PSome.own to a tuple of its single parameter P — the record of its procedures PSome.own.f, PSome.own.fi, 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 PSome.own.f.apply_simp, PSome.own.fi.apply_simp to fill that procedure's holes.

                The body of proc fi of module PSome.own, as a procedure of its own: the one call it makes to a module parameter (P) is its single hole.

                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 PSome.own.fi.procedure.apply_simp) rather than run. Use PSome.own.fi 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 PSome.own.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 [PSome.own.f.procedure.apply_simp]).

                  @[simp]

                  @[simp]: applying PSome.own.f to the parameters proc f uses (P) is Module.proc (PSome.own.f.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.

                  The body of proc f of module PSome.own, as a procedure of its own: the one call it makes to a module parameter (P) is its single hole.

                  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 PSome.own.f.procedure.apply_simp) rather than run. Use PSome.own.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 PSome.own.fi.procedure with a tuple holeArgs of procedures: the body of proc fi 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 [PSome.own.fi.procedure.apply_simp]).

                    EC's PSome (P : PRIMITIVE) : OPRIMITIVE: proc init = P.init, and proc f, proc fi.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For

                      The body of proc fi of module Poget, as a procedure of its own: the one call it makes to a module parameter (P) is its single hole.

                      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 Poget.fi.procedure.apply_simp) rather than run. Use Poget.fi 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 Poget, abstracted over its single parameter P, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the module type it was declared with.

                        Applied to such a tuple it is the record of its procedures Poget.f, Poget.fi, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma Poget.apply_simp says.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For

                          The body of proc f of module Poget, as a procedure of its own: the one call it makes to a module parameter (P) is its single hole.

                          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 Poget.f.procedure.apply_simp) rather than run. Use Poget.f for this procedure as a module.

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            @[simp]

                            @[simp]: applying Poget.fi to the parameters proc fi uses (P) is Module.proc (Poget.fi.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.

                            @[simp]

                            @[simp]: applying Poget.f to the parameters proc f uses (P) is Module.proc (Poget.f.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.

                            proc f of module Poget as a module, abstracted over the module parameters it uses (P, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                            Apply it with the @[simp] lemma Poget.f.apply_simp, which fills the holes of Poget.f.procedure with the callees the body called.

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For

                              Instantiating the holes of Poget.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 [Poget.f.procedure.apply_simp]).

                              @[simp]

                              @[simp]: applying Poget to a tuple of its single parameter P — the record of its procedures Poget.f, Poget.fi, 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 Poget.f.apply_simp, Poget.fi.apply_simp to fill that procedure's holes.

                              Instantiating the holes of Poget.fi.procedure with a tuple holeArgs of procedures: the body of proc fi 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 [Poget.fi.procedure.apply_simp]).

                              proc fi of module Poget as a module, abstracted over the module parameters it uses (P, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                              Apply it with the @[simp] lemma Poget.fi.apply_simp, which fills the holes of Poget.fi.procedure with the callees the body called.

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For

                                The body of proc f of module OSimulator, as a procedure of its own: the one call it makes to a module parameter (F) is its single hole.

                                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 OSimulator.f.procedure.apply_simp) rather than run. Use OSimulator.f for this procedure as a module.

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  @[simp]

                                  @[simp]: OSimulator.fi = Module.proc OSimulator.fi.procedure — true by definition, proc fi using no module parameter and so having no holes to fill.

                                  The body of proc init of module OSimulator, 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 OSimulator.init.procedure.apply_simp) rather than run. Use OSimulator.init 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 OSimulator, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the module type it was declared with.

                                    Applied to such a tuple it is the record of its procedures OSimulator.init, OSimulator.f, OSimulator.fi, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma OSimulator.apply_simp says.

                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For
                                      @[simp]

                                      @[simp]: applying OSimulator.f to the parameters proc f uses (F) is Module.proc (OSimulator.f.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.

                                      theorem GaudisCrypt.SHA3.SHA3_OIndiff.OSimulator.f.procedure.apply_simp [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] (holeArgs✝ : (HoleSigs.cons (procsig (List Bool × ℤ) → Option (List Bool)) HoleSigs.empty).Instantiation) :

                                      Instantiating the holes of OSimulator.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 [OSimulator.f.procedure.apply_simp]).

                                      The body of proc fi of module OSimulator, 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 OSimulator.fi.procedure.apply_simp) rather than run. Use OSimulator.fi for this procedure as a module.

                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For
                                        @[simp]

                                        @[simp]: applying OSimulator to a tuple of its single parameter F — the record of its procedures OSimulator.init, OSimulator.f, OSimulator.fi, 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 OSimulator.init.apply_simp, OSimulator.f.apply_simp, OSimulator.fi.apply_simp to fill that procedure's holes.

                                        proc f of module OSimulator as a module, abstracted over the module parameters it uses (F, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                        Apply it with the @[simp] lemma OSimulator.f.apply_simp, which fills the holes of OSimulator.f.procedure with the callees the body called.

                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For

                                          proc fi of module OSimulator as a module: Module.proc OSimulator.fi.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — OSimulator.fi.apply_simp says exactly that.

                                          Equations
                                          Instances For

                                            Instantiating the holes of OSimulator.fi.procedure with a tuple holeArgs of procedures: the body of proc fi 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 [OSimulator.fi.procedure.apply_simp]).

                                            Instantiating the holes of OSimulator.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 [OSimulator.init.procedure.apply_simp]).

                                            proc init of module OSimulator as a module: Module.proc OSimulator.init.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — OSimulator.init.apply_simp says exactly that.

                                            Equations
                                            Instances For
                                              @[simp]

                                              @[simp]: OSimulator.init = Module.proc OSimulator.init.procedure — true by definition, proc init using no module parameter and so having no holes to fill.

                                              instance GaudisCrypt.SHA3.SHA3_OIndiff.instIsGlobalVarIntCMk :
                                              Counter.c.IsGlobalVar (VariableName.mk "GaudisCrypt.SHA3.SHA3_OIndiff.Counter.c" ℤ)

                                              EC's Counter.c.

                                              Equations
                                              Instances For

                                                The module declared by module Counter: the record of its procedures Counter.init.

                                                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 Counter.apply_simp to apply it with.

                                                Equations
                                                Instances For

                                                  The body of proc init of module Counter, 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 Counter.init.procedure.apply_simp) rather than run. Use Counter.init for this procedure as a module.

                                                  Equations
                                                  Instances For

                                                    proc init of module Counter as a module: Module.proc Counter.init.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — Counter.init.apply_simp says exactly that.

                                                    Equations
                                                    Instances For

                                                      Instantiating the holes of Counter.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 [Counter.init.procedure.apply_simp]).

                                                      @[simp]

                                                      @[simp]: Counter.init = Module.proc Counter.init.procedure — true by definition, proc init using no module parameter and so having no holes to fill.

                                                      Equations
                                                      • One or more equations did not get rendered due to their size.
                                                      Instances For
                                                        @[simp]

                                                        @[simp]: applying OFC to a tuple of its single parameter F — the record of its procedures OFC.init, OFC.f, 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 OFC.init.apply_simp, OFC.f.apply_simp to fill that procedure's holes.

                                                        proc f of module OFC as a module, abstracted over the module parameters it uses (F, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                        Apply it with the @[simp] lemma OFC.f.apply_simp, which fills the holes of OFC.f.procedure with the callees the body called.

                                                        Equations
                                                        • One or more equations did not get rendered due to their size.
                                                        Instances For
                                                          @[simp]

                                                          @[simp]: applying OFC.f to the parameters proc f uses (F) is Module.proc (OFC.f.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.

                                                          The module declared by module OFC, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the module type it was declared with.

                                                          Applied to such a tuple it is the record of its procedures OFC.init, OFC.f, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma OFC.apply_simp says.

                                                          Equations
                                                          • One or more equations did not get rendered due to their size.
                                                          Instances For

                                                            The body of proc init of module OFC, 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 OFC.init.procedure.apply_simp) rather than run. Use OFC.init for this procedure as a module.

                                                            Equations
                                                            Instances For

                                                              Instantiating the holes of OFC.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 [OFC.init.procedure.apply_simp]).

                                                              proc init of module OFC as a module: Module.proc OFC.init.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — OFC.init.apply_simp says exactly that.

                                                              Equations
                                                              Instances For
                                                                @[simp]

                                                                @[simp]: OFC.init = Module.proc OFC.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 OFC, as a procedure of its own: the one call it makes to a module parameter (F) is its single hole.

                                                                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 OFC.f.procedure.apply_simp) rather than run. Use OFC.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 OFC.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 [OFC.f.procedure.apply_simp]).

                                                                  proc init of module OPC as a module: Module.proc OPC.init.procedure, of type Module.Proc (procsig …). It uses no module parameter, so it is not a function — OPC.init.apply_simp says exactly that.

                                                                  Equations
                                                                  Instances For

                                                                    The body of proc f of module OPC, as a procedure of its own: the one call it makes to a module parameter (P) is its single hole.

                                                                    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 OPC.f.procedure.apply_simp) rather than run. Use OPC.f for this procedure as a module.

                                                                    Equations
                                                                    • One or more equations did not get rendered due to their size.
                                                                    Instances For
                                                                      @[simp]

                                                                      @[simp]: applying OPC.f to the parameters proc f uses (P) is Module.proc (OPC.f.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 OPC.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 [OPC.init.procedure.apply_simp]).

                                                                      proc f of module OPC as a module, abstracted over the module parameters it uses (P, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                      Apply it with the @[simp] lemma OPC.f.apply_simp, which fills the holes of OPC.f.procedure with the callees the body called.

                                                                      Equations
                                                                      • One or more equations did not get rendered due to their size.
                                                                      Instances For

                                                                        Instantiating the holes of OPC.fi.procedure with a tuple holeArgs of procedures: the body of proc fi 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 [OPC.fi.procedure.apply_simp]).

                                                                        @[simp]

                                                                        @[simp]: OPC.init = Module.proc OPC.init.procedure — true by definition, proc init using no module parameter and so having no holes to fill.

                                                                        @[simp]

                                                                        @[simp]: applying OPC to a tuple of its single parameter P — the record of its procedures OPC.init, OPC.f, OPC.fi, 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 OPC.init.apply_simp, OPC.f.apply_simp, OPC.fi.apply_simp to fill that procedure's holes.

                                                                        The body of proc init of module OPC, 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 OPC.init.procedure.apply_simp) rather than run. Use OPC.init for this procedure as a module.

                                                                        Equations
                                                                        Instances For

                                                                          Instantiating the holes of OPC.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 [OPC.f.procedure.apply_simp]).

                                                                          proc fi of module OPC as a module, abstracted over the module parameters it uses (P, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                          Apply it with the @[simp] lemma OPC.fi.apply_simp, which fills the holes of OPC.fi.procedure with the callees the body called.

                                                                          Equations
                                                                          • One or more equations did not get rendered due to their size.
                                                                          Instances For
                                                                            @[simp]

                                                                            @[simp]: applying OPC.fi to the parameters proc fi uses (P) is Module.proc (OPC.fi.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.

                                                                            The body of proc fi of module OPC, as a procedure of its own: the one call it makes to a module parameter (P) is its single hole.

                                                                            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 OPC.fi.procedure.apply_simp) rather than run. Use OPC.fi 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 OPC, abstracted over its single parameter P, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the module type it was declared with.

                                                                              Applied to such a tuple it is the record of its procedures OPC.init, OPC.f, OPC.fi, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma OPC.apply_simp says.

                                                                              Equations
                                                                              • One or more equations did not get rendered due to their size.
                                                                              Instances For

                                                                                The module declared by module ODRestr, abstracted over its 2 parameters F, P, 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 ODRestr.distinguish, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma ODRestr.apply_simp says.

                                                                                Equations
                                                                                • One or more equations did not get rendered due to their size.
                                                                                Instances For

                                                                                  Instantiating the holes of ODRestr.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 [ODRestr.distinguish.procedure.apply_simp]).

                                                                                  The body of proc distinguish of module ODRestr, as a procedure of its own: the one call it makes to a module parameter (F, P) is its single hole.

                                                                                  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 ODRestr.distinguish.procedure.apply_simp) rather than run. Use ODRestr.distinguish for this procedure as a module.

                                                                                  Equations
                                                                                  • One or more equations did not get rendered due to their size.
                                                                                  Instances For
                                                                                    @[simp]

                                                                                    @[simp]: applying ODRestr.distinguish to the parameters proc distinguish uses (F, P) is Module.proc (ODRestr.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.

                                                                                    @[simp]

                                                                                    @[simp]: applying ODRestr to a tuple of its 2 parameters F, P — the record of its procedures ODRestr.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 ODRestr.distinguish.apply_simp to fill that procedure's holes.

                                                                                    proc distinguish of module ODRestr as a module, abstracted over the module parameters it uses (F, P, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                                    Apply it with the @[simp] lemma ODRestr.distinguish.apply_simp, which fills the holes of ODRestr.distinguish.procedure with the callees the body called.

                                                                                    Equations
                                                                                    • One or more equations did not get rendered due to their size.
                                                                                    Instances For

                                                                                      The section, with declare module Dist <: ODISTINGUISHER {-Perm, -Gconcl_list.SimLast, …} #

                                                                                      (used by none of its lemmas)

                                                                                      The body of proc f of module DFSome, as a procedure of its own: the one call it makes to a module parameter (F) is its single hole.

                                                                                      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 DFSome.f.procedure.apply_simp) rather than run. Use DFSome.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 DFSome.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 [DFSome.f.procedure.apply_simp]).

                                                                                        The module declared by module DFSome, abstracted over its single parameter F, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the module type it was declared with.

                                                                                        Applied to such a tuple it is the record of its procedures DFSome.f, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma DFSome.apply_simp says.

                                                                                        Equations
                                                                                        Instances For
                                                                                          @[simp]

                                                                                          @[simp]: applying DFSome to a tuple of its single parameter F — the record of its procedures DFSome.f, 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 DFSome.f.apply_simp to fill that procedure's holes.

                                                                                          proc f of module DFSome as a module, abstracted over the module parameters it uses (F, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                                          Apply it with the @[simp] lemma DFSome.f.apply_simp, which fills the holes of DFSome.f.procedure with the callees the body called.

                                                                                          Equations
                                                                                          • One or more equations did not get rendered due to their size.
                                                                                          Instances For
                                                                                            @[simp]

                                                                                            @[simp]: applying DFSome.f to the parameters proc f uses (F) is Module.proc (DFSome.f.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 DPSome.fi.procedure with a tuple holeArgs of procedures: the body of proc fi 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 [DPSome.fi.procedure.apply_simp]).

                                                                                            Instantiating the holes of DPSome.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 [DPSome.f.procedure.apply_simp]).

                                                                                            The body of proc fi of module DPSome, as a procedure of its own: the one call it makes to a module parameter (P) is its single hole.

                                                                                            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 DPSome.fi.procedure.apply_simp) rather than run. Use DPSome.fi for this procedure as a module.

                                                                                            Equations
                                                                                            • One or more equations did not get rendered due to their size.
                                                                                            Instances For
                                                                                              @[simp]

                                                                                              @[simp]: applying DPSome.f to the parameters proc f uses (P) is Module.proc (DPSome.f.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.

                                                                                              proc f of module DPSome as a module, abstracted over the module parameters it uses (P, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                                              Apply it with the @[simp] lemma DPSome.f.apply_simp, which fills the holes of DPSome.f.procedure with the callees the body called.

                                                                                              Equations
                                                                                              • One or more equations did not get rendered due to their size.
                                                                                              Instances For

                                                                                                proc fi of module DPSome as a module, abstracted over the module parameters it uses (P, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                                                Apply it with the @[simp] lemma DPSome.fi.apply_simp, which fills the holes of DPSome.fi.procedure with the callees the body called.

                                                                                                Equations
                                                                                                • One or more equations did not get rendered due to their size.
                                                                                                Instances For
                                                                                                  @[simp]

                                                                                                  @[simp]: applying DPSome to a tuple of its single parameter P — the record of its procedures DPSome.f, DPSome.fi, 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 DPSome.f.apply_simp, DPSome.fi.apply_simp to fill that procedure's holes.

                                                                                                  @[simp]

                                                                                                  @[simp]: applying DPSome.fi to the parameters proc fi uses (P) is Module.proc (DPSome.fi.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.

                                                                                                  The module declared by module DPSome, abstracted over its single parameter P, which it takes as one right-nested tuple: Module.Arr (T₁ ×ₘ (… ×ₘ Tₙ)) M, with M the module type it was declared with.

                                                                                                  Applied to such a tuple it is the record of its procedures DPSome.f, DPSome.fi, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma DPSome.apply_simp says.

                                                                                                  Equations
                                                                                                  • One or more equations did not get rendered due to their size.
                                                                                                  Instances For

                                                                                                    The body of proc f of module DPSome, as a procedure of its own: the one call it makes to a module parameter (P) is its single hole.

                                                                                                    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 DPSome.f.procedure.apply_simp) rather than run. Use DPSome.f for this procedure as a module.

                                                                                                    Equations
                                                                                                    • One or more equations did not get rendered due to their size.
                                                                                                    Instances For
                                                                                                      @[simp]

                                                                                                      @[simp]: applying OD.distinguish to the parameters proc distinguish uses (F, P) is Module.proc (OD.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.

                                                                                                      @[simp]

                                                                                                      @[simp]: applying OD to a tuple of its 2 parameters F, P — the record of its procedures OD.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 OD.distinguish.apply_simp to fill that procedure's holes.

                                                                                                      The body of proc distinguish of module OD, as a procedure of its own: the one call it makes to a module parameter (F, P) is its single hole.

                                                                                                      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 OD.distinguish.procedure.apply_simp) rather than run. Use OD.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 OD, abstracted over its 2 parameters F, P, 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 OD.distinguish, each applied to the parameters that procedure itself uses — which is what the @[simp] lemma OD.apply_simp says.

                                                                                                        Equations
                                                                                                        • One or more equations did not get rendered due to their size.
                                                                                                        Instances For

                                                                                                          proc distinguish of module OD as a module, abstracted over the module parameters it uses (F, P, in declaration order): Module.Arr … (Module.Proc (procsig …)).

                                                                                                          Apply it with the @[simp] lemma OD.distinguish.apply_simp, which fills the holes of OD.distinguish.procedure with the callees the body called.

                                                                                                          Equations
                                                                                                          • One or more equations did not get rendered due to their size.
                                                                                                          Instances For

                                                                                                            Instantiating the holes of OD.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 [OD.distinguish.procedure.apply_simp]).

                                                                                                            The two haves of SHA3OIndiff #

                                                                                                            The option games against the bit-level games of SHA3Indiff for DRestr(OD(Dist)): they differ in Cntr.c (written on the right only); EC's invariant ={glob Counter} /\ ={c}(Counter, Cntr) (with ={glob Perm} or ={glob IRO, glob Simulator}) is the states equal outside ocL with ocI.

                                                                                                            theorem GaudisCrypt.SHA3.Pilot.SHA3_OIndiff.SHA3OIndiff [SLCommon.Params] [BlockSponge.Params] [Gconcl_list.Params] (Dist : SHA3_OIndiff.OIndif.ODISTINGUISHER) [Module.Declared Dist (SHA3_OIndiff.Counter.c.footprint ⊔ Common.Perm.m.footprint ⊔ Common.Perm.mi.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Gconcl.S.m.footprint ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ SLCommon.F.RO.m.footprint ⊔ SLCommon.F.FRO.m.footprint ⊔ SLCommon.Redo.prefixes.footprint ⊔ SLCommon.C.c.footprint ⊔ SLCommon.C.queries.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] {R : Footprint VariableAssignment} [Module.ECGlob Dist R] [R.Restricted (SHA3_OIndiff.Counter.c.footprint ⊔ Common.Perm.m.footprint ⊔ Common.Perm.mi.footprint ⊔ Sponge.BIRO.IRO.mp.footprint ⊔ BlockSponge.BIRO.IRO.mp.footprint ⊔ SHA3Indiff.Cntr.c.footprint ⊔ SHA3Indiff.Simulator.m.footprint ⊔ SHA3Indiff.Simulator.mi.footprint ⊔ SHA3Indiff.Simulator.paths.footprint ⊔ Gconcl_list.BIRO2.IRO.mp.footprint ⊔ BlockSponge.C.c.footprint ⊔ Gconcl.S.m.footprint ⊔ Gconcl.S.mi.footprint ⊔ Gconcl.S.paths.footprint ⊔ SLCommon.F.RO.m.footprint ⊔ SLCommon.F.FRO.m.footprint ⊔ SLCommon.Redo.prefixes.footprint ⊔ SLCommon.C.c.footprint ⊔ SLCommon.C.queries.footprint ⊔ Gconcl_list.F2.RO.m.footprint ⊔ Gconcl_list.F2.FRO.m.footprint ⊔ Gconcl_list.Simulator.m.footprint ⊔ Gconcl_list.Simulator.mi.footprint ⊔ Gconcl_list.Simulator.paths.footprint ⊔ Gconcl_list.Simulator.unvalid_map.footprint ⊔ Sponge.HybridIRO.HybridIROLazy.mp.footprint ⊔ Sponge.HybridIRO.HybridIROEager.mp.footprint ⊔ Sponge.HybridIRO.ERO.RO.m.footprint ⊔ Sponge.HybridIRO.ERO.FRO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.RO.m.footprint ⊔ Gconcl_list.Simplify_Simulator.IRO2.FRO.m.footprint ⊔ Handle.G1.m.footprint ⊔ Handle.G1.mi.footprint ⊔ Handle.G1.mh.footprint ⊔ Handle.G1.mhi.footprint ⊔ Handle.G1.bext.footprint ⊔ Handle.G1.bcol.footprint ⊔ Handle.ROhandle.FRO.m.footprint ⊔ Handle.G1.paths.footprint ⊔ Handle.G1.chandle.footprint ⊔ ConcreteF.PF.m.footprint ⊔ ConcreteF.PF.mi.footprint ⊔ Handle.ROhandle.RO.m.footprint ⊔ Gext.ReSample.count.footprint ⊔ Gcol.Gcol.count.footprint ⊔ ConcreteF.Switching.DBounder.FBounder.c.footprint ⊔ ConcreteF.Switching.ARP.coll.footprint ⊔ ConcreteF.Switching.ARP.m.footprint ⊔ ConcreteF.Switching.ARP.mi.footprint ⊔ ConcreteF.Switching.PRPi.m.footprint ⊔ ConcreteF.Switching.PRPi.mi.footprint)] (m : VariableAssignment) :

                                                                                                            EC's lemma SHA3OIndiff (Dist <: ODISTINGUISHER{-Counter, -Perm, -IRO, -BlockSponge.BIRO.IRO, -Cntr, -Simulator, -Gconcl_list.SimLast(Gconcl.S), -BlockSponge.C, -Gconcl.S, -SLCommon.F.RO, -SLCommon.F.FRO, -SLCommon.Redo, -SLCommon.C, -Gconcl_list.BIRO2.IRO, -Gconcl_list.F2.RO, -Gconcl_list.F2.FRO, -Gconcl_list.Simulator, -OSimulator}) &m : (forall (F <: ODFUNCTIONALITY) (P <: ODPRIMITIVE), islossless P.f => islossless P.fi => islossless F.f => islossless Dist(F,P).distinguish) => |Pr[OGReal(CSome(Sponge), PSome(Perm), ODRestr(Dist)).main() @ &m : res] - Pr[OGIdeal(FSome(IRO), OSimulator, ODRestr(Dist)).main() @ &m : res]| <= (limit ^ 2 - limit)%r / (2 ^ (r + c + 1))%r + (4 * limit ^ 2)%r / (2 ^ c)%r`.