Product type (aka pair). You can use α × β
as notation for Prod α β
.
Given a : α
and b : β
, Prod.mk a b : Prod α β
. You can use (a, b)
as notation for Prod.mk a b
. Moreover, (a, b, c)
is notation for
Prod.mk a (Prod.mk b c)
.
Given p : Prod α β
, p.1 : α
and p.2 : β
. They are short for Prod.fst p
and Prod.snd p
respectively. You can also write p.fst
and p.snd
.
For more information: Constructors with Arguments
Constructor
Prod.mk.{u, v} |
Constructs a pair from two terms. |
Fields
fst | : | α |
The first projection out of a pair. if | ||
snd | : | β |
The second projection out of a pair. if |