coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Eddy Westbrook <westbrook AT galois.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Non standard natural numbers
- Date: Thu, 3 Jun 2021 09:19:17 -0700
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=westbrook AT galois.com; spf=Pass smtp.mailfrom=westbrook AT galois.com; spf=None smtp.helo=postmaster AT mail-pl1-f180.google.com
- Ironport-hdrordr: A9a23:SFXS1qGmWRUv7k+KpLqE38eALOsnbusQ8zAXPiFKOH5om6mj/fxG885rsiMc5AxhO03I3OrwQJVoP0msjqKdkLNhWItKNTOO0ADJEGgh1/qF/9SJIUzDH4VmpMNdmsZFeaTN5JtB4foSIjPULz/t+ra6GdiT9J3jJr5WIz1XVw==
- Ironport-phdr: A9a23:HOAN5RZBhvA0ROxldBJHU3f/LTHG0IqcDmcuAnoPtbtCf+yZ8oj4OwSHvLMx1Q6PB9SKoKIUw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94DXbglSmjawZbd/IBq1oAjSq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY0/mHLhcN/kaxVrhyhqQJ9zIDXZ4+YL+Bxcr/Yfd4ARWpNQsRcWipcCY28dYsPCO8BMP5XoYbgulQPrQa1CgmyC+P01j9HnWX23ao90+QiDArL2wIhEMwVsHTIt9r1LqASUee2zKTTwjXMdfdW2TD86IjTaBwuvfaMXbdpfMfX1EIgGB/LgE+Kpoz5IzOayP4Ns26D4udgWuyjl3AqpgVvrjWu28sihI3Eip8Lxl7L6yl03IU4K9KkREJmb9OqHpRduiGaOoV5Tc0uXm9mtSQ5x7MIpJK2ejUBxpc/xxPHdfCLb4yF7gjgWeuROzt0mm9pdb2lixqv8kWs1vXwW8a23VpQsCZIksPAum4R2xHd8MSKSOdx80G80jiVzQ/T8PtLIUUsmKrbNZEhxrkwm4IWsUvZHy/2nFz6jLeSdkk54+So5fnrb7b6qpOGOI90jQb+MqsqmsOhG+g3Lg8OX22D9eS90r3s41H5Ta1UgvEqlqTVqpPXKMQBqqKnHgNY3Zwv5wu8Aju6yNgYmGMILFNBeBKJlYjpPFTOLej2DPihmFSsjCxkx+rBPr3mAZXANXfDn63lfbZ66k5c0xA/wsxY55JREr0BOu78WlfttNzECR80KxC7w+H+CNlkyoweXX+PDbSCPaPJsV6I4/ovLPOWaI8Uvjb9Mfkl6OT0gX83g19ONZWuiJAQcTWzGulsC0Sfe3vlxNkbQkkQuQ9rYeDmmRW9XCVPbWy1WKF0si42E56sF4DERaiiibiG3Tz9FZpTMDMVQmuQGGvlIt3XE8wHbzifd5cJet0sULGgT8o50Ujrulaqk/xoKe3b/iBevpXmhoAdDwj7mhg28j1vSc+a1jPVJ4mbtmwBQzg3x+Z0pkkvkz++
Vincent,
I think there is some confusion here: assuming Coq is SN (there is some vagueness here about whether SN for Coq has been proved, but let’s side-step that here), then all ground terms of type nat will indeed correspond to finite natural numbers. So, in once sense, you are guaranteed not to have any non-standard natural numbers.
Note, however, that talking about “ground terms” actually means we are focusing on a particular model. There are certainly models of Coq where the type nat corresponds to a set with infinite objects, if that’s what you mean. However, you cannot distinguish anything that counts as a non-standard natural from a standard natural *in the theory*. Again, that’s what leads to the traditional non-standard naturals in Peano arithmetic, because Peano arithmetic is weak enough that it cannot define the notion of “this nat is finite”.
Does this make sense?
-Eddy
On Jun 3, 2021, at 7:15 AM, Vincent Semeria <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> 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,-EddyOn Jun 3, 2021, at 6:53 AM, Vincent Semeria <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> 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> 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> 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.
- Re: [Coq-Club] Non standard natural numbers, (continued)
- 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, 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
- Re: [Coq-Club] Non standard natural numbers, Vincent Semeria, 06/07/2021
- Re: [Coq-Club] Non standard natural numbers, Slavomir Kaslev, 06/08/2021
Archive powered by MHonArc 2.6.19+.