You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
Although fintype and decidable are (sub)singletons, since different instances are not definitionally equal, it's useful to have instance arguments that are seemingly redundant. For example:
lemmato_finset_inter {α : Type*} [decidable_eq α] (s t : set α) [fintype (s ∩ t : set α)]
[fintype s] [fintype t] : (s ∩ t).to_finset = s.to_finset ∩ t.to_finset
The [fintype (s ∩ t : set α)] instance is inferrable from either of the other two, but to make sure this lemma is maximally applicable each fintype instance should be its own parameter.
This pattern should be documented somewhere, possibly as a library note.
The text was updated successfully, but these errors were encountered:
Although
fintype
anddecidable
are (sub)singletons, since different instances are not definitionally equal, it's useful to have instance arguments that are seemingly redundant. For example:The
[fintype (s ∩ t : set α)]
instance is inferrable from either of the other two, but to make sure this lemma is maximally applicable eachfintype
instance should be its own parameter.This pattern should be documented somewhere, possibly as a library note.
The text was updated successfully, but these errors were encountered: