From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.5 required=3.0 tests=BAYES_05,FORGED_GMAIL_RCVD, FREEMAIL_FROM,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Spiros Bousbouras Newsgroups: comp.lang.ada Subject: Re: Contracts in generic formal subprogram Date: Wed, 12 Apr 2023 02:18:45 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <0c555ce7-0b2e-49f1-8930-c4f4796793e4n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 12 Apr 2023 02:18:45 -0000 (UTC) Injection-Info: dont-email.me; posting-host="f0ed070b7d9e24617b35795fae11bca2"; logging-data="3028736"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BbUax/kkZgSHndNO6DGMQ" Cancel-Lock: sha1:542VGjn2FE9+Pa7hz+NN7kLTsBc= In-Reply-To: X-Server-Commands: nowebcancel X-Organisation: Weyland-Yutani Xref: feeder.eternal-september.org comp.lang.ada:65088 List-Id: On Tue, 11 Apr 2023 14:03:27 +0200 "Dmitry A. Kazakov" wrote: > The formal meaning of weaker/stronger relation on predicates P and Q: > > weaker P => Q > stronger Q => P > > The formal rationale is that if you have a proof > > P1 => P2 => P3 > > Then weakening P1 to P1' => P1 and strengthening P3 => P3' keeps it: > > P1' => P2 => P3' You have it backwards ; if P1' implies P1 then P1' is stronger than P1 .