Documentation

GaudisCrypt.Examples.SchnorrPK

The Schnorr proof of knowledge is a Sigma protocol (EasyCrypt examples/SchnorrPK.ec) #

EC's file, declaration by declaration and script line by line: completeness (with its losslessness), special soundness and special honest-verifier zero knowledge, all proven.

Translation (as Examples/ElGamal.lean):

Gap list (the examples' infrastructure batch; numbers as in Examples/ElGamal.lean where the gap is the same):

theory SchnorrTypes

def GaudisCrypt.Examples.SchnorrPK.R_DL {group exp : Type} [CommGroup group] [Field exp] [EC.CyclicGroup.Params group exp] (h : group) (w : exp) :

EC's op R_DL (h : group) (w : exp) = (h = g ^ w).

Equations
Instances For
    noncomputable def GaudisCrypt.Examples.SchnorrPK.SchnorrPK.test.procedure {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :

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

    Equations
    Instances For
      theorem GaudisCrypt.Examples.SchnorrPK.SchnorrPK.test.procedure.apply_simp {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] (holeArgs✝ : HoleSigs.empty.Instantiation) :
      procedure.instantiate holeArgs✝ = proc (h : group, a : group) : exp { var e : exp; e <$ EC.CyclicGroup.dt; return §e }

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

      noncomputable def GaudisCrypt.Examples.SchnorrPK.SchnorrPK.respond {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :
      procmod (group × exp, group × exp, exp) → exp

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

      Equations
      Instances For
        @[simp]
        theorem GaudisCrypt.Examples.SchnorrPK.SchnorrPK.test.apply_simp {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :

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

        @[simp]
        theorem GaudisCrypt.Examples.SchnorrPK.SchnorrPK.commit.apply_simp {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :

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

        noncomputable def GaudisCrypt.Examples.SchnorrPK.SchnorrPK.test {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :

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

        Equations
        Instances For
          noncomputable def GaudisCrypt.Examples.SchnorrPK.SchnorrPK.verify.procedure {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :

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

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            @[simp]
            theorem GaudisCrypt.Examples.SchnorrPK.SchnorrPK.verify.apply_simp {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :

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

            noncomputable def GaudisCrypt.Examples.SchnorrPK.SchnorrPK.gen.procedure {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :
            proctype () -> group × exp

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

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              noncomputable def GaudisCrypt.Examples.SchnorrPK.SchnorrPK.commit.procedure {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :
              proctype (group, exp) -> group × exp

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

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                @[simp]
                theorem GaudisCrypt.Examples.SchnorrPK.SchnorrPK.respond.apply_simp {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :

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

                noncomputable def GaudisCrypt.Examples.SchnorrPK.SchnorrPK.commit {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :
                procmod (group, exp) → (group × exp)

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

                Equations
                Instances For
                  theorem GaudisCrypt.Examples.SchnorrPK.SchnorrPK.verify.procedure.apply_simp {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] (holeArgs✝ : HoleSigs.empty.Instantiation) :
                  procedure.instantiate holeArgs✝ = proc (h : group, a : group, e : exp, z : exp) : Bool { var v : group, v' : group; v <- §a * §h ^ §e; v' <- EC.CyclicGroup.g ^ §z; return decide (§v = §v') }

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

                  noncomputable def GaudisCrypt.Examples.SchnorrPK.SchnorrPK.respond.procedure {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :
                  proctype (group × exp, group × exp, exp) -> exp

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

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    theorem GaudisCrypt.Examples.SchnorrPK.SchnorrPK.respond.procedure.apply_simp {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] (holeArgs✝ : HoleSigs.empty.Instantiation) :
                    procedure.instantiate holeArgs✝ = proc (sw : group × exp, ms : group × exp, e : exp) : exp { var w : exp, r : exp, z : exp; w <- (§sw).2; r <- (§ms).2; z <- §r + §e * §w; return §z }

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

                    noncomputable def GaudisCrypt.Examples.SchnorrPK.SchnorrPK.gen {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :
                    procmod () → (group × exp)

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

                    Equations
                    Instances For
                      noncomputable def GaudisCrypt.Examples.SchnorrPK.SchnorrPK.verify {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :

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

                      Equations
                      Instances For
                        theorem GaudisCrypt.Examples.SchnorrPK.SchnorrPK.gen.procedure.apply_simp {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] (holeArgs✝ : HoleSigs.empty.Instantiation) :
                        procedure.instantiate holeArgs✝ = proc () : (group × exp) { var w : exp, h : group; w <$ EC.CyclicGroup.dt; if (decide (§w = 0)) { w <- 0; } h <- EC.CyclicGroup.g ^ §w; return (§h, §w) }

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

                        theorem GaudisCrypt.Examples.SchnorrPK.SchnorrPK.commit.procedure.apply_simp {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] (holeArgs✝ : HoleSigs.empty.Instantiation) :
                        procedure.instantiate holeArgs✝ = proc (h : group, w : exp) : (group × exp) { var r : exp, a : group; r <$ EC.CyclicGroup.dt; a <- EC.CyclicGroup.g ^ §r; return (§a, §r) }

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

                        @[simp]
                        theorem GaudisCrypt.Examples.SchnorrPK.SchnorrPK.gen.apply_simp {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :

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

                        noncomputable def GaudisCrypt.Examples.SchnorrPK.SchnorrPK {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :
                        SP.SigmaScheme

                        The module declared by module SchnorrPK: the record of its procedures SchnorrPK.gen, SchnorrPK.commit, SchnorrPK.test, SchnorrPK.respond, SchnorrPK.verify.

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

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          @[simp]
                          theorem GaudisCrypt.Examples.SchnorrPK.SchnorrPKAlgorithms.soundness.apply_simp {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :

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

                          theorem GaudisCrypt.Examples.SchnorrPK.SchnorrPKAlgorithms.soundness.procedure.apply_simp {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] (holeArgs✝ : HoleSigs.empty.Instantiation) :
                          procedure.instantiate holeArgs✝ = proc (h : group, a : group, e : exp, z : exp, e' : exp, z' : exp) : (Option exp) { var v : Bool, v' : Bool, w : exp, sto : Option exp; v <- decide (EC.CyclicGroup.g ^ §z = §a * §h ^ §e); v' <- decide (EC.CyclicGroup.g ^ §z' = §a * §h ^ §e'); if (decide (§e ≠ §e') && §v && §v') { w <- (§z - §z') / (§e - §e'); sto <- some §w; } else { sto <- none; } return §sto }

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

                          noncomputable def GaudisCrypt.Examples.SchnorrPK.SchnorrPKAlgorithms.soundness.procedure {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :

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

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            theorem GaudisCrypt.Examples.SchnorrPK.SchnorrPKAlgorithms.simulate.procedure.apply_simp {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] (holeArgs✝ : HoleSigs.empty.Instantiation) :
                            procedure.instantiate holeArgs✝ = proc (h : group, e : exp) : (group × exp × exp) { var z : exp, a : group; z <$ EC.CyclicGroup.dt; a <- EC.CyclicGroup.g ^ §z * §h ^ (-§e); return (§a, §e, §z) }

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

                            noncomputable def GaudisCrypt.Examples.SchnorrPK.SchnorrPKAlgorithms {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :
                            SP.SigmaAlgorithms

                            The module declared by module SchnorrPKAlgorithms: the record of its procedures SchnorrPKAlgorithms.soundness, SchnorrPKAlgorithms.simulate.

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

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For
                              noncomputable def GaudisCrypt.Examples.SchnorrPK.SchnorrPKAlgorithms.simulate {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :
                              procmod (group, exp) → (group × exp × exp)

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

                              Equations
                              Instances For
                                noncomputable def GaudisCrypt.Examples.SchnorrPK.SchnorrPKAlgorithms.simulate.procedure {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :
                                proctype (group, exp) -> group × exp × exp

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

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  @[simp]
                                  theorem GaudisCrypt.Examples.SchnorrPK.SchnorrPKAlgorithms.simulate.apply_simp {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :

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

                                  noncomputable def GaudisCrypt.Examples.SchnorrPK.SchnorrPKAlgorithms.soundness {group exp : Type} [_gaudiParam0 : CommGroup group] [_gaudiParam1 : Field exp] [_gaudiParam2 : Fintype exp] [_gaudiParam3 : DecidableEq exp] [_gaudiParam4 : EC.CyclicGroup.Params group exp] :

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

                                  Equations
                                  Instances For

                                    EC's lemma schnorr_proof_of_knowledge_completeness_ll: islossless Completeness(SchnorrPK).main.

                                    theorem GaudisCrypt.Examples.SchnorrPK.schnorr_proof_of_knowledge_completeness {group exp : Type} [CommGroup group] [Field exp] [Fintype exp] [DecidableEq exp] [EC.CyclicGroup.Params group exp] (h : group) (w' : exp) (m : VariableAssignment) :
                                    EC.SigmaProtocol.R h w' → Pr[ SP.Completeness(SchnorrPK).main (h, w') @ &m : §res = true ] = 1

                                    EC's lemma schnorr_proof_of_knowledge_completeness h w' &m: R h w' => Pr[Completeness(SchnorrPK).main(h, w') @ &m : res] = 1%r.

                                    theorem GaudisCrypt.Examples.SchnorrPK.schnorr_proof_of_knowledge_special_soundness {group exp : Type} [CommGroup group] [Field exp] [Fintype exp] [DecidableEq exp] [EC.CyclicGroup.Params group exp] (h msg : group) (ch ch' r r' : exp) (m : VariableAssignment) :
                                    ch ≠ ch' → EC.CyclicGroup.g ^ r = msg * h ^ ch → EC.CyclicGroup.g ^ r' = msg * h ^ ch' → Pr[ SP.SpecialSoundnessExperiment(SchnorrPK, SchnorrPKAlgorithms).main (h, msg, ch, r, ch', r') @ &m : §res ≠ none ∧ EC.SigmaProtocol.R h (EC.oget §res) ] = 1

                                    EC's lemma schnorr_proof_of_knowledge_special_soundness (h: statement) msg (ch ch' r r' : exp) &m: ch <> ch' => g ^ r = msg*(h ^ ch) => g ^ r' = msg*(h ^ ch') => Pr[SpecialSoundnessExperiment(SchnorrPK, SchnorrPKAlgorithms).main(h, msg, ch, r, ch', r') @ &m : (res <> None /\ R h (oget res))] = 1%r.

                                    theorem GaudisCrypt.Examples.SchnorrPK.schnorr_proof_of_knowledge_shvzk {group exp : Type} [CommGroup group] [Field exp] [Fintype exp] [DecidableEq exp] [EC.CyclicGroup.Params group exp] (D : SP.SigmaTraceDistinguisher) (m : VariableAssignment) :
                                    Pr[ (Module.app (Module.app (Module.app SP.SimulateHonestVerifier.gameIdeal SchnorrPK) SchnorrPKAlgorithms) D) () @ &m : §res = true ] = Pr[ (Module.app (Module.app SP.SimulateHonestVerifier.gameReal SchnorrPK) D) () @ &m : §res = true ]

                                    EC's lemma schnorr_proof_of_knowledge_shvzk (D<: SigmaTraceDistinguisher) &m: Pr[SimulateHonestVerifier(SchnorrPK, SchnorrPKAlgorithms, D).gameIdeal() @ &m : res] = Pr[SimulateHonestVerifier(SchnorrPK, SchnorrPKAlgorithms, D).gameReal() @ &m : res].