-
Notifications
You must be signed in to change notification settings - Fork 242
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
Use -local
consistently for properties
#626
Comments
What does |
The fact the equality constraint is relative to a specific domain (in order to be |
Hmm looking at this again, I'd probably prefer the prefix -locally (or -local) instead of -relative, as in the equality constraints hold locally. Thoughts? |
To be honest, I don't like either -locally or -relative. Isn't this rather a 'lifting' property? You're lifting an equality to hold at a list. In some ways, this is a generalization of |
So |
Going to leave this out of v1.0, as I don't think we've reached consensus yet. |
@jamesmckinna thinks the suffix should be After discussion we're going with |
Is it the case, for That is, do we uniformly have that |
@MatthewDaggitt this could also be linked to issue #509 (or at least, to a single PR which will knock them both off). You or me? |
No it's not. And I'm not sure that it is desirable as the local property requires an intermediate proof of the predicate
It would be great if you could to tackle this while you're fixing #509 👍 |
I think this bit of PR #1822 is now ready. |
I was too hasty. There is a very large raft of
|
Updated |
Problem: type of |
Is this issue now closed, or does there need to be an addition somewhere ( |
I guess if you're keen you can add a note to the following? https://github.com/agda/agda-stdlib/blob/master/notes/style-guide.md#naming-conventions |
I'll ponder what would be the most helpful way to introduce, exemplify, and reinforce the new agreed convention. But it seems 'small' compared to the gross-scale global conventions listed there. Too much thinking required perhaps! |
So: I think the issue/discussion of how to document the various already-merged PRs in |
-relative
consistently for properties-local
consistently for properties
Opened #2109 to knock this off as it's definitely low hanging fruit. |
OK, but I'll pass the baton on this one :-( |
In
Data.List.Properties
we usemap-id₂ : All (λ x → f x ≡ x) xs → map f xs ≡ xs
map-cong₂ : All (λ x → f x ≡ g x) xs → map f xs ≡ map g xs
map-compose₂
)I think that we should instead use the
-relative
suffix introduced in #510The text was updated successfully, but these errors were encountered: