equal
deleted
inserted
replaced
36 |Const (x,_) => x |
36 |Const (x,_) => x |
37 |_ => "x"^string_of_int i)) |
37 |_ => "x"^string_of_int i)) |
38 |
38 |
39 local |
39 local |
40 |
40 |
41 val conj1_False = thm "conj1_False"; |
41 val conj1_False = @{thm conj1_False}; |
42 val conj2_False = thm "conj2_False"; |
42 val conj2_False = @{thm conj2_False}; |
43 val conj_True = thm "conj_True"; |
43 val conj_True = @{thm conj_True}; |
44 val conj_cong = thm "conj_cong"; |
44 val conj_cong = @{thm conj_cong}; |
45 |
45 |
46 fun isFalse (Const (@{const_name False},_)) = true |
46 fun isFalse (Const (@{const_name False},_)) = true |
47 | isFalse _ = false; |
47 | isFalse _ = false; |
48 fun isTrue (Const (@{const_name True},_)) = true |
48 fun isTrue (Const (@{const_name True},_)) = true |
49 | isTrue _ = false; |
49 | isTrue _ = false; |
253 |
253 |
254 |
254 |
255 |
255 |
256 |
256 |
257 local |
257 local |
258 val swap_ex_eq = thm "StateFun.swap_ex_eq"; |
258 val swap_ex_eq = @{thm StateFun.swap_ex_eq}; |
259 fun is_selector thy T sel = |
259 fun is_selector thy T sel = |
260 let |
260 let |
261 val (flds,more) = Record.get_recT_fields thy T |
261 val (flds,more) = Record.get_recT_fields thy T |
262 in member (fn (s,(n,_)) => n=s) (more::flds) sel |
262 in member (fn (s,(n,_)) => n=s) (more::flds) sel |
263 end; |
263 end; |