Automate monoidal whiskering and unitor normalization in cc_normalize
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 20/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Bereich
- tooling
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Lean
- Sterne
- 3
- Forks
- 0
- Ø Merge
- 1 T. 7 Std.
- Gemergte PRs (30 T.)
- 123
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus trailofbits/constructive-cryptography
-
Add MR16 Lemma 5, indifferentiability composition, and specificationEvtl. vergeben @MarcIlunga hat das heute übernommen. Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 12/100
trailofbits/constructive-cryptography#473 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-format
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 12/100
trailofbits/constructive-cryptography#471 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 15/100
trailofbits/constructive-cryptography#465 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-format
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 8/100
trailofbits/constructive-cryptography#462 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add uniform guessing, retained-sample reparametrization, and key-guessing ratio lawsEvtl. vergeben @MarcIlunga hat das vor 1 Tag übernommen. Offenneeds-format
Schwierigkeit 4/5 Über eine Woche Anfängerfreundlichkeit 20/100
trailofbits/constructive-cryptography#461 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in trailofbits/constructive-cryptography
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
jupyterlab/eslint-plugin#178 · 2 Kommentare ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
libracoder/kiri#935 ·
Maintainer antworten meist innerhalb von 1 Tag
-
MarkdownDocSerializer.post_process escapes '\<' to '\<', rendering literal '<' in CommonMarkOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
docling-project/docling-core#1067 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Node's `index.d.ts` declares no constructor for `VirtxError`, so TypeScript rejects its argumentsOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag