Generating code from locales without interpretation
问题 I would love to generate code from locale definitions directly, without interpretation. Example: (* A locale, from the code point of view, similar to a class *) locale MyTest = fixes L :: "string list" assumes distinctL: "distinct L" begin definition isInL :: "string => bool" where "isInL s = (s ∈ set L)" end The assumptions to instantiate MyTest are executable and I can generate code for them definition "can_instance_MyTest L = distinct L" lemma "can_instance_MyTest L = MyTest L" by(simp add