Skip to content

refactoring and correction in examples/cat.v#587

Open
t6s wants to merge 2 commits into
math-comp:masterfrom
t6s:cat20260401
Open

refactoring and correction in examples/cat.v#587
t6s wants to merge 2 commits into
math-comp:masterfrom
t6s:cat20260401

Conversation

@t6s

@t6s t6s commented Apr 1, 2026

Copy link
Copy Markdown
Member

fix #583, #584, #585

  • make \o the primary notation and ; parsing only
  • change the comp axioms to be about comp, not seq
  • fix (co)monad laws and their names
  • add IsCat factory
  • add IsFunctor factory
  • add IsExtensionMonad factory

Co-authored-by: @affeldt-aist
Co-authored-by: @shinya-katsumata

@t6s t6s changed the title refactoring and correction refactoring and correction of examples/cat.v Apr 1, 2026
@t6s t6s changed the title refactoring and correction of examples/cat.v refactoring and correction in examples/cat.v Apr 1, 2026
* make \o the primary notation and \; parsing only
* change the comp axioms to be about comp, not seq
* fix (co)monad laws and their names
* add IsCat factory
* add IsFunctor factory
* add IsExtensionMonad factory

Co-authored-by: @affeldt-aist
Co-authored-by: @shinya-katsumata
@t6s

t6s commented Apr 24, 2026

Copy link
Copy Markdown
Member Author

Can you take a look at this? @CohenCyril

@CohenCyril CohenCyril left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks better to me. Thanks for the improvement.
Just one remark.

Comment thread examples/cat/cat.v
Arguments comp {C} {a b c} : rename.
Notation "f \o g" := (comp g f) : cat_scope.
Notation "f \; g :> T" := (@comp T _ _ _ f g)
Notation "f \; g :> T" := (@comp T _ _ _ g f)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd keep \; as a parsing and printing notation but with an alias, as in ssrfun:
https://github.com/rocq-prover/rocq/blob/3b3c606ac062925ae66e1306b8570e50a9c09333/theories/Corelib/ssr/ssrfun.v#L464-L480

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.

PreCat_IsMonoidal -> PreCat_IsPreMonoidal?

2 participants