Skip to content

Commit

Permalink
normalize S to (+1) in fsimpl
Browse files Browse the repository at this point in the history
  • Loading branch information
tebbi committed Jan 14, 2016
1 parent 4f8dc59 commit 3b5eb02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions theories/Autosubst_Basics.v
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ Ltac fsimpl :=
change ((f >>> g) >>> h) with (f >>> (g >>> h))
| [|- context[(+0)]] => change (+0) with (@id var)
| [|- context[0 + ?m]] => change (0 + m) with m
| [|- appcontext[?s S]] => change (s S) with (s (+1))
| [|- context[S ?n + ?m]] => change (S n + m) with (S (n + m))
| [|- context[(+S ?n) >>> (?x .: ?xr)]] =>
change ((+S n) >>> (x .: xr)) with ((+n) >>> xr)
Expand All @@ -286,6 +287,7 @@ Ltac fsimplH H :=
change ((f >>> g) >>> h) with (f >>> (g >>> h)) in H
| context[(+0)] => change (+0) with (@id var) in H
| context[0 + ?m] => change (0 + m) with m in H
| appcontext[?s S] => change (s S) with (s (+1)) in H
| context[S ?n + ?m] => change (S n + m) with (S (n + m)) in H
| context[(+S ?n) >>> (?x .: ?xr)] =>
change ((+S n) >>> (x .: xr)) with ((+n) >>> xr) in H
Expand Down

0 comments on commit 3b5eb02

Please sign in to comment.