Skip to content

Commit

Permalink
Add-Lemma_not_near_ninftyP
Browse files Browse the repository at this point in the history
  • Loading branch information
amethyst authored and amethyst committed Aug 6, 2024
1 parent 0e46de4 commit 414060a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions theories/normedtype.v
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,15 @@ move=> [M [Mreal AM]]; exists (M * 2); split; first by rewrite realM.
by move=> x; rewrite -ltr_pdivlMr //; exact: AM.
Qed.

Lemma not_near_ninftyP T (f : R -> T) (P : pred T):
~ (\forall x \near -oo, P (f x)) <->
forall M : R, M \is Num.real -> exists2 x, x < M & ~ P (f x).
Proof.
rewrite nearE /ninfty_nbhs -forallNP.
rewrite -propeqE; apply: eq_forall => M; rewrite propeqE.
by rewrite -implypN existsPNP.
Qed.

End infty_nbhs_instances.

#[global] Hint Extern 0 (is_true (_ < ?x)) => match goal with
Expand Down

0 comments on commit 414060a

Please sign in to comment.