Ability to use sets in forall
and exists
#356
Labels
C-Project
A larger project that may take multiple days.
S-Nice to have
Minor importance
U-Language Design
U-Testing
Z-Feature Request
We have considered and rejected some ideas to broadly identify types and sets (#290, #282, #348). However, I wonder if there are some more limited things we could do that would be convenient. One such idea is to allow using finite set values as the domain of a
forall
orexists
(perhaps using a different syntax to distinguish them). Like this:As opposed to
forall x : T. e
whereT
must be a type and the whole expression has typeProp
,forall x in X. e
would have the same type ase
as long asX : Set(T)
ande
has typeBool
orProp
under the assumptionx : T
.This would certainly be convenient. Right now even if you write something like
forall x : N. (x <= 10) -> ...
it will still try a bunch of values ofx
greater than 10, and it won't be able to tell you that it has exhaustively tested all the possibilities. On the other hand this might just be confusing for students.The text was updated successfully, but these errors were encountered: