[isabelle-dev] export_code theory wildcard exports too much

Florian Haftmann florian.haftmann at informatik.tu-muenchen.de
Fri Jun 13 21:47:11 CEST 2014


Hi René,

> I'm currently trying to "mitigate" the changes to export_code, which
> only inserts needed constants into the signature. For one theory, I
> tried to use the wildcard "Theory._" -- but the then-generated code
> seems to include ALL exportable definitions of some point in time. For
> example, the generated code now includes the structures
> Quickcheck_Exhausting and Quickcheck_Narrowing, which seems rather odd.
> 
> The documentation states "referring to all executable constants within a
> certain theory by giving name._", and I thought 'within' herer refers to
> 'defined in', opposed to 'available in'.

there seems to be some confusion here.  The story as supposed to be is:
* You specify some constants after export_code.  Wildcards possible.
* These are implicitly augmented by their dependency.  Generated code is
always self-contained in that respect!
* The new issue is that exports via signature are reduced (not to the
uttermost minimum, this will still need further refinement).

Having said that, is is quite natural that generated code also may
contain a structure named Quickcheck_Exhaustive, I guess due to the
generators which come with every datatype specification.

If you observe things which cannot be explained following this scheme, I
kindly ask for a self-contained example which demonstrates the
difference between expectation and reality.

Hope this helps,
	Florian

> 
>> hg id
> 8fcbfce2a2a9 tip
> 
> - René
> 
> 
> 
> _______________________________________________
> isabelle-dev mailing list
> isabelle-dev at in.tum.de
> https://mailmanbroy.informatik.tu-muenchen.de/mailman/listinfo/isabelle-dev
> 

-- 

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <https://mailman46.in.tum.de/pipermail/isabelle-dev/attachments/20140613/b1232854/attachment.sig>


More information about the isabelle-dev mailing list