Skip to content

Commit

Permalink
rat_in_itvoo need not be restricted to realTypes (#1286)
Browse files Browse the repository at this point in the history
* rat_in_itvoo need not be restricted to realTypes
  • Loading branch information
t6s authored Aug 7, 2024
1 parent 107266f commit 16f7540
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG_UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
### Renamed

### Generalized
- in `reals.v`:
+ lemma `rat_in_itvoo`

### Deprecated

Expand Down
2 changes: 1 addition & 1 deletion theories/reals.v
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ rewrite /bound_div (ltNge y 0) y0/= -mulr_natl -ltr_pdivrMr//.
by rewrite archi_boundP// (divr_ge0 _(ltW _)).
Qed.

Lemma rat_in_itvoo (R : realType) (x y : R) :
Lemma rat_in_itvoo (R : archiFieldType) (x y : R) :
x < y -> exists q, ratr q \in `]x, y[.
Proof.
move=> xy; move: (xy); rewrite -subr_gt0.
Expand Down

0 comments on commit 16f7540

Please sign in to comment.