Structures · Data types
Nat.AtLeastTwo
A type class for natural numbers which are greater than or equal to 2.
NeZero and AtLeastTwo are used for numeric literals, and also for groups of related lemmas
sharing a common value of n that needs to be nonzero, or at least 2, and where it is
convenient to pass this information implicitly. Instances for these classes cover some of the
cases where it is most structurally obvious from the syntactic form of n that it satisfies the
required conditions, such as m + 1. Less widely used cases may be defined as lemmas rather than
global instances and then made into instances locally where needed. If implicit arguments,
appearing before other explicit arguments, are allowed to be autoParams in a future version of
Lean, such an autoParam that is proved by lia might be a more general replacement for the
use of typeclass inference for this purpose.
- Defined in
- Mathlib.Data.Nat.Init
- Shape
- One type argument · adds prop
Extends0
Extends nothing: this is a root of the hierarchy.
Extended by0
Nothing extends this class yet.
Concrete types that are instances1
- HAdd.hAdd
How is a type an instance?
Loading the hierarchy index…
Assumed by416
- Int.cast_ofNat
- map_ofNat
- ENNReal.ofNat_ne_top
- Nat.cast_ofNat
- ENNReal.toReal_ofNat
- Real.norm_ofNat
- OfNat.ofNat_ne_zero
- Complex.norm_ofNat
- Rat.cast_ofNat
- Polynomial.eval_ofNat
- ENNReal.ofReal_ofNat
- Complex.ofReal_ofNat
- Affine.Simplex.excenterExists_singleton
- Real.rpow_ofNat
- Nat.abs_ofNat
- Nat.AtLeastTwo.prop
- Polynomial.map_ofNat
- Complex.div_ofNat_re
- Cardinal.lift_ofNat
- Nat.ofNat_pos
- Nat.AtLeastTwo.one_lt
- Polynomial.ofNat_comp
- ofNat_smul_eq_nsmul
- NNReal.rpow_ofNat
- ENNReal.coe_ofNat
- Polynomial.C_ofNat
- NNRat.cast_ofNat
- Real.toNNReal_ofNat
- RCLike.ofReal_ofNat
- RootPairing.nsmul_notMem_range_root
- Affine.Simplex.sign_excenterWeights_singleton_neg
- OfNat.ofNat_ne_one
- Affine.Simplex.sum_excenterWeightsUnnorm_singleton_pos
- Nat.one_lt_ofNat
- Affine.Simplex.sign_excenterWeights_singleton_pos
- Cardinal.toNat_eq_ofNat
- RCLike.norm_ofNat
- ENNReal.rpow_ofNat
- Complex.normSq_ofNat
- Real.Gamma_ofNat_eq_factorial
- Affine.Simplex.inv_height_lt_sum_inv_height
- Nat.ofNat_le_cast
- OfNat.one_ne_ofNat
- RCLike.ofNat_re
- Affine.Simplex.excenter_singleton_injective
- Cardinal.toNat_ofNat
- Complex.div_ofNat_im
- Nat.AtLeastTwo.ne_one
- Real.rpow_neg_ofNat
- Affine.Simplex.abs_inner_vsub_altitudeFoot_lt_mul
Ancestors0
No ancestors.