Repository navigation
Add direct unitor and associator attachment laws on cryptographic algebras - #454
Merged
Merged
Conversation
MarcIlunga
force-pushed
the
feat/parallel-coherence-hom
branch
2 times, most recently
from
November 24, 2026 11:42
7ae1045 to
92473c7
Compare
State the forward unit and associativity laws of resource parallel
composition through the monoidal unitors and associator in any
CryptographicAlgebra, instantiate them on Interface in one line each,
and register the forward associator law in cc_normalization.
- CryptographicAlgebra.{associator_hom_attach, leftUnitor_hom_attach,
rightUnitor_hom_attach} in CryptographicAlgebra/Basic.lean (from
parallel_assoc, parallel_dummy_left, parallel_dummy_right via
attach_serial and Iso.hom_inv_id)
- Interface.{associator_hom_attach, leftUnitor_hom_attach,
rightUnitor_hom_attach} in Instances/Algebra.lean (one-line class law
instantiations)
- Register CryptographicAlgebra.associator_hom_attach in
Tactics/Categorical.lean and Interface.associator_hom_attach +
associatorHomSmul simproc in Notation.lean under cc_normalization
- Consumer tests in Tests/ParallelCoherenceHom.lean (arbitrary algebra,
generic interfaces, three concrete one-query TypedSystem.ofFunction
systems regrouped through the associator, and cc_normalize checks)
plus axiom checks in Tests/Axioms/CC.lean and README.md link updates
Closes #393
MarcIlunga
force-pushed
the
feat/parallel-coherence-hom
branch
from
November 24, 2026 11:52
92473c7 to
6f3d0ec
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the forward coherence-arrow attachment laws beside
parallel_dummy_right,parallel_dummy_left, andparallel_assoc:CryptographicAlgebra.associator_hom_attach,CryptographicAlgebra.leftUnitor_hom_attach,and
CryptographicAlgebra.rightUnitor_hom_attachinsrc/ConstructiveCryptography/CryptographicAlgebra/Basic.lean, proved in an arbitraryCryptographicAlgebra(with noRandomSystemsimports) fromparallel_assoc,parallel_dummy_left, andparallel_dummy_rightviaattach_serialandIso.hom_inv_id.Interface.associator_hom_attach,Interface.leftUnitor_hom_attach, andInterface.rightUnitor_hom_attachinsrc/ConstructiveCryptography/Instances/Algebra.lean.cc_normalizationregistration forCryptographicAlgebra.associator_hom_attachinsrc/ConstructiveCryptography/Tactics/Categorical.leanandInterface.associator_hom_attachassociatorHomSmulsimproc insrc/ConstructiveCryptography/Notation.lean.src/Tests/ParallelCoherenceHom.leanexercising the abstract class laws,generic interfaces, three concrete one-query
TypedSystem.ofFunctionsystems regroupedside by side through
(α_ A B C).hom, andcc_normalize, plus#print axiomschecks insrc/Tests/Axioms/CC.leanand updatedsrc/ConstructiveCryptography/README.mdlinks.Validation
lake build --wfail: 3160 jobs, 0 warningsscripts/check-sources.sh: cleanscripts/check-axioms.sh: 0 outside the envelopelake env lean -Dweak.linter.mathlibStandardSet=trueon all touched files: 0 warnings on added/modified linesCloses #393.