coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Ralf Jung <jung AT mpi-sws.org>
- To: coq-club AT inria.fr, roux cody <cody.roux AT gmail.com>
- Subject: Re: [Coq-Club] Non standard natural numbers
- Date: Fri, 4 Jun 2021 16:10:46 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=jung AT mpi-sws.org; spf=Pass smtp.mailfrom=jung AT mpi-sws.org; spf=None smtp.helo=postmaster AT jupiter.mpi-klsb.mpg.de
- Ironport-hdrordr: A9a23:nPOwfK4V4JmO+oJ6EwPXwBbXdLJyesId70hD6qkDc20yTiX+rbHWoB17726StN91YhodcL+7Scq9qB/nlKKdpLNhWYtKPzOW3VdATrsD0WKK+VSJcUDDH6xmu5uIGJITNDSfNzdHZIrBkWuFOudl++O/2ISEwdzT1nF3UGhRGtpdxjY8MTyjOmlaADNNA4E0faDsnvZ6mw==
- Ironport-phdr: A9a23:x4k4pBLZD8Dlt6koJdmcuNRmWUAX0o4c3iYr45Yqw4hDbr6kt8y7ehCGtLM21AaCANiTwskHotKei7rnV20E7MTJm1E5W7sIaSU4j94LlRcrGs+PBB6zBvfraysnAJYKDwc9rDm0PkdPBcnxeUDZrGGs4j4OABX/Mhd+KvjoFoLIgMm7yuS/94fdbglUmTaxbrN/IRWrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Qiqp4bt1RxD0iScHLz85/3/Risxsl6JQvRatqwViz4LIfI2ZMfxzdb7fc9wHX2pMRttfWTJPAo28bIUBAeQOMulaoIbhqFUDtge+CAq2Ce/z1jNFiH370Ksn2OohCwHG2wkgEsoSvnvOqNX1OroZX+SozKnOwjXIcvRb2TXg6IjOfRAsuvSMXapxccbI0kkuGRjFgk+XqYz/MDOYz+IAuHWU4OR8T+ygkXInqx1vrTi1wMchkobHiIwVx1zY9ih03YY4KN27RUNmYdOoDZRduiWaOoZoQc4uX3xktSIkxrAYuZC3YiYHxIkpyhPba/KKfZSE7x3lWe2MLzl4g3dld6i+hxa06UWgz/X8Vsit3FZRoCtFicPAtncX1xzc7MWMV/hz/l+51DqS2Q3e7vtILV0wmKbBKJMsw6Q8mocTvEjbHCL7ml/6gLKIekk+5+Sl6/jrbq/7qpOAKoN5jBz1PL40lcylG+s4NxADX2iF9uS4073u5U/5QKhSjv03jqnWroraKd4epq6hAg9Zy4Uj6xKkDzi9ytgYmGEHLF1fdB2akYflI1DOIPbmAvejm1mgjTlmyvTcMrH8BpjBNHvOnbb7cbpg60NQ0A8zwspe55JQBLEBOvXzWkrpudzaEx85NQO0zv3iCNVl14MSQHmPA6GCMK/Itl+I/O0vL/GWZIAJoDb9N+Ql5/n2gHAlnl8dZLCl0ocTaHClBftrOF6ZYHrpgtcZC2gGpAs+TOrwiF2DSzFffXiyX7hvrg08XYmhFMLIQp2nqL2HxiayWJNMIihcDU2cWXzve5TMD/wLZDPUOMh8ghQLULGgT8kq0hT45yHgzL8yFOPQ9GU6qJTsnIx3+uvcvRQq9HlvEN/b1HuCGTIn1lgUTiM7ifgs6Xd2zU2OhO0h26Qw/TN74utIFxwlLtjb1eMoUrgavyrEZtbMU0m9BNK8DmNpJjrQ690Te0dhFs/kiwjCmimuGLVTkqSEQpA5oPq04g==
Hi Cody,
Forgive the possibly naive question, but what I am wondering here is: where do you draw the line? With intuitionism, there is a very clear and formal boundary for what we consider 'acceptable' and what not. Say, pCuIC. People might disagree about which calculus/logic is the "right" one, but each calculus is very clearly delineating terms/theorems we accept from those we do not.
On the other hand, you seem to draw a line somewhere between "Ack 1 1" and "Ack 5 5". I assume you will not want to pin down this line *precisely*, since any choice is by necessity arbitrary, but that is exactly my point, and it is why I do not agree with your arguments. Put differently: if we lived in a *shrinking* universe where more matter comes into the "observable universe" over time, would "Ack 5 5" suddenly be an acceptable statement to you once the number of atoms in the observable universe has grown enough?
Kind regards,
Ralf
On 03.06.21 23:04, roux cody wrote:
Not sure how kosher it is to talk about foundational issues on the Club, since it seems to tend to inspire a lot of opinionated debate...
However... :)
I stand by my analogy!
I can certainly imagine an oracle that decides the Truth of an arbitrary arithmetic statement, and communicate the idea to other humans (I just did!).
I can also imagine wanting evidence that, in addition to an explanation being constructive, that the answer to a question might fit on a computer composed of all the atoms in the universe, or (if I'm feeling demanding) on my own computer.
A reasonable objection to the above: we can always prove a concrete bound on a number using intuitionistic logic.
My rejoinder: the same can be said about constructive results and classical logic: we can always just exhibit a Turing machine and classically prove that it terminates.
At any rate: In Coq, we may assume that every term has some hypothetical ghost-like normal form, and maybe even that is a theorem in ZFC+some inaccessible, and that's that.
Personally, I treat Ack 5 5 the same way one might treat Hypercompact cardinals: fun to do math at, but I don't feel it "really" exists. I'll assume it if I need it to prove something though.
Best,
On Thu, Jun 3, 2021 at 3:10 PM Thorsten Altenkirch <Thorsten.Altenkirch AT nottingham.ac.uk <mailto:Thorsten.Altenkirch AT nottingham.ac.uk>> wrote:
No it’s not the same. The idea that some computation will terminate
eventually even if we are not able to perform it in practice is clearly
understandable and communicable among humans. It is different to ignoring
the need for constructive explanations altogether.
Sent from my iPhone
On 3 Jun 2021, at 18:34, roux cody <cody.roux AT gmail.comThis message and any attachment are intended solely for the addressee
<mailto:cody.roux AT gmail.com>> wrote:
It certainly feels very hard to distinguish between Very Large Numbers and
Non Standard ones, and the distinction does seem very closely related to
normalization.
But I'd advocate a slightly more subtle position than "There are
absolutely less than 10^74 integers", but rather, "Gee, it sure gets hard
to name (most) numbers bigger than 2^10^74..."
The same way intuitionism doesn't say: "This specific machine, M, neither
terminates nor runs forever" but says "Maybe we shouldn't make the blanket
assumption that *all* machines either terminate or run forever".
I suspect this agnosticism is what I'm really advocating (but one can't
really be too sure...)
Best,
Cody
Best,
Cody
On Thu, Jun 3, 2021 at 12:26 PM Eddy Westbrook <westbrook AT galois.com
<mailto:westbrook AT galois.com>> wrote:
Cody,
My initial reaction was that Ack 5 5 will eventually compute to a
specific finite natural number, so at some point c_gtN will be
inconsistent.
But I think your argument has an interesting twist: you are basically
arguing using a version of Ultrafinitism, that there are finite
numbers that are just too big to represent in the 10^74 atoms in the
universe. What you are saying is that it is not possible to actually
write down a counterexample.
A counter-argument, then: if we are starting from ultrafinitism, then
there are definitely no infinitary natural numbers, because there are
in fact only finitely many elements of any type.
-Eddy
On Jun 3, 2021, at 9:13 AM, roux cody <cody.roux AT gmail.com
<mailto:cody.roux AT gmail.com>> wrote:
Sadly, it is possible to compute non-standard numbers in Coq without
axioms. Here is an example:
Fixpoint Ack m := fix A_m n :=
match m with
| 0 => n + 1
| S pm =>
match n with
| 0 => Ack pm 1
| S pn => Ack pm (A_m pn)
end
end.
Definition c : nat := Ack 5 5.
Indeed adding axioms like c_gt0, c_gtS0, ... (as many as you like!)
will all be consistent.
In practice, though, you can pretend that such numbers do not exist,
and things will go on relatively undisturbed.
Best,
Cody
On Thu, Jun 3, 2021 at 10:16 AM Vincent Semeria
<vincent.semeria AT gmail.com <mailto:vincent.semeria AT gmail.com>> wrote:
Hi Eddy,
On the contrary, I would like to avoid non standard numbers, so
that the normalization property of Coq does mean that every
computation of a nat term terminates.
But since we established that Coq cannot refute non standard nat
terms, I am trying to measure the risk that I accidentally try to
compute a non standard nat (without any axioms posed).
On Thu, Jun 3, 2021, 16:06 Eddy Westbrook <westbrook AT galois.com
<mailto:westbrook AT galois.com>> wrote:
Vincent,
There are certainly non-standard models of Coq (Gödel ensures
us of that), but they are bound to be a lot more complicated
than non-standard models of Peano arithmetic, which is where
the notion of non-standard naturals comes from. The reason
for this is that Coq can express a general notion of
well-foundedness and induction in the logic (this is in fact
the heart of Evan’s answer, that you can use induction in
Coq), whereas Peano arithmetic cannot.
If what you really want is non-standard models of Peano
arithmetic, then you will probably have to formalize Peano
arithmetic, or at least a simpler form of it. I would guess
that there are formalizations of it in Coq out there, but am
not sure. A simpler form of Peano arithmetic might just be to
define a signature (or, better, a type class) of types that
have a 0 and successor but not necessarily induction.
If what you want is just infinite natural numbers, maybe you
should look at Coq’s coinductive types? These let you define
a Coq type that can contain infinite sequences of successors.
Hope this helps,
-Eddy
On Jun 3, 2021, at 6:53 AM, Vincent Semeria
<vincent.semeria AT gmail.com
<mailto:vincent.semeria AT gmail.com>> wrote:
How do these non standard integers cope with the
normalization property of Coq? A non standard integer would
compute to an infinite sequence of successors, so it does
not terminate.
Is it a property of Coq that all definable nat terms are
standard? If so, how is "standard" defined?
On Wed, Jun 2, 2021, 22:25 roux cody <cody.roux AT gmail.com
<mailto:cody.roux AT gmail.com>> wrote:
Sure, I mean your notional proof that the axiom schema
is consistent.
On Wed, Jun 2, 2021 at 4:10 PM Evan Marzion
<emarzion AT gmail.com <mailto:emarzion AT gmail.com>> wrote:
By induction, c is greater than n for all n. Thus,
c > c, a contradiction.
On Wed, Jun 2, 2021 at 2:53 PM Vincent Semeria
<vincent.semeria AT gmail.com
<mailto:vincent.semeria AT gmail.com>> wrote:
Dear Coq club,
Is it possible to axiomatize a term c : nat,
such as c is greater than all standard natural
numbers ? The first 2 lines are easy,
Axiom c : nat.
Axiom c_gt0 : 0 < c.
But then, could we consistently add this axiom ?
Axiom c_non_standard : forall n:nat, n < c -> S
n < c.
If the last axiom is not consistent, we could
modify Coq's type checker to interpret all names
of the form c_gtSSSS...S0 as closed terms of the
corresponding types SSSS...S0 < c. I am pretty
sure that these terms are consistent, because if
they introduced a proof of False, that proof
would be a finite lambda-term with only a finite
number of these c_gt terms. Then c could be
replaced by the greatest of these terms, and we
would obtain a proof of False in basic Coq.
and may contain confidential information. If you have received this
message in error, please contact the sender and delete the email and
attachment.
Any views or opinions expressed by the author of this email do not
necessarily reflect the views of the University of Nottingham. Email
communications with the University of Nottingham may be monitored
where permitted by law.
--
Website: https://people.mpi-sws.org/~jung/
- Re: [Coq-Club] Non standard natural numbers, (continued)
- Re: [Coq-Club] Non standard natural numbers, roux cody, 06/02/2021
- Re: [Coq-Club] Non standard natural numbers, Vincent Semeria, 06/03/2021
- Re: [Coq-Club] Non standard natural numbers, Eddy Westbrook, 06/03/2021
- Re: [Coq-Club] Non standard natural numbers, Vincent Semeria, 06/03/2021
- Re: [Coq-Club] Non standard natural numbers, roux cody, 06/03/2021
- Re: [Coq-Club] Non standard natural numbers, Ralf Jung, 06/03/2021
- Re: [Coq-Club] Non standard natural numbers, Eddy Westbrook, 06/03/2021
- Re: [Coq-Club] Non standard natural numbers, roux cody, 06/03/2021
- Re: [Coq-Club] Non standard natural numbers, Thorsten Altenkirch, 06/03/2021
- Re: [Coq-Club] Non standard natural numbers, roux cody, 06/03/2021
- Re: [Coq-Club] Non standard natural numbers, Ralf Jung, 06/04/2021
- Message not available
- Re: [Coq-Club] Non standard natural numbers, Ralf Jung, 06/04/2021
- Re: [Coq-Club] Non standard natural numbers, roux cody, 06/03/2021
- Re: [Coq-Club] Non standard natural numbers, Vincent Semeria, 06/03/2021
- Re: [Coq-Club] Non standard natural numbers, Eddy Westbrook, 06/03/2021
- Re: [Coq-Club] Non standard natural numbers, Vincent Semeria, 06/03/2021
- Re: [Coq-Club] Non standard natural numbers, roux cody, 06/02/2021
- Re: [Coq-Club] Non standard natural numbers, Tadeusz Litak, 06/04/2021
- Re: [Coq-Club] Non standard natural numbers, Dominik Kirst, 06/04/2021
- Re: [Coq-Club] Non standard natural numbers, Thorsten Altenkirch, 06/05/2021
- Re: [Coq-Club] Non standard natural numbers, Vincent Semeria, 06/04/2021
Archive powered by MHonArc 2.6.19+.