Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User-defined rewrite rules #50

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Add forced patterns
  • Loading branch information
TheoWinterhalter committed Nov 26, 2020
commit c7632174b94e2599a68eadc4207a25eebd6a118e
2 changes: 1 addition & 1 deletion text/xxx-rewrite-rules.md
Original file line number Diff line number Diff line change
@@ -26,7 +26,6 @@ pattern-matching.

Rewrite rules are mainly given by two components: a left- and a right-hand-side
that both live in a given context (or scope) of pattern variables.
(Rewrite rules are not typed.)

Rules look like

@@ -55,6 +54,7 @@ p ::= ?x y₁ ... yₙ pattern variable (applied to all bound variables)
| I p₁ ... pₙ type-constructor applied to patterns
| λ x : p₁, p₂ λ-abstraction over patterns
| ∀ x : p₁, p₂ Π-type of patterns
| !{t} forced term
```

A lhs must depend on all the pattern variables in scope while the rhs can depend