theory Scratch imports Main begin ML \val theory_naming = Sign.naming_of @{theory}\ setup \Sign.map_naming Name_Space.concealed\ definition "foo x = x" lemma aaa: "foo (foo x) = x" by (simp add: foo_def) find_theorems name: aaa setup \Sign.map_naming (K theory_naming)\ lemma bbb: "foo (foo (foo x)) = x" by (simp add: foo_def) find_theorems name: bbb end