-
Notifications
You must be signed in to change notification settings - Fork 249
Add algebra morphism identity and composition constructions #1502
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
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.
Thanks for the PR! Looks like quite a tedious one so cheers for doing it.
I've added a few comments that should help reduce some the code needed.
src/Algebra/Structures.agda
Outdated
@@ -250,6 +250,42 @@ record IsLattice (∨ ∧ : Op₂ A) : Set (a ⊔ ℓ) where | |||
∨-congʳ : RightCongruent ∨ | |||
∨-congʳ y≈z = ∨-cong y≈z refl | |||
|
|||
∨-isMagma : IsMagma ∨ |
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.
Hmm these already exist in Algebra.Properties.Lattice
. Not saying that's the right place for them, but using them from there minimises the changes need in this particular PR.
@Taneb apologies I somehow missed your comment. I've now answered that. Just to say that if you would like to get this included in the upcoming v1.7 release, it'd be great to get this wrapped up relatively soon so I can include it in the release candidate 👍 |
Yes, the situation is not very pleasing, I agree. If you have any practical suggestions to fix it, please do open an issue or a PR? |
Closes #1500
I made slight changes to the
IsLattice
andLattice
records.Parts of this PR worry me that the definition of
RingHomomorphism
etc is incorrect, as they carry two proofs that the function is congruent modulo the equivalence relation, and as such don't provide any directly