X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fsoftware%2Fcomponents%2Fng_paramodulation%2Fterms.ml;h=1d1465f9e6d7cfe5525792835ddafed373f44706;hb=138af8ad1b6a6382606e367cc906f4232fa626ff;hp=91ca56271404a9e9ccb2cd9df6ee37fa99e8a81b;hpb=ddd751449e73a22af523ce78ce1d8f0bb211e941;p=helm.git diff --git a/helm/software/components/ng_paramodulation/terms.ml b/helm/software/components/ng_paramodulation/terms.ml index 91ca56271..1d1465f9e 100644 --- a/helm/software/components/ng_paramodulation/terms.ml +++ b/helm/software/components/ng_paramodulation/terms.ml @@ -18,14 +18,14 @@ type 'a foterm = type 'a substitution = (int * 'a foterm) list -type comparison = Lt | Le | Eq | Ge | Gt | Incomparable +type comparison = Lt | Eq | Gt | Incomparable -type rule = SuperpositionRight | SuperpositionLeft | Demodulation +type rule = Superposition | Demodulation type direction = Left2Right | Right2Left | Nodir type position = int list type 'a proof = - | Exact of 'a + | Exact of 'a foterm | Step of rule * int * int * direction * position * 'a substitution (* rule, eq1, eq2, direction of eq2, position, substitution *) @@ -56,4 +56,17 @@ module OT = module M : Map.S with type key = int = Map.Make(OT) -type 'a bag = 'a unit_clause M.t +type 'a bag = ('a unit_clause * bool) M.t + +module type Blob = + sig + type t + val eq : t -> t -> bool + val compare : t -> t -> int + val eqP : t + val pp : t -> string + type input + val embed : input -> t foterm + val saturate : input -> input -> t foterm * t foterm + end +