From dbc5652cf97657fffc9cc9037ddbeea1be1c4d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Blanqui?= Date: Wed, 2 Dec 2026 14:18:27 +0100 Subject: [PATCH 1/2] change definition of Z.sgn: return 0 on 0 --- Disj.lp | 3 +-- Nat.lp | 14 ++++---------- Z.lp | 8 ++++---- 3 files changed, 9 insertions(+), 16 deletions(-) diff --git a/Disj.lp b/Disj.lp index e0ada6b..d75058f 100644 --- a/Disj.lp +++ b/Disj.lp @@ -252,8 +252,7 @@ end; // preserves_contents -symbol preserves_contents: 𝕃 nat β†’ 𝕃 o β†’ 𝔹; -rule preserves_contents $f $l β†ͺ indexes $l βŠ†β‚™ $f; +symbol preserves_contents (f: 𝕃 nat) (l: 𝕃 o): 𝔹 ≔ indexes l βŠ†β‚™ f; assert l0 l1 l2 ⊒ preserves_contents (1 βΈ¬ 2 βΈ¬ 0 βΈ¬ 3 βΈ¬ β–‘) (l0 βΈ¬ l1 βΈ¬ l2 βΈ¬ l1 βΈ¬ β–‘) ≑ true; diff --git a/Nat.lp b/Nat.lp index 96c4862..2af3bcb 100644 --- a/Nat.lp +++ b/Nat.lp @@ -717,23 +717,17 @@ builtin "*" ≔ *; // Boolean ordering functions -symbol ≀ : β„• β†’ β„• β†’ 𝔹; notation ≀ infix left 10; +symbol ≀ : β„• β†’ β„• β†’ 𝔹; notation ≀ infix 10; rule _0 ≀ _ β†ͺ true with _ +1 ≀ _0 β†ͺ false with $x +1 ≀ $y +1 β†ͺ $x ≀ $y; -symbol < : β„• β†’ β„• β†’ 𝔹; notation < infix 10; +symbol < x y ≔ x +1 ≀ y; notation < infix 10; -rule $x < $y β†ͺ $x +1 ≀ $y; +symbol β‰₯ x y ≔ y ≀ x; notation β‰₯ infix 10; -symbol β‰₯ : β„• β†’ β„• β†’ 𝔹; notation β‰₯ infix 10; - -rule $x β‰₯ $y β†ͺ $y ≀ $x; - -symbol > : β„• β†’ β„• β†’ 𝔹; notation > infix 10; - -rule $x > $y β†ͺ $y +1 ≀ $x; +symbol > x y ≔ y +1 ≀ x; notation > infix 10; opaque symbol ≀0 x : Ο€ (istrue (x ≀ _0)) β†’ Ο€ (x = _0) ≔ begin diff --git a/Z.lp b/Z.lp index a4d8b1d..9458998 100644 --- a/Z.lp +++ b/Z.lp @@ -72,11 +72,11 @@ end; // Sign -symbol sign : β„€ β†’ β„€; +symbol sgn : β„€ β†’ β„€; -rule sign Z0 β†ͺ Zpos H -with sign (Zpos _) β†ͺ Zpos H -with sign (Zneg _) β†ͺ Zneg H; +rule sgn Z0 β†ͺ Z0 +with sgn (Zpos _) β†ͺ Zpos H +with sgn (Zneg _) β†ͺ Zneg H; // Unary opposite From ceff03e76d72624900e31b1a6d0bf1553eb771ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Blanqui?= Date: Wed, 2 Dec 2026 14:27:42 +0100 Subject: [PATCH 2/2] update CHANGES [no ci] --- CHANGES.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index db69e9a..2ffde35 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/). +## Unrelease + +### Changed +- PropExt: renamed a few lemmas, and removed a few equational lemmas that were instances of other lemmas (#89) +- Z: definition of sign renamed into sgn (return 0 on 0) + +### Fixed +- Nat: added missing proofs of a few lemmas (Odd2, even_spec, odd_spec) + ## 2.0.0 (2026-11-07) ### Added