diff options
| author | Cyril Cohen | 2020-06-17 14:22:13 +0200 |
|---|---|---|
| committer | Cyril Cohen | 2020-06-17 14:22:13 +0200 |
| commit | 6499de1a834fa4e039246ac8b821ca23dd2a497e (patch) | |
| tree | 0c0d418ecd8215f7850dea9dc8fefd1af93d6ba7 /test-suite | |
| parent | fd173d59f79f3918ee5c3bd8b560b075a3749a75 (diff) | |
| parent | 22ea81efe0111381be372d88821da8b2fa76be71 (diff) | |
Merge PR #12508: Fix #12507 Anomaly when using a ssreflect `reflect` view
Reviewed-by: CohenCyril
Reviewed-by: ppedrot
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/ssr/rewrtite_err_msg.v | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test-suite/ssr/rewrtite_err_msg.v b/test-suite/ssr/rewrtite_err_msg.v new file mode 100644 index 0000000000..2bbbff433c --- /dev/null +++ b/test-suite/ssr/rewrtite_err_msg.v @@ -0,0 +1,30 @@ +Require Import ssreflect ssrbool. + +Set Implicit Arguments. +Unset Strict Implicit. +Unset Printing Implicit Defensive. + +Axiom finGroupType : Type. +Axiom group : finGroupType -> Type. +Axiom abelian : forall gT : finGroupType, group gT -> Prop. +Arguments abelian {_} _. +Axiom carrier : finGroupType -> Type. +Coercion carrier : finGroupType >-> Sortclass. +Axiom mem : forall gT : finGroupType, gT -> group gT -> Prop. +Arguments mem {_} _ _. +Axiom mul : forall gT : finGroupType, gT -> gT -> gT. +Arguments mul {_} _ _. +Definition centralised gT (G : group gT) (x : gT) := forall y, mul x y = mul y x. +Arguments centralised {gT} _. +Axiom b : bool. + +Axiom centsP : forall (gT : finGroupType) (A B : group gT), + reflect (forall a, mem a A -> centralised B a) b. +Arguments centsP {_ _ _}. + +Lemma commute_abelian (gT : finGroupType) (G : group gT) + (G_abelian : abelian G) (g g' : gT) (gG : mem g G) (g'G : mem g' G) : + mul g g' = mul g' g. +Proof. +Fail rewrite (centsP _). (* fails but without an anomaly *) +Abort. |
