Lemmas on Nat.floor and Nat.ceil for semifields #
This file contains basic results on the natural-valued floor and ceiling functions.
Tags #
rounding, floor, ceil
theorem
Nat.floor_div_natCast
{K : Type u_2}
[Semifield K]
[LinearOrder K]
[IsStrictOrderedRing K]
[FloorSemiring K]
(a : K)
(n : โ)
:
theorem
Nat.floor_div_ofNat
{K : Type u_2}
[Semifield K]
[LinearOrder K]
[IsStrictOrderedRing K]
[FloorSemiring K]
(a : K)
(n : โ)
[n.AtLeastTwo]
:
theorem
Nat.floor_div_eq_div
{K : Type u_2}
[Semifield K]
[LinearOrder K]
[IsStrictOrderedRing K]
[FloorSemiring K]
(m n : โ)
:
Natural division is the floor of field division.
theorem
Nat.mul_lt_floor
{K : Type u_2}
[Field K]
[LinearOrder K]
[IsStrictOrderedRing K]
[FloorSemiring K]
{a b : K}
(hbโ : 0 < b)
(hb : b < 1)
(hba : โโb / (1 - b)โโ โค a)
:
theorem
Nat.ceil_lt_mul
{K : Type u_2}
[Field K]
[LinearOrder K]
[IsStrictOrderedRing K]
[FloorSemiring K]
{a b : K}
(hb : 1 < b)
(hba : โโ(b - 1)โปยนโโ / b < a)
:
theorem
Nat.ceil_le_mul
{K : Type u_2}
[Field K]
[LinearOrder K]
[IsStrictOrderedRing K]
[FloorSemiring K]
{a b : K}
(hb : 1 < b)
(hba : โโ(b - 1)โปยนโโ / b โค a)
:
theorem
Nat.div_two_lt_floor
{K : Type u_2}
[Field K]
[LinearOrder K]
[IsStrictOrderedRing K]
[FloorSemiring K]
{a : K}
(ha : 1 โค a)
:
theorem
Nat.ceil_lt_two_mul
{K : Type u_2}
[Field K]
[LinearOrder K]
[IsStrictOrderedRing K]
[FloorSemiring K]
{a : K}
(ha : 2โปยน < a)
:
theorem
Nat.ceil_le_two_mul
{K : Type u_2}
[Field K]
[LinearOrder K]
[IsStrictOrderedRing K]
[FloorSemiring K]
{a : K}
(ha : 2โปยน โค a)
:
theorem
Mathlib.Meta.NormNum.IsNat.natFloor
{R : Type u_3}
[Semiring R]
[LinearOrder R]
[IsStrictOrderedRing R]
[FloorSemiring R]
(r : R)
(m : โ)
:
theorem
Mathlib.Meta.NormNum.IsInt.natFloor
{R : Type u_3}
[Ring R]
[LinearOrder R]
[IsStrictOrderedRing R]
[FloorSemiring R]
(r : R)
(m : โ)
:
IsInt r (Int.negOfNat m) โ IsNat โrโโ 0
theorem
Mathlib.Meta.NormNum.IsNNRat.natFloor
{R : Type u_3}
[Semifield R]
[LinearOrder R]
[IsStrictOrderedRing R]
[FloorSemiring R]
(r : R)
(n d : โ)
(h : IsNNRat r n d)
(res : โ)
(hres : n / d = res)
:
theorem
Mathlib.Meta.NormNum.IsRat.natFloor
{R : Type u_3}
[Field R]
[LinearOrder R]
[IsStrictOrderedRing R]
[FloorSemiring R]
(r : R)
(n d : โ)
(h : IsRat r (Int.negOfNat n) d)
: