bookshelf/Common/Real/Rational.lean

19 lines
445 B
Plaintext
Raw Normal View History

import Mathlib.Data.Real.Basic
2023-05-08 19:37:02 +00:00
/-! # Common.Real.Rational
2023-05-04 22:37:54 +00:00
Additional theorems and definitions useful in the context of rational numbers.
Most of these will likely be deleted once the corresponding functions in
`Mathlib` are ported to Lean 4.
-/
/--
Assert that a real number is irrational.
-/
def irrational (x : ) := x ∉ Set.range RatCast.ratCast
/--
Assert that a real number is rational.
-/
def rational (x : ) := ¬ irrational x