AngouriMath

Navigation

← Back to list of members

TryBuild​(AngouriMath.​Core.​Transformations.​Matching.​Bindings,​AngouriMath.​Entity@)

 Method (no overloads)

Summary

The expression this pattern stands for under bindings, or
false where those bindings do not satisfy it.

Remarks

The other direction of Match(AngouriMath.Entity,AngouriMath.Core.Transformations.Matching.Bindings), at the grain of one pattern: matching takes
an expression apart into bindings, and this puts one together out of them. A rule whose
two sides are both patterns therefore has two directions rather than one, which is what
#746 tier 2 means
by a rule that can be read backwards.
A hole's own constraint is checked here as well as when matching. That is what
makes reversal lose nothing: a constraint is written once, on the side that states it,
and is enforced whenever that side is built — so the reverse of
(a/b)^c -> a^c/b^c may match any c at all and still refuses to build
the quotient-of-powers unless c is the positive integer the forward rule
required.

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online