@@ -864,8 +864,8 @@ as “sigma types”:
864864
865865.. code-block:: idris
866866
867− data Sigma : (a : Type) -> (P : a -> Type) -> Type where
868− MkSigma : {P : a -> Type} -> (x : a) -> P x -> Sigma a P
867+ data DPair : (a : Type) -> (P : a -> Type) -> Type where
868+ MkDPair : {P : a -> Type} -> (x : a) -> P x -> DPair a P
869869
870870Again, there is syntactic sugar for this. ``(a : A ** P)`` is the type
871871of a pair of A and P, where the name ``a`` can occur inside ``P``.
@@ -882,8 +882,8 @@ equivalent.
882882
883883.. code-block:: idris
884884
885− vec : Sigma Nat (\n => Vect n Int)
886− vec = MkSigma 2 [3, 4]
885+ vec : DPair Nat (\n => Vect n Int)
886+ vec = MkDPair 2 [3, 4]
887887
888888The type checker could of course infer the value of the first element
889889from the length of the vector. We can write an underscore ``_`` in