Automate monoidal whiskering and unitor normalization in cc_normalize

Abierto
#480 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@MarcIlunga ya está trabajando en esto.

Desde el 24/11/2026.

  • #481 de @MarcIlunga — abierto

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Área
tooling

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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: add attach_whiskerLeft, attach_whiskerRight, and whisker_attach_comm.
  • src/ConstructiveCryptography/Instances/Algebra.lean: expose Interface.whiskerLeft_smul, Interface.whiskerRight_smul, and Interface.whisker_smul_comm.
  • src/ConstructiveCryptography/Tactics/Categorical.lean: add public •-notation [cc_normalization] lemmas for smul_identity, smul_serial, smul_parallel, associator_inv_smul, leftUnitor_hom_smul, leftUnitor_inv_smul, rightUnitor_hom_smul, rightUnitor_inv_smul, whiskerLeft_smul, whiskerRight_smul, and whisker_smul_comm, and register the attach-form and MonoidalCategory whiskering composition/identity lemmas.
  • src/ConstructiveCryptography/Notation.lean: register the Interface lemmas, 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 axioms entries, and add abstract and Interface test coverage.
Acceptance criteria
  • cc_normalize closes forward/inverse unitor, inverse associator, left/right whiskering, serial-inside-whiskering, identity whiskering, and right/left whiskering exchange goals in both abstract CryptographicAlgebra and concrete Interface / TypedSystem notation (•, ∥, ◁, ▷, λ_, ρ_, α_, ⊗ₘ, ≫, sample) in src/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.
Lenguaje dominante
Lean
Estrellas
3
Forks
0
Merge medio
1 d 7 h
PR fusionados (30 d)
123

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de trailofbits/constructive-cryptography

Todos los issues de trailofbits/constructive-cryptography

Issues similares

Más issues de DevTools

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.