fin n
is the subtype of ℕ
consisting of natural numbers strictly smaller than n
.
Instances for fin
- fin.has_sizeof_inst
- fin.has_lt
- fin.has_le
- fin.has_repr
- fin.has_to_string
- fin.has_zero
- fin.has_one
- fin.has_add
- fin.has_sub
- fin.has_mul
- fin.has_mod
- fin.has_div
- fin.is_empty
- fin.inhabited
- inhabited_fin_one_add
- fin.unique
- fin.fin_to_nat
- fin.linear_order
- fin.partial_order
- fin.fin.lt.is_well_order
- fin.has_well_founded
- fin.has_zero_of_ne_zero
- fin.has_one_of_ne_zero
- fin.bounded_order
- fin.lattice
- fin.nontrivial
- fin.add_comm_semigroup
- fin.add_comm_monoid
- fin.add_monoid_with_one
- fin.has_neg
- fin.add_comm_group
- fin.has_involutive_neg
- fin.is_cancel_add
- fin.add_left_cancel_semigroup
- fin.add_right_cancel_semigroup
- fin.reflect
- fin.fintype
- subsingleton_fin_zero
- subsingleton_fin_one
- fin.countable
- fin.encodable
- fin.locally_finite_order
- fin.locally_finite_order_bot
- fin.locally_finite_order_top
- fin.comm_semigroup
- fin.distrib
- fin.comm_ring
- fin.has_distrib_neg
- fin.topological_space
- fin.discrete_topology
- fin.complete_linear_order
@[protected, instance]
Equations
- fin.has_lt = {lt := fin.lt n}
@[protected, instance]
Equations
- fin.has_le = {le := fin.le n}
@[protected, instance]
Equations
- a.decidable_lt b = a.val.decidable_lt b.val
@[protected, instance]
Equations
- a.decidable_le b = a.val.decidable_le b.val
@[protected, instance]
Equations
- fin.decidable_eq n = λ (i j : fin n), decidable_of_decidable_of_iff (nat.decidable_eq i.val j.val) _