Pair.hascasl.output revision 66b0bf1e3102c83f5728cf6cfecbd07444276a5f
vars a, b : Type
free type Pair a b ::= Pair (fst : a; snd : b)
op f(a : a; b : b) : Pair a b = Pair (a, b);
op g : Pair a b ->? a
program g (Pair (a, b)) = a;
type
Pair : Type -> Type -> Type
vars
a : Type %(var_1)%;
b : Type %(var_2)%
op Pair : forall a : Type; b : Type . a * b -> Pair a b
%(constructor)%
op f : forall a : Type; b : Type . a * b -> Pair a b
%[op=
\ ((var a : a), (var b : b))
.! (op Pair : forall a : Type; b : Type . a * b -> Pair a b)
((var a : a), (var b : b))
as Pair a b]%
op fst : forall a : Type; b : Type . Pair a b -> a
%(selector of constructor(s)
Pair : forall a : Type; b : Type . a * b -> Pair a b)%
op g : forall a : Type; b : Type . Pair a b ->? a %(op)%
op snd : forall a : Type; b : Type . Pair a b -> b
%(selector of constructor(s)
Pair : forall a : Type; b : Type . a * b -> Pair a b)%
forall a : Type; b : Type; x_1 : a; x_2 : b
. fst (Pair (x_1, x_2)) = x_1_1 %(ga_select_fst)%
forall a : Type; b : Type; x_1 : a; x_2 : b
. snd (Pair (x_1, x_2)) = x_1_2 %(ga_select_snd)%
free type Pair(a : Type)(b : Type) ::= Pair (fst : a; snd : b)
%(ga_Pair)%
forall a : Type; b : Type; a : a; b : b
. f (a, b) = (Pair (a, b) as Pair a b)
program g (Pair (a, b)) = a %(pe_g)%
### Hint 1.5, is type variable 'a'
### Hint 1.8, is type variable 'b'
### Warning 4.7, variable also known as type variable 'a'
### Warning 4.14, variable also known as type variable 'b'
### Warning 8.17, variable also known as type variable 'a'
### Warning 8.20, variable also known as type variable 'b'
### Warning 8.17, variable also known as type variable 'a'
### Warning 8.20, variable also known as type variable 'b'
*** Error 8.24,
in term 'program (op g : forall a : Type; b : Type . Pair a b ->? a)
((op Pair : forall a : Type; b : Type . a * b -> Pair a b) (a, b))
= a'
are uninstantiated type variables
'[_v19_a, _v20_b]'
### Hint 6.8-6.17,
repeated declaration of 'g' with type 'Pair a b ->? a'