transfinite arithmetic, cardinal arithmetic, ordinal arithmetic
prime field, p-adic integer, p-adic rational number, p-adic complex number
arithmetic geometry, function field analogy
The basic relation in modular arithmetic is the modulus relation. In dependent type theory with a natural numbers type and function types, one could define the modulus relation on the natural numbers as a ternary inductive type family indexed by natural numbers , , and , inductively defined by the following constructors:
where is multiplication of two natural numbers and .
For each nonzero natural number , the type is equivalent to the finite type equipped with its canonical identity type. When is zero the type is equivalent to the type of natural numbers with its canonical identity type.
This implies that the modulus relation is valued in h-propositions and is a family of decidable equivalence relations indexed by .
Last revised on October 11, 2022 at 22:52:33. See the history of this page for a list of all contributions to it.