Reference · Logic
rainbow.math.logic.infinite-transport
Sort-polymorphic infinitude transport and a faithful native Int model.
int/to-nat
int/to-nat : (x₁ : data/Int) → ℕ
ℕ = data/Nat
list/sort-membership-map
list/sort-membership-map.{l, m} :
(A : Sort l) (B : Sort m) (mapping : A → B) (enumeration : List A) (value : A)
(member : list/sort-membership A enumeration value)
→ list/sort-membership B (list/map A B mapping enumeration) (mapping value)List = data/List
type/finite-of-surjection
type/finite-of-surjection.{l, m} :
(A : Sort l) (B : Sort m) (mapping : A → B)
(onto : ∀ (target : B), proposition/existence A (fun source => mapping source = target))
(source-finite : type/finite A)
→ type/finite B= = equality/Eq
type/infinite-of-surjection
type/infinite-of-surjection.{l, m} :
(A : Sort l) (B : Sort m) (target-infinite : type/infinite B) (mapping : A → B)
(onto : ∀ (target : B), proposition/existence A (fun source => mapping source = target))
→ type/infinite A= = equality/Eq
int/to-nat-surjective
int/to-nat-surjective : (target : ℕ) → proposition/existence data/Int (fun source => int/to-nat source = target)
= = equality/Eqℕ = data/Nat
type/infinite-int
type/infinite-int : → type/infinite data/Int