Automate monoidal whiskering and unitor normalization in cc_normalize
维护者通常 1 天内回复
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 20/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 领域
- tooling
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Lean
- 星标
- 3
- 派生
- 0
- 平均合并
- 1 天 7 小时
- 30 天内合并 PR
- 123
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
trailofbits/constructive-cryptography 的其他 Issue
-
Add MR16 Lemma 5, indifferentiability composition, and specification可能已有人在做 @MarcIlunga 于 1 天前认领。 未关闭
难度 5/5 一周以上 新手友好度 12/100
trailofbits/constructive-cryptography#473 ·
维护者通常 1 天内回复
-
needs-format
难度 5/5 一周以上 新手友好度 12/100
trailofbits/constructive-cryptography#471 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 15/100
trailofbits/constructive-cryptography#465 ·
维护者通常 1 天内回复
-
needs-format
难度 5/5 一周以上 新手友好度 8/100
trailofbits/constructive-cryptography#462 ·
维护者通常 1 天内回复
-
Add uniform guessing, retained-sample reparametrization, and key-guessing ratio laws可能已有人在做 @MarcIlunga 于 1 天前认领。 未关闭needs-format
难度 4/5 一周以上 新手友好度 20/100
trailofbits/constructive-cryptography#461 ·
维护者通常 1 天内回复
查看 trailofbits/constructive-cryptography 的全部 Issue
相似的 Issue
-
Diagram: Gantt qa-manually-tested Type: Bug / Error
难度 2/5 1-3 小时 新手友好度 65/100
mermaid-js/mermaid-v13#1255 ·
维护者通常 1 天内回复
-
fix
难度 2/5 1-3 小时 新手友好度 72/100
idean3885/claude-ops-agent#1257 ·
维护者通常 1 天内回复
-
triage
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Configuration enhancement
难度 1/5 1 小时以内 新手友好度 85/100
novalo-dev/Prestashop-MCP-Server#402 ·
维护者通常 1 天内回复