Skip to content

provide a way to or rules together #10

Open

Description

@k4b7

For instance, we'd like a single rule for a + 0 => a and 0 + a => a. It would be nice if there we could create a rule that would match either of these situations from simpler rules.

Activity

  1. tkosan commented on May 1, 2017

    @tkosan

    In some CASs commutativity and associativity are built into the matcher, and in other CASs they are explicitly encoded in rewrite rules. In MathPiper they are encoded in rewrite rules.

  2. k4b7 commented on May 1, 2017

    @k4b7
    MemberAuthor

    @tkosan could you post an example of how MathPip encodes commutativity and associativity in its rewrite rules?

  3. tkosan commented on May 1, 2017

    @tkosan

    @kevinbarabash here are MathPiper's rewrite rules for addition:

    MathPiper's addition rewrite rules

    There are a number of examples of commutatively in these rules. Associativity would be achieved by using parentheses in the head of a rule.

  4. tkosan commented on May 1, 2017

    @tkosan

    @kevinbarabash here is an example of associativity being used:

    200 # (x_ / y_)/ z_ <-- x/(y*z);
    230 # x_ / (y_ / z_) <-- (x*z)/y;
    
  5. self-assigned this
    on May 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions