Mathlib Map

Theorems · Definition · number theory

Rat.toNNRat

ℚ → ℚ≥0

Reinterpret a rational number q as a non-negative rational number. Returns 0 if q ≤ 0.

Defined in
Mathlib.Data.NNRat.Defs
Cited by
29 results in Mathlib
Foundations
Depth 75 from the axioms · uses propext, Classical.choice, Quot.sound

Around this declaration

Dashed lines are statement dependencies; solid lines are citations in proofs.

Cites1

Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.

  • NNRatstatement · cited by 523

Cited by30

Results whose statement or proof uses this declaration.