Skip to content

Add direct unitor and associator attachment laws on cryptographic algebras - #454

Merged
MarcIlunga merged 2 commits into
mainfrom
feat/parallel-coherence-hom
Nov 24, 2026
Merged

MarcIlunga merged 2 commits into
mainfrom
feat/parallel-coherence-hom

Conversation

@MarcIlunga

@MarcIlunga MarcIlunga commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Adds the forward coherence-arrow attachment laws beside parallel_dummy_right,
parallel_dummy_left, and parallel_assoc:

  • CryptographicAlgebra.associator_hom_attach, CryptographicAlgebra.leftUnitor_hom_attach,
    and CryptographicAlgebra.rightUnitor_hom_attach in
    src/ConstructiveCryptography/CryptographicAlgebra/Basic.lean, proved in an arbitrary
    CryptographicAlgebra (with no RandomSystems imports) from parallel_assoc,
    parallel_dummy_left, and parallel_dummy_right via attach_serial and Iso.hom_inv_id.
  • One-line interface specializations Interface.associator_hom_attach,
    Interface.leftUnitor_hom_attach, and Interface.rightUnitor_hom_attach in
    src/ConstructiveCryptography/Instances/Algebra.lean.
  • cc_normalization registration for CryptographicAlgebra.associator_hom_attach in
    src/ConstructiveCryptography/Tactics/Categorical.lean and Interface.associator_hom_attach
    • associatorHomSmul simproc in src/ConstructiveCryptography/Notation.lean.
  • Consumer tests in src/Tests/ParallelCoherenceHom.lean exercising the abstract class laws,
    generic interfaces, three concrete one-query TypedSystem.ofFunction systems regrouped
    side by side through (α_ A B C).hom, and cc_normalize, plus #print axioms checks in
    src/Tests/Axioms/CC.lean and updated src/ConstructiveCryptography/README.md links.

Validation

  • lake build --wfail: 3160 jobs, 0 warnings
  • scripts/check-sources.sh: clean
  • scripts/check-axioms.sh: 0 outside the envelope
  • lake env lean -Dweak.linter.mathlibStandardSet=true on all touched files: 0 warnings on added/modified lines

Closes #393.

@CLAassistant

CLAassistant commented Nov 24, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@MarcIlunga
MarcIlunga force-pushed the feat/parallel-coherence-hom branch 2 times, most recently from 7ae1045 to 92473c7 Compare November 24, 2026 11:42
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
MarcIlunga force-pushed the feat/parallel-coherence-hom branch from 92473c7 to 6f3d0ec Compare November 24, 2026 11:52
@MarcIlunga
MarcIlunga merged commit a210763 into main Nov 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

State the unit and associativity laws of resource parallel composition through the unitors and the associator

2 participants