unit type
依存型理論の型の一つ
要素を一つ持つ
要素は$ \star
$ \mathbf{1} が型
$ \mathbf{1} の型は型宇宙$ \mathcal{U}
$ \mathbf{1} : \mathcal{U}
$ \star : \mathbf{1}
いろいろなプログラミング言語にunit typeに相当するものがある
Haskell, Rust, Elmの()
JavaScript
Null, Undefined
C/C++のvoid型
void型は空型ではない
厳密にはunit typeとして整合しない部分がある?
NULLという値の型は、型理論として考えるとunit type
対応するもの
(論理) true
(型理論) unit type
HoTTでの対応
(高次圏論) (-2)-groupoid
(高次トポス) -
(ホモトピー型理論) true
(ホモトピー型理論) unit type
確認用
Q. unit type
参考
メモ
調査用
Wikipedia.icon
Wikipedia.icon