Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions Disj.lp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
14 changes: 4 additions & 10 deletions Nat.lp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions Z.lp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down