package lambdapi

  1. Overview
  2. Docs

Module Core.UnifSource

Solving unification constraints.

Sourceval solve_noexn : ?print:bool -> ?type_check:bool -> Term.problem -> bool

solve_noexn ~print ~type_check p tries to simplify the constraints of p. It returns false if it finds a constraint that cannot be satisfied. Otherwise, p.to_solve is empty but p.unsolved may still contain constraints that could not be simplified. Metavariable instantiations are type-checked only if ~type_check is true (default). Error messages are generated only if ~print is true (default).