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

# Re: [tlaplus] TLAPS: problem with proof of GCD from TLA+ Hyperbook (chapter 11.2)

 Hello again Nicholas,I don't think any proof assistant promises backward compatibility because that would severely restrict change. In this particular case, the issue moreover appears to have been caused by changes in automatic back-end provers that are not under our control. The mechanism that Isabelle/HOL has adopted with the Archive of Formal Proofs  is to collect major proof developments and run regression tests with every new release of the prover. When proofs fail, the Isabelle implementors assess whether they consider the change to be overall positive or if it breaks too many developments. In case the change is retained, maintainers of the collection (and/or the original author) fix the failing proofs so that they are kept up to date with new Isabelle releases.For TLAPS, we do not yet have a critical mass of proofs but some day we may wish to implement a similar policy.Regards,Stephan https://www.isa-afp.orgOn 19 Apr 2020, at 14:33, 'Nicholas Fiorentini' via tlaplus wrote:Thank you very much Stephan for the detailed explanation and the solution. I used your solution to keep the main theorem GCD3 simple, so the step is now out as a separate lemma (see below).Regarding the whole thing of not being able to prove the theorem as before: is this sort of regression problematic in the contest of theorem proving? I'm imagining what could happen if in a few years a work (or a published paper) is no longer "provable" due to regressions in the software. I've seen this has already partially discussed in this forum regarding regressions introduced by a new release of TLAPS.The GCD3 theorem with the separate lemma.THEOREM CommonDivisorsWithDifference == \A m, n \in Nat \ {0} : \A i \in Int :                                             (n > m) => (Divides(i, m) /\ Divides(i, n) <=> Divides(i, m) /\ Divides(i, n - m))    <1> SUFFICES ASSUME NEW m \in Nat \ {0},                        NEW n \in Nat \ {0},                        NEW i \in Int,                        n > m               PROVE Divides(i, m) /\ Divides(i, n) <=> Divides(i, m) /\ Divides(i, n - m)        OBVIOUS        \* proving =>    <1>a ASSUME NEW z \in Int,                m = i*z,                 NEW r \in Int,                n = i*r         PROVE Divides(i, n - m)        <2> r-z \in Int /\ n-m = i*(r-z)            BY <1>a        <2> QED BY DEF Divides    \* proving <=    <1>b ASSUME NEW z \in Int,                n - m = i*z,                 NEW r \in Int,                m = i*r         PROVE Divides(i, n)        <2> z + r \in Int /\ n = i*(z+r)            BY <1>b        <2> QED BY DEF Divides    \* QED    <1> QED BY <1>a, <1>b DEF DividesTHEOREM GCD3 == \A m, n \in Nat \ {0}:                    (n > m) => (GCD(m, n) = GCD(m, n - m))    <1> SUFFICES ASSUME NEW m \in Nat \ {0},                        NEW n \in Nat \ {0},                        n > m                 PROVE  GCD(m, n) = GCD(m, n-m)        OBVIOUS    <1> CommonDivisorsWithDifference        BY CommonDivisorsWithDifference DEF Divides    <1> QED        BY DEF GCD, SetMax , DivisorsOf -- 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/0cdf0ab6-f6a5-49dd-8292-ca15db5a01d8%40googlegroups.com. -- 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/8C38ED76-9757-4097-A957-9129459DAC75%40gmail.com.

• Follow-Ups: