Talk. Agda in the context of Homotopy Type Theory [hca/H00B.lagda]

Some notes for getting started with (cubical) agda in the context of HoTT.

Backlinks

Index. Homotopy Type Theory [004R]

Index. Homotopy Type Theory in Cubical Agda [hca]

This index collects the notes I wrote while playing the Hott Game. I compiled them into a small demo I gave here.

Definition. Empty Type [hca/H002.lagda]

The simplest type we can define in agda is the empty type.

data 𝟘 : Type where

Since we are giving no way to introduce it, it has no elements. Because we can be sure to never encounter an element x : 𝟘, we assume an elimination rule that gives us an element of any type A given x : 𝟘.

postulate
  A : Type

explosion : 𝟘 -> A
explosion ()

Definition. Unit Type [hca/H003.lagda]

The unit type is the type with only one element ★ : 𝟙

data 𝟙 : Type where
  ★ : 𝟙

  • propositions as types
  • lambda abstaction
  • natural numbers
  • playing with natural numbers
  • Identity type
  • groupoid laws

TheHoTTGame/0Trinitarianism/Quest0.lagda.md TheHoTTGame/0Trinitarianism/Quest1.lagda.md TheHoTTGame/0Trinitarianism/Quest2.lagda.md TheHoTTGame/0Trinitarianism/Quest3.lagda.md TheHoTTGame/0Trinitarianism/Quest4.lagda.md TheHoTTGame/0Trinitarianism/Quest5.lagda.md