Zulip Chat Archive
Stream: new members
Topic: No linear order on Complex (Lean4)
Jiatong Yang (Jun 13 2025 at 07:41):
import Mathlib
open Complex
theorem thm [LinearOrderedField ℂ] : False := by
have h : 0 ≤ I ^ 2 := sq_nonneg I
I want to prove that there is no linear order on ℂ. But the code above does not compile due to some typeclass issue. I need help.
Kenny Lau (Jun 13 2025 at 08:30):
@Jiatong Yang if you hover over the red underline, it tells you the correct thing to put there
Yiming Fu (Jun 13 2025 at 17:28):
(deleted)
Yiming Fu (Jun 13 2025 at 17:38):
That works:
import Mathlib
open Complex
theorem thm [LinearOrder ℂ] [IsStrictOrderedRing ℂ] : False := by
have h : 0 ≤ I ^ 2 := sq_nonneg I
sorry
Last updated: Dec 20 2025 at 21:32 UTC