equal
deleted
inserted
replaced
68 | _ => fold (add_binders thy i) ts bs) |
68 | _ => fold (add_binders thy i) ts bs) |
69 | (u, ts) => add_binders thy i u (fold (add_binders thy i) ts bs)) |
69 | (u, ts) => add_binders thy i u (fold (add_binders thy i) ts bs)) |
70 | add_binders thy i (Abs (_, _, t)) bs = add_binders thy (i + 1) t bs |
70 | add_binders thy i (Abs (_, _, t)) bs = add_binders thy (i + 1) t bs |
71 | add_binders thy i _ bs = bs; |
71 | add_binders thy i _ bs = bs; |
72 |
72 |
73 fun mk_set T [] = Const ("{}", HOLogic.mk_setT T) |
73 fun mk_set T [] = Const (@{const_name Set.empty}, HOLogic.mk_setT T) |
74 | mk_set T (x :: xs) = |
74 | mk_set T (x :: xs) = |
75 Const ("insert", T --> HOLogic.mk_setT T --> HOLogic.mk_setT T) $ x $ |
75 Const ("insert", T --> HOLogic.mk_setT T --> HOLogic.mk_setT T) $ x $ |
76 mk_set T xs; |
76 mk_set T xs; |
77 |
77 |
78 fun split_conj f names (Const ("op &", _) $ p $ q) _ = (case head_of p of |
78 fun split_conj f names (Const ("op &", _) $ p $ q) _ = (case head_of p of |