@@ -27,11 +27,11 @@ namespace Builtins
2727 ||| UniqueTypes.
2828 ||| @A the type of the left elements in the pair
2929 ||| @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
3131 ||| A pair of elements
3232 ||| @a the left element of the pair
3333 ||| @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
3535
3636 ||| Dependent pairs aid in the construction of dependent types by
3737 ||| providing evidence that some value resides in the type.
@@ -40,10 +40,16 @@ namespace Builtins
4040 ||| quantification - they consist of a witness for the existential
4141 ||| claim and a proof that the property holds for it.
4242 |||
43− ||| @ a the value to place in the type.
44− ||| @ P the dependent type that requires the value.
45− data Sigma : (a : Type) -> (P : a -> Type) -> Type where
46− MkSigma : .{P : a -> Type} -> (x : a) -> (pf : P x) -> Sigma a P
43+ ||| @a the value to place in the type.
44+ ||| @P the dependent type that requires the value.
45+ data DepPair : (a : Type) -> (P : a -> Type) -> Type where
46+ MkDepPair : .{P : a -> Type} -> (x : a) -> (pf : P x) -> DepPair a P
47+
48+ Sigma : (a : Type) -> (P : a -> Type) -> Type
49+ Sigma wit prf = DepPair wit prf
50+
51+ MkSigma : .{P : a -> Type} -> (x : a) -> (prf : P x) -> DepPair a P
52+ MkSigma wit prf = MkDepPair wit prf
4753
4854||| The empty type, also known as the trivially false proposition.
4955|||