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} {α : Type u} {β : Type v}
(fst : α) (snd : β) : α × β |
Constructs a pair from two terms. |
Fields
snd | : | β |
The second projection out of a pair. if | ||
fst | : | α |
The first projection out of a pair. if |