aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorGaëtan Gilbert2020-08-25 10:59:54 +0200
committerGaëtan Gilbert2020-08-25 15:01:27 +0200
commit2db5e308d06c4d5df9fb684cc214345a73f170e5 (patch)
tree53e7860ecb9a302e0aa7a78237edfc0e5f9fa870 /test-suite
parent83da5d4f27eb1ebc3eeb89343433fb77b6fccacf (diff)
ring: generate fresh names for lemmas
Fix #12889
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_12889.v28
1 files changed, 28 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_12889.v b/test-suite/bugs/closed/bug_12889.v
new file mode 100644
index 0000000000..f53cb8272d
--- /dev/null
+++ b/test-suite/bugs/closed/bug_12889.v
@@ -0,0 +1,28 @@
+Require Import Relations.
+Require Import Setoid.
+Require Import Ring_theory.
+Require Import Ring_base.
+
+Section S1.
+Variable R : Type.
+Variable Rone Rzero : R.
+Variable Rplus Rmult Rminus : R -> R -> R.
+Variable Rneg : R -> R.
+
+Lemma my_ring_theory1 : @ring_theory R Rzero Rone Rplus Rmult Rminus Rneg (@eq
+R).
+Admitted.
+Add Ring my_ring : my_ring_theory1.
+End S1.
+
+Section S2.
+Variable R : Type.
+Variable Rone Rzero : R.
+Variable Rplus Rmult Rminus : R -> R -> R.
+Variable Rneg : R -> R.
+
+Lemma my_ring_theory2 : @ring_theory R Rzero Rone Rplus Rmult Rminus Rneg (@eq
+R).
+Admitted.
+Add Ring my_ring : my_ring_theory2.
+End S2.