Hi, I'm new to this languages and in this way to think problem.
I would know if this non runnable program has some sense or is totally unsenseble.------------------------------- MODULE prime -------------------------------
EXTENDS Naturals
CONSTANT n
VARIABLE qInit == q >1 /\ q<n
Next == \neg((n%q) = 0)
/\ q' = q+1
H == Init /\ [][Next]_q=============================================================================
THEOREM H => []InitThanks in advance
Mauro
--
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 post to this group, send email to tla...@googlegroups.com.
Visit this group at http://groups.google.com/group/tlaplus?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
\begin{cases}
m &\text{is a prime number} \\
p_k = p_s +m&\text{is also a prime number} \\
p_r = p_s +m &\text{is prime}
\end{cases}
where p_s is a P_j/2
where P_j is all even number
Thanks in advance
and I hope I don't make the same error of my previous post
Dear Bert_emme,
One limitation of TLC is that it does not handle parametrized
instantiation. So, it cannot handle formulas defined by the statement
primeNum(q) == INSTANCE prime WITH pr <- q
It will handle formulas defined by
primeNum == INSTANCE prime WITH pr <- n
This is documented in:
http://research.microsoft.com/en-us/um/people/lamport/tla/current-tools.pdf
A link to that document is prominently displayed on the page for
obtaining the stand-alone version of the tools. Unfortunately, it did
not make it to the page for users of the Toolbox. I appologize for
that omission and will correct it.
TLC should have reported an error when you ran it on the spec. The
error message was probably not very informative. However, it should
have made you realize that the question you should have asked was:
What caused the error? You should not have been surprised that TLC
did not find any states or produce any output. If TLC did not report
an error, then please send me the .tla files and I will try to find
out why.
Best regards,
--
Dear Bert_emme,
A casual glance at your specification indicates that it is not correct. Here is what I recommend that you do.1. Stop using instantiation--that is, don't use INSTANCE. Write your
complete spec in a single module. Don't worry about splitting your
spec into multiple modules until you can correctly write one in a
single module.2. Use TLC to debug your spec. When TLC reports an error, use the
Toolbox's help pages and the Hyperbook to figure out what caused
the error.3. Post a further question to this group only if you get an error report
that you can't understand. In that case, include the spec, a
description of the model, and the error report.Leslie Lamport
Hi, I'm recurrance... I have a problem with instancesation...
--
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 post to this group, send email to tla...@googlegroups.com.
Visit this group at http://groups.google.com/group/tlaplus.