Defining multiple expressions and corresponding alignments

63 views
Skip to first unread message

marta zhango

unread,
Jan 25, 2025, 8:59:43 PMJan 25
to tlaplus
I have two elisp exprossions that I want to claim are equivalent

THEOREM Expressions E1 and E2 are equivalent (E1 = E2)
ASSUME     E1 == (cons extn 'sh-mode)
                 /\ E2 == `(,(eval extn) . sh-mode)

Are the expression names E1 and E1  aligned when using the /\ notation
to define two expressions?

Stephan Merz

unread,
Jan 26, 2025, 7:40:37 AMJan 26
to tla...@googlegroups.com
Definitions are not formulas and can therefore not appear in a conjunction.

Stephan

--
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+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/tlaplus/ed4d67bc-9c98-4d22-b6a2-aef1913c31adn%40googlegroups.com.

marta zhango

unread,
Jan 26, 2025, 9:40:39 PMJan 26
to tlaplus
Then, assumptions are just set one after the other?

Example

ASSUME     A1 == (cons extn 'sh-mode)
                    A2 == `(,(eval extn) . sh-mode)
                    A3 == extn \in Vars
                       (* extn is a variable that can be evaluated *)
                    A4 == (EX v \in VALUE: ,(eval extn) = v)
                       (* Evaluation of extn results in a value v *)

Stephan Merz

unread,
Jan 27, 2025, 7:38:29 AMJan 27
to tla...@googlegroups.com
Definitions appear one after the other. An ASSUME clause asserts a formula (which may be a conjunction), and it can be named as in

ASSUME A ==
   /\ …
   /\ …

A module may contain several ASSUME clauses.

I am not able to read the right-hand sides of your definitions, which are clearly not in TLA+ syntax.

Stephan

marta zhango

unread,
Jan 30, 2025, 12:26:53 AMJan 30
to tlaplus
I have the commands in emacs lisp and would like to see how one might
typically  write them in TLA+.  

Looking at


I see that sometimes proofs use the hierarchy style <1> 2., <1> 3., <1> 4.
such on page 7.  But there is also the one with the  BEGIN TRANSLATION
and END TRANSLATION.
Reply all
Reply to author
Forward
0 new messages