3 Author: Amine Chaieb, TU Muenchen
6 header {* Generic reflection and reification *}
10 uses ("reflection.ML")
13 lemma ext2: "(\<forall>x. f x = g x) \<Longrightarrow> f = g"
17 method_setup reify = {*
19 Method.syntax (Attrib.thms --
20 Scan.option (Scan.lift (Args.$$$ "(") |-- Args.term --| Scan.lift (Args.$$$ ")"))) src #>
21 (fn ((eqs, to), ctxt) => Method.SIMPLE_METHOD' (Reflection.genreify_tac ctxt eqs to))
22 *} "partial automatic reification"
24 method_setup reflection = {*
26 Method.syntax (Attrib.thms --
27 Scan.option (Scan.lift (Args.$$$ "(") |-- Args.term --| Scan.lift (Args.$$$ ")"))) src #>
28 (fn ((ths, to), ctxt) => Method.SIMPLE_METHOD' (Reflection.reflection_tac ctxt ths to))
29 *} "reflection method"