Skip to content

Commit 30a4562

Browse files
authored
Merge pull request #109 from tabareau/use-rewrite-strat
use-rewrite-strat
2 parents df208a2 + 1182ec7 commit 30a4562

File tree

8 files changed

+293
-276
lines changed

8 files changed

+293
-276
lines changed

BigN/BigN.v

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ constructor.
9797
intros. red. rewrite BigN.spec_pow, BigN.spec_of_N.
9898
rewrite Zpower_theory.(rpow_pow_N).
9999
destruct n; simpl. reflexivity.
100-
induction p; simpl; intros; BigN.zify; rewrite ?IHp; auto.
100+
induction p; simpl; intros; BigN.zify_strat; rewrite ?IHp; auto.
101101
Qed.
102102

103103
Lemma BigNdiv : div_theory BigN.eq BigN.add BigN.mul (@id _)
@@ -106,13 +106,13 @@ Proof.
106106
constructor. unfold id. intros a b.
107107
BigN.zify.
108108
case Z.eqb_spec.
109-
BigN.zify. auto with zarith.
109+
BigN.zify_strat. auto with zarith.
110110
intros NEQ.
111111
generalize (BigN.spec_div_eucl a b).
112112
generalize (Z_div_mod_full (BigN.to_Z a) (BigN.to_Z b) NEQ).
113113
destruct BigN.div_eucl as (q,r), Z.div_eucl as (q',r').
114114
intros (EQ,_). injection 1 as EQr EQq.
115-
BigN.zify. rewrite EQr, EQq; auto.
115+
BigN.zify_strat. rewrite EQr, EQq; auto.
116116
Qed.
117117

118118

@@ -193,5 +193,5 @@ End TestOrder.
193193

194194
Section TestLia.
195195
Let test : forall x y : bigN, x<=y -> y<=x -> x==y.
196-
Proof. intros x y. BigN.zify. lia. Defined.
196+
Proof. intros x y. BigN.zify_strat. lia. Defined.
197197
End TestLia.

BigQ/BigQ.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Declare Equivalent Keys pow_N pow_pos.
105105
Lemma BigQpowerth :
106106
power_theory 1 BigQ.mul BigQ.eq Z.of_N BigQ.power.
107107
Proof.
108-
constructor. intros. BigQ.qify.
108+
constructor. intros. BigQ.qify_strat.
109109
replace (BigQ.to_Q r ^ Z.of_N n)%Q with (pow_N 1 Qmult (BigQ.to_Q r) n)%Q by (now destruct n).
110110
destruct n. reflexivity.
111111
induction p; simpl; auto; rewrite ?BigQ.spec_mul, ?IHp; reflexivity.
@@ -178,5 +178,5 @@ End TestOrder.
178178

179179
Section TestQify.
180180
Let test : forall x : bigQ, 0+x == 1*x.
181-
Proof. intro x. BigQ.qify. ring. Defined.
181+
Proof. intro x. BigQ.qify_strat. ring. Defined.
182182
End TestQify.

0 commit comments

Comments
 (0)