Add uniform guessing, retained-sample reparametrization, and key-guessing ratio laws
維護者通常 1 天內回覆
已經有一個關聯 PR 被合併了。
- #463 來自 @MarcIlunga —— 已合併
評估
- 難度
- 4/5
- 預估耗時
- 一週以上
- 新手友好度
- 20/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 領域
- cryptography
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Lean
- 星號
- 3
- 分支
- 0
- 平均合併
- 1 天 2 小時
- 30 天內合併 PR
- 159
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
trailofbits/constructive-cryptography 的其他 Issue
-
RFC: Budget-free dependent Interface, cumulative CR18 Systems/Converters, and endomorphism Filters未關閉
難度 5/5 一週以上 新手友好度 12/100
trailofbits/constructive-cryptography#504 ·
維護者通常 1 天內回覆
-
needs-format
難度 5/5 一週以上 新手友好度 12/100
trailofbits/constructive-cryptography#471 ·
維護者通常 1 天內回覆
-
Exclude all approximate ideal witnesses with separating tests可能已有人在做 @MarcIlunga 於 1 天前認領。 未關閉
難度 5/5 一週以上 新手友好度 15/100
trailofbits/constructive-cryptography#449 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 12/100
trailofbits/constructive-cryptography#430 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 15/100
trailofbits/constructive-cryptography#429 ·
維護者通常 1 天內回覆
查看 trailofbits/constructive-cryptography 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
lidofinance/validator-ejector#233 ·
維護者通常 1 天內回覆
-
area/Driver_-_cpp-rs-driver bug
難度 2/5 1-3 小時 新手友好度 76/100
scylladb/cpp-rs-driver#542 ·
-
難度 2/5 1-3 小時 新手友好度 66/100
latchset/kryoptic#600 · 1 則留言 ·
維護者通常 1 天內回覆
-
good first issue priority:high track:crypto
難度 2/5 1-3 小時 新手友好度 74/100
-
`libcrux-aead` fails to compile when referenced with `default-features = false`可能已有人在做 @jschneider-bensch 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆