E7: population cost
Generated by python3 tools/experiments/e7_population_cost.py. Never edit by hand.
Toy group: order-q subgroup of Z_p^*, q = 16777259 (about 2^24). The declared set is the interval [1, 4096]. An attacker takes fresh independent targets until one falls (seed 7); cost is in group multiplications, ± is two standard errors. Interval search (baby-step giant-step) is run and counted: 94 on success, 130 on failure. Listing costs its rank on success and 4096 on failure; that is computed from the key, not run. The generic attack always succeeds at a mean of 6002. Predicted: \(T=\frac{1-p}{p}\mathbb E[C\mid\text{fail}]+\mathbb E[C\mid\text{success}]\).
| generator | p per target | listing, predicted | listing, measured | interval, predicted | interval, measured | generic | cheapest |
|---|---|---|---|---|---|---|---|
| uniform | 0.00024 | 1.68e+07 | 2.02e+07 ± 4.8e+06 | 5.32e+05 | 5.49e+05 ± 1.5e+05 | 6002 | generic |
| 0.1% in interval | 0.0012 | 3.29e+06 | 3.37e+06 ± 4.8e+05 | 1.04e+05 | 9.54e+04 ± 1.1e+04 | 6002 | generic |
| 1% | 0.01 | 3.98e+05 | 4.04e+05 ± 4.1e+04 | 1.27e+04 | 1.3e+04 ± 1.4e+03 | 6002 | generic |
| 2% | 0.02 | 2e+05 | 2.21e+05 ± 2.3e+04 | 6.39e+03 | 6.96e+03 ± 6.8e+02 | 6002 | generic |
| 5% | 0.05 | 7.95e+04 | 7.9e+04 ± 7.4e+03 | 2.55e+03 | 2.42e+03 ± 2.8e+02 | 6002 | interval search |
| 50% | 0.5 | 6.14e+03 | 5.91e+03 ± 5.9e+02 | 224 | 223 ± 19 | 6002 | interval search |
Result
- Measured cost to a first success matches \(\mathbb E[C]/p\) within sampling error for both attacks and every generator: confirmed.
- Under the uniform generator, listing costs about the whole keyspace (1.68e+07) and interval search about 5.49e+05; both lose to the generic attack by a wide margin. Structure in the set does not make a population scan pay.
- Interval search overtakes the generic attack when the generator puts more than about 2.2% of keys in the interval (predicted from the formula). Listing needs about 51%.
- So the practical force of a group A class depends on the generator. The class and its \(\rho\) are fixed by the mathematics; whether scanning for it pays is a statement about \(D\).
Claim tested: taxonomy/classification.md I.2, population table ([R8]).