[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tlaplus] Re: Type checking and custom infinite sets
- From: Leslie Lamport <tlaplus.ll@xxxxxxxxx>
- Date: Sat, 6 Nov 2021 04:27:02 -0700 (PDT)
- Ironport-hdrordr: A9a23:eHCQYqgiBnOREQeX/LChvjnFyHBQXlEji2hC6mlwRA09TyX4rbHToB1/73WYtN9/YgBFpTntAtjmfZqYz+8M3WH+VY3SKjUPlgOTXfZfBMjZsk7d8xSXzJ8o6U4YSdk2NDSSNykGsS5OizPIY+rIvuP3iZxA3t2uvkuFJDsCA8oQjTuRSDzraXGeIjM2e6bRO6Dy2iMtnUvbRZ14VLXcOpHFN9KzxOEjV6iJXffFPXIaALnkt0Lc1Fc3KXmlNud0aUIx/V7qywi19jDR1+GYqvm+jjXc22XQ45kTuNyk5MBEGNXksLlmFgnR
- References: <firstname.lastname@example.org> <email@example.com>
A predicate does not define a set. The TLA+ operators for constructing sets are listed under the "Sets" heading on the "Constant Operators" section of:
If the "set" you want to define cannot be expressed with them, it is probably not what mathematicians define to be a set.
On Friday, November 5, 2021 at 11:05:58 AM UTC-7 Chris Jensen wrote:
When you have a type invariant for a system like Paxos, you can check that
for example ballot numbers are members of the set of natural numbers.
What I am trying to do (and can't seem to find any documentation on) is how
to define my own infinite sets (for example one which is defined by some
This is specifically just for type checking, and thus should just be
checking whether a value is an element of a set, hence should just be able
to use the predicate.
Is there any way to do this?
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/3ad9a5c4-d76f-4e8b-b670-e2378ee46155n%40googlegroups.com.