-
Notifications
You must be signed in to change notification settings - Fork 248
Adds Algebra.Morphism.Construct.DirectProduct #2715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Adds Algebra.Morphism.Construct.DirectProduct #2715
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
Hmm: some things to maybe (re) consider
Suggested refactoring:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I also agree with @jamesmckinna's suggestion that the actual morphism should be listed explicitly.
module _ (M N : RawMagma c ℓ) (open RawMagma M) (refl : Reflexive _≈_) where | ||
open MagmaMorphisms (rawMagma M N) M | ||
|
||
isMagmaHomomorphism-proj₁ : IsMagmaHomomorphism proj₁ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By convention in the library these should be named proj₁-isMagmaHomomorphism
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#2720 offers alternative (sub-)module organisation, where each proj₁-isXHomomorphism
could be defined as the IsXHomomorphism
of a Proj₁
module, etc. as suggested above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- level polymorphism
- suggest refactor in the light of [ add ] product structure on
RawSetoid
#2720
fix: export parametrisation fix: eta contract definitions fix: full stops fix: redundant comments/imports unbundle definitions; leave exports bundled fix: cosmetic comment to trigger fresh test run
38c20f8
to
1b7d503
Compare
I've tried to address the comments above. However, I can't understand how the suggestion in:
would work. By this I mean, that the argument I already rebased this branch on top of (a squashed version of) |
Thanks @carlostome yes I think you're right that my suggestion about restructuring the module organisation was wrong. |
This PR adds proofs that projections from the product type are structure preserving maps (morphisms) from the direct product construction.
This not complete whatsoever, but at least it gives an initial template that can be extended over time.