@@ -6,16 +6,8 @@
6||| Dependent pairs, in their internal representation
6||| Dependent pairs, in their internal representation
7||| @ a the type of the witness
7||| @ a the type of the witness
8||| @ P the type of the proof
8||| @ P the type of the proof
9−data Exists : (a : Type) -> (P : a -> Type) -> Type where
9+data Sigma : (a : Type) -> (P : a -> Type) -> Type where
10− Ex_intro : {P : a -> Type} -> (x : a) -> P x -> Exists a P
10+ Sg_intro : .{P : a -> Type} -> (x : a) -> (pf : P x) -> Sigma a P
12−||| The first projection from a dependent pair
13−getWitness : {P : a -> Type} -> Exists a P -> a
14−getWitness (a ** v) = a
16−||| The second projection from a dependent pair
17−getProof : {P : a -> Type} -> (s : Exists a P) -> P (getWitness s)
20||| The eliminator for the empty type.
12||| The eliminator for the empty type.
21FalseElim : _|_ -> a
13FalseElim : _|_ -> a
@@ -47,7 +39,7 @@ data LazyType = LazyCodata | LazyEval
47data Lazy' : LazyType -> Type -> Type where
39data Lazy' : LazyType -> Type -> Type where
48 ||| A delayed computation.
40 ||| A delayed computation.
50− |||Delay is inserted automatically by the elaborator where necessary.
42+ ||| Delay is inserted automatically by the elaborator where necessary.
52 ||| Note that compiled code gives `Delay` special semantics.
44 ||| Note that compiled code gives `Delay` special semantics.
53 ||| @ t whether this is laziness from codata or normal lazy evaluation
45 ||| @ t whether this is laziness from codata or normal lazy evaluation