blasphemy, quotient inductive types, type-theoretic injustice
mei @mei@donotsta.re
Content warning: blasphemy, quotient inductive types, type-theoretic injustice
when you think about it, the standard inductive definition of a list kinda sucks, in that it makes one of the ends of the list more privileged than the other. however, this can be mitigated by defining lists in terms of a quotient inductive type:
data List (A : Type) : Type where
[] : List A
inj : A → List A
_++_ : List A → List A → List A
unitˡ : ∀ x → [] ++ x ≡ x
unitʳ : ∀ x → x ++ [] ≡ x
assoc : ∀ x y z → x ++ (y ++ z) ≡ (x ++ y) ++ z
this is but one of the changes of we must adopt in the quest for a just and equal platonic universe. follow for more