I used "find_consts" to search for a constant that does the same thing as the count
in the following.
(("pred_set", "count_def"), (⊢ ∀n. count n = {m | m < n}, Def))
I used: find_consts "nat ⇒ nat set"
, but the one it finds is set_decode
, not what I want. I would be surprised if this thing does not exist in Isabelle. So does it exist somewhere?
Searching for "{_. _ ≤ _}"
led me to atLeast_def
. Alternatively, searching for
"_ < _" "_ ∈ _"
leads to lessThan_iff
. Is this what you are looking for?
Thanks a lot! It is very close! I would like the function such that it takes n
, and gives the set {x. x < n}
. I checked where atLeast
lives in, and find that what I want is lessThan
.
But why cannot I find such constants using find_consts "nat ⇒ nat set"
?
Because it will not attempt to do any type class instantiation? I just checked the type is 'a => 'a set
.
Last updated: Dec 21 2024 at 16:20 UTC