-
Notifications
You must be signed in to change notification settings - Fork 247
Formalize Prefix
, Suffix
and Infix
as relations on Lists
#517
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
Comments
Something to think about: Suffix could be generalised to module _ (R : REL (List A) (List B) r) where
data Suffix : REL (List A) (List B) (a ⊔ b ⊔ r) where
here : ∀ {as bs} → R as bs → Suffix as bs
there : ∀ {b as bs} → Suffix as bs → Suffix as (b ∷ bs) We then recover the usual suffix as |
Is this issue not already closed by the existing definitions under UPDATED: it seems as though |
I think close. If people want to open an issue for extending the |
Rather than Haskell's
it would be nice to have evidence-producing versions of these functions. Note that
Data.List.Relation.Sublist
already gives us that forisSubsequenceOf
.The text was updated successfully, but these errors were encountered: