Debian Codegraph @

test-suite/ssr/rewrtite_err_msg.v

raw
1 Require Import ssreflect ssrbool.
2
3 Set Implicit Arguments.
4 Unset Strict Implicit.
5 Unset Printing Implicit Defensive.
6
7 Axiom finGroupType : Type.
8 Axiom group : finGroupType -> Type.
9 Axiom abelian : forall gT : finGroupType, group gT -> Prop.
10 Arguments abelian {_} _.
11 Axiom carrier : finGroupType -> Type.
12 Coercion carrier : finGroupType >-> Sortclass.
13 Axiom mem : forall gT : finGroupType, gT -> group gT -> Prop.
14 Arguments mem {_} _ _.
15 Axiom mul : forall gT : finGroupType, gT -> gT -> gT.
16 Arguments mul {_} _ _.
17 Definition centralised gT (G : group gT) (x : gT) := forall y, mul x y = mul y x.
18 Arguments centralised {gT} _.
19 Axiom b : bool.
20
21 Axiom centsP : forall (gT : finGroupType) (A B : group gT),
22 reflect (forall a, mem a A -> centralised B a) b.
23 Arguments centsP {_ _ _}.
24
25 Lemma commute_abelian (gT : finGroupType) (G : group gT)
26 (G_abelian : abelian G) (g g' : gT) (gG : mem g G) (g'G : mem g' G) :
27 mul g g' = mul g' g.
28 Proof.
29 Fail rewrite (centsP _). (* fails but without an anomaly *)
30 Abort.