On this page
Assumptions inventory
A security theorem may assume named hardness assumptions: Prop-valued definitions documented as assumptions, such as F.DDH setup, DecisionLWE … or OneWay f, including a security notion of a component that the caller supplies (AGENTS.md, Security theorems). This page lists each such assumption that the check below finds a theorem in Cslib.Crypto taking, and the hardness assumptions the library defines. It is not complete: the check misses some assumptions, and the paragraphs on its limits below name the known ones. For each listed assumption, the page says where the definition comes from:
- standard: a cited source states the assumption, and the docstring cites that source definition. The row gives the bibliography key of references.bib and the locator. Deviations or relation names every material difference from the source, such as an arbitrary setup law where the source has an efficient parameter generator. A deviation that strengthens the assumption (more adversaries, more information for them, a dropped restriction that the source relies on) makes it novel, unless a cited source states that form or the library proves it from the standard one.
- novel: no cited source states the assumption. Its docstring says that it is novel to this library, and Deviations or relation says how it relates to standard assumptions (it follows from one, implies one, or neither) and why it is plausible. A novel assumption may support a result presented as original. A theorem that rests on it names it, and is never presented as a cited result: that would be a stand-in under Faithful headlines rule 2.
- vocabulary: a generic notion parameterized by the objects whose security it states (games, ensembles, an adversary predicate, a bound), such as
Game.IndistinguishableorComputationallyIndistinguishable. It becomes an assumption only through the instance that a theorem supplies, and review checks that instance under a cited headline. A primitive's or problem's own security notion is never vocabulary, even in a concrete form against a caller's adversary class and bound, asPRG.Generator.Secureis.
A row of any status says "locator not verified" until someone has read its locator at the source. A pull request removes the phrase only when its body records that check (the source's version or URL and what was read there) and its reviewer confirms it at the source. A row that says "status pending" has an open question about its status, named in the row; until it is settled, the assumption does not count as the source's under a cited headline. The Boneh–Shoup locators without that phrase were read in Version 0.6 of the book (January 2023), the Regev locator in the author's 2009 version of the paper, and the Kyber and Dilithium locators in versions 3.02 and 3.1 of their specifications. The pull request that removed the phrase from a row (#5585 for the first rows) records in its description what was read, and its reviewers confirmed it. The Goldreich1998Fragments locators refer to the printed pages of the author's posted draft of February 27, 1998, of the first volume of Foundations of Cryptography, recorded in sources; the published volume was not inspected.
Nonvacuity links a test that shows the assumption fails for an insecure instance (for example a fixed group, a zero noise law or a constant function), where the library has one.
check_hardness_assumptions.py reads the built library and result registry after lake build CslibFrontier CslibFrontierResults (--list needs only lake build CslibFrontier). It finds every premise of a public Crypto theorem headed by a Prop-valued declaration whose definition mentions negligibility, an advantage or indistinguishability, whatever the declaration's own name, and checks it against this page. An unregistered assumption fails. So does a standard assumption whose docstring cites none of its row's keys, a novel assumption whose docstring does not say "novel to this library", a "locator not verified" in a row of any status, and a theorem resting on a novel assumption that does not name it, or whose docstring presents a cited result (it cites a key, or its first sentence says "theorem" or opens with a bold title) without its first sentence saying "step" or "helper". The existing gaps are recorded, each with a justification, in hardness_assumptions_baseline.json, which may only shrink. Pull requests and merge groups enforce the check. python3 scripts/check_hardness_assumptions.py --list prints the theorems that rest on each assumption. The audit behind this page is #5578.
The check does not judge whether a definition matches its source, whether a locator is right, or whether a theorem that claims a cited result rests on the assumption that the source uses, with the source's instance. It does not see a cited result that a docstring names without a bibliography key, the word "theorem" or a bold title in its first sentence, nor one that only a theorem's name claims. The step test is syntactic too: an original result on a novel assumption, which the rule allows, is flagged when its docstring cites a key, or its first sentence says "theorem" or opens with a bold title, and then passes only through a justified baseline entry. Review covers all of this (Review cycle).
The reader also misses two kinds of assumption. One is a premise written inline, such as a hypothesis ∀ A, Negligible (advantage A), which no named declaration heads. The other is a Prop-valued definition that reaches no security atom (Negligible, a constant named like an advantage, or one whose name contains Indistinguishable) through Prop-valued declarations within five levels: a bound on a quantity not named like an advantage, such as a success probability or an agreement fraction; an advantage behind a helper that is not Prop-valued; or a security atom reached only through a chain of more than five Prop-valued declarations. Such assumptions are not on this page, and a row for one fails as naming no named assumption. The known cases (#5578 finding 9) are:
Cslib.Complexity.MildlyHardOnAverageandCslib.Complexity.MildlyHardOnAverageENat, which the Liu–Pass converse inOneWay/LiuPassConverse.leanassumes (Cslib.Crypto.exists_oneWay_of_mildlyHardOnAverage_timeBoundedNatand its companions);Cslib.Crypto.Pseudoentropy.SamplablePair.HasGapandCslib.Crypto.Pseudoentropy.SamplablePair.HasGapWithAdvice, assumed throughoutPseudoentropy/;Cslib.Circuits.Boolean.IsAverageCaseHard, which the Nisan–Wigderson boundCslib.Crypto.PRG.NisanWigderson.abs_card_div_sub_card_div_ltassumes.
Registering them needs the reader to accept them first, which is a follow-up of #5578.
Names are relative to Cslib.Crypto.
Group-based assumptions#
| Assumption | Status | Source definition | Deviations or relation | Nonvacuity |
|---|---|---|---|---|
PrimeOrderGroupFamily.DiscreteLog | standard | [BonehShoup2023] Attack Game 10.4 and Definition 10.6, p. 409; asymptotic form with Definition 10.9, p. 413 | The setup law is any ℕ → PMF F.Desc; Boneh–Shoup's group parameters come from an efficient algorithm (Definition 10.9), so the assumption is the source's only for efficiently sampled setup laws. The adversary's time is polynomial in its input, including the encoded group parameters, whose length an efficient setup keeps polynomial in n. The adversary writes the exponent as a bit string, read modulo q. | AssumptionNonvacuity.lean not_discreteLog_const |
PrimeOrderGroupFamily.CDH | standard | [BonehShoup2023] Attack Game 10.5 and Definition 10.7, pp. 409–410 | Any setup law, as for DiscreteLog. | AssumptionNonvacuity.lean not_cdh_const |
PrimeOrderGroupFamily.CoCDH | standard | [BonehShoup2023] Attack Game 15.1 and Definition 15.3, p. 628 | Any setup law ℕ → PMF F.Desc, as for DiscreteLog, and any prime-order companion C : F.Companion sharing the prime order q. Implies CDH (CoCDH.cdh) and DiscreteLog (CoCDH.discreteLog), and coincides with CDH when C = F.self (coCdh_self_iff_cdh). | BLSSignature.lean not_coCdh_const |
PrimeOrderGroupFamily.WordCDH | standard | [BonehShoup2023] Attack Game 10.5 and Definition 10.7, pp. 409–410 | Any setup law, as for DiscreteLog. The adversary outputs an arbitrary word and wins when it equals the family's encoding of the Diffie–Hellman element; Boneh–Shoup's adversary outputs a group element. Boneh–Shoup's group families are efficiently recognizable ([BonehShoup2023] Definition 10.9(1), p. 413). That is the decodable case, where DecodablePrimeOrderGroupFamily.cdh_iff_encoded derives WordCDH from CDH. For a family without a decoder, WordCDH admits more adversaries than CDH and is not derived from it; it still implies CDH for every family (WordCDH.cdh). | AssumptionNonvacuity.lean not_wordCDH_const |
DecodablePrimeOrderGroupFamily.GapCDH | standard | [KatzLindell2020] §12.4.4, p. 434 | Any setup law ℕ → PMF F.Desc, where the source generates (G, q, g) with an efficient group generator G(1ⁿ) (§12.4.1, p. 427). Over a DecodablePrimeOrderGroupFamily, the adversary is a uniform strict oracle-PPT word program on encGapCDHInput that queries the fixed-base DDH oracle O_y via framed pairs encDDHOracleQuery (ddhWordOracle d y returns [true] iff both words decode to U, V ∈ F.Carrier d with V = y • U, and [false] on non-canonical or out-of-group queries) and outputs a candidate Diffie–Hellman word; [KatzLindell2020] §12.4.4 (p. 434) states gap-CDH in prose over group elements without a numbered box. Implies PrimeOrderGroupFamily.WordCDH, PrimeOrderGroupFamily.CDH, and PrimeOrderGroupFamily.DiscreteLog (GapCDH.wordCDH, GapCDH.cdh, GapCDH.discreteLog). | AssumptionNonvacuity.lean not_gapCDH_const |
PrimeOrderGroupFamily.DDH | standard | [BonehShoup2023] Attack Game 10.6 and Definition 10.8, pp. 410–411 | Any setup law, as for DiscreteLog. | AssumptionNonvacuity.lean not_ddh_const |
PairingGroupFamily.DecisionBDH | standard | [BonehShoup2023] Attack Game 15.8 and Definition 15.12, pp. 649–650 | Any setup law ℕ → PMF P.G₀.Desc, as for DiscreteLog. Equivalent to its word-level form (decisionBDH_iff_encoded). | BLSSignature.lean not_decisionBDH_const |
CyclicGroupFamily.DDH | standard | [BonehShoup2023] Attack Game 10.6, p. 410, with the order not required to be prime as in Exercise 10.24, p. 431 | Any setup law, as for DiscreteLog. The order need not be prime, so the assumption fails whenever every group the setup law can produce has even order (CyclicGroupFamily.not_ddh_of_even_order). On a prime-order family it is PrimeOrderGroupFamily.DDH (PrimeOrderGroupFamily.ddh_toCyclicGroupFamily_iff). | DiffieHellmanEvenOrder.lean not_ddh_residueGroups |
PrimeOrderGroupFamily.MultiDDH | standard | [BonehShoup2023] Exercise 10.11 (Multi-DDH (I)), p. 426 | Proved from DDH (DDH.multiDDH). | AssumptionNonvacuity.lean not_multiDDH_const |
PrimeOrderGroupFamily.SingleSecretMultiDDH | standard | [BonehShoup2023] Exercise 10.11 (Multi-DDH (I)), p. 426 | The case of one secret; proved from DDH. | AssumptionNonvacuity.lean not_singleSecretMultiDDH_const |
PrimeOrderGroupFamily.SecureKDF | standard | [BonehShoup2023] Attack Game 11.3, p. 448, and Definition 11.5, p. 449 | Relative to the setup law of the group. It is Attack Game 11.3 for X = G × G, Y = G and F((u, v), w) = H(d, w), with keys uniform msgLen n-bit words: the distinguisher sees two independent uniform group elements and either H(d, w) for an independent uniform w or a uniform key. H hashes one group element, the key derivation of the variant E′_EG of [BonehShoup2023] Remark 11.1, p. 446, which hashes the Diffie–Hellman element w alone. It is not the KDF assumption of Theorem 11.5's E_EG, which hashes (v, w) with H : G² → K. | DiffieHellman.lean not_secureKDF_constZeroKDF |
PrimeOrderGroupFamily.LinearHashKDFConditions | standard | [BonehShoup2023] Theorem 8.11 (leftover hash lemma), p. 334 | The statistical hypotheses under which the linear-hash KDF is a SecureKDF; not a hardness assumption. | — |
Factoring-based assumptions#
| Assumption | Status | Source definition | Deviations or relation | Nonvacuity |
|---|---|---|---|---|
QuadraticResiduosityHard | standard | [KatzLindell2020] Section 15.4.3 (locator not verified) | Any law on the primes; the ideal game samples nonresidues with Jacobi symbol +1. | AssumptionNonvacuity.lean not_quadraticResiduosityHard_const |
DCR | standard | [KatzLindell2020] Definition 15.10 (locator not verified) | Balanced moduli from any law. | AssumptionNonvacuity.lean not_dcr_const |
ModulusFactoringHard | standard | [KatzLindell2020] Section 9.2.3, Definition 9.45 (locator not verified) | Moduli from any law ℕ → PMF ℕ in place of GenModulus, which need not be efficiently samplable or supported on products of two primes. FactoringHard is the case of Blum moduli (factoringHard_iff_modulusFactoringHard). | AssumptionNonvacuity.lean not_modulusFactoringHard_const |
FactoringHard | standard | [KatzLindell2020] Section 9.2.3 (locator not verified) | Blum moduli only, drawn from any law on BlumDesc (BlumGen), which need not be efficiently samplable. | AssumptionNonvacuity.lean not_factoringHard_const |
RabinOneWay | standard | [KatzLindell2020] Section 15.5.2 (locator not verified) | Blum moduli from any law on BlumDesc, which need not be efficiently samplable. The input is a uniform bit string twice as long as N, reduced modulo N, not a uniform unit. | AssumptionNonvacuity.lean not_rabinOneWay_const |
RSAOneWay | standard | [BonehShoup2023] Attack Game 10.3 and Definition 10.5, pp. 404–405 | Keys from any law on RSADesc (RSAGen), which need not be efficiently samplable, in place of Boneh–Shoup's RSAGen(ℓ, e). The challenge is uniform on Fin N, as x ← Z_n in the source. | RSALeastSignificantBit.lean not_rsaOneWay_desc33 |
RSAUnitOneWay | standard | [BonehShoup2023] §10.6.2, p. 416 (uRSAadv: Attack Game 10.3 with x ← Z_n^*, and the variant RSA assumption after Theorem 10.5), with Attack Game 10.3 and Definition 10.5, pp. 404–405 | Keys from any law on RSADesc (RSAGen), which need not be efficiently samplable, in place of Boneh–Shoup's RSAGen(ℓ, e). The preimage is uniform on (ZMod N)ˣ, as x ← Z_n^* in the source, and the inverter receives and returns residues in Fin N, as in RSAOneWay. Follows from RSAOneWay (RSAOneWay.rsaUnitOneWay, Theorem 10.5); the converse (§10.11, Exercise 10.26, p. 431, running the input inverter directly with no new reduction defined) is proved in RSAUnitInversion/Converse.lean when the non-unit fraction of every key in the support of gen n is at most a negligible function of n, or when every such key has primes of at least n bits for all large n (RSAUnitOneWay.rsaOneWay_of_nonUnitFrac_le, RSAUnitOneWay.rsaOneWay, rsaOneWay_iff_rsaUnitOneWay). | AssumptionNonvacuity.lean not_rsaUnitOneWay_const |
StrongRSA | standard | [BonehShoup2023] §10.9, p. 420 | The group is (ZMod N)ˣ, with (N, g) drawn from any law on GUOParams, which need not be efficiently samplable or give a unit g, in place of a group of unknown order from an efficient GGen; rsaGUOSetup is Boneh–Shoup's GGen from RSA keys (p. 421). The adversary outputs natural numbers x and e ≠ 1 in place of x ∈ G and an integer e ≠ ±1. For a unit g, each winning output gives one for the source's game, so for a setup that gives a unit g the source's assumption implies this one; that implication is not formalized. The source's remark that strong RSA is stronger than standard RSA is not formalized. | AssumptionNonvacuity.lean not_strongRSA_const; StrongRSA.lean not_strongRSA_rsaGUOSetup_const |
TotientHard | novel | — | Equivalent to ModulusFactoringHard for the modulus law of gen (totientHard_iff_modulusFactoringHard), so exactly as plausible as factoring. Katz–Lindell show that computing φ(N) is equivalent to factoring but state no separate assumption. Keys from any law on RSADesc (RSAGen), which need not be efficiently samplable. | AssumptionNonvacuity.lean not_totientHard_const |
RSAKeyRecoveryHard | novel | — | Follows from RSAOneWay (RSAOneWay.rsaKeyRecoveryHard) and implies TotientHard (RSAKeyRecoveryHard.totientHard). Katz–Lindell show that computing d from (N, e) is as hard as factoring, a direction not formalized here, but state no separate assumption. Keys from any law on RSADesc (RSAGen), which need not be efficiently samplable. | AssumptionNonvacuity.lean not_rsaKeyRecoveryHard_const |
Lattice and code assumptions#
| Assumption | Status | Source definition | Deviations or relation | Nonvacuity |
|---|---|---|---|---|
DecisionLWE | standard | [Regev2009] Section 2 (A_{s,χ} and LWE_{p,χ}, p. 15) and Section 4 (decision variant, Lemma 4.1, p. 30), in the author's version of May 2, 2009 | Modulus 2 ^ w only, a restriction of Regev's range of integers p ≥ 2; at w = 0 the modulus is 1, where the real and random games coincide. His worst-case hardness for the decision variant covers none of these moduli: Lemma 4.2 (p. 31) needs a prime p ≤ poly(n), which leaves only 2, and Theorem 3.1 (p. 18) needs αp > 2√n with α < 1, which fails at p = 2. Exactly m κ samples; any noise law; uniform classical distinguishers. | SigmaLWECCANonvacuity.lean not_decisionLWE_zeroNoise |
DecisionLWEWithErrors | novel | [FullerMengReyzin2020] Definition 4.5 (dist-LWE_{n,m,q,χ}), p. 13 of the ePrint revision of June 23, 2020, is the closest source; FMR assume it in Lemma 4.7, p. 14, and Theorem 4.11, p. 17. | Definition 4.5's form, with a joint, possibly correlated, error law, at modulus 2 ^ w, outside that definition's range of prime q = poly(n). DecisionLWE is the product case; for other laws, neither this assumption nor Definition 4.5 at a prime modulus is proved or cited to imply the other. Four deviations, and why it is plausible: note below. | SigmaLWECCANonvacuity.lean not_decisionLWE_zeroNoise, in the product case |
DecisionModuleLWE | standard | [DucasEtAl2018] Section 4.1 (MLWE_{m,k,D}), p. 249, over the ring R_q of Section 2.1, p. 242 | DecisionModuleLWEWith with a uniform secret and independent errors. The source draws the secret from D^k; its assumption implies this form (add an independent uniform vector to the secret). ML-KEM and ML-DSA need the short secrets that DecisionModuleLWEWith admits (#5293). Any degree and modulus, where the source fixes n = 256 and q = 8380417; asymptotic. | ModuleSIS.lean not_decisionModuleLWE_zeroNoise |
DecisionModuleLWEWith | standard | [AvanziEtAl2021] Section 4.3, p. 19, and [BaiEtAl2021Dilithium] Section 6.1, p. 23 | Asymptotic: every uniform classical strict PPT distinguisher has negligible advantage over the family, where the sources define concrete advantages at fixed parameters (Adv^mlwe_{m,k,η}, Adv^MLWE_{m,k,D}). Any secret and error laws, where Kyber draws both from the centered binomial law β_η and Dilithium both from one law D; under a cited headline, review checks the laws that a theorem supplies (K-PKE's instances are in the note below the table). Meaningful only for a family whose parameters grow with κ. | ModuleSIS.lean not_decisionModuleLWE_zeroNoise |
SIS | standard | [Ajtai1996] "The definition of the random class", p. 4, and Theorem 1, p. 6, in ECCC report TR96-007; [Lyubashevsky2012] Definition 3.1, p. 6, in the ePrint full version 2011/537 | An ℓ_∞ bound in place of the Euclidean norm; a uniform matrix (Ajtai's idealized λ', p. 4); any parameter family, where Ajtai fixes m and q as functions of n; uniform classical strict PPT solvers whose success must be negligible. | ModuleSIS.lean not_sis_zeroRowSIS |
SISEll2 | standard | [MicciancioRegev2007] Definitions 5.1 and 5.3, §5.1, p. 17, in the author's copy of December 27, 2005; [Lyubashevsky2012] Definition 3.1, p. 6, in the ePrint full version 2011/537 | Integer bound P.β κ : ℕ (reusing SISParams) in place of an arbitrary positive real function β(n) (real bounds are supported at the fixed-instance level in SIS.IsEll2Solution and sisEll2Advantage); arbitrary schedule P indexed by κ, whereas [MicciancioRegev2007] Definition 5.3 (p. 17) indexes arbitrary schedules q(n), m(n), β(n) by the number of equations n (polynomial instance size needs m(n) = poly(n) with q(n) and β(n) possibly exponential, all-polynomial parameters are typical, and β ≥ √m · q^{n/m} in Lemma 5.2, p. 17, is a sufficient existence guarantee); uniform classical strict PPT solvers whose success probability must be negligible. Equivalent to SIS up to the √m norm factor (SIS.toSISEll2, SISEll2.toSIS). | ModuleSIS.lean not_sisEll2_zeroRowSIS |
ModuleSIS | standard | [LangloisStehle2015] Definition 3.5, p. 12, in the ePrint version 2012/090; [DucasEtAl2018] Section 4.1 (MSIS_{m,k,γ}), p. 249 | The ℓ_∞ norm of the coefficients, as in Ducas et al., in place of Langlois and Stehlé's Euclidean norm of the canonical embedding; a uniform matrix, as in Langlois and Stehlé, where Ducas et al. use the Hermite normal form, an identity block beside a uniform one; ℤ_q[X]/(X^n + 1) for any n and q; asymptotic. | ModuleSIS.lean not_moduleSIS_zeroRankModuleSIS |
RingSIS | standard | [Lyubashevsky2012] Section 7, pp. 21–22, in the ePrint full version 2011/537; [LangloisStehle2015] Definition 3.3, p. 12 | ModuleSIS at rank 1, with its differences; Lyubashevsky takes n a power of two. | ModuleSIS.lean not_ringSIS_boundAtModulus |
HQC.NativeQuantumTwoDQCSDP | standard | [HQC2026] Definition 2.3.6, p. 12, and Definition 2.3.7, pp. 12–13, in version 5.1 | Native quantum tests without advice or a useful oracle, a narrower class than the source's, which fixes no model. Any parameter schedule, where the specification takes n to be a primitive prime (p. 13). | HQCDQCSD.lean not_nativeQuantumTwoDQCSDP_fullWeight |
HQC.NativeQuantumTwoDQCSDPWithin | standard | [HQC2026] Definition 2.3.6, p. 12, and Definition 2.3.7, pp. 12–13, in version 5.1 | Concrete form, with separate circuit resource budgets; the source asks only for non-negligible advantage. | HQCDQCSD.lean not_nativeQuantumTwoDQCSDPWithin_fullWeight |
HQC.NativeQuantumThreeDQCSDPT | standard | [HQC2026] Definitions 2.3.8 and 2.3.9, p. 13, in version 5.1 | Native quantum tests without advice or a useful oracle, as for HQC.NativeQuantumTwoDQCSDP. Any parameter schedule with 0 < ℓ < n, where the specification takes n to be a primitive prime. | HQCDQCSD.lean not_nativeQuantumThreeDQCSDPT_fullWeight |
HQC.NativeQuantumThreeDQCSDPTWithin | standard | [HQC2026] Definitions 2.3.8 and 2.3.9, p. 13, in version 5.1 | Concrete form, with separate circuit resource budgets; the source asks only for non-negligible advantage. | HQCDQCSD.lean not_nativeQuantumThreeDQCSDPTWithin_fullWeight |
K-PKE instances of DecisionModuleLWEWith. MLKEM.indCPA_kpkeIdealCoins_of_decisionModuleLWEWith (fair coins in place of PRF) and MLKEM.indCPA_kpkePRF_of_decisionModuleLWEWith (with seed expansion and the PRF hop) supply MLKEM.cbdLaw, which is β_η: η₁ for both laws at the k × k key shape, and η₁ secrets with η₂ errors at the (k + 1) × k ciphertext shape, Kyber's Module-LWER without compression ([AvanziEtAl2021] §4.4 and footnote 3, pp. 21–22). Both theorems are steps towards Kyber v3.02 Theorem 1, not that theorem: their public keys carry the matrix in place of the seed ρ, and their adversaries have no XOF or G oracle, where Theorem 1 assumes that both are random oracles. The random-oracle lift is open under #5293.
Note on DecisionLWEWithErrors#
DecisionLWEWithErrors is decision LWE in which the error vector has a joint, possibly correlated, law. It has the form of [FullerMengReyzin2020] Definition 4.5 (dist-LWE_{n,m,q,χ}, with χ any distribution on Z_q^m), p. 13 of the ePrint revision of June 23, 2020. FMR assume that definition for any χ in Lemma 4.7, p. 14, and with the uniform source over [-2^(b-1), 2^(b-1)]^m as χ in Theorem 4.11, p. 17. The assumption is novel to this library: DecisionLWE is its product case, and for other laws, neither it nor Definition 4.5 at a prime modulus is proved or cited to imply the other. It deviates from Definition 4.5 in four ways.
- Modulus. The modulus
2 ^ w, possibly superpolynomial, replaces Definition 4.5's primeq = poly(n), which FMR need for decoding (footnote 2, p. 13). The two ranges meet only atq = 2, and FMR's hardness evidence (Theorems 4.6 and 4.8, pp. 13–14; Theorem 5.2, p. 18) is for primeq. - Distinguishers. Uniform strict PPT distinguishers with negligible advantage, in place of Definition 4.5's concrete
(ε, s_sec)-security against distinguishers of sizes_sec. - Dimension. The theorem chooses the dimension:
FuzzyExtractor.computationallySecure_lweFuzzyExtractor_of_decisionLWEWithErrorsassumes it in dimensionl = n − k, as Lemma 4.7 and the proof of Theorem 4.11 do; Theorem 4.11's statement writes dimensionn, which hardness in dimensionn − kimplies. - Security parameter.
n,mandware arbitrary functions of a separate security parameterκ, where Definition 4.5 takesnas the security parameter andm, q = poly(n). A distinguisher's clock is polynomial in the length of its encoded input, framed unaryκfollowed by them κ * (n κ + 1) * w κbits of the samples(A, b), which need not be polynomial inκ. Under the polynomial-time unary schedules thatFuzzyExtractor.computationallySecure_lweFuzzyExtractor_of_decisionLWEWithErrorsrequires, the clock is polynomial inκ, so a family whose dimension grows slowly inκ(sayn κ = ⌊log κ⌋) asks for hardness against adversaries superpolynomial in the dimension, more than standard LWE asks.
It is plausible as the problem that FMR study, at the modulus of DecisionLWE, its product case: FMR derive the prime-modulus form from standard LWE for uniform-interval and symbol-fixing sources. No such derivation at modulus 2 ^ w is proved or cited, and hardness for particular sources is not proved here. The docstring of DecisionLWEWithErrors gives the same account, with an error law for which the two moduli differ.
Other assumptions#
| Assumption | Status | Source definition | Deviations or relation | Nonvacuity |
|---|---|---|---|---|
Encryption.CircularSecure | standard | [BonehHaleviHamburgOstrovsky2008] Section 2.1, pp. 3–4, and Definition 1, p. 4, in the authors' version of September 24, 2008; the self-encryption assumed in [Gentry2009Thesis] Section 4.3, p. 52 | One-key circular security: the bitwise encryption of the secret key, jointly with the public key, against encryptions of zeros. Definition 1 with n = 1 and the functions selecting one key bit, every bit asked once in one batch; uniform strict PPT tests in place of expected polynomial-time adversaries. Definition 1 implies it when keyGen is efficient, its secret keys at each security parameter have one length, and ciphertexts are polynomially long. When secret keys vary in length, the vector reveals the length, which Definition 1's adversary does not get (p. 3), so for such key generators the assumption is not the source's. Gentry's game encrypts fresh random keys, not zeros, in the ideal world. | FixedKeySecurity.lean not_circularSecure_leak |
GMW.AdvicePRG | novel | — | Follows from NonuniformPRG (NonuniformPRG.advicePRG), hence from NonuniformOneWay; not known to follow from a uniform PRG. A generator at seed length n + 7 against tests that also read polynomially bounded instance, witness and auxiliary-input families. | Nonuniform.lean not_advicePRG_cons_false |
CircularCorrelationRobust | standard | [ZahurRosulekEvans2015] Definition 1, §4.1, p. 10, in the ePrint version 2014/756 of March 16, 2015 | A hash family on words, under the offset Garbling.CCR.offset R = (R, true); at level k its advantage is the finite Garbling.CCR.advantage. The premise polyTime is separate: Definition 1 does not supply it. For a hash with that premise, Definition 1 implies the security condition secure, which admits fewer adversaries or fixes a parametrization. Its restrictions and the other sources: note below. | CircularCorrelationRobust.lean not_circularCorrelationRobust_constHash |
CorrelationRobust | standard | [IshaiKilianNissimPetrank2003] Definition 1, §5, p. 157, in the CRYPTO 2003 version (LNCS 2729, pp. 145–161) | A one-bit hash on words, the same function at every position, as §5 prescribes for bit transfers; at level k with m k queries its advantage is the finite CorrelationRobust.advantage of CorrelationRobust.atLevel hash k (m k). polyTime reads the source's "efficiently computable". The security condition secure admits fewer distinguishers than Definition 1, which implies it: uniform strict PPT machines in place of circuits of size p(k), and a polynomially bounded query count m, with a negligible function for each m, in place of one negligible function for all m ≤ q(k). Without a bound on m the condition fails for every hash computed in polynomial time, since with 2 ^ k queries a distinguisher polynomial in its input length can try every offset. | CorrelationRobust.lean not_correlationRobust_constHash |
Garbling.Scheme.PrvSimSecure | standard | [BellareHoangRogaway2012] §3.4, p. 9, and Fig. 5, p. 8, in the ePrint version 2012/265 of October 1, 2012 | Uniform strict PPT two-stage adversaries (TwoStage.IsPPT) with explicit encodings encFn, encΛ, encσ; two-world advantage Experiment.advantage in place of 2 Pr[PrvSim] - 1. | GarblingFoundationsAsymptotic.lean not_prvSimSecure_leakyPrvScheme |
Garbling.Scheme.PrvSimSecureUniversal | novel | [ZahurRosulekEvans2015] §2, p. 5, in the ePrint version 2014/756 of March 16, 2015, and [BellareHoangRogaway2012] §3.4, p. 9, and Fig. 5, p. 8, in the ePrint version 2012/265 of October 1, 2012, are the closest sources. | prv.sim with one simulator for every adversary and arbitrary side information Φ. [ZahurRosulekEvans2015] state the one-simulator order only for Φ_circ (their simulator receives the circuit), so the instance at SideInfo.circ is their notion; [BellareHoangRogaway2012] allow any Φ but with a simulator for each adversary. Implies Garbling.Scheme.PrvSimSecure, the notion of [BellareHoangRogaway2012] (Scheme.PrvSimSecureUniversal.prvSimSecure). Plausible because point-and-permute garbling with Φ_topo meets it under PseudorandomFunction, and half-gates garbling with Φ_circ under CircularCorrelationRobust (negligible_prvSimAdvantage_simWord); the Yao instances therefore rest only on those standard assumptions. | GarblingScheme.lean not_prvSimSecureUniversal_leakyScheme |
Garbling.Scheme.PrvIndSecure | standard | [BellareHoangRogaway2012] §3.4, pp. 8–9, and Fig. 5, p. 8, in the ePrint version 2012/265 of October 1, 2012 | Uniform strict PPT two-stage adversaries (TwoStage.IsPPT) with explicit encodings encFn, encσ; two-world advantage Experiment.advantage in place of 2 Pr[PrvInd] - 1. | GarblingFoundationsAsymptotic.lean not_prvIndSecure_leakyPrvScheme |
Garbling.Scheme.ObvIndSecure | standard | [BellareHoangRogaway2012] §3.5, pp. 9–10, and Fig. 5, p. 8, in the ePrint version 2012/265 of October 1, 2012 | Uniform strict PPT two-stage adversaries (TwoStage.IsPPT) with explicit encodings encFn, encσ; two-world advantage Experiment.advantage in place of 2 Pr[ObvInd] - 1. | GarblingFoundationsAsymptotic.lean not_obvIndSecure_leakyPrvScheme |
Garbling.Scheme.ObvSimSecure | standard | [BellareHoangRogaway2012] §3.5, pp. 9–10, and Fig. 5, p. 8, in the ePrint version 2012/265 of October 1, 2012 | Uniform strict PPT two-stage adversaries (TwoStage.IsPPT) with explicit encodings encFn, encΛ, encσ; two-world advantage Experiment.advantage in place of 2 Pr[ObvSim] - 1. | GarblingFoundationsAsymptotic.lean not_obvSimSecure_leakyPrvScheme |
Garbling.Scheme.ObvSimSecureUniversal | novel | [BellareHoangRogaway2012] §3.5, pp. 9–10, in the ePrint version 2012/265 of October 1, 2012, is the closest source. | obv.sim with one simulator for every adversary (∃ S ∀ B) and arbitrary side information Φ. [BellareHoangRogaway2012] §3.5 quantify ∀ B ∃ S; Scheme.ObvSimSecureUniversal.obvSimSecure recovers Garbling.Scheme.ObvSimSecure. Plausible because Scheme.ObvIndSecure.obvSimSecureUniversal derives it from ObvIndSecure via obvSimFromInverter given an efficient Φ-inverter. | GarblingFoundationsAsymptotic.lean not_obvSimSecureUniversal_leakyPrvScheme |
Garbling.Scheme.AutSecure | standard | [BellareHoangRogaway2012] §3.6, p. 10, and Fig. 5, p. 8, in the ePrint version 2012/265 of October 1, 2012 | Uniform strict PPT two-stage adversaries (TwoStage.IsPPT) with explicit encodings encFn, encσ. | GarblingFoundationsAsymptotic.lean not_autSecure_forgingScheme |
PRG.IsSubexponentiallySecure | standard | RazborovRudich1997 p. 26 and §4, p. 30, definition of hardness before Theorem 4.1 | At all sufficiently large seed lengths k, Lean tests budgets S = 2^m with m^d ≤ k and allows advantage equal to 1/S. The source’s H(Gₖ) > S gives advantage strictly below 1/S. Positive d represents a reciprocal exponent, and d = 0 imposes every budget. The generator’s polynomial circuit size is assumed separately by the barrier theorem. | NaturalProofs.lean not_isSubexponentiallySecure_zeroPad |
PRG.IsExponentiallySecure | novel | RazborovRudich1997 proof of Theorem 4.1, pp. 30–31, equation (3) | Packages the proof’s whole-truth-table test for any finite uniform key space. For every constant c and all sufficiently large input lengths n, tests of size 2^(cn) have advantage at most 2^(-cn). The paper constructs the keyed family from its hard generator. For GGM this property follows from PRG.IsSubexponentiallySecure and polynomial generator circuit size by GGM.isExponentiallySecure_booleanFamily. | NaturalProofs.lean not_isExponentiallySecure_const |
NonuniformOneWay | standard | Goldreich1998Fragments Definition 2.2.6, p. 36 | Uniform strict PPT inverters reading a polynomially bounded advice word, charged to their clock, in place of families of polynomial-size circuits; the two give the same notion (docstring). | Nonuniform.lean |
NonuniformPRG | standard | Goldreich1998Fragments Definition 3.3.2, p. 85, with indistinguishability by polynomial-size circuits as defined in Exercise 8 of Chapter 3, p. 121 | Uniform strict PPT tests reading a polynomially bounded advice word in place of circuits, as for NonuniformOneWay. | Nonuniform.lean |
InversionHardWithAdvice | standard | Goldreich1998Fragments Definition 2.2.1, p. 29, and Definition 2.2.6, p. 36 | One fixed advice family: with empty advice it is the security condition of Definition 2.2.1, and required of every polynomially bounded family it is that of Definition 2.2.6. A family longer than every polynomial also extends the inverter's clock beyond the source's bounds; under a cited headline, review checks the family that a theorem supplies. | Nonuniform.lean |
WeakOneWay | standard | [LiuPass2020] Section 2.1, Definition 2.2, p. 7 (in arXiv:2009.11514v1) | Uniform strict PPT inverters (IsPPT encBits) in place of general PPT algorithms; the failure-bound polynomial q : Polynomial ℕ satisfies ∀ n, 0 < q.eval n, matching 1/q(·)-weak OWF. | WeakOneWay.lean |
WeakOneWayAt | standard | [LiuPass2020] Section 2.1, Definition 2.2, p. 7 (in arXiv:2009.11514v1) | Uniform strict PPT inverters (IsPPT encBits) in place of general PPT algorithms; strict < 1 - α n eventually matches the source. | AssumptionNonvacuity.lean not_weakOneWayAt_id |
CondEPPRG | standard | [LiuPass2020] Section 5.1, Definition 5.1, p. 11, with Section 2.4, Definition 2.6, p. 9 (in arXiv:2009.11514v1) | γ and α are natural numbers with Nat.log 2 n (⌊log₂ n⌋) instead of real constants and log₂ n (at a fixed α, n - α ⌊log₂ n⌋ is slightly stronger than n - α log₂ n, matching up to a factor of 2 under ∃ α); α is an explicit parameter of CondEPPRG rather than existentially quantified; E n is explicitly required to be nonempty; uniform strict PPT distinguishers (IsPPT encBool) run in time polynomial in n + |y| (O(n) on these ensembles, matching Definition 2.6's poly(|1ⁿ|)); and the advantage bound uses ≤ μ n where Definition 2.6 (p. 9) writes strict < μ(n) (for μ n = 1 / n ^ δ, increasing δ or scaling μ recovers strict <). PMF.entropy uses base-2 logarithms, matching Section 2.5 (p. 9). | — |
BooleanPRF | standard | FanLiYang2022 ECCC TR21-125, rev. 1, §4.2, Definitions 4.4–4.5, pp. 26–27 | Each uniform strict oracle-PPT adversary on the unary length has negligible absolute acceptance gap between a draw from the ensemble and a uniform Boolean function. Both oracles answer malformed word queries with the empty word. Lean includes length zero, which does not affect negligibility. The source and Lean allow inefficient sampling and evaluation. | AssumptionNonvacuity.lean not_booleanPRF_constFalse |
Note on CircularCorrelationRobust#
CircularCorrelationRobust hash is tweakable circular correlation robustness of a hash family on words, hash : List Bool → List Bool → List Bool, in the form of [ZahurRosulekEvans2015] Definition 1, §4.1, p. 10, in the ePrint version 2014/756 of March 16, 2015. At level k a label is a (k + 1)-bit key and a colour bit, and a tweak has k bits; Garbling.CCR.atLevel hash k reads the hash on them. The offset is Garbling.CCR.offset R = (R, true), whose colour is the least significant bit that Definition 1 fixes to 1. At level k the advantage of a distinguisher is, by definition, the finite Garbling.CCR.advantage (CircularCorrelationRobust.negligible_advantage).
The assumption has two parts. The premise polyTime, deterministic polynomial-time evaluation of the hash on all words, is separate: Definition 1 gives the adversary unrestricted access to H but asks nothing of its running time, so it does not supply this premise. The premise is kept because the garbling schemes built on the hash must be efficient. For a hash with that premise, Definition 1 implies the security condition secure, since each of its differences from Definition 1 admits fewer adversaries or fixes a parametrization:
- Legality. An adversary asks each tweak at most once on every run (
Garbling.CCR.IsTweakUnique), at every level. Definition 1 forbids only asking one(x, i)with both bits. - Tweaks are
k-bit strings at levelk, not integers as in Definition 1 (H : {0,1}^k × ℤ → {0,1}^k, p. 8). - Lengths. Labels have
k + 2bits at levelk, where Definition 1 hask. - Adversaries are uniform strict oracle-PPT word programs, where Definition 1 has polynomial-time adversaries.
[GuoKatzWangYu2020] gives the concrete tweakable form, with repeatable tweaks and every key law of sufficient min-entropy; [ChoiKatzKumaresanZhou2012] gives the dual-key notion it comes from, for non-uniform adversaries. [ZahurRosulekEvans2015] Definition 3 (p. 11), for naturally derived keys, is weaker than Definition 1, and their Theorem 1 (p. 12), privacy of half-gates garbling, assumes only Definition 3.
One-way functions, generators and pseudorandom functions#
| Assumption | Status | Source definition | Deviations or relation | Nonvacuity |
|---|---|---|---|---|
OneWay | standard | Goldreich1998Fragments Definition 2.2.1, p. 29 | None: uniform strict PPT inverters given n in unary, and any preimage wins, as in the source. Stronger than [BonehShoup2023] Definition 8.6, p. 336, whose inverter must output a preimage in the message space: OneWay accepts a preimage of any length and is OneWayOn f (fun _ _ => true) (oneWayOn_true_iff), so it implies OneWayOn on every domain (OneWay.oneWayOn). | ComputationalCrypto.lean |
OneWayOn | standard | [BonehShoup2023] Section 8.11.1, Definition 8.6, p. 336 | Parameter-indexed answer domain valid : ℕ → List Bool → Bool: with valid n w := decide (w.length = n) it is Definition 8.6 on M = {0,1}ⁿ, and a wider valid accepts more answers and gives a stronger assumption. Unkeyed function on bit strings with deterministic polynomial-time evaluation bundled, uniform n-bit challenge inputs, and uniform strict PPT inverters given n in unary. Follows from OneWay (OneWay.oneWayOn); for an injective function on a domain containing the n-bit words it implies OneWay (OneWayOn.oneWay_of_injective). | SecondPreimageResistantRelations.lean not_oneWayOn_id |
OneWayPermutation | standard | Goldreich1998Fragments Section 3.4.1, p. 91, with Definition 2.2.1, p. 29 | A length-preserving one-to-one OneWay function, as the source describes one-way permutations. | SigmaLWECCANonvacuity.lean not_oneWayPermutation_flip |
TrapdoorFunction.OneWay | standard | [BonehShoup2023] Attack Game 10.2 and Definition 10.3, p. 401, with Definition 10.4, pp. 402–403 | Domain X pk and range Y pk may depend on the public key (the form Section 10.3 names for RSA and does not adopt, pp. 404–405). Keys come from any PMF SK family, without bundling the efficient recognizability, sampleability or polynomial-time G, F, I conditions of Definition 10.4, items 1–5 (#5657). Uniform strict PPT inverters read (1ⁿ, pk, y) via encPair encUnary (TrapdoorFunction.encTranscript encPK encY) and write encX pk x. At rsaTrapdoor it agrees with RSAOneWay (oneWay_rsaTrapdoor_iff). | TrapdoorFunction.lean not_oneWay_idScheme |
UOV.HashAndSign.WordPreimageResistant | standard | [KosugeXagawa2022] Section 2.2, Figure 3 (INV) and Definition 4, pp. 8–9 | WordTrapdoorPreimageSystem uses bit-string keys and arbitrary bit-string preimages (List Bool, no extra domain membership check beyond eval_length : (eval n pk s).length = targetLen n) and uniform {0,1}^{targetLen n} targets, bundling strict-PPT keyGen, targetLen, eval, invert, and samplePreimage without requiring completeness on invert. Adversaries are uniform classical strict-PPT WordPreimageInverters (not quantum or non-uniform); any some s with eval n pk s = y wins wordTargetGame. For systems whose intended preimages inhabit a strict subset of List Bool, callers must enforce formatting inside eval. | UOVHashAndSignPolyTime.lean not_wordPreimageResistant_idWordTrapdoorSys |
UOV.HashAndSign.WordPreimageSimulatable | novel | [KosugeXagawa2022] Section 2.3, Figure 4 (PS) and Definition 7, p. 10, is the closest source. | Implies Definition 7 against uniform classical strict-PPT distinguishers (testing xOpt.isSome forces negligible invert failure probability, so retrying none shifts a q-query view negligibly, and dropping y recovers Fig. 4), and agrees with Definition 7 when invert fails negligibly and outputs valid preimages ((y, some s) = (eval n pk s, some s) adds nothing beyond s since eval is deterministic poly-time). The converse fails for samplers that fail non-negligibly: e.g., for a system where eval ∘ samplePreimage is uniform on targets, an invert sampler returning none with probability 1 / 2 and otherwise matching samplePreimage conditioned on eval satisfies Definition 7 (Sample_0 in Fig. 4 loops until x ≠ ⊥), yet is separated in one query via xOpt.isSome; furthermore each reply exposes (y, xOpt : Option (List Bool)) rather than x alone (eval n pk s ≠ y separates invalid preimages). The test suite checks both a satisfiable identity system (wordPreimageSimulatable_idWordTrapdoorSys) and the required failing-instance test (not_wordPreimageSimulatable_noneSys, where constant none makes the novel assumption fail). Plausible for trapdoor samplers with negligible failure rate whose conditional invert law matches samplePreimage on valid preimages. | UOVHashAndSignPolyTime.lean not_wordPreimageSimulatable_noneSys |
HardCore | novel | Goldreich1998Fragments Definition 2.5.1, p. 54, is the closest source. | Stronger than that definition: the predictor also receives n in unary and runs in time polynomial in n plus the length of f x, where the source's predictor receives only f x. Implies Definition 2.5.1, and agrees with it when n in unary can be computed from f x in time polynomial in the length of f x, for example for length-preserving f, which HardCore.pseudorandomGenerator and OneWayPermutation.pseudorandomGenerator_of_hardCore assume. The absolute bias it bounds is equivalent to the source's one-sided bound. Plausible: GoldreichLevin.padded_hardCore derives it from OneWay for the inner-product predicate of the padded function. | ComputationalCrypto.lean |
PseudorandomGenerator | standard | [BonehShoup2023] Attack Game 3.1 and Definition 3.1, pp. 46–47; Goldreich1998Fragments Definition 3.3.2, p. 85 | Deterministic polynomial-time evaluation and strict expansion are part of the notion, as in Goldreich's Definition 3.3.2 but not in Boneh–Shoup's. | ComputationalCrypto.lean |
NextBitUnpredictable | standard | [BonehShoup2023] Attack Game 3.2 and Definition 3.3, p. 64 | Uniform strict PPT two-stage adversaries with state: the first stage writes the position in binary, and a position i ≥ length n gives a fair coin, where the source requires 0 ≤ i ≤ L − 1. Neither polynomial-time evaluation nor length regularity or expansion of the generator is part of the notion. | PseudorandomGeneratorNextBit.lean not_nextBitUnpredictable_appendFalse |
NextBitUnpredictableRandomIndex | standard | [BonehShoup2023] Attack Game 3.2 and Definition 3.3, p. 64 | The challenger draws the position uniformly and the adversary has a single stage, instead of the adversary choosing the position. The deviation restricts the adversary, so it does not strengthen the assumption. For a polynomial-time, length-regular, expanding generator both notions are equivalent to PseudorandomGenerator (pseudorandomGenerator_iff_nextBitUnpredictableRandomIndex, pseudorandomGenerator_iff_nextBitUnpredictable). | PseudorandomGeneratorNextBit.lean not_nextBitUnpredictableRandomIndex_appendFalse |
PRG.Generator.Secure | standard | [BonehShoup2023] Attack Game 3.1 and Definition 3.1, pp. 46–47 | CSLib's concrete form for one generator on finite seed and output types: advantage at most ε for every adversary in a class Admissible that the caller supplies, where Definition 3.1 asks for negligible advantage against every efficient adversary. Neither efficiency nor expansion of the generator is part of the notion. Under a cited headline, review checks the class and bound that a theorem supplies. | — |
PRG.Generator.Unpredictable | standard | [BonehShoup2023] Attack Game 3.2 and Definition 3.3, p. 64 | Concrete, against a predictor class and bound that the caller supplies, as for PRG.Generator.Secure. Each predictor has a fixed position, where the adversary of Attack Game 3.2 chooses it; a bound at every position also bounds a predictor that chooses its position at random. | SigmaLWECCANonvacuity.lean not_unpredictable_constFalse |
PseudorandomFunction | standard | [BonehShoup2023], as for PseudorandomFunctionOver | An abbreviation of PseudorandomFunctionOver id id: keys, valid queries and answers all have n bits. | AssumptionNonvacuity.lean not_pseudorandomFunction_zeroFamily |
PseudorandomFunctionOver | standard | [BonehShoup2023] Attack Game 4.2 and Definition 4.2, pp. 132–133 | A PRF defined over (K, X, Y) with n-bit keys, inLen n-bit inputs and outLen n-bit outputs; adaptive uniform oracle tests; deterministic polynomial-time evaluation is part of the notion. PseudorandomFunction is the case inLen = outLen = id. inLen and outLen are not required to be polynomially bounded, whereas the spaces of the book's asymptotic Definition 4.4 (Section 4.4.5, pp. 139–141) have strings of polynomially bounded length (Definition 2.9, Section 2.3.2, p. 30), so the notion is the source's only for polynomially bounded lengths. If inLen grows faster than every polynomial, each admitted test eventually writes no valid query, so secure holds for every family; if outLen is not bounded by a polynomial in n + inLen n, no family meets both polyTime and length_eq. The theorems that use the notion take the bound from their own hypotheses, which the docstring lists. Under MLKEM.indCPA_kpkePRF_of_decisionModuleLWEWith, a step towards Kyber v3.02 Theorem 1 without its random oracles, it is Theorem 1's Adv^prf_PRF assumption (p. 20) on the scheme's PRF : B^32 × B → B^* (p. 5), at κ-bit keys, counter words of (2k).size bits and the one output length n · 2 · max(η₁, η₂) from which CBD_η reads its prefixes. | AssumptionNonvacuity.lean not_pseudorandomFunctionOver_zeroFamily |
PseudorandomFunctionOn | standard | [BonehShoup2023] Attack Game 4.2 and Definition 4.2, pp. 132–133; Definition 4.4, pp. 139–141 | Domain-predicate generalization of PseudorandomFunctionOver with n-bit keys, variable-length queries recognized by valid n, and outLen n-bit outputs; invalid queries receive [] in both real and ideal experiments without invoking the keyed family or updating the lazy ideal cache; deterministic polynomial-time evaluation is part of the notion. As for PseudorandomFunctionOver, callers supply polynomial-time domain recognition and width bounds. | ComputationalCBCMAC.lean not_prfOn_cbcMacFamily |
PrefixFreePseudorandomFunctionOn | standard | [BonehShoup2023] v0.6, Definition 4.5 and footnote 3, printed p. 152 | Uniform strict oracle-PPT security for a word PRF with a uniform n-bit key and fixed-width replies. The caller supplies valid. The prefix condition matches the source for polynomial-time recognizable domains of nonempty, positive-width whole-block words of polynomially bounded length, such as cbcBlockValid (fun n => ℓ n + 1). Malformed queries get empty replies in both games. Admitting the empty word strengthens the security condition by allowing a one-query test there, where basic CBC-MAC always returns the all-zero tag. | AssumptionNonvacuity.lean not_prefixFreePseudorandomFunctionOn_zeroFamily |
WeakPseudorandomFunction | standard | [BonehShoup2023] Definition 4.3, p. 133 | n-bit keys, inputs and outputs; deterministic polynomial-time evaluation is part of the notion. | AssumptionNonvacuity.lean not_weakPseudorandomFunction_zeroFamily |
BlockCipher.PRP | standard | [BonehShoup2023] Definition 4.1, p. 98 | Read asymptotically, as in Section 4.1.5. | AssumptionNonvacuity.lean not_prp_idBlockCipher |
BlockCipher.StrongPRP | standard | [BonehShoup2023] Section 4.1.3, pp. 101–102, and Exercise 4.9, p. 169 | — | AssumptionNonvacuity.lean not_strongPRP_idBlockCipher |
Pseudouniform | novel | — | Length-preserving polynomial-time function whose output on a uniform n-bit seed is computationally indistinguishable from uniform (zero-stretch case of a PRG). Strictly weaker than PseudorandomGenerator and does not imply OneWay: satisfied unconditionally by id (pseudouniform_id) and every OneWayPermutation, and implied by truncating any PRG (truncation_pseudouniform_and_oneWay). Conjoined with OneWay, yields a one-bit-stretch PRG via Goldreich–Levin (prg_of_pseudouniform_oneWay), so it is plausible whenever one-way permutations or PRGs exist. | AuxiliaryInputBlumGoldwasser.lean not_pseudouniform_constFalse |
IsAIOWF | novel | — | Auxiliary-input one-way function family with adversary-dependent quantifier order ∀ d A N, ∃ z (where z may depend on d, A, and N) rather than a single adversary-independent infinite index set I ⊆ {0,1}^*. Implied by IsIoOWF with an exact output-length schedule (IsIoOWF.exists_aiOWF), hence by standard OneWay functions (OneWay.isIoOWF), and implies IsDistAIOWF (IsAIOWF.isDistAIOWF). | AuxiliaryInputBlumGoldwasser.lean not_isAIOWF_idAuxFamily |
IsAIPRG | novel | — | Auxiliary-input pseudorandom generator family with adversary-dependent quantifier order ∀ d A N, ∃ z rather than a single adversary-independent infinite index set I ⊆ {0,1}^*. Implied by IsIoPRG (IsIoPRG.exists_aiPRG), hence by standard PseudorandomGenerator (PseudorandomGenerator.isIoPRG); quadratic stretch implies IsAIOWF (IsAIPRG.isAIOWF_of_sq_lt). | AuxiliaryInputBlumGoldwasser.lean not_isAIPRG_zeroStretchAuxFamily |
ExistsAIPRG | novel | — | Existence of a polynomial-stretch IsAIPRG for every degree d, inheriting the adversary-dependent quantifier order of IsAIPRG. Implies the existence of an IsAIOWF (ExistsAIPRG.exists_aiOWF), and is plausible whenever standard polynomial-stretch PRGs exist. | AuxiliaryInputBlumGoldwasser.lean not_isAIPRG_zeroStretchAuxFamily (refuting the underlying IsAIPRG predicate) |
IsAIPRF | novel | — | Auxiliary-input pseudorandom function family with adversary-dependent quantifier order ∀ d A N, ∃ z rather than a single adversary-independent infinite index set I ⊆ {0,1}^*. Implied by IsIoPRF (IsIoPRF.exists_aiPRF), and plausible whenever standard uniform PRFs exist. | AuxiliaryInputBlumGoldwasser.lean not_isAIPRF_zeroAuxPRFFamily |
IsIoOWF | novel | — | Infinitely-often one-way function on length-n preimages with adversary-dependent quantifier order ∀ d A N, ∃ n rather than a single adversary-independent infinite set I ⊆ ℕ. Strictly weaker than OneWay (OneWay.isIoOWF) and yields an IsAIOWF given an exact output-length schedule (IsIoOWF.exists_aiOWF). | AuxiliaryInputBlumGoldwasser.lean not_isIoOWF_id |
IsIoPRG | novel | — | Infinitely-often pseudorandom generator with adversary-dependent quantifier order ∀ d A N, ∃ n rather than a single adversary-independent infinite set I ⊆ ℕ. Strictly weaker than PseudorandomGenerator (PseudorandomGenerator.isIoPRG) and yields an IsAIPRG (IsIoPRG.exists_aiPRG). | AuxiliaryInputBlumGoldwasser.lean not_isIoPRG_consFalse |
IsIoPRF | novel | — | Infinitely-often Boolean-output pseudorandom function with adversary-dependent quantifier order ∀ d A N, ∃ n rather than a single adversary-independent infinite set I ⊆ ℕ. Weaker than standard uniform Boolean-output PRF security and yields an IsAIPRF (IsIoPRF.exists_aiPRF). | AuxiliaryInputBlumGoldwasser.lean not_isIoPRF_constFalse |
Hashing#
| Assumption | Status | Source definition | Deviations or relation | Nonvacuity |
|---|---|---|---|---|
UHF.IsComputationalUHF | standard | [BonehShoup2023] Attack Game 7.1 and Definitions 7.2 and 7.4, printed pp. 253–255 | Uniform strict PPT adversaries receive a unary security parameter and public setup. The key stays private and the game rejects invalid or repeated messages. The predicate permits setup of arbitrary runtime. Definition 7.4 uses an efficient system parameterization, and UHF.IsComputationalUHF.isMultiQueryUHF requires strict PPT setup. The caller supplies the hash family's recognition, sampling and evaluation requirements. | UniversalHashGames.lean not_isComputationalUHF_const |
UHF.IsMultiQueryUHF | standard | [BonehShoup2023] Attack Game 7.2 and Definition 7.3, printed p. 254 | Setup can have arbitrary runtime, as for UHF.IsComputationalUHF, and is strict PPT in the implication. Only pairs of distinct valid messages can win. Repeated or invalid list entries are allowed. | UniversalHashGames.lean not_isMultiQueryUHF_const |
UHF.IsComputationalDUF | standard | [BonehShoup2023] Attack Game 7.3, Definition 7.5 and Remark 7.3, printed pp. 268–269 | Uniform strict PPT adversaries receive the unary parameter and public setup, then submit two distinct valid messages and the encoded difference. The uniform key stays private. The digest group may vary with the setup and use any additive group. The predicate permits arbitrary setup runtime and leaves the hash family's recognition, sampling and evaluation requirements to applications. | UniversalHashGames.lean not_isComputationalDUF_residueHash |
CollisionResistantForOn | standard | [BonehShoup2023] Attack Game 8.1 and Definitions 8.1–8.2, pp. 290–291 | The setup law need not be efficiently samplable; inputs are restricted to valid. | ModuleSIS.lean not_collisionResistantForOn_ajtaiWordHash_zeroRow |
CollisionResistantFor | standard | [BonehShoup2023] Attack Game 8.1 and Definitions 8.1–8.2, pp. 290–291 | CollisionResistantForOn on all inputs; the setup law need not be efficiently samplable. | CCA.lean not_collisionResistantFor_constZModHash |
CollisionResistantOn | standard | [BonehShoup2023] Attack Game 8.1 and Definitions 8.1–8.2, pp. 290–291 | Keyed by uniform n-bit keys, the form that footnote 1 on p. 290 identifies with the source's system parameter; inputs are restricted to valid. | — |
CollisionResistant | standard | [BonehShoup2023] Attack Game 8.1 and Definitions 8.1–8.2, pp. 290–291 | On all bit strings. | MerkleDamgard.lean not_collisionResistant_constHash |
CompressionFamily | standard | [BonehShoup2023] Section 8.4, pp. 295–296 (compression functions), with Attack Game 8.1 and Definitions 8.1–8.2, pp. 290–291 | 2n → n compression under n-bit keys, evaluated in polynomial time. | — |
HashFamily | standard | [BonehShoup2023] Attack Game 8.1 and Definitions 8.1–8.2, pp. 290–291 | Arbitrary-length messages, n-bit keys and digests of exactly n bits (which the source does not require), evaluated in polynomial time. | — |
SecondPreimageResistantOn | standard | [BonehShoup2023] Section 8.11.1, Definition 8.6, p. 336 | Parameter-indexed answer-validity predicate valid : ℕ → List Bool → Bool (for valid n w := decide (w.length = n), exact Definition 8.6 on M = {0,1}ⁿ); unkeyed function on bit strings with deterministic polynomial-time evaluation bundled, uniform n-bit challenge inputs, and uniform strict PPT finders given n in unary. | SecondPreimageResistant.lean not_secondPreimageResistantOn_length_const_empty |
SecondPreimageResistant | novel | [BonehShoup2023] Definition 8.6, p. 336, is the closest source. | Abbreviates SecondPreimageResistantOn f (fun _ _ => true) and strictly strengthens Definition 8.6 on M = {0,1}ⁿ by admitting second-preimage answers x' ≠ x of any length (matching OneWay; SecondPreimageResistantOn.mono derives SecondPreimageResistantOn for any valid, and stripFalseHead in SecondPreimageResistantRelations.lean separates them). Plausible: CollisionResistantToOneWay.keyDigest H satisfies it for every collision-resistant HashFamily H (HashFamily.secondPreimageResistant_keyDigest). | SecondPreimageResistant.lean not_secondPreimageResistant_const_empty |
TargetCollisionResistantOn | standard | [BonehShoup2023] Attack Game 8.5 and Definition 8.7, pp. 337–338 | Uniform keyLen n-bit keys; inputs are restricted to valid. | NaorYungUOWHF.lean not_targetCollisionResistantOn_naorYungStep_id |
TargetCollisionResistant | standard | [BonehShoup2023] Attack Game 8.5 and Definition 8.7, pp. 337–338 | On all bit strings. | XorTargetHash.lean not_targetCollisionResistant_xorTargetHash |
KeyedHashFamily.TargetCollisionResistant | standard | [BonehShoup2023] Attack Game 8.5 and Definition 8.7, pp. 337–338 | On all bit strings. | — |
KeyedCompressionFamily.TargetCollisionResistant | standard | [BonehShoup2023] Attack Game 8.5 and Definition 8.7, pp. 337–338 | On 2n-bit inputs. | TargetCollisionResistant.lean not_targetCollisionResistant_xorKeyedCompression |
EnhancedTargetCollisionResistantOn | standard | [BonehShoup2023] Exercise 8.27, p. 354 | Explicit valid n m₀, valid n m', and k'.length = keyLen n checks; uniform keys; uniform strict-PPT two-stage finders on unary n. | EnhancedTargetCollisionResistant.lean not_enhancedTargetCollisionResistant_snd_msg |
EnhancedTargetCollisionResistant | standard | [BonehShoup2023] Exercise 8.27, p. 354 | On all bit strings (valid := fun _ _ => true); uniform keys and strict-PPT finders on unary n. | EnhancedTargetCollisionResistant.lean not_enhancedTargetCollisionResistant_snd_msg |
KeyedHashFamily.EnhancedTargetCollisionResistant | standard | [BonehShoup2023] Exercise 8.27, p. 354 | On all bit strings for a KeyedHashFamily. | EnhancedTargetCollisionResistant.lean not_enhancedTargetCollisionResistant_zeroKeyedHashFamily |
KeyDerivation.Secure | standard | [BonehShoup2023] Attack Game 11.3, p. 448, Definition 11.5, p. 449, and Section 8.10.1, p. 326 | Section 8.10.1 form: secret s ← sample n, side information info s, derived key derive s, compared with an independent z ← key n by uniform strict PPT distinguishers reading (1ⁿ, encPair encX encZ (x, z)). sample, key, info and derive are arbitrary: no efficient computability or finiteness is required, and it is the source's notion only when key n is uniform on a finite key space. Attack Game 11.3 is the instance sample n uniform on X × Y, info = Prod.fst, derive = F, key n uniform on Z; PrimeOrderGroupFamily.SecureKDF is an instance by PrimeOrderGroupFamily.secureKDF_iff_keyDerivation. | KeyDerivation.lean not_secure_const |
KeyDerivation.SecretGuessHard | standard | [BonehShoup2023] Attack Game 8.3 and Section 8.10.1, p. 326 | Computational unpredictability (fourth example of Section 8.10.1): secret s ← sample n in S n (encoded by encS n : S n ↪ List Bool) and public side information info n s : X n (encoded by encX n : X n ↪ List Bool), against uniform strict PPT guessers (GuessFamilyAdversary.IsPPT encX encS) reading (1ⁿ, encX n x) and writing encS n s. sample n and info n need not be efficiently computable, and S n need not be finite in the definition itself (finiteness enters in the random-oracle games). | RandomOracleKDF.lean not_secretGuessHard_echo |
MerklePositionBinding | novel | [BonehShoup2023] Definition 8.4 and Attack Game 8.2, p. 324, is the closest source. | As in Definition 8.4, both leaves lie in the leaf space leafSpace (the source's X) and merkleVerify accepts only paths of digests in Y (Section 8.9, p. 321). Stronger than Definition 8.4 in one respect: the adversary chooses the depth of the tree, the length of its first path, where the source's scheme has a fixed number of leaves, so the notion is not the source's for any one tree size. Follows from collision resistance of the hash on its domain X ∪ Y² (merkleHashDomain leafSpace, Section 8.9, p. 320), the standard assumption of Theorem 8.8, by CollisionResistantOn.merklePositionBinding; plausible for that reason. Also keyed by a uniform n-bit key, digests have n bits, and positions are written in unary. | MerkleBinding.lean not_merklePositionBinding_constHash |
Encryption#
| Assumption | Status | Source definition | Deviations or relation | Nonvacuity |
|---|---|---|---|---|
Encryption.INDCPA | standard | [BonehShoup2023] Attack Game 11.1 and Definition 11.2, pp. 436–437 | One challenge; bit messages. | AssumptionNonvacuity.lean not_indcpa_plaintext |
Encryption.INDCPAOf | standard | [BonehShoup2023] Attack Game 11.1 and Definition 11.2, pp. 436–437 | One challenge; every challenge pair admissible, in place of the equal-length rule. Generic in the message type: exactly the source's notion when all messages of the type have one length, as for Bool. At List Bool it is strictly stronger, so it is not the source's notion (Encryption.WordINDCPA is). | CCA.lean not_indcpaOf_lenEncrypt |
Encryption.INDCPAOn | standard | [BonehShoup2023] Attack Game 11.1 and Definition 11.2, pp. 436–437 | One challenge; an admissibility predicate in place of the equal-length rule. It is the source's notion when the predicate is the equal-length rule (Encryption.WordINDCPA). | ElGamalHomomorphism.lean not_indcpaOn_elGamalGroupEncryptProb_const |
Encryption.WordINDCPA | standard | [BonehShoup2023] Attack Game 11.1 and Definition 11.2, pp. 436–437 | One challenge; equal-length messages. | GoldwasserMicaliWord.lean not_wordINDCPA_leakBitEncrypt |
Encryption.INDCCA2 | standard | [BonehShoup2023] Attack Game 12.1 and Definition 12.2, pp. 467–468 | 1CCA; bit messages. | AssumptionNonvacuity.lean not_indcca2_plaintext |
Encryption.INDCCA2Of | standard | [BonehShoup2023] Attack Game 12.1 and Definition 12.2, pp. 467–468 | 1CCA; every challenge pair admissible. | CCA.lean not_indcca2Of_lenEncrypt |
Encryption.INDCCA2On | standard | [BonehShoup2023] Attack Game 12.1 and Definition 12.2, pp. 467–468 | 1CCA; an admissibility predicate. | SloppyCCA.lean |
Encryption.WordINDCCA2 | standard | [BonehShoup2023] Attack Game 12.1 and Definition 12.2, pp. 467–468 | 1CCA; equal-length messages. | — |
Encryption.INDCCA1On | standard | [BonehShoup2023] Exercise 12.28, p. 522, with Attack Game 12.1 and Definition 12.2, pp. 467–468 | Non-adaptive 1CCA: no decryption query after the single encryption query; an admissibility predicate. | NonAdaptiveCCA.lean not_indcca1On_plaintext |
Encryption.INDCCA2Multi | standard | [BonehShoup2023] Attack Game 12.1 and Definition 12.1, pp. 467–468 | Challenges in one batch, not adaptively; bit messages. | CCA.lean not_indcca2Multi_leaking |
Encryption.INDCCA2MultiOf | standard | [BonehShoup2023] Attack Game 12.1 and Definition 12.1, pp. 467–468 | Challenges in one batch, not adaptively. | CCA.lean not_indcca2MultiOf_lenEncrypt |
Encryption.INDCCA2MultiOn | standard | [BonehShoup2023] Attack Game 12.1 and Definition 12.1, pp. 467–468 | Challenges in one batch, not adaptively. | — |
Encryption.WordINDCCA2Multi | standard | [BonehShoup2023] Attack Game 12.1 and Definition 12.1, pp. 467–468 | Challenges in one batch, not adaptively; equal-length messages. | — |
Encryption.INDCCA2InterleavedOn | standard | [BonehShoup2023] Attack Game 12.1 and Definition 12.1, pp. 467–468 | Fully adaptive, round-structured adversaries. | CCAInterleaved.lean not_indcca2InterleavedOf_lenEncrypt |
Encryption.IBESemanticOn | standard | [BonehShoup2023] Attack Game 15.5 and Definition 15.9, pp. 645–646 | Identities are words; exactly one encryption query; a key query for the challenge identity voids the run in both worlds; an admissibility predicate. | IdentityBased.lean not_ibeSelectiveOn_cleartext with IBESemanticOn.ibeSelectiveOn |
Encryption.IBEPrivateOn | standard | [BonehShoup2023] Attack Game 15.6 and Definition 15.10, p. 646 | As IBESemanticOn, with two (identity, message) pairs. | IdentityBased.lean not_ibePrivateOn_revealId |
Encryption.IBESelectiveOn | standard | [BonehShoup2023] Attack Game 15.7 and Definition 15.11, p. 647 | As IBESemanticOn; the target identity is drawn from the security parameter alone, before the master public key is used. | IdentityBased.lean not_ibeSelectiveOn_cleartext |
Encryption.KEMINDCPA | standard | [CramerShoup2003] Section 7.1.2, pp. 38–39 of the authors' revised manuscript of August 14, 2003 | The attack game restricted to adversaries that make no decryption queries (Stages 2 and 4), which weakens the assumption. Uniform strict PPT distinguishers receive the public key, the challenge key and the encapsulation together as one framed word (pk, (k, ψ)); without decryption queries this is the information of Stages 1 and 3. The ideal key is uniform on keyLen n-bit words, as K⁺ ← {0,1}^ℓ; the advantage is the two-experiment AdvCCA', twice AdvCCA. Neither soundness (Section 7.1.1) nor efficient honest algorithms are bundled. [BonehShoup2023] Exercise 11.9 (p. 460) states a weaker notion whose challenger does not send pk; under it the exercise's part (b) is false (counterexample in the KEMINDCPA docstring). | HybridEncryption.lean not_kemINDCPA_sameLengthLeaking |
Encryption.DEMOneTimeKeyINDCPAOn | standard | [BonehShoup2023] Attack Game 2.1 and Definition 2.2, p. 16 | Key length keyLen n; an admissibility predicate. | — |
Encryption.DEMOneTimeKeyINDCPAOf | standard | [BonehShoup2023] Attack Game 2.1 and Definition 2.2, p. 16 | Every challenge pair admissible, in place of the equal-length rule. Generic in the message type: exactly the source's notion when all messages of the type have one length. At List Bool it is strictly stronger, so it is not the source's notion (Encryption.DEMOneTimeKeyWordINDCPA is). | — |
Encryption.DEMOneTimeKeyWordINDCPA | standard | [BonehShoup2023] Attack Game 2.1 and Definition 2.2, p. 16 | Equal-length messages. | DiffieHellman.lean not_demOneTimeKeyWordINDCPA_identitySym |
Encryption.DEMOneTimeINDCPAOn | standard | [BonehShoup2023] Attack Game 2.1 and Definition 2.2, p. 16 | n-bit keys; an admissibility predicate. | — |
Encryption.DEMOneTimeINDCPAOf | standard | [BonehShoup2023] Attack Game 2.1 and Definition 2.2, p. 16 | n-bit keys; every challenge pair admissible, in place of the equal-length rule. Generic in the message type: exactly the source's notion when all messages of the type have one length. At List Bool it is strictly stronger, so it is not the source's notion (Encryption.DEMOneTimeWordINDCPA is). | — |
SymmetricCipher.INDCPA | standard | [BonehShoup2023] Attack Game 5.2 and Definition 5.2, pp. 181–182 | Both messages of a query have exactly n bits; the oracle answers other queries with []. | AuthenticatedEncryption.lean not_indcpa_echoCipher |
SymmetricCipher.OneTimeINDCPA | standard | [BonehShoup2023] Definition 2.2, p. 16, and Definition 9.4, p. 360 | — | AuthenticatedEncryption.lean not_oneTimeINDCPA_echoCipher |
SymmetricCipher.CiphertextIntegrity | standard | [BonehShoup2023] Attack Game 9.1 and Definition 9.1, pp. 358–359 | A forgery may be any word, but decryption rejects outside the cipher's ctSpace, so on ctSpace = C the game is the source's on C. | AuthenticatedEncryption.lean not_ciphertextIntegrity_echoCipher |
SymmetricCipher.OneTimeCiphertextIntegrity | standard | [BonehShoup2023] Definition 9.3, p. 360 | As for CiphertextIntegrity: on ctSpace = C the game is the source's on C. | AuthenticatedEncryption.lean not_oneTimeCiphertextIntegrity_echoCipher |
SymmetricCipher.AuthenticatedEncryption | standard | [BonehShoup2023] Definition 9.2, p. 359 | — | AuthenticatedEncryption.lean not_authenticatedEncryption_echoCipher |
SymmetricCipher.OneTimeAuthenticatedEncryption | standard | [BonehShoup2023] Definition 9.4, p. 360 | — | AuthenticatedEncryption.lean not_oneTimeAuthenticatedEncryption_echoCipher |
SymmetricCipher.INDCCA | standard | [BonehShoup2023] Attack Game 9.2 and Definition 9.5, p. 362 | Decryption queries outside the cipher's ctSpace, and on returned ciphertexts, are answered with a rejection instead of being excluded. An adversary can compute these answers itself when ctSpace is an efficiently recognizable C, as Definition 2.10 (p. 31) requires, so on ctSpace = C this is the source's notion on C. | SigmaLWECCANonvacuity.lean not_indcca_echoCipher |
SymmetricCipher.OneTimeINDCCA | standard | [BonehShoup2023] Definition 9.6, p. 363 | As for INDCCA; only the first valid encryption query is answered. | AuthenticatedEncryption.lean not_oneTimeINDCCA_echoCipher |
SymmetricCipher.EncForge | standard | [BonehShoup2023] Exercise 9.15, p. 395 (plaintext integrity: Attack Game 9.1, pp. 358–359, won by a ciphertext that decrypts to a message never queried) | Encryption queries other than n-bit messages are answered with []. | MACThenEncryptEncForge.lean not_encForge_echoMtE |
SymmetricCipher.RealIdealAE | standard | [KatzLindell2020] §5.2.1, Definition 5.4 and its experiment, pp. 152–153 | Encryption queries must have n bits and otherwise return []. Decryption of an earlier encryption reply gives public rejection. Two-world advantage is twice the absolute hidden-bit guessing bias. | Encrypt-then-MAC from a PRF and half-block failure |
Protocols.FujisakiOkamoto.WordPKE.INDCPA | standard | [HofheinzHoevelmannsKiltz2017] Definition 2.2 and Figure 4, pp. 9–10 (ePrint 2017/604, version of 2 November 2021) | Challenge messages in the scheme's message space. Asymptotic, against uniform strict PPT adversaries, where the source defines the concrete advantage |Pr[b' = b] - 1/2|, half the two-experiment advantage used here. | — |
Encryption.StronglyUnpredictable | standard | [BonehShoup2023] Section 21.4.1, p. 872 | Uniform negligible ciphertext-hit bound over all pk : PK n, m : Msg n, and non-error c : C n (equivalent to sequential negligibility under Nonempty types); none models error and is excluded, and no efficient key-generation or encryption certificate is bundled. | StronglyUnpredictable.lean not_stronglyUnpredictable_det, not_stronglyUnpredictable_schnorr_d23 |
Authentication and signatures#
| Assumption | Status | Source definition | Deviations or relation | Nonvacuity |
|---|---|---|---|---|
MACScheme.EUFCMA | standard | [BonehShoup2023] Attack Game 6.1 and Definition 6.2, pp. 218–219 | msgLen n-bit messages. A forgery must be on a fresh message, which is weaker than Boneh–Shoup's fresh pair, so the source's notion implies this one (MACScheme.SUFCMA.eufCma). Tagging queries and the forgery lie in the message space, as in the source: a query of another length is answered with the empty word without being tagged or recorded. | MAC.lean not_eufCMA_trivialMACScheme |
MACScheme.SUFCMA | standard | [BonehShoup2023] Attack Game 6.1 and Definition 6.2, pp. 218–219 | msgLen n-bit messages. Tagging queries and the forgery lie in that message space, as in the source: a query of another length is answered with the empty word without being tagged or recorded. | MAC.lean not_sufCMA_trivialMACScheme |
MACScheme.SUFCMAVq | standard | [BonehShoup2023] Attack Game 6.2, p. 221 | msgLen n-bit messages; equivalent to MACScheme.SUFCMA (MACScheme.sufCmaVq_iff_sufCma, Theorem 6.1, pp. 221–223). Signing queries of other lengths return [] without being tagged or recorded; verification queries of other message lengths return [false], and verification queries replaying a previously signed pair (m, t) return [true] without winning. | MACVerificationQueries.lean not_sufCmaVq_twoTagMAC |
MACSUFCMAOn | standard | [BonehShoup2023] Attack Game 6.1 and Definition 6.2, pp. 218–219 | Deterministic keyed tag family over message domain valid n with uniform n-bit keys and recomputation verification, against uniform strict oracle-PPT forgers: queries outside valid n receive [] without tagging or recording, and only valid pairs never returned by the tagging oracle win. Efficiency of valid and tagFamily is supplied separately by the theorem or scheme. | ComputationalCBCMAC.lean not_macSufCmaOn_cbcMacFamily |
MACEUFCMAOn | standard | [BonehShoup2023] Attack Game 6.1 and Definition 6.2, pp. 218–219 | Fresh-message form of MACSUFCMAOn; because tagFamily is deterministic with a unique valid tag per (sk, msg), equivalent to MACSUFCMAOn (macSufCmaOn_iff_macEufCmaOn). | ComputationalCBCMAC.lean not_macSufCmaOn_cbcMacFamily |
MACScheme.OneTimeEUFCMA | standard | [BonehShoup2023] Section 7.6, p. 275 (Attack Game 6.1, pp. 218–219, with one signing query), against efficient adversaries as for the one-time secure MAC of Theorem 9.2, p. 367 | Computational, where Section 7.6 defines unconditional security against all adversaries, even computationally unbounded ones. Fresh message, weaker than the source's new pair, so MACScheme.OneTimeSUFCMA implies it (MACScheme.OneTimeSUFCMA.oneTimeEUFCMA). The tagging query lies in the message space, as for MACScheme.EUFCMA; a query of another length is refused without using up the one tagging query. | MAC.lean not_oneTimeEUFCMA_trivialMACScheme |
MACScheme.OneTimeSUFCMA | standard | [BonehShoup2023] Section 7.6, p. 275 (Attack Game 6.1, pp. 218–219, with one signing query), against efficient adversaries as for the one-time secure MAC of Theorem 9.2, p. 367 | msgLen n-bit messages. The tagging query lies in the message space, as for MACScheme.SUFCMA; a query of another length is refused without using up the one tagging query. | MAC.lean not_oneTimeSUFCMA_trivialMACScheme |
MACScheme.BlockwiseEUFCMA | standard | [KatzLindell2020] Construction 4.7 and Theorem 4.8 (locator not verified) | — | VariableLengthMAC.lean not_blockwiseEUFCMA_echoBlockMAC |
NonceMACScheme.SUFCMA | standard | [BonehShoup2023] Attack Game 7.4, p. 274 | A run that repeats a nonce loses. Tagging queries and the forgery lie in the spaces of msgLen n-bit messages and nonceLen n-bit nonces, as in the source: any other query is answered with the empty word without being tagged or recorded. | — |
NonceMACScheme.EUFCMA | standard | [BonehShoup2023] Attack Game 7.4 and Definition 7.6, p. 274 | Fresh message, weaker than the source's new triple, so the source's notion implies this one (NonceMACScheme.SUFCMA.eufCma); queries in the message and nonce spaces, as for NonceMACScheme.SUFCMA. | — |
NonceMACScheme.CounterSUFCMA | standard | [BonehShoup2023] Attack Game 7.4, p. 274, with the signer's counter as the nonce, as suggested in Section 7.5, p. 273 | The forger does not choose the nonces; follows from NonceMACScheme.SUFCMA (NonceMACScheme.SUFCMA.counterSufCma). Tagging queries lie in the message space: a query of another length is refused without using a counter value. | — |
SignatureScheme.EUFCMA | standard | [BonehShoup2023] Attack Game 13.1 and Definition 13.2, pp. 529–530 | n-bit messages. Signing queries and the forgery lie in that message space, as in the source: a query of another length is answered with the empty word without being signed or recorded. | Signature.lean not_eufCMA_trivialSignatureScheme |
SignatureScheme.OneTimeEUFCMA | standard | [BonehShoup2023] Definition 14.1, p. 583 (Attack Game 13.1, pp. 529–530, with one signing query) | n-bit messages, as for SignatureScheme.EUFCMA; a query of another length is refused without using up the one signing query. | Signature.lean not_oneTimeEUFCMA_trivialSignatureScheme |
WordSignatureScheme.EUFCMA | standard | [BonehShoup2023] Attack Game 13.1 and Definition 13.2, pp. 529–530 | Arbitrary-length messages. | HashAndSign.lean not_eufCMA_constHash |
WordAggregateSignatureScheme.ASIG | standard | [BonehShoup2023] Attack Game 15.2 and Definition 15.5, p. 632 | Bit-string keys, messages and signatures. The forger receives the system parameter, the book's (Definition 2.9, p. 30), which the base signature algorithms do not receive. The aggregator also receives the messages, as in Exercise 15.11(c), p. 675. No bound N on the vector lengths; a strict PPT forger outputs vectors of polynomial length. The key and message vectors must have equal lengths, as in Definition 15.4. | WordAggregateSignature.lean not_asig_trivial |
WordAggregateSignatureScheme.StrongBinding | standard | [BonehShoup2023] Attack Game 15.3 and Definition 15.6, pp. 632–633 | Bit-string keys, messages and signatures. The adversary receives the security parameter and the system parameter, the book's (Definition 2.9, p. 30), where the source's adversary takes no input; the base signature algorithms do not receive the parameter. Both pairs of vectors must have equal lengths, as in Definition 15.4. | WordAggregateSignature.lean not_strongBinding_constantHash |
IndexedSignatureScheme.IndexedEUFCMA | standard | [BonehShoup2023] Definition 14.6, p. 597 | A forgery counts only at an index u < capacity n, as in the message space {1, …, q} × M, with indices 0, …, q - 1. Other differences listed in the module docstring. | TCRSignature.lean not_indexedEUFCMA_tcrSignature_constHash |
IndexedSignatureScheme.CounterEUFCMA | standard | [BonehShoup2023] Section 14.6.4, p. 602 | A counter as the nonce. A forgery counts only at an index u < capacity n read from the signature word, as for IndexedEUFCMA. | — |
Protocols.ROMSignature.EUFCMA | standard | [BonehShoup2023] Attack Game 13.1 and Definition 13.2, pp. 529–530, in the random oracle version of Section 8.10.2, p. 328, as used in Section 13.3, p. 535 | One lazily sampled random function from words to Digest n; every word is a message. The scheme carries no efficiency or correctness requirement. | — |
Protocols.ROMSignature.SUFCMA | standard | [BonehShoup2023] Attack Game 13.2 and Definition 13.3, p. 530 | Specializes the source's fresh-pair condition to native uniform oracle-PPT word forgers and its shared classical random function (Section 8.10.2, pp. 327–329), implemented here lazily. Unlike Definition 13.1, pp. 528–529, public keys, messages, signatures and query points are arbitrary-length words, and the scheme components and digest encoding have no efficiency or correctness certificates. No QROM or concrete scheme-security claim. | Correctness is separate. Without it, an always-rejecting scheme satisfies this predicate vacuously. |
Zero knowledge, commitments and protocols#
| Assumption | Status | Source definition | Deviations or relation | Nonvacuity |
|---|---|---|---|---|
StatefulHiding | standard | [Naor1991] Section 2, pp. 3–4 of the author's copy | The secrecy condition for commitments to many bits, at one bit: the receiver sends r and chooses both bits. A distinguishing advantage replaces the guessing probability (factor of two). Arbitrary auxiliary input aux : ℕ → List Bool is restricted to polynomially bounded length (PolynomiallyBounded (fun n => (aux n).length)); because CommitmentReceiver.IsPPT clocks choose polynomial in n + (aux n).length, this keeps the receiver's first stage running in time polynomial in n, and aux n is fixed across the two worlds. For the source's comparison with a predictor given only a prior correlated with the bit, see StatefulHiding.exists_priorPredictor in Commitment/Guessing.lean. Because commit is arbitrary with no ComputableInPolyTime bound bundled, CommitmentReceiver.IsPPT.guess runs in time polynomial in n + state.length + c.length (BitCommitmentScheme bounds c.length polynomially via polyTime_commit). | Commitment.lean not_statefulHiding_leakCommit |
GenerableStatefulHiding | standard | [Naor1991] Section 2, pp. 3–4 of the author's copy | Uniform restriction of StatefulHiding (follows from it via StatefulHiding.generable): the same single-bit secrecy condition with a distinguishing advantage in place of the guessing probability, but the auxiliary input aux : ℕ → List Bool ranges only over deterministic polynomial-time computable families (ComputableInPolyTime aux encUnary encBits), which a uniform receiver could compute itself from 1^n, weaker than the source's auxiliary-input remark. As in StatefulHiding, commit is arbitrary with no ComputableInPolyTime bound bundled, so CommitmentReceiver.IsPPT.guess runs in time polynomial in n + state.length + c.length (GenerableBitCommitmentScheme bounds c.length polynomially via polyTime_commit). | Commitment.lean not_generableStatefulHiding_leakCommit |
CommitmentScheme.StatisticalHiding | standard | [BonehShoup2023] Section 8.12: the hiding experiment, p. 344, and unconditional hiding, p. 346 | The source names unconditional hiding in prose (statistically indistinguishable commitments), not in a numbered definition; Definition 8.8 is a secure (hiding and binding) scheme. Read here as the p. 344 experiment against every adversary: an unbounded Encryption.WordAdversary that sees the public parameters, drawn from a setup law keyDist (the source's scheme has none), and chooses the two messages. | AssumptionNonvacuity.lean not_statisticalHiding_plaintextCommitment; CommitmentPublicSetup.lean |
FuzzyExtractor.ComputationallySecureFor | standard | [FullerMengReyzin2020] Definition 2.2, item 4, p. 6 of the ePrint revision of June 23, 2020 | A concrete bound ε against a distinguisher class Admissible that the caller supplies, where the source fixes D_{s_sec}, the randomized circuits of size at most s_sec (p. 5); it is the source's notion only for an instance that supplies that class. Distinguishers are probabilistic programs reading the key and the helper, and the ideal key is uniform on a finite type in place of {0,1}^ℓ. | — |
FuzzyExtractor.ComputationallySecure | standard | [FullerMengReyzin2020] Definition 2.2, item 4, p. 6 of the ePrint revision of June 23, 2020 | The asymptotic form of FuzzyExtractor.ComputationallySecureFor: negligible advantage in the security parameter against a distinguisher class the caller supplies, where the source bounds the advantage by ε against randomized circuits of size at most s_sec (p. 5). weaklyReusable_commonMatrixFuzzyExtractor assumes it of the FMR family: it is the security property (item 4) of the hypothesis of [AponChoEldefrawyKatz2017] Theorem 1, p. 9, that the FMR scheme is a fuzzy extractor; the correctness half of that hypothesis is not assumed. | — |
ZKProof.NegligibleSoundness | novel | Goldreich1998Fragments Definition 4.2.6, p. 136, is the closest source. | Stronger than that definition with a negligible soundness bound: the bound at parameter n holds uniformly for every false instance, where the source's is a function of the input length, so a verifier that ignores n must have soundness error 0. Running the verifier at n equal to the input length gives the source's condition with a negligible bound. Plausible: ZKProof.negligibleSoundness_one_third_pow gives it for sequential repetition, and OneWay.exists_generableZKProof_of_mem_NP and NonuniformOneWay.exists_zkProof_of_mem_NP build proof systems with it for every language in NP. | ZeroKnowledgeNonvacuity.lean not_negligibleSoundness_alwaysAccept |
AuxiliaryInputZeroKnowledge | novel | Goldreich1998Fragments Definition 4.3.8, pp. 151–152, is the closest source. | Stronger than that definition in two ways. The distinguisher's auxiliary input is chosen independently of the verifier's, which the verifier may read in full, where the source gives the distinguisher the verifier's auxiliary input. And the security parameter is decoupled from the instance: instances, witnesses and auxiliary inputs are polynomially bounded families indexed by n, every party runs in time polynomial in n, and the gap is negligible in n, where the source indexes by the instance and clocks every party in its length. Restricting the prover's input to valid witnesses weakens it but does not offset these. Implies InstanceAuxiliaryInputZeroKnowledge (AuxiliaryInputZeroKnowledge.instanceAuxiliaryInputZeroKnowledge), which follows the source's indexing and clocks with the prover's security parameter set to the instance length, and also UnboundedAuxiliaryInputZeroKnowledge and GenerableZeroKnowledge. Plausible: NonuniformOneWay.exists_zkProof_of_mem_NP builds proof systems with it for every language in NP from any nonuniformly one-way function. | ZeroKnowledgeNonvacuity.lean not_auxiliaryInputZeroKnowledge_leakWitness |
ZKProof.AuxiliaryInputZeroKnowledge | novel | Goldreich1998Fragments Definition 4.3.8, pp. 151–152, is the closest source. | AuxiliaryInputZeroKnowledge for a bundled proof system, with the same two strengthenings. Implies ZKProof.InstanceAuxiliaryInputZeroKnowledge. Plausible: NonuniformOneWay.exists_zkProof_of_mem_NP provides it. | — |
UnboundedAuxiliaryInputZeroKnowledge | novel | Goldreich1998Fragments Definition 4.3.8, pp. 151–152, is the closest source. | Follows the source's treatment of auxiliary input (any length, read through a polynomial prefix and given to the distinguisher), but decouples the security parameter from the instance, as AuxiliaryInputZeroKnowledge does, which makes it stronger. Follows from AuxiliaryInputZeroKnowledge and implies InstanceAuxiliaryInputZeroKnowledge (UnboundedAuxiliaryInputZeroKnowledge.instanceAuxiliaryInputZeroKnowledge). Plausible: through AuxiliaryInputZeroKnowledge, NonuniformOneWay.exists_zkProof_of_mem_NP gives it for every language in NP from any nonuniformly one-way function. | ZeroKnowledgeNonvacuity.lean not_unboundedAuxiliaryInputZeroKnowledge_leakWitness |
ZKProof.UnboundedAuxiliaryInputZeroKnowledge | novel | Goldreich1998Fragments Definition 4.3.8, pp. 151–152, is the closest source. | UnboundedAuxiliaryInputZeroKnowledge for a bundled proof system. Implies ZKProof.InstanceAuxiliaryInputZeroKnowledge, and follows from ZKProof.AuxiliaryInputZeroKnowledge, which NonuniformOneWay.exists_zkProof_of_mem_NP provides. | — |
InstanceAuxiliaryInputZeroKnowledge | standard | Goldreich1998Fragments Definition 4.3.8, pp. 151–152, with the clock conventions stated after it, p. 152 | As in the source, it is indexed by the instance: the verifier, simulator and distinguisher are clocked in the instance length, the auxiliary input may have any length and is also given to the distinguisher, and the gap is measured in the instance length. The prover's private input ranges over valid witnesses (isWitness) of length bounded by a polynomial in the instance length, for every such polynomial, where the source's ranges over every string with which the prover meets the completeness condition; this weakens it. The prover family runs at security parameter equal to the instance length. The simulator must also depend only on a prefix of the auxiliary input of length polynomial in the instance length, beyond which a machine clocked in the instance length cannot read. The distinguisher is clocked in the lengths of the instance and the view, and both views have length polynomial in the instance length. Follows from UnboundedAuxiliaryInputZeroKnowledge and from AuxiliaryInputZeroKnowledge. | ZeroKnowledgeNonvacuity.lean not_instanceAuxiliaryInputZeroKnowledge_leakWitness |
ZKProof.InstanceAuxiliaryInputZeroKnowledge | standard | Goldreich1998Fragments Definition 4.3.8, pp. 151–152, with the clock conventions stated after it, p. 152 | InstanceAuxiliaryInputZeroKnowledge of a bundled proof system's prover, with the same deviations. Follows from ZKProof.AuxiliaryInputZeroKnowledge, which NonuniformOneWay.exists_zkProof_of_mem_NP provides for every language in NP from any nonuniformly one-way function. | — |
GenerableZeroKnowledge | novel | Goldreich1998Fragments Definition 4.3.8, pp. 151–152, is the closest source. | Incomparable with that definition: ranging only over families generated from 1^n in deterministic polynomial time weakens it, and decoupling the security parameter from the instance, as AuxiliaryInputZeroKnowledge does, strengthens it. Follows from AuxiliaryInputZeroKnowledge (AuxiliaryInputZeroKnowledge.generableZeroKnowledge); not shown to imply InstanceAuxiliaryInputZeroKnowledge. Plausible: every ZKProof carries it, and OneWay.exists_generableZKProof_of_mem_NP builds such proof systems for every language in NP from any one-way function. | ZeroKnowledgeNonvacuity.lean not_generableZeroKnowledge_leakWitness |
Protocols.SigmaProtocol.ComputationalSpecialHVZK | standard | [BonehShoup2023] Section 20.4.2 and Definition 20.6, p. 840 | An acceptance error δ. | SigmaLWECCANonvacuity.lean not_computationalSpecialHVZK_revealWitness |
Protocols.UC.EmulatesWithin | novel | [Canetti2020] Definition 15, p. 51, in the statistical setting of Section 4.4, p. 50, in the ePrint revision of February 11, 2020, is the closest source. | Concrete UC emulation in a different model. Adversaries, simulators and environments are bounded by their calls per activation, not by running time, and are otherwise computationally unbounded; for the simulator this is the variant that Section 4.4 says gives a weaker guarantee, with a call budget at most g at κ + pA κ where Definition 15 bounds running time by g(pA). A protocol has a fixed set of n parties: one closed machine per security parameter and corrupted set, with a party port and a network port, where the source creates machine instances and their identities during the execution (Section 3.1, p. 21). Corruptions are static (Section 7.1.1, p. 74) and reroute the corrupted parties' ports to the adversary; further corruption behaviour is whatever the protocol does on the corrupted set. No identity bound on environments; the bound holds at every κ and for auxiliary inputs of every length. Compared with Definition 15 for polynomial-time participants it admits more adversaries and environments, and more simulators, in a different execution model: not source-identical, and no implication to or from Definition 15 is established here. Plausible as a statistical, call-bounded notion: reflexive, transitive and closed under composition (EmulatesWithin.refl, EmulatesWithin.trans, EmulatesWithin.compose), and not_realizesWithin_fcom gives plain commitment schemes that fail it for fcom. | UC.lean not_emulatesWithin_bitFunc |
Protocols.UC.Emulates | novel | [Canetti2020] Definition 9, p. 43, in the statistical setting of Section 4.4, p. 50, in the ePrint revision of February 11, 2020, is the closest source. | The negligible-error form of Protocols.UC.EmulatesWithin, in the same model and with the same deviations; one negligible function bounds every environment with a given budget, at every κ and for every auxiliary input. It admits more adversaries and environments than Definition 9, and also more simulators: not source-identical, and no implication to or from Definition 9 is established here. Follows from Protocols.UC.EmulatesWithin with negligible errors (EmulatesWithin.emulates). Plausible: reflexive, transitive and closed under composition (Emulates.refl, Emulates.trans, Emulates.compose), and by not_realizes_fcom no plain one-message commitment scheme with nontrivial completeness realizes fcom under it. | UC.lean not_emulates_bitFunc |
Protocols.UC.RealizesWithin | novel | [Canetti2020] Definition 20, p. 58 (nearest realization notion), and Definition 15, p. 51, in the statistical setting of Section 4.4, p. 50 (source of the overhead/slack comparison; Definition 15 bounds running time, not per-activation call budgets), in the ePrint revision of February 11, 2020, are the closest sources. | Protocols.UC.EmulatesWithin of the ideal protocol (F.toProtocol), carrying concrete simulator call overhead g and distinguishing error ε, with the model and deviations of Protocols.UC.EmulatesWithin and without Definition 20's requirement that the protocol be subroutine-respecting; not source-identical, and no implication to or from Definitions 15 or 20 is established here. Implies Protocols.UC.Realizes whenever every ε pA pZ is negligible (EmulatesWithin.emulates). Plausible as Protocols.UC.EmulatesWithin is (RealizesWithin.compose_trans, RealizesWithin.compose_toJoint, not_realizesWithin_fcom). | UCCommitment.lean not_realizesWithin_trivialScheme |
Protocols.UC.Realizes | novel | [Canetti2020] Definition 20, p. 58, in the ePrint revision of February 11, 2020, is the closest source. | Protocols.UC.Emulates of the ideal protocol, with its deviations, and without Definition 20's requirement that the protocol be subroutine-respecting; not source-identical, and no implication to or from Definition 20 is established here. Plausible as Protocols.UC.Emulates is (Realizes.compose, Realizes.compose_trans, not_realizes_fcom). | UCCommitment.lean not_realizes_trivialScheme |
Protocols.UC.EmulatesDummyWithin | novel | [Canetti2020] Definition 10 and Claim 11, p. 44, in the ePrint revision of February 11, 2020, is the closest source. | Against the dummy adversary, with a budget and error as in Definition 15; otherwise in the model and with the deviations of Protocols.UC.EmulatesWithin. Equivalent to Protocols.UC.EmulatesWithin up to budgets and errors (EmulatesDummyWithin.emulatesWithin, EmulatesWithin.emulatesDummyWithin), as Claim 11 is for the source's notions; not source-identical, and no implication to or from Definition 10 is established here. Plausible for the same reasons; not_emulatesDummyWithin_fcom gives plain commitment schemes that fail it. | UCDummyAdversary.lean not_emulatesDummyWithin_bitFunc |
Protocols.UC.EmulatesBlackBoxWithin | novel | [Canetti2020] Definition 12, p. 48, and Claim 13, p. 49, in the ePrint revision of February 11, 2020, is the closest source. | One black-box simulator, with a budget and error as in Definition 15; otherwise in the model and with the deviations of Protocols.UC.EmulatesWithin. Equivalent to Protocols.UC.EmulatesDummyWithin up to budgets and errors (EmulatesDummyWithin.emulatesBlackBoxWithin, EmulatesBlackBoxWithin.emulatesDummyWithin), as Claim 13 is for the source's notions, and implies Protocols.UC.EmulatesWithin (EmulatesBlackBoxWithin.emulatesWithin); not source-identical, and no implication to or from Definition 12 is established here. Plausible for the same reasons. | UCDummyAdversary.lean not_emulatesBlackBoxWithin_bitFunc |
AKE.Protocol.StaticallySecure | novel | [BonehShoup2023] Section 21.9, Experiments 0 and 1 and Definition 21.1, pp. 886–888, is the closest source. | Definition 21.1 in a guarded, bounded-message word model. It is not Definition 21.1, for three reasons. First, the guard is part of the protocol's semantics: the challenger refuses any query that would hand a protocol algorithm a user identity or message longer than a polynomial-time size bound sizeBound n (Protocol.TooLong) before the algorithm runs, so this is the security of the protocol behind the guard, not of its unguarded algorithms. Second, inputs and stored state are bounded: incoming user identities and messages, long-term keys and instance states have at most sizeBound n bits, and each TTP call adds at most sizeBound n bits to the TTP state; outgoing messages have no fixed cap. The TTP thus runs in time polynomial in n and the number of interactions, a narrower form of the efficient interface of footnote 1, p. 885, and Definition 2.12, p. 33. Third, the polynomial terminal-round condition of §18.1.1, p. 718, is not required. Protocols are word programs with strict-PPT certificates (IsPPTOn) for each call. Plausible as a security goal: the always-aborting protocol meets it and two insecure protocols fail it; the textbook definition remains open (#5670). Honest registration is one joint step while corrupt registration proceeds per query and logs corruptUser per query; disallowed queries are refused ([]) rather than forbidden; instances are named by index (init log entries carry no identity); the partner function reads n and the log including the finishing entry; Challenger.hasConnection counts any prior .connected peer instance even with error (effectiveKey = none); error is observable (none); uniform strict oracle-PPT adversaries with advantage in ℝ≥0; Idealization.exposed defaults to fun _ _ => false; no correctness requirement, as in the source. | AuthenticatedKeyExchange.lean not_staticallySecure_echoProtocol, not_staticallySecure_constKeyProtocol; satisfied by abortProtocol_staticallySecure, which never finishes a session |
AnonymousToken.WordOneMoreUnforgeable | novel | [PoMFRIT2026], Definition 3.1, printed p. 7 (PoMFRIT), is the closest source. | Uniform strict oracle-PPT word-level chosen-target one-more unforgeability parameterized by challenge count N, target sampler targets, and query budget. Differs from Definition 3.1 in four respects: (1) adversaries run in IsOraclePPT encBits rather than non-uniform PPT; (2) targets is an explicit caller sampler rather than independent uniform target words (so colliding targets violate the premise, as tested); (3) oneMoreWordGame hands the full encoded vector List.ofFn targets (length ≥ N n) in the input word, so adversary time is polynomial in n + N n (modeling PPT one-more unforgeability when N is polynomially bounded in n, whereas super-polynomial N admits 2^{O(n)}-time adversaries); and (4) claim outputs are processed via the lenient total decoder wordClaimListDecoder (rejecting any index ≥ N n, while decoding malformed bit strings through Decoder.list (Decoder.pair Decoder.nat Decoder.bits)). Holds unconditionally at the pigeonhole boundary N n = 1 < budget n + 1 (wordOneMoreUnforgeable_one_slot); for N n ≥ budget n + 1 and efficient targets, proving it unconditionally would imply one-way functions. | AnonymousTokenRandomTargetPolyTime.lean not_wordOneMoreUnforgeable_constTargets, wordOneMoreUnforgeable_one_slot |
AnonymousToken.ACTMQ.WordStructuredClawUnforgeable | novel | [BouillaguetEtAl2025] Appendix A, Definition 12, p. 38, and [VOLEACT2026] (VOLE-ACT) are the closest sources. | Uniform strict oracle-PPT structured-target one-more claw-freeness over clawWordGame. Differs from Definition 12 in six respects: (1) the signing oracle answers only structured (m, r) queries on J d m r rather than arbitrary targets (a weaker adversary); (2) the budget counts distinct J-targets queried (queriedTargets.dedup.length < claims.length, stronger under randomized signers); (3) valid claims require pairwise distinct J-targets (claimTargets.Nodup); (4) adversaries run in uniform strict oracle-PPT IsOraclePPT encBits on encWordPair (spk, encParam d) rather than non-uniform PPT; (5) queries and claim lists use total decoders wordPairDecoder, wordClawClaimListDecoder, and decMsg d; and (6) setup is an arbitrary PMF Param family rather than an efficiently samplable parameter generator. Plausible: in any accepting run, pairwise distinct claimTargets outnumber distinct queried targets, so at least one verified claim target was never queried to the signing oracle (an ordinary EUF-CMA forgery); thus the premise follows from EUF-CMA of S on encoded targets whenever setup is efficiently samplable and J is word-computable, and is stated separately because raw MQ trapdoor signers without hashing or salting are not EUF-CMA on raw targets. No implication to or from Definition 12 is established; echo signing (not_wordStructuredClawUnforgeable_echoSigScheme) falsifies the word-level assumption, while ACTMQ.zeroOpeningClawAttack constructs an attack on the typed clawExperiment (without a running-time bound) whenever F 0 = 0, S.verify accepts homogeneously quadratic-rescaled signatures, and two scalars with distinct squares exist. Hence the ACT-MQ conservation headline is informative only for (F, G, S) instantiations where zero-opening rescaling is blocked. | AnonymousTokenACTMQPolyTime.lean not_wordStructuredClawUnforgeable_echoSigScheme |
UOV and anonymous-credential game instances#
The following finite experiments define the problems to which future hardness premises apply. They introduce no new unproved axiom and do not assert a security level. Resource-indexed envelopes use the existing Game.SuccWithin; its admitted adversary predicate must account for time and memory as well as signing queries before a computational hardness claim is made.
- Ordinary UOV: instantiate
Signature.targetExperimentwithUOV.idealRawSchemeand independent uniform field-vector targets. [UOV2026], Appendix A, Definition 2, printed p. 49, is the source problem. The current executable language covers finite classical programs; the source assumption additionally quantifies over efficient quantum algorithms. Ideal key generation is distinguished from source seed expansion, andnonepreimage replies reject without conditioning away failure. - Multiple-target and one-more UOV: instantiate
Signature.multiTargetExperimentorSignature.oneMoreExperimentwith independent uniform target vectors. [PoMFRIT2026], Definition 3.1, printed p. 7, gives the fixed-budget game: at mostellarbitrary-target oracle calls, including repetitions and failures, andell + 1valid answers at distinct indices. Distinct indices may carry equal target values. An unqueried-target freshness game is different and admits the explicit homogeneous rescaling attack inUOV.Attacks. - Structured ACT certification:
AnonymousToken.extractedExperimentlets the adversary choose semantic messages and openings and asks for a valid certificate whose semantic message appeared in no signing request, including failed requests. For the ACT-MQ target(F(r) + w, G(r)), a direct hardness premise would be novel and protocol-specific; the pinned [VOLEACT2026] Proof status section does not derive it from ordinary or random-target one-more UOV. The library proves only finite extracted-witness reductions and accounting steps here;AnonymousToken.Conservationconsumes the same chosen-target EUF-CMA term throughextractedConservationExperiment_succProbability_le, so its bound is informative only where this chosen-target term is small. Raw UOV is not assumed to satisfy target EUF-CMA.
The source locators above were read for this change; provenance is recorded under UOV, PoMFRIT, VOLE-IHAT, and VOLE-ACT. ROBridgePolyTime supplies strict oracle-PPT extraction certificates and conditional single-repetition transfer bounds (romUnextractedTokenWordGame_succProbability_le_negligible_add_of_soundnessError and romUnextractedConservationWordGame_succProbability_le_negligible_add_of_soundnessError) over VOLEITHSoundnessError from VOLE.ROExtractor: for an adversary with polynomially bounded sign, leaf, and Fiat-Shamir query bounds (m, Q_leaf, Q_FS), they bound unextracted success probability by neg n + (Q_FS n + m n) * epsilon_rel n for a negligible neg without requiring epsilon_rel to be negligible (the bound is informative when (Q_FS n + m n) * epsilon_rel n < 1); as accept_le_of_soundnessError shows, at constant d, any statement with a non-witness in the image of decWit is accepted with probability at most 2 ^ d * epsilon_rel n for every prover. Multi-repetition soundness, full adaptive extraction, multi-issuer and random-oracle realization, privacy, and remaining runtime certificates remain #7068; the concrete UOV signer and its failure/retry analysis remain #4987.
Generic vocabulary#
These notions state the security of whatever the caller supplies: two games or ensembles, an adversary predicate, a resource budget or a bound. They are not assumptions by themselves, and a nonvacuity test belongs to an instance, not to the notion. Under a cited headline, review checks that the instance a theorem supplies is the source's assumption (AGENTS.md, Security theorems): ComputationallyIndistinguishable of a scheme's keys and an ideal key law, for example, is a premise about the scheme's own algorithms.
| Assumption | Status | Source definition | Deviations or relation | Nonvacuity |
|---|---|---|---|---|
Game.Indistinguishable | vocabulary | — | Negligible advantage between two caller-supplied game families for every adversary that a caller's predicate admits. | — |
Game.IndistinguishableWithError | vocabulary | — | A common concrete bound ε n on that advantage for every admitted adversary. | — |
Game.IndistinguishableWithin | vocabulary | — | Concrete (Within, ε)-indistinguishability against a resource predicate that the caller supplies. | — |
Game.SuccWithin | vocabulary | — | Concrete one-sided security against a resource predicate that the caller supplies. | — |
ComputationallyIndistinguishable | vocabulary | — | Two caller-supplied word ensembles against uniform strict PPT distinguishers; neither ensemble need be efficiently samplable or polynomially bounded in length. | — |
StatisticallyIndistinguishable | vocabulary | — | Negligible statistical distance between two caller-supplied ensembles on any types: Game.Indistinguishable against every family of tests, with no efficiency condition. For word ensembles it implies ComputationallyIndistinguishable. | — |
IndistinguishableWithAdvice | vocabulary | — | Two caller-supplied ensembles against uniform strict PPT tests that also read one fixed advice family; with empty advice it is ComputationallyIndistinguishable. | — |
NonuniformlyIndistinguishable | vocabulary | — | IndistinguishableWithAdvice for every polynomially bounded advice family: non-uniform indistinguishability of two caller-supplied ensembles, with the advice length charged to the test's clock. | — |
NativeQuantum.ComputationallyIndistinguishable | vocabulary | — | Two caller-supplied ensembles against native uniform quantum tests without advice or a useful oracle. | — |
NativeQuantum.IndistinguishableWithin | vocabulary | — | Concrete form of NativeQuantum.ComputationallyIndistinguishable, with separate circuit resource budgets. | — |
Protocols.UC.Computational.Witness | vocabulary | — | For caller-supplied protocols, profiles and a designated adversary and simulator, the simulator must be strict PPT and satisfy the ideal profile. For every static corruption set, each strict-PPT tester admitted by the real profile remains admitted by the ideal profile, and its real and ideal output bits have negligible distinguishing advantage for every uniform strict-PPT auxiliary-input sampler. | only_translator in WitnessSelection.lean |
Protocols.UC.Computational.EmulatesOn | vocabulary | — | For two caller-supplied protocols and profiles, every strict-PPT adversary admitted by the real profile has a Protocols.UC.Computational.Witness. The choice of simulator may depend on the adversary and must work for every static corruption set, admitted tester and efficient auxiliary-input sampler. | — |
Protocols.UC.AdaptiveEmulatesWithin | vocabulary | — | Generic snapshot-corruption emulation relation parameterized by two caller-supplied protocols, mode, simulator-overhead polynomial, and error bound; becomes an assumption only through the protocols a theorem supplies. Inspired by [Canetti2020] Section 7.1.1, p. 28:71 (JACM; ePrint 2000/067 of February 11, 2020, p. 74), and Definition 15 (ePrint p. 51), not identical to any standard assumption: shares the call-bounded, fixed n-party port model and computationally unbounded participants of Protocols.UC.EmulatesWithin, in CorruptionMode (.static or .adaptive) with AdaptivePartyQ.status (p. 28:70 f = id), where PartyMemory only switches CorruptionReport.history between none and some (trace i) of the arbitrary caller-supplied projection AdaptiveProtocol.view. Because view may hide stored coins (e.g., View := Unit) and recordSnapshot records every party after each inner activation (exposing global activation counts while omitting intra-activation coins), §7.1.1's write-once storage restriction, coin exposure, and per-party activation granularity are not enforced and stay open. Environment inputs to corrupted parties are dropped (none, matching corruptRouter; for ideal functionalities matching p. 28:73, "input values from p are ignored"). | adaptiveEmulates_erasing_witness in UCAdaptiveDummy.lean, not_adaptiveEmulatesWithin_nonErasing_witness in UCAdaptiveSeparation.lean |
Protocols.UC.AdaptiveEmulates | vocabulary | — | Generic negligible-error snapshot-corruption emulation relation parameterized by two caller-supplied protocols and mode, inspired by [Canetti2020] Section 7.1.1, p. 28:71 (JACM; ePrint 2000/067 of February 11, 2020, p. 74), and Definition 9 (ePrint p. 43). As for Protocols.UC.AdaptiveEmulatesWithin (not identical to any standard assumption; snapshot corruption model where §7.1.1 write-once storage, coin exposure, and activation granularity remain open), with one negligible bound per environment budget. | erasing_adaptiveEmulates in UCAdaptiveDummy.lean, not_adaptiveEmulates_nonErasing in UCAdaptiveSeparation.lean |
Protocols.UC.AdaptiveEmulatesDummyWithin | vocabulary | — | Generic dummy-adversary snapshot-corruption emulation relation parameterized by two caller-supplied protocols, mode, simulator-overhead polynomial, and error bound, inspired by [Canetti2020] Definition 10 and Claim 11, p. 28:43 (JACM; ePrint 2000/067 of February 11, 2020, p. 44), and Section 7.1.1, p. 28:71 (JACM). Against adaptiveDummyAdversary with initial corruption schedule C₀ quantified outside the simulator so S_D.initial can match .status; otherwise as for Protocols.UC.AdaptiveEmulatesWithin (not identical to any standard assumption; snapshot corruption model where §7.1.1 write-once storage, coin exposure, and activation granularity remain open). | — |
Protocols.UC.AdaptiveEmulatesDummy | vocabulary | — | Generic negligible-error dummy-adversary snapshot-corruption emulation relation parameterized by two caller-supplied protocols and mode, inspired by [Canetti2020] Claim 11, p. 28:43 (JACM; ePrint 2000/067 of February 11, 2020, p. 44), and Section 7.1.1, p. 28:71 (JACM). Against adaptiveDummyAdversary with initial corruption schedule C₀ quantified outside the simulator so S_D.initial can match .status; otherwise as for Protocols.UC.AdaptiveEmulates (not identical to any standard assumption; snapshot corruption model where §7.1.1 write-once storage, coin exposure, and activation granularity remain open), with one negligible bound per environment budget. | — |
Protocols.MPC.Malicious.ComputationallyMaliciousSecure | vocabulary | — | Generic real/ideal computational malicious MPC security predicate parameterized by output guarantee (delivery, fair, withAbort), corruption threshold k, caller-supplied real protocol family, OptFunctionality, and adversary/simulator/distinguisher admissibility classes ([DodisRabin2007] Section 8.1.1, Definition 8.1, pp. 183–185). Becomes an assumption only through the concrete protocol family and admissibility classes supplied by a theorem; implies fair from delivery and withAbort from fair, and follows from negligible-error StatisticallyMaliciousSecure. | MaliciousMPC.lean not_computationallyMaliciousSecure_leaky |
Protocols.MPC.Malicious.ComputationallyDetectableFairSecure | vocabulary | — | Generic real/ideal computational security predicate for fair MPC with detectable abort, parameterized by threshold k, caller-supplied DetectableFairModel family, OptFunctionality, and adversary/simulator/distinguisher admissibility classes ([DodisRabin2007] Section 8.4.2, p. 194). Becomes an assumption only through the caller-supplied model family and admissibility classes; forgetting the blame field yields ordinary computational fair MPC security. | MaliciousMPC.lean not_computationallyDetectableFairSecure_leaky |