aboutsummaryrefslogtreecommitdiffstats
path: root/lib/program.mli
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-07-11 03:15:25 -0300
committerMarcos Magueta <maguetamarcos@gmail.com>2026-07-11 03:15:25 -0300
commit40376c3ea009eab4db9ba27837e61d8bec310b8f (patch)
tree725c1e789871f0c34a752f901d056e4007814965 /lib/program.mli
parentc530682030e80ee2de2c263471e5eda7a3392e84 (diff)
downloadSOL-40376c3ea009eab4db9ba27837e61d8bec310b8f.tar.gz
SOL-40376c3ea009eab4db9ba27837e61d8bec310b8f.zip
negation, quantifiers and membership criteria as schema domains
Diffstat (limited to 'lib/program.mli')
-rw-r--r--lib/program.mli22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/program.mli b/lib/program.mli
new file mode 100644
index 0000000..c271212
--- /dev/null
+++ b/lib/program.mli
@@ -0,0 +1,22 @@
+(** Whole-program admission: the entry point hosts use.
+
+ The loader admits what it can decide alone; membership criteria
+ need the solver, so this module finishes admission by running
+ every pending criterion against the fully loaded world. Order of
+ facts in the source does not matter: integrity is judged against
+ the complete extension, the way a committed state would be. *)
+
+type error =
+ | Load of World.error
+ | Integrity of { relation : string; label : string }
+ (** A fact's attribute failed its membership criterion. *)
+ | Undecidable_criterion of { relation : string; label : string }
+ (** The criterion's plan was rejected as non-total. *)
+
+val pp_error : Format.formatter -> error -> unit
+
+val load :
+ Ast.statement list -> (World.Standalone.t * World.expr list, error) result
+(** Parses nothing and solves queries for nobody: admits. Returns
+ the world and the query expressions, ready for
+ {!Vm.Standalone.solve}. *)