This commit is contained in:
ProgramSnail 2025-11-30 00:42:04 +03:00
parent f1433eb62d
commit 19b9d3aa56
9 changed files with 199 additions and 0 deletions

17
lib/lib.ml Normal file
View file

@ -0,0 +1,17 @@
open OCanren
module Lam = struct
[%%distrib
type nonrec ('varname, 'self) t =
| V of 'varname
| App of 'self * 'self
| Abs of 'varname * 'self
[@@deriving gt ~options:{ show; fmt; gmap }]
type ground = (GT.string, ground) t]
let varX = !!"x"
let varY = !!"y"
let varF = !!"f"
end