Zulip Chat Archive
Stream: Is there code for X?
Topic: given real lt proof rational lt
Ira Fesefeldt (Jun 18 2024 at 13:54):
I am a bit puzzled, how to prove the following implication involving coes. Anyone a clue how to do that?
import Mathlib
example (x : ℚ) (h : (1:ℝ)/2 < x) : 1/2 < x := sorry
Riccardo Brasca (Jun 18 2024 at 13:59):
For example
import Mathlib
example (x : ℚ) (h : (1:ℝ)/2 < x) : 1/2 < x := by
rify [h]
does it
Riccardo Brasca (Jun 18 2024 at 13:59):
of course you can do it by hand if you prefer
Ira Fesefeldt (Jun 18 2024 at 14:00):
No, I don't. I just didn't know about rify
.
Ira Fesefeldt (Jun 18 2024 at 14:01):
Thanks!
Riccardo Brasca (Jun 18 2024 at 14:02):
The key point is docs#Rat.cast_lt
Last updated: May 02 2025 at 03:31 UTC