1 (* Title: HOL/ex/Set_Comprehension_Pointfree_Tests.thy
3 Copyright 2012 TU Muenchen
6 header {* Tests for the set comprehension to pointfree simproc *}
8 theory Set_Comprehension_Pointfree_Tests
10 uses "set_comprehension_pointfree.ML"
13 simproc_setup finite_Collect ("finite (Collect P)") = {* Set_Comprehension_Pointfree.simproc *}
16 "finite {f a b| a b. a : A \<and> b : B}"
17 apply simp (* works :) *)
21 "finite {f a b| a b. a : A \<and> a : A' \<and> b : B}"
22 (* apply simp -- does not terminate *)
26 "finite {f a b| a b. a : A \<and> b : B \<and> b : B'}"
27 (* apply simp -- does not terminate *)
31 "finite {f a b c| a b c. a : A \<and> b : B \<and> c : C}"
32 (* apply simp -- failed *)
36 "finite {f a b c d| a b c d. a : A \<and> b : B \<and> c : C \<and> d : D}"
37 (* apply simp -- failed *)
41 "finite {f a b c d e | a b c d e. a : A \<and> b : B \<and> c : C \<and> d : D \<and> e : E}"
42 (* apply simp -- failed *)