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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: How to get Ada to "cross the chasm"? Date: Thu, 26 Apr 2018 00:57:05 -0700 Organization: A noiseless patient Spider Message-ID: <877eou763y.fsf@nightsong.com> References: <1c73f159-eae4-4ae7-a348-03964b007197@googlegroups.com> <878t9nemrl.fsf@nightsong.com> <87h8o7lowg.fsf@nightsong.com> <8736zqkwat.fsf@nightsong.com> <6839088c-f221-4650-a6ea-1841ae539486@googlegroups.com> <1e5f5681-0e2a-43cc-9437-2bd38078da08@googlegroups.com> <87604lvkqp.fsf@nightsong.com> <0bd80336-595a-45b6-b4e5-26c13d5859cb@googlegroups.com> <87o9idsh7f.fsf@nightsong.com> <87k1t1s9lx.fsf@nightsong.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: h2725194.stratoserver.net; posting-host="1130ff9118e09fa565bd1d3aa415c6bd"; logging-data="31851"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+c4vxm/u/Y/wIxwxO7WGiV" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cancel-Lock: sha1:U/YzzxalEnOR+KpWkNO+v0k7tuc= sha1:pNN9xJoDilOnrzl3d3cRaVGd6FA= Xref: reader02.eternal-september.org comp.lang.ada:51722 Date: 2018-04-26T00:57:05-07:00 List-Id: Simon Wright writes: > I tried proving a quicksort and failed dismally Verifying a sorting algorithm is traditionally a tough challenge for a proof system. You have to prove that the output is a permutation of the input, that it is sorted, and that the algorithm terminates. Each of those can be a bit messy, depending. It is doable, but you might start out with something easier.