OCanren

Implementation of miniKanren relational (logic) EDSL
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library OCanren
Module OCanren . Std . Option
type 'a logic'
class virtual ['ia, 'a, 'sa, 'inh, 'extra, 'syn] logic'_t : object ... end
val gcata_logic' : [ _, 'a, 'sa, 'inh, 'a logic', 'syn ] logic'_t -> 'inh -> 'a logic' -> 'syn
class ['a, 'extra_logic'] fmt_logic'_t : ( Format.formatter -> 'a -> unit ) -> ( Format.formatter -> 'a logic' -> unit ) -> object ... end
val fmt_logic' : ( Format.formatter -> 'a -> unit ) -> Format.formatter -> 'a logic' -> unit
class ['a, 'syn, 'extra_logic'] foldr_logic'_t : ( 'syn -> 'a -> 'syn ) -> ( 'syn -> 'a logic' -> 'syn ) -> object ... end
val foldr_logic' : ( 'syn -> 'a -> 'syn ) -> 'syn -> 'a logic' -> 'syn
class ['a, 'syn, 'extra_logic'] foldl_logic'_t : ( 'syn -> 'a -> 'syn ) -> ( 'syn -> 'a logic' -> 'syn ) -> object ... end
val foldl_logic' : ( 'syn -> 'a -> 'syn ) -> 'syn -> 'a logic' -> 'syn
class ['a, 'extra_logic'] compare_logic'_t : ( 'a -> 'a -> GT.comparison ) -> ( 'a logic' -> 'a logic' -> GT.comparison ) -> object ... end
val compare_logic' : ( 'a -> 'a -> GT.comparison ) -> 'a logic' -> 'a logic' -> GT.comparison
class ['a, 'extra_logic'] eq_logic'_t : ( 'a -> 'a -> bool ) -> ( 'a logic' -> 'a logic' -> bool ) -> object ... end
val eq_logic' : ( 'a -> 'a -> bool ) -> 'a logic' -> 'a logic' -> bool
class ['a, 'extra_logic'] html_logic'_t : ( unit -> 'a -> HTML.er ) -> ( unit -> 'a logic' -> HTML.er ) -> object ... end
val html_logic' : ( 'a -> HTML.er ) -> 'a logic' -> HTML.er
class ['a, 'a_2, 'extra_logic', 'syn_logic'] gmap_logic'_t : ( unit -> 'a -> 'a_2 ) -> ( unit -> 'a logic' -> 'a_2 logic' ) -> object ... end
val gmap_logic' : ( 'a -> 'a_2 ) -> 'a logic' -> 'a_2 logic'
class ['a, 'extra_logic'] show_logic'_t : ( unit -> 'a -> string ) -> ( unit -> 'a logic' -> string ) -> object ... end
val show_logic' : ( 'a -> string ) -> 'a logic' -> string
val logic' : ( [ _, 'a, 'sa, 'inh, 'a logic', 'syn ] logic'_t -> 'inh -> 'a logic' -> 'syn, < fmt : ( Format.formatter -> 'a -> unit ) -> Format.formatter -> 'a logic' -> unit ; foldr : ( 'syn -> 'a -> 'syn ) -> 'syn -> 'a logic' -> 'syn ; foldl : ( 'syn -> 'a -> 'syn ) -> 'syn -> 'a logic' -> 'syn ; compare : ( 'a -> 'a -> GT.comparison ) -> 'a logic' -> 'a logic' -> GT.comparison ; eq : ( 'a -> 'a -> bool ) -> 'a logic' -> 'a logic' -> bool ; html : ( 'a -> HTML.er ) -> 'a logic' -> HTML.er ; gmap : ( 'a -> 'a_2 ) -> 'a logic' -> 'a_2 logic' ; show : ( 'a -> string ) -> 'a logic' -> string >, ( ( 'inh2 -> 'a1 logic' -> 'syn3 ) -> [ 'a1_i, 'a1, 'a1_s, 'inh2, 'a1 logic', 'syn3 ] logic'_t ) -> 'inh2 -> 'a1 logic' -> 'syn3 ) GT.t
type 'a t = 'a GT.option
class virtual ['ia, 'a, 'sa, 'inh, 'extra, 'syn] t_t : object ... end
val gcata_t : [ _, 'a, 'sa, 'inh, 'a t, 'syn ] t_t -> 'inh -> 'a t -> 'syn
class ['a, 'extra_t] fmt_t_t : ( Format.formatter -> 'a -> unit ) -> ( Format.formatter -> 'a t -> unit ) -> object ... end
val fmt_t : ( Format.formatter -> 'a -> unit ) -> Format.formatter -> 'a t -> unit
class ['a, 'syn, 'extra_t] foldr_t_t : ( 'syn -> 'a -> 'syn ) -> ( 'syn -> 'a t -> 'syn ) -> object ... end
val foldr_t : ( 'syn -> 'a -> 'syn ) -> 'syn -> 'a t -> 'syn
class ['a, 'syn, 'extra_t] foldl_t_t : ( 'syn -> 'a -> 'syn ) -> ( 'syn -> 'a t -> 'syn ) -> object ... end
val foldl_t : ( 'syn -> 'a -> 'syn ) -> 'syn -> 'a t -> 'syn
class ['a, 'extra_t] compare_t_t : ( 'a -> 'a -> GT.comparison ) -> ( 'a t -> 'a t -> GT.comparison ) -> object ... end
val compare_t : ( 'a -> 'a -> GT.comparison ) -> 'a t -> 'a t -> GT.comparison
class ['a, 'extra_t] eq_t_t : ( 'a -> 'a -> bool ) -> ( 'a t -> 'a t -> bool ) -> object ... end
val eq_t : ( 'a -> 'a -> bool ) -> 'a t -> 'a t -> bool
class ['a, 'extra_t] html_t_t : ( unit -> 'a -> HTML.er ) -> ( unit -> 'a t -> HTML.er ) -> object ... end
val html_t : ( 'a -> HTML.er ) -> 'a t -> HTML.er
class ['a, 'a_2, 'extra_t, 'syn_t] gmap_t_t : ( unit -> 'a -> 'a_2 ) -> ( unit -> 'a t -> 'a_2 t ) -> object ... end
val gmap_t : ( 'a -> 'a_2 ) -> 'a t -> 'a_2 t
class ['a, 'extra_t] show_t_t : ( unit -> 'a -> string ) -> ( unit -> 'a t -> string ) -> object ... end
val show_t : ( 'a -> string ) -> 'a t -> string
val t : ( [ _, 'a, 'sa, 'inh, 'a t, 'syn ] t_t -> 'inh -> 'a t -> 'syn, < fmt : ( Format.formatter -> 'a -> unit ) -> Format.formatter -> 'a t -> unit ; foldr : ( 'syn -> 'a -> 'syn ) -> 'syn -> 'a t -> 'syn ; foldl : ( 'syn -> 'a -> 'syn ) -> 'syn -> 'a t -> 'syn ; compare : ( 'a -> 'a -> GT.comparison ) -> 'a t -> 'a t -> GT.comparison ; eq : ( 'a -> 'a -> bool ) -> 'a t -> 'a t -> bool ; html : ( 'a -> HTML.er ) -> 'a t -> HTML.er ; gmap : ( 'a -> 'a_2 ) -> 'a t -> 'a_2 t ; show : ( 'a -> string ) -> 'a t -> string >, ( ( 'inh2 -> 'a1 t -> 'syn3 ) -> [ 'a1_i, 'a1, 'a1_s, 'inh2, 'a1 t, 'syn3 ] t_t ) -> 'inh2 -> 'a1 t -> 'syn3 ) GT.t
type 'a ground = 'a GT.option
class virtual ['ia, 'a, 'sa, 'inh, 'extra, 'syn] ground_t : object ... end
val gcata_ground : [ _, 'a, 'sa, 'inh, 'a ground, 'syn ] ground_t -> 'inh -> 'a ground -> 'syn
class ['a, 'extra_ground] fmt_ground_t : ( Format.formatter -> 'a -> unit ) -> ( Format.formatter -> 'a ground -> unit ) -> object ... end
val fmt_ground : ( Format.formatter -> 'a -> unit ) -> Format.formatter -> 'a ground -> unit
class ['a, 'syn, 'extra_ground] foldr_ground_t : ( 'syn -> 'a -> 'syn ) -> ( 'syn -> 'a ground -> 'syn ) -> object ... end
val foldr_ground : ( 'syn -> 'a -> 'syn ) -> 'syn -> 'a ground -> 'syn
class ['a, 'syn, 'extra_ground] foldl_ground_t : ( 'syn -> 'a -> 'syn ) -> ( 'syn -> 'a ground -> 'syn ) -> object ... end
val foldl_ground : ( 'syn -> 'a -> 'syn ) -> 'syn -> 'a ground -> 'syn
class ['a, 'extra_ground] compare_ground_t : ( 'a -> 'a -> GT.comparison ) -> ( 'a ground -> 'a ground -> GT.comparison ) -> object ... end
val compare_ground : ( 'a -> 'a -> GT.comparison ) -> 'a ground -> 'a ground -> GT.comparison
class ['a, 'extra_ground] eq_ground_t : ( 'a -> 'a -> bool ) -> ( 'a ground -> 'a ground -> bool ) -> object ... end
val eq_ground : ( 'a -> 'a -> bool ) -> 'a ground -> 'a ground -> bool
class ['a, 'extra_ground] html_ground_t : ( unit -> 'a -> HTML.er ) -> ( unit -> 'a ground -> HTML.er ) -> object ... end
val html_ground : ( 'a -> HTML.er ) -> 'a ground -> HTML.er
class ['a, 'a_2, 'extra_ground, 'syn_ground] gmap_ground_t : ( unit -> 'a -> 'a_2 ) -> ( unit -> 'a ground -> 'a_2 ground ) -> object ... end
val gmap_ground : ( 'a -> 'a_2 ) -> 'a ground -> 'a_2 ground
class ['a, 'extra_ground] show_ground_t : ( unit -> 'a -> string ) -> ( unit -> 'a ground -> string ) -> object ... end
val show_ground : ( 'a -> string ) -> 'a ground -> string
val ground : ( [ _, 'a, 'sa, 'inh, 'a ground, 'syn ] ground_t -> 'inh -> 'a ground -> 'syn, < fmt : ( Format.formatter -> 'a -> unit ) -> Format.formatter -> 'a ground -> unit ; foldr : ( 'syn -> 'a -> 'syn ) -> 'syn -> 'a ground -> 'syn ; foldl : ( 'syn -> 'a -> 'syn ) -> 'syn -> 'a ground -> 'syn ; compare : ( 'a -> 'a -> GT.comparison ) -> 'a ground -> 'a ground -> GT.comparison ; eq : ( 'a -> 'a -> bool ) -> 'a ground -> 'a ground -> bool ; html : ( 'a -> HTML.er ) -> 'a ground -> HTML.er ; gmap : ( 'a -> 'a_2 ) -> 'a ground -> 'a_2 ground ; show : ( 'a -> string ) -> 'a ground -> string >, ( ( 'inh2 -> 'a1 ground -> 'syn3 ) -> [ 'a1_i, 'a1, 'a1_s, 'inh2, 'a1 ground, 'syn3 ] ground_t ) -> 'inh2 -> 'a1 ground -> 'syn3 ) GT.t
type 'a logic = 'a GT.option logic'
class virtual ['ia, 'a, 'sa, 'inh, 'extra, 'syn] logic_t : object ... end
val gcata_logic : [ _, 'a, 'sa, 'inh, 'a logic, 'syn ] logic_t -> 'inh -> 'a logic -> 'syn
class ['a, 'extra_logic] fmt_logic_t : ( Format.formatter -> 'a -> unit ) -> ( Format.formatter -> 'a logic -> unit ) -> object ... end
val fmt_logic : ( Format.formatter -> 'a -> unit ) -> Format.formatter -> 'a logic -> unit
class ['a, 'syn, 'extra_logic] foldr_logic_t : ( 'syn -> 'a -> 'syn ) -> ( 'syn -> 'a logic -> 'syn ) -> object ... end
val foldr_logic : ( 'syn -> 'a -> 'syn ) -> 'syn -> 'a logic -> 'syn
class ['a, 'syn, 'extra_logic] foldl_logic_t : ( 'syn -> 'a -> 'syn ) -> ( 'syn -> 'a logic -> 'syn ) -> object ... end
val foldl_logic : ( 'syn -> 'a -> 'syn ) -> 'syn -> 'a logic -> 'syn
class ['a, 'extra_logic] compare_logic_t : ( 'a -> 'a -> GT.comparison ) -> ( 'a logic -> 'a logic -> GT.comparison ) -> object ... end
val compare_logic : ( 'a -> 'a -> GT.comparison ) -> 'a logic -> 'a logic -> GT.comparison
class ['a, 'extra_logic] eq_logic_t : ( 'a -> 'a -> bool ) -> ( 'a logic -> 'a logic -> bool ) -> object ... end
val eq_logic : ( 'a -> 'a -> bool ) -> 'a logic -> 'a logic -> bool
class ['a, 'extra_logic] html_logic_t : ( unit -> 'a -> HTML.er ) -> ( unit -> 'a logic -> HTML.er ) -> object ... end
val html_logic : ( 'a -> HTML.er ) -> 'a logic -> HTML.er
class ['a, 'a_2, 'extra_logic, 'syn_logic] gmap_logic_t : ( unit -> 'a -> 'a_2 ) -> ( unit -> 'a logic -> 'a_2 logic ) -> object ... end
val gmap_logic : ( 'a -> 'a_2 ) -> 'a logic -> 'a_2 logic
class ['a, 'extra_logic] show_logic_t : ( unit -> 'a -> string ) -> ( unit -> 'a logic -> string ) -> object ... end
val show_logic : ( 'a -> string ) -> 'a logic -> string
val logic : ( [ _, 'a, 'sa, 'inh, 'a logic, 'syn ] logic_t -> 'inh -> 'a logic -> 'syn, < fmt : ( Format.formatter -> 'a -> unit ) -> Format.formatter -> 'a logic -> unit ; foldr : ( 'syn -> 'a -> 'syn ) -> 'syn -> 'a logic -> 'syn ; foldl : ( 'syn -> 'a -> 'syn ) -> 'syn -> 'a logic -> 'syn ; compare : ( 'a -> 'a -> GT.comparison ) -> 'a logic -> 'a logic -> GT.comparison ; eq : ( 'a -> 'a -> bool ) -> 'a logic -> 'a logic -> bool ; html : ( 'a -> HTML.er ) -> 'a logic -> HTML.er ; gmap : ( 'a -> 'a_2 ) -> 'a logic -> 'a_2 logic ; show : ( 'a -> string ) -> 'a logic -> string >, ( ( 'inh2 -> 'a1 logic -> 'syn3 ) -> [ 'a1_i, 'a1, 'a1_s, 'inh2, 'a1 logic, 'syn3 ] logic_t ) -> 'inh2 -> 'a1 logic -> 'syn3 ) GT.t
val inj : ( 'a -> 'b ) -> 'a ground -> 'b logic
type 'a groundi
val option : 'a OCanren__Logic.ilogic ground -> 'a OCanren__Logic.ilogic groundi
val reify : ( 'a -> 'b ) Env.Monad.t -> ( 'a groundi -> 'b logic ) Env.Monad.t
val prj_exn : ( 'a -> 'b ) Env.Monad.t -> ( 'a groundi -> 'b ground ) Env.Monad.t
val some : 'a -> 'a groundi
val none : unit -> 'a groundi