Skip to content

Commit

Permalink
Replace deprecated lemmas
Browse files Browse the repository at this point in the history
  • Loading branch information
spacefrogg committed Jun 28, 2024
1 parent 86d812e commit 34599d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/pipeline_tutorial.v
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,8 @@ The proof is a two-induction (captured by the ``Div2.ind_0_1_SS`` lemma); it tel
Proof.
intros r n.
rewrite !iterate_S_acc, phi2_correct.
revert n; apply Div2.ind_0_1_SS; simpl. (* .unfold *)
revert n; apply Nat.pair_induction; simpl.
- Morphisms.solve_proper.
- reflexivity.
- unfold cycle; reflexivity.
- intros n IH; simpl in IH; rewrite IH; reflexivity.
Expand Down
4 changes: 2 additions & 2 deletions examples/rv/MultiplierCorrectness.v
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ Module MultiplierProofs.
rewrite N.pow_succ_r'.
rewrite (N.div_mod' a (2 ^ n)) at 1.
rewrite N.testbit_spec'.
rewrite N.add_mod by (destruct n; cbn; lia).
rewrite N.Div0.add_mod by (destruct n; cbn; lia).
rewrite (N.mul_comm 2 (2 ^ n)).
rewrite N.mul_mod_distr_l by (destruct n; cbn; lia).
rewrite N.Div0.mul_mod_distr_l by (destruct n; cbn; lia).
rewrite (N.mod_small (a mod 2 ^ n)).
- rewrite N.mod_small; [ ring | ].
eapply N.le_lt_trans.
Expand Down

0 comments on commit 34599d4

Please sign in to comment.