Improve the consistency of naming and definitions in Cedar.Data
and Cedar.Thm.Data
#298
Open
2 tasks done
Labels
internal-improvement
Refactoring, performance improvement, or other non-breaking change
Category
Lean formalization
Describe the feature you'd like to request
We accumulated some redundancies and stylistic inconsistencies across the shared data structure definitions and lemmas. Let's fix these by consolidating the definitions:
Definitions in
Cedar.Data
:Map
has both.kvs
and.toList
, which are synonyms. Drop one.Membership.mem
forMap
s is inconsistent withcontains
andfind?
. Let's make them consistent.Set
has both.elts
and.toList
, which are synonyms. Drop one.Theorems in
Cedar.Thm.Data
:iff
lemma versus two lemmas for both directions. Let's use a singleiff
lemma when both directions have the same preconditions.Map
and a key (or value or both), consistent ordering of those arguments.make_mem_list_mem
becausemem
comes first in the statement of the theorem.Describe alternatives you've considered
N/A
Additional context
No response
Is this something that you'd be interested in working on?
The text was updated successfully, but these errors were encountered: