Re: [isabelle] Extra type variables in constdef



> Now if I define a constant that groups together these two consts, say
> 
> constdefs
> c :: "int => bool"
> "c x == b (a x)"
> 
> I get the error message
> 
> *** Specification depends on extra type variables: "'a"

You can make your definition explicitly dependent on 'a using the
"itself" type:

constsdefs
  c :: "'a itself => int => bool"
  "c (T::'a itself) (x::'a) == b (a x)"

Hope this helps
Florian

-- 

PGP available:
http://www4.informatik.tu-muenchen.de/~haftmann/pgp/florian_haftmann_at_informatik_tu_muenchen_de.pgp
begin:vcard
fn:Florian Haftmann
n:Haftmann;Florian
org;quoted-printable;quoted-printable:Technische Universit=C3=A4t M=C3=BCnchen ;Institut f=C3=BCr Informatik, Lehrstuhl Software and Systems Engineering
adr;quoted-printable;quoted-printable:;;Boltzmannstra=C3=9Fe 3;M=C3=BCnchen;Bayern;85748;Deutschland
email;internet:florian.haftmann at informatik.tu-muenchen.de
title:M. Sc.
tel;work:289 - 17300
note;quoted-printable:PGP available: =
	=0D=0A=
	http://www4.informatik.tu-muenchen.de/~haftmann/pgp/florian_haftmann_at_i=
	nformatik_tu_muenchen_de.pgp=0D=0A=
	
x-mozilla-html:FALSE
url:http://www4.in.tum.de/~haftmann
version:2.1
end:vcard



This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.