From efc0358c1e2b52308d3df68aa713cef5dc6e6bfe Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 15 Dec 2023 22:36:03 +0530 Subject: refactor: moves stuff around --- src/utils/nat.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/utils/nat.ts (limited to 'src/utils/nat.ts') diff --git a/src/utils/nat.ts b/src/utils/nat.ts new file mode 100644 index 0000000..af8f3da --- /dev/null +++ b/src/utils/nat.ts @@ -0,0 +1,10 @@ +import { Op } from './theorem'; + +export type Add = { op: '+'; a: A; b: B }; +export type Multiply = { op: '*'; a: A; b: B }; +export type Succ = { op: 'succ', a: A }; + +export type _0 = '0' +export type _1 = Succ<_0> +export type _2 = Succ<_1> +export type _3 = Succ<_2> -- cgit v1.3.1