ToInt α I
asserts that α
can be embedded faithfully into an interval I
in the integers.
Instance Constructor
Lean.Grind.ToInt.mk.{u}
Methods
toInt : α → Int
The embedding function.
toInt_inj : ∀ (x y : α), ↑x = ↑y → x = y
The embedding function is injective.
toInt_mem : ∀ (x : α), ↑x ∈ range
The embedding function lands in the interval.