Hello, according to TLA+ semantics, a string is a sequence of characters, so you could write something like myletter[1] = "A"[1] /\ myletter[Len(myletter)] = "a"[1] However, TLC treats strings as primitive objects and doesn't convert them to sequences / functions when needed. This also means that you cannot really do any string manipulation in your specification if you want to be able to analyze it with TLC. I'd recommend using sequences instead of strings. Regards, 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+unsubscribe@xxxxxxxxxxxxxxxx. To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/7349B006-C7B5-48A3-A958-56662FA76E47%40gmail.com. |