Re: [isabelle] No code equations for explode on String.literal



Hi Andreas,

the following works:

> definition is_empty :: "String.literal ⇒ bool"
> where
>  "is_empty x ⟷ x = STR ''''"
> 
> declare equal_literal_def [code del]
> 
> lemma [code nbe]: -- "***"
>   fixes s :: "String.literal"
>   shows "HOL.equal s s ⟷ True"
>   by (simp add: equal)
> 
> value [nbe]
>   "is_empty (STR '''')"
> 
> value [code]
>   "is_empty (STR '''')"

Lemma "***" should be part of the default setup, I will look after it.

Cheers,
	Florian

-- 

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

Attachment: signature.asc
Description: OpenPGP digital signature



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