@@ -27,11 +27,11 @@ namespace Builtins
27 ||| UniqueTypes.
27 ||| UniqueTypes.
28 ||| @A the type of the left elements in the pair
28 ||| @A the type of the left elements in the pair
29 ||| @B the type of the left elements in the pair
29 ||| @B the type of the left elements in the pair
30− data UPair : (A : AnyType) -> (B : AnyType) -> AnyType where
30+ data UniquePair : (A : AnyType) -> (B : AnyType) -> AnyType where
31 ||| A pair of elements
31 ||| A pair of elements
32 ||| @a the left element of the pair
32 ||| @a the left element of the pair
33 ||| @b the right element of the pair
33 ||| @b the right element of the pair
34− MkUPair : {A, B : AnyType} -> (a : A) -> (b : B) -> UPair A B
34+ MkUniquePair : {A, B : AnyType} -> (a : A) -> (b : B) -> UniquePair A B
36 ||| Dependent pairs aid in the construction of dependent types by
36 ||| Dependent pairs aid in the construction of dependent types by
37 ||| providing evidence that some value resides in the type.
37 ||| providing evidence that some value resides in the type.
@@ -40,10 +40,16 @@ namespace Builtins
40 ||| quantification - they consist of a witness for the existential
40 ||| quantification - they consist of a witness for the existential
41 ||| claim and a proof that the property holds for it.
41 ||| claim and a proof that the property holds for it.
43− ||| @ a the value to place in the type.
43+ ||| @a the value to place in the type.
44− ||| @ P the dependent type that requires the value.
44+ ||| @P the dependent type that requires the value.
45− data Sigma : (a : Type) -> (P : a -> Type) -> Type where
45+ data DepPair : (a : Type) -> (P : a -> Type) -> Type where
46− MkSigma : .{P : a -> Type} -> (x : a) -> (pf : P x) -> Sigma a P
46+ MkDepPair : .{P : a -> Type} -> (x : a) -> (pf : P x) -> DepPair a P
48+ Sigma : (a : Type) -> (P : a -> Type) -> Type
49+ Sigma wit prf = DepPair wit prf
51+ MkSigma : .{P : a -> Type} -> (x : a) -> (prf : P x) -> DepPair a P
52+ MkSigma wit prf = MkDepPair wit prf
48||| The empty type, also known as the trivially false proposition.
54||| The empty type, also known as the trivially false proposition.