Skip to content

Commit d9e1175

Browse files
authored
Simplify two scripts in Zbits (#369)
Previous scripts were relying on the order in which apply's HO unification performs reductions, for a goal that could be solved by reflexivity.
1 parent b6a7b8e commit d9e1175

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Zbits.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ Qed.
266266
Remark Ztestbit_shiftin_base:
267267
forall b x, Z.testbit (Zshiftin b x) 0 = b.
268268
Proof.
269-
intros. rewrite Ztestbit_shiftin. apply zeq_true. omega.
269+
intros. rewrite Ztestbit_shiftin; reflexivity.
270270
Qed.
271271

272272
Remark Ztestbit_shiftin_succ:
@@ -316,7 +316,7 @@ Qed.
316316
Remark Ztestbit_base:
317317
forall x, Z.testbit x 0 = Z.odd x.
318318
Proof.
319-
intros. rewrite Ztestbit_eq. apply zeq_true. omega.
319+
intros. rewrite Ztestbit_eq; reflexivity.
320320
Qed.
321321

322322
Remark Ztestbit_succ:

0 commit comments

Comments
 (0)