Zulip Chat Archive
Stream: new members
Topic: not equal from less than or greater than for reals
Thomas Preu (Oct 11 2025 at 10:33):
I am trying to prove the statements from this thread as an exercise. I am stuck at proving not equal 0 ≠ a from less than 0 < a. That surely is a statement somewhere in Mathlib, I would be happy, if someone could point me to it.
Robin Arnez (Oct 11 2025 at 10:38):
for h : 0 < a, there's docs#ne_of_lt, or even shorter h.ne
Thomas Preu (Oct 11 2025 at 10:48):
Thank you, that did it. I wonder why I did not find it via a search engine.
Ruben Van de Velde (Oct 11 2025 at 11:55):
https://loogle.lean-lang.org/?q=%3Fa+%3C+%3Fb+%E2%86%92+%3Fa+%E2%89%A0+%3Fb finds these, and another 20 specialized variants. (The general ones are sadly last in the list)
Aaron Liu (Oct 11 2025 at 12:37):
Thomas Preu said:
Thank you, that did it. I wonder why I did not find it via a search engine.
what did you try
Kevin Buzzard (Oct 11 2025 at 12:40):
See https://leanprover-community.github.io/blog/posts/searching-for-theorems-in-mathlib/ for some good ways to search for Lean theorems.
Thomas Preu (Oct 11 2025 at 13:17):
Aaron Liu said:
Thomas Preu said:
Thank you, that did it. I wonder why I did not find it via a search engine.
what did you try
I used plain google with queries like "lean4 prove not equal from less than" and some variations of it. I was not aware there is a specialized search tool for it.
Last updated: Dec 20 2025 at 21:32 UTC