Should we standardize on a notation for static indexing? #456
Replies: 2 comments
-
I'm happy to go either way, the reason for choosing this particular notation was that it matches Coq.Vector indexing style. I was initially going to do the indexing as a Coq vector, but it requires the indices are given as Fin.t. I also wasn't sure what version of indexing is preferable- in the Coq vector (after peel'ing) or via |
Beta Was this translation helpful? Give feedback.
-
I think we should use the notation and put it in a special |
Beta Was this translation helpful? Give feedback.
-
In #452 @blaxill defines a notation for static indexing:
I'm wary of using
Notation
too much. Perhaps here there is a case for using it to express static indexing? If that is the case then we should think about standardizing it across the codebase and putting it intoCavaPrelude
. If it was up to me I'd just useindexConst
directly but I can understand that might not be popular with everyone else and the use of@
in #452 does make the indexing clearer:What do people think? Useful enough to put in
CavaPrelude
?If yes, this this the notation you'd vote for, or do you have an alternative suggestion?
Beta Was this translation helpful? Give feedback.
All reactions