[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlaplus] How to pass a function as an argument to the other function?



Hi,

> 
> On 31 May 2021, at 01:41, Alex <vstrength@xxxxxxxxx> wrote:
> 
> 
> ```
> The first argument of >= should be an integer, but instead it is:
> 


I think in your spec it should be
 MyNat == 0..Limit
instead of
 MyNat == {0..Limit}

In CSP/FDR you write {a..b} for the interval from a to b, but in TLA+/B this is a singleton set containing an interval.

However, even after that correction there is a type error in your construction (s[n[s][z]]).

Greetings,
Michael

-- 
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/6FCE6ED0-924D-456E-9087-0DE15122DECA%40gmail.com.