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