test-suite/ssr/bang_rewrite.v
raw| 1 | Set Universe Polymorphism. |
| 2 | |
| 3 | Require Import ssreflect. |
| 4 | |
| 5 | Axiom mult@{i} : nat -> nat -> nat. |
| 6 | Notation "m * n" := (mult m n). |
| 7 | |
| 8 | Axiom multA : forall a b c, (a * b) * c = a * (b * c). |
| 9 | |
| 10 | (* Previously the following gave a universe error: *) |
| 11 | |
| 12 | Lemma multAA a b c d : ((a * b) * c) * d = a * (b * (c * d)). |
| 13 | Proof. by rewrite !multA. Qed. |