Add uniform guessing, retained-sample reparametrization, and key-guessing ratio laws
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Área
- cryptography
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Lean
- Estrellas
- 3
- Forks
- 0
- Merge medio
- 1 d 7 h
- PR fusionados (30 d)
- 123
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de trailofbits/constructive-cryptography
-
Automate monoidal whiskering and unitor normalization in cc_normalizePosiblemente ocupada @MarcIlunga la tomó hoy. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
trailofbits/constructive-cryptography#480 ·
Los mantenedores suelen responder en 1 día
-
Add MR16 Lemma 5, indifferentiability composition, and specificationPosiblemente ocupada @MarcIlunga la tomó hoy. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
trailofbits/constructive-cryptography#473 ·
Los mantenedores suelen responder en 1 día
-
needs-format
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
trailofbits/constructive-cryptography#471 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
trailofbits/constructive-cryptography#465 ·
Los mantenedores suelen responder en 1 día
-
needs-format
Dificultad 5/5 Más de una semana Aptitud para principiantes 8/100
trailofbits/constructive-cryptography#462 ·
Los mantenedores suelen responder en 1 día
Todos los issues de trailofbits/constructive-cryptography
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
lidofinance/validator-ejector#233 ·
Los mantenedores suelen responder en 1 día
-
area/Driver_-_cpp-rs-driver bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
scylladb/cpp-rs-driver#542 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
latchset/kryoptic#600 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
good first issue priority:high track:crypto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día