Skip to content

Commit

Permalink
Avoid functions deprecated since coq v8.16
Browse files Browse the repository at this point in the history
Concerning real numbers.
  • Loading branch information
Columbus240 committed Aug 6, 2024
1 parent c354a0f commit 9e45c9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion theories/Topology/RFuncContinuity.v
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ assert (forall x:R, -1 < x / (1 + Rabs x) < 1).
{ pose proof (Rabs_pos x). lra. }
apply and_comm, Rabs_def2.
unfold Rdiv.
rewrite Rabs_mult, Rabs_Rinv; try lra.
rewrite Rabs_mult, Rabs_inv; try lra.
rewrite (Rabs_right (1 + Rabs x)); [ | now left ].
pattern 1 at 2.
replace 1 with ((1 + Rabs x) * / (1 + Rabs x)) by (field; lra).
Expand Down
2 changes: 1 addition & 1 deletion theories/Topology/RationalsInReals.v
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Proof.
apply lt_0_IZR in H0.
now apply Z.lt_gt.
- pattern eps at 2.
rewrite <- Rinv_involutive; auto with real;
rewrite <- Rinv_inv; auto with real;
apply Rinv_lt_contravar; auto with real;
apply Rmult_lt_0_compat; auto with real;
apply Rlt_trans with (/ eps); auto with real.
Expand Down

0 comments on commit 9e45c9b

Please sign in to comment.