The user-level semantic matching capability in MACSYMA

  • Authors:
  • Richard J. Fateman

  • Affiliations:
  • -

  • Venue:
  • SYMSAC '71 Proceedings of the second ACM symposium on Symbolic and algebraic manipulation
  • Year:
  • 1971

Quantified Score

Hi-index 0.02

Visualization

Abstract

The pattern matching facility of MACSYMA, an algebraic manipulation system, is described in this paper. By taking advantage of the special semantic properties of algebraic expressions, diverse expressions are recognized as occurrences of the same pattern. For example, a semantic pattern for “quadratic in x” matches both 3*x**2+4 and (x+1)*(x+6). Patterns are created by declaring variables to satisfy predicates, and then composing, out of these variables, expressions which serve as templates for the pattern matching process. Efficiency is achieved by compiling programs corresponding to each pattern. Specific examples show how this recognition capability is used in augmenting simplification rules and in writing algorithms for the solution of differential equations. Other systems with related capabilities are compared with regard to their implementations and matching strategies.