aboutsummaryrefslogtreecommitdiff
path: root/src/nat.ts
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-12-15 22:28:31 +0530
committerAkshay Nair <phenax5@gmail.com>2023-12-15 22:28:31 +0530
commit3d91b8c0fe73d24e3bcf13e7d7e8079f58975500 (patch)
tree7767b4357f3533764068b615b8f0e04234b230fc /src/nat.ts
parent505916f3ddcdfc492f95e409d233b96424df3b1a (diff)
downloadts-theorem-provinator-3d91b8c0fe73d24e3bcf13e7d7e8079f58975500.tar.gz
ts-theorem-provinator-3d91b8c0fe73d24e3bcf13e7d7e8079f58975500.zip
feat: adds monadic/dyadic operators
Diffstat (limited to 'src/nat.ts')
-rw-r--r--src/nat.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nat.ts b/src/nat.ts
index 0017489..7491e82 100644
--- a/src/nat.ts
+++ b/src/nat.ts
@@ -2,7 +2,7 @@ import { Op } from './util';
export type Add<A extends Op, B extends Op> = { op: '+'; a: A; b: B };
export type Multiply<A extends Op, B extends Op> = { op: '*'; a: A; b: B };
-export type Succ<A extends Op> = Add<'1', A>;
+export type Succ<A extends Op> = { op: 'succ', a: A };
export type _0 = '0'
export type _1 = Succ<_0>