Automate monoidal whiskering and unitor normalization in cc_normalize
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 5/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
- tooling
Hướng nghiên cứu
Start in src/ConstructiveCryptography/Tactics/Categorical.lean and mirror the shape of the [cc_normalization] lemmas registered by PR #454; the attach-form lemmas belong in src/ConstructiveCryptography/CryptographicAlgebra/Basic.lean and the Interface wrappers in src/ConstructiveCryptography/Instances/Algebra.lean. Run lake build --wfail and scripts/check-axioms.sh early, then extend src/Tests/WhiskerNormalization.lean with abstract and Interface goals for each unitor, inverse associator and whiskering case. Done means those test goals close by cc_normalize with no warnings.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Background
PR #454 (#393) added the forward associator and unitor attachment laws (associator_hom_attach, leftUnitor_hom_attach, rightUnitor_hom_attach) and registered associator_hom_smul / associatorHomSmul in [cc_normalization]. Multi-port and indifferentiability proofs using cc_normalize still require manual rewrites for:
- Forward and inverse left/right unitors (
λ_,ρ_) and the inverse associator ((α_ A B C).inv) in•/∥notation. - Left- and right-whiskering attachments (
(A ◁ β) • (R ∥ S),(α ▷ B) • (R ∥ S)), serial composition inside whiskering ((κ ≫ π) ▷ P,H ◁ (σ ≫ τ)), identity whiskering (A ◁ 𝟙 B,𝟙 A ▷ B), and right/left whiskering exchange ((κ ▷ P) • ((H ◁ σ) • T) = (H' ◁ σ) • ((κ ▷ Q) • T)).
Proposed change
Extend cc_normalize with confluent monoidal unitor, associator, and whiskering normalization in both abstract CryptographicAlgebra and concrete Interface / TypedSystem notation:
src/ConstructiveCryptography/CryptographicAlgebra/Basic.lean: addattach_whiskerLeft,attach_whiskerRight, andwhisker_attach_comm.src/ConstructiveCryptography/Instances/Algebra.lean: exposeInterface.whiskerLeft_smul,Interface.whiskerRight_smul, andInterface.whisker_smul_comm.src/ConstructiveCryptography/Tactics/Categorical.lean: add public•-notation[cc_normalization]lemmas forsmul_identity,smul_serial,smul_parallel,associator_inv_smul,leftUnitor_hom_smul,leftUnitor_inv_smul,rightUnitor_hom_smul,rightUnitor_inv_smul,whiskerLeft_smul,whiskerRight_smul, andwhisker_smul_comm, and register theattach-form andMonoidalCategorywhiskering composition/identity lemmas.src/ConstructiveCryptography/Notation.lean: register theInterfacelemmas,cc_dummy_eq, and tensor-spelling-invariant[cc_normalization]simprocs (associatorInvSmul,leftUnitorHomSmul,leftUnitorInvSmul,rightUnitorHomSmul,rightUnitorInvSmul,whiskerLeftSmul,whiskerRightSmul,whiskerSmulComm).src/ConstructiveCryptography/README.md,src/Tests/Axioms/CC.lean,src/Tests/WhiskerNormalization.lean: update line anchors, add#print axiomsentries, and add abstract andInterfacetest coverage.
Acceptance criteria
cc_normalizecloses forward/inverse unitor, inverse associator, left/right whiskering, serial-inside-whiskering, identity whiskering, and right/left whiskering exchange goals in both abstractCryptographicAlgebraand concreteInterface/TypedSystemnotation (•,∥,◁,▷,λ_,ρ_,α_,⊗ₘ,≫,sample) insrc/Tests/WhiskerNormalization.lean.lake build --wfail,scripts/check-sources.sh,scripts/check-axioms.sh, and Mathlib standard linters pass with zero warnings or regressions across the test suite.
- 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
-
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
-
Add uniform guessing, retained-sample reparametrization, and key-guessing ratio lawsCó thể đã có người làm @MarcIlunga đã nhận hôm nay. Đang mởneeds-format
Độ khó 4/5 Hơn một tuần Mức phù hợp với người mới 20/100
trailofbits/constructive-cryptography#461 ·
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ự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Windows data plugin feedbackĐang mởapp bug skills windows-os
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
tstraub89/canon-ai#194 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug false-positive
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
jose-compu/lacan-scan#109 ·
Maintainer thường phản hồi trong vòng 1 ngày