Skip to content

[ refactor ] Functoriality of Data.List.Relation.Binary.Sublist|Subset wrt All and Any #2525

Open
@jamesmckinna

Description

@jamesmckinna

Should this be a corollary of something about All P xs implies All 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 (and Sublist is a stronger property than Subset)
  • 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 that P respects the underlying Setoid equality?

Originally posted by @jamesmckinna in #2522 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions