Skip to content

Commit c65df7e

Browse files
authored
Comp: add isLe and isGe (Deducteam#39)
1 parent fa5fd7c commit c65df7e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Comp.lp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ rule isGt Eq ↪ false
3636
with isGt Ltfalse
3737
with isGt Gttrue;
3838

39+
symbol isLe : Comp → 𝔹;
40+
41+
rule isLt Eqtrue
42+
with isLt Lttrue
43+
with isLt Gtfalse;
44+
45+
symbol isGe : Comp → 𝔹;
46+
47+
rule isLt Eqtrue
48+
with isLt Ltfalse
49+
with isLt Gttrue;
50+
3951
// Discriminate constructors
4052

4153
symbol LtEq : π (LtEq) ≔

List.lp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ end;
321321

322322
// concatenation
323323

324-
symbol ++ [a] : 𝕃 a → 𝕃 a → 𝕃 a; notation ++ infix right 30; // \cdot
324+
symbol ++ [a] : 𝕃 a → 𝕃 a → 𝕃 a; notation ++ infix right 30;
325325

326326
assert x y zx ++ y ++ zx ++ (y ++ z);
327327
assert x l mxl ++ mx ⸬ (l ++ m);

0 commit comments

Comments
 (0)