Open
Description
Should this be a corollary of something about
All P xs
impliesAll P ys
whenever ys is a subset of xs?
Indeed, and this appears twice in the library:
Data.List.Relation.Unary.All.Properties.anti-mono : xs Subset.⊆ ys → All P ys → All P xs
(andSublist
is a stronger property thanSubset
)Data.List.Relation.Binary.Sublist.Propositional.Properties.All-resp-⊆ : {P : Pred A ℓ} → (All P) Respects _⊇_
and this should (added: perhaps?) be refactored to a proof in...Sublist.Setoid.Properties
, under assumptions thatP
respects the underlyingSetoid
equality?
Originally posted by @jamesmckinna in #2522 (comment)