Hello,
TLAPS only supports functions of one argument. It’s probably best to replace your function of type
[ Elems \X SUBSET Elems -> SUBSET Elems ]
by a “curried” function
[ Elems -> [ SUBSET Elems -> SUBSET Elems ] ]
and correspondingly write
ASSUME ... PROVE x \in [new \in Elems |-> [set_1 \in SUBSET Elems |-> set_1 \cup {new}]][x][set]
Regards, Stephan
Dear All,I have a function Insert and an operator InsertOp as in the attachedfile. When I make the definition of the operator available TLAPS provesthe corresponding theorem, but when I make the definition of thefunction available the function gets rewritten leading to the goalASSUME NEW CONSTANT Elems, NEW CONSTANT x \in Elems, NEW CONSTANT set \in SUBSET ElemsPROVE x \in [new \in Elems, set_1 \in SUBSET Elems |-> set_1 \cup {new}][x, set]How do I tell TLAPS to take the \beta-reduction step?I was unable to find this in all the TLAPS documentation I checked.Thanks and best regards,Marko-- 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 post to this group, send email to tlaplus@xxxxxxxxxxxxxxxx.Visit this group at https://groups.google.com/group/tlaplus.To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/8736k4us6d.fsf%40tpad-m.i-did-not-set--mail-host-address--so-tickle-me.For more options, visit https://groups.google.com/d/optout.
------------------------------- MODULE Dummy -------------------------------EXTENDS TLAPSCONSTANT ElemsASSUME \E x : x \in ElemsInsert[new \in Elems, set \in SUBSET Elems] == set \cup {new} InsertOp(new, set) == set \cup {new}THEOREM \A x \in Elems, set \in SUBSET Elems: x \in Insert[x, set] <1> SUFFICES ASSUME NEW x \in Elems, NEW set \in SUBSET Elems PROVE x \in Insert[x, set] OBVIOUS <1> QED BY DEF InsertTHEOREM \A x \in Elems, set \in SUBSET Elems: x \in InsertOp(x, set) <1>a SUFFICES ASSUME NEW x \in Elems, NEW set \in SUBSET Elems PROVE x \in InsertOp(x, set) OBVIOUS <1>b QED BY DEF InsertOp=============================================================================\* Modification History\* Last modified Thu Jun 20 12:30:32 AST 2019 by marko\* Created Thu Jun 13 13:34:49 AST 2019 by marko-- 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 post to this group, send email to tlaplus@xxxxxxxxxxxxxxxx.Visit this group at https://groups.google.com/group/tlaplus.To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/8736k4us6d.fsf%40tpad-m.i-did-not-set--mail-host-address--so-tickle-me.For more options, visit https://groups.google.com/d/optout.
--
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 post to this group, send email to tlaplus@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/tlaplus.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/944861DF-5AC1-4DEA-A37E-6D581E5A0F04%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
|