diff options
| author | coqbot-app[bot] | 2020-08-27 14:13:13 +0000 |
|---|---|---|
| committer | GitHub | 2020-08-27 14:13:13 +0000 |
| commit | 829d7ac10175c41eaf3ce8ad9531abeab713dcba (patch) | |
| tree | 1b2c074d6a633b8c7760ae50d8e0cee5d3b0eae2 | |
| parent | 0e70c44e2dd19b7323b64b02578544424da95712 (diff) | |
| parent | 179a23ad345c6d0753bbb1771fc01f402dc1cb33 (diff) | |
Merge PR #12913: Modify lia to work with -mangle-names
Reviewed-by: maximedenes
Ack-by: SkySkimmer
| -rw-r--r-- | test-suite/bugs/closed/bug_12907.v | 7 | ||||
| -rw-r--r-- | theories/micromega/Lia.v | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/test-suite/bugs/closed/bug_12907.v b/test-suite/bugs/closed/bug_12907.v new file mode 100644 index 0000000000..4cd79cc1af --- /dev/null +++ b/test-suite/bugs/closed/bug_12907.v @@ -0,0 +1,7 @@ +From Coq Require Export Lia. +Set Mangle Names. +Lemma test (n : nat) : n <= 10 -> n <= 20. +Proof. lia. Qed. + +Lemma test2 : 0 < 1. +Proof. lia. Qed. diff --git a/theories/micromega/Lia.v b/theories/micromega/Lia.v index b2c5884ed7..ef2f139133 100644 --- a/theories/micromega/Lia.v +++ b/theories/micromega/Lia.v @@ -20,7 +20,10 @@ Require Coq.micromega.Tauto. Declare ML Module "micromega_plugin". Ltac zchecker := - intros ?__wit ?__varmap ?__ff ; + let __wit := fresh "__wit" in + let __varmap := fresh "__varmap" in + let __ff := fresh "__ff" in + intros __wit __varmap __ff ; exact (ZTautoChecker_sound __ff __wit (@eq_refl bool true <: @eq bool (ZTautoChecker __ff __wit) true) (@find Z Z0 __varmap)). |
