From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8f2146b9c1ab93cc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-13 22:07:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news.mailgate.org!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: Christoph Grein Newsgroups: comp.lang.ada Subject: Re: ToString? Date: Thu, 14 Mar 2002 07:05:05 +0100 (MET) Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-Trace: avanie.enst.fr 1016086023 7146 137.194.161.2 (14 Mar 2002 06:07:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 14 Mar 2002 06:07:02 +0000 (UTC) Return-Path: Content-MD5: H2KqxNsZ5OV9LC2ZQpYGhA== X-Mailer: dtmail 1.2.1 CDE Version 1.2.1 SunOS 5.6 sun4u sparc Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk X-Reply-To: Christoph Grein List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:21192 Date: 2002-03-14T07:05:05+01:00 From: Jeffrey Carter > > Ah, the '0' isn't a positive number thang! > > It's easy enough to test: > > with Ada.Text_IO; > use Ada.Text_IO > procedure Is_Zero_Positive is > Zero : constant := 0; > begin -- Is_Zero_Positive > if Zero in Positive then > Put_Line ("Zero is Positive"); > else > Put_Line ("Zero is not Positive"); > end if; > end Is_Zero_Positive; > > This puts "Zero is not Positive" to the standard output. QED. You mean a test or a mathematical proof? For a test, this is OK. For a proof, you have to prove first that Positive holds only positive numbers :-) Perhaps you also have to prove that the symbol 0 you use up there is really a representation of what you have in mind when speaking about the mathematical object called 0 :-)