Re: [isabelle] Code equations for UNION in Isabelle2012-RC1



Hi Andreas,

theory Scratch imports Main begin
export_code UNION in SML file -

*** Type
*** 'a::type set => ('a::type => 'b::type set) => 'b::type set
*** of constant "Complete_Lattices.complete_lattice_class.SUPR"
*** is too specific compared to declared type
*** ?'b::{} set => (?'b::{} => ?'a::{}) => ?'a::{}
*** At command "export_code"

the issue is simple: UNION is just an abbrev for SUPR at a certain type, and therefore has a »too specific« type. Want you want is:

	export_code SUPR in SML

or

	definition "foo = UNION"
	export_code foo in SML

Hope this helps,
	Florian

--

PGP available:
http://home.informatik.tu-muenchen.de/haftmann/pgp/florian_haftmann_at_informatik_tu_muenchen_de





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