Add uniform guessing, retained-sample reparametrization, and key-guessing ratio laws
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- cryptography
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Lean
- Star
- 3
- Fork
- 0
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 123
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của trailofbits/constructive-cryptography
-
Automate monoidal whiskering and unitor normalization in cc_normalizeCó thể đã có người làm @MarcIlunga đã nhận hôm nay. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
trailofbits/constructive-cryptography#480 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add MR16 Lemma 5, indifferentiability composition, and specificationCó thể đã có người làm @MarcIlunga đã nhận hôm nay. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
trailofbits/constructive-cryptography#473 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-format
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
trailofbits/constructive-cryptography#471 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
trailofbits/constructive-cryptography#465 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-format
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 8/100
trailofbits/constructive-cryptography#462 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của trailofbits/constructive-cryptography
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
lidofinance/validator-ejector#233 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/Driver_-_cpp-rs-driver bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
scylladb/cpp-rs-driver#542 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
latchset/kryoptic#600 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue priority:high track:crypto
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày