mrs-unify 0.1.2

First-order unification and matching algorithms
Documentation
  • Coverage
  • 73.68%
    14 out of 19 items documented4 out of 8 items with examples
  • Size
  • Source code size: 25.69 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 601.58 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • newca12/mrs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • newca12

mrs-unify

First-order term unification and one-way matching.

Key API

// Most-general unifier (Robinson's algorithm, with occurs check)
unify(s: &Term, t: &Term) -> Result<Substitution, UnifyError>

// One-way matching (pattern variables only)
match_term(pattern: &Term, target: &Term) -> Result<Substitution, UnifyError>

// Failure reasons
enum UnifyError { SymbolClash, ArityMismatch, OccursCheck }

Dependencies

mrs-core