Conversation
t6s
left a comment
There was a problem hiding this comment.
Looks consistent and I approve this PR.
Is it good or bad to generalize this pattern into
Definition closed_under2 (T : Type) (p : pred T) (op : T -> T -> T) :=
{in p &, forall x y, op x y \in p}.
and replace e.g. setU_closed by closed_under2 setU ?
(I noticed there are many *_closed in mathcomp.algebra.)
|
Another side note: filters of this form can be defined for any meet-semilattice, of which |
|
We can merge as is and generalize (twice) as @t6s mentioned later on. BTW the reason why mathcomp algebra contains specific definition is because they are substructures, and indexing happens on a per structure basis as of now, and might be improvements by automatically generating morphisms and substructures as part of @VojtechStep work. |
We could even have the notation |
sounds promising! |
|
@t6s would you be willing to open an issue based on our discussion here? |
|
reynald was so quick |
Motivation for this change
fixes #1863
@t6s I was merely thinking of that
Checklist
CHANGELOG_UNRELEASED.mdReference: How to document
Merge policy
As a rule of thumb:
all compile are preferentially merged into master.
Reminder to reviewers