section ‹Test cases for dictionary construction› theory Test_Dict_Construction imports Dict_Construction "HOL-Library.ListVector" begin subsection ‹Code equations with different number of explicit arguments› lemma [code]: "fold f [] = id" "fold f (x # xs) s = fold f xs (f x s)" "fold f [x, y] u ≡ f y (f x u)" by auto experiment begin declassify valid: fold thm valid lemma "List_fold = fold" by (rule valid) end subsection ‹Complex class hierarchies›