dolmen_type

A typechecker for automated deduction languages
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library dolmen_type

Parameters

module Type : Tff_intf.S
module T : Dolmen.Intf.Term.Smtlib_Real_Int with type t := Type.T.t and type ty := Type.Ty.t

Signature

type Type.warn +=
| Restriction : string -> Dolmen.Std.Term.t Type.warn(*

Warning for expressions which tecnically do not respect the strict spec but respect the large spec.

*)

Arithmetic type-checking warnings

type Type.err +=
| Forbidden : string -> Dolmen.Std.Term.t Type.err(*

Error for expressions which do not respect the spec.

*)
| Expected_arith_type : Type.Ty.t -> Dolmen.Std.Term.t Type.err(*

Error raised when an arithmetic type was expected (i.e. either int or real), but another type was found.

*)

Additional errors specific to arithmetic typing.

Parsing function for type-checking