Add uniform guessing, retained-sample reparametrization, and key-guessing ratio laws

Aperta
#461 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@MarcIlunga ci sta già lavorando.

Dal 24/11/2026.

  • #463 di @MarcIlunga — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Ambito
cryptography

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

needs-format

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_le and Probability.Counting.fTransform_update_uniform in src/Probability/Counting/Guessing.lean.
  • Add SystemAlgebra.TypedSystem.sample_const and SystemAlgebra.TypedSystem.sample_uniform_equiv in src/RandomSystems/Typed/SampleLaws.lean.
  • Add SystemAlgebra.TypedSystem.parallel_ofFunction in src/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} in src/RandomSystems/Typed/KeyGuessing.lean.
  • Export the new modules from src/Probability.lean and src/RandomSystems.lean, and add consumer tests with #print axioms in src/Tests/KeyGuessing.lean.

Acceptance criteria

  • All 10 new declarations compile cleanly without sorry or extra axioms (propext, Classical.choice, Quot.sound only).
  • src/Tests/KeyGuessing.lean exercises 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.

Lingua principale
Lean
Stelle
3
Fork
0
Merge medio
1g 7h
PR unite (30g)
123

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di trailofbits/constructive-cryptography

Tutte le issue di trailofbits/constructive-cryptography

Issue simili

Altre issue su Cryptography

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.