Add uniform guessing, retained-sample reparametrization, and key-guessing ratio laws
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 20/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Bereich
- cryptography
Rechercherichtung
Start from existing TypedSystem sample and memoryless laws in src/RandomSystems/Typed/SampleLaws.lean and Memoryless.lean, mirroring their statement style. Counting lemmas belong in src/Probability/Counting/Guessing.lean; export them from src/Probability.lean and src/RandomSystems.lean. Exercise every declaration in src/Tests/KeyGuessing.lean with #print axioms, then run lake build --wfail and the source/axiom checks. Done means ten declarations compile without sorry, tests pass, and linters report zero warnings.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Background
Adaptive key-guessing and ideal-cipher proofs (such as Davies–Meyer PRF security and multi-root context replacement under #14) repeatedly need finite-probability list-guessing and coordinate-resampling laws, basic retained-sample reparametrization laws (sample_const, sample_uniform_equiv, parallel_ofFunction), and H-coefficient transcript-ratio wrappers on TypedSystem.
Proposed change
- Add
Probability.Counting.uniform_mass_mem_list_leandProbability.Counting.fTransform_update_uniforminsrc/Probability/Counting/Guessing.lean. - Add
SystemAlgebra.TypedSystem.sample_constandSystemAlgebra.TypedSystem.sample_uniform_equivinsrc/RandomSystems/Typed/SampleLaws.lean. - Add
SystemAlgebra.TypedSystem.parallel_ofFunctioninsrc/RandomSystems/Typed/Memoryless.lean. - Add
SystemAlgebra.TypedSystem.{distance_le_of_transcript_ratio, transcript_ratio_chain, sample_ratio_of_bad_keys, sample_distance_le_of_bad_keys, sample_distance_le_of_key_guesses}insrc/RandomSystems/Typed/KeyGuessing.lean. - Export the new modules from
src/Probability.leanandsrc/RandomSystems.lean, and add consumer tests with#print axiomsinsrc/Tests/KeyGuessing.lean.
Acceptance criteria
- All 10 new declarations compile cleanly without
sorryor extra axioms (propext,Classical.choice,Quot.soundonly). src/Tests/KeyGuessing.leanexercises every new lemma (including a concrete adaptive key-guessing bound) and prints axioms.lake build --wfail,scripts/check-sources.sh,scripts/check-axioms.sh, and Mathlib standard linters pass with 0 warnings.
Advances #14.
- Vorherrschende Sprache
- Lean
- Sterne
- 3
- Forks
- 0
- Ø Merge
- 1 T. 7 Std.
- Gemergte PRs (30 T.)
- 123
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus trailofbits/constructive-cryptography
-
Automate monoidal whiskering and unitor normalization in cc_normalizeEvtl. vergeben @MarcIlunga hat das heute übernommen. Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 20/100
trailofbits/constructive-cryptography#480 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add MR16 Lemma 5, indifferentiability composition, and specificationEvtl. vergeben @MarcIlunga hat das heute übernommen. Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 12/100
trailofbits/constructive-cryptography#473 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-format
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 12/100
trailofbits/constructive-cryptography#471 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 15/100
trailofbits/constructive-cryptography#465 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-format
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 8/100
trailofbits/constructive-cryptography#462 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in trailofbits/constructive-cryptography
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
lidofinance/validator-ejector#233 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area/Driver_-_cpp-rs-driver bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
scylladb/cpp-rs-driver#542 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
latchset/kryoptic#600 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue priority:high track:crypto
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag