src/HOL/Nominal/nominal_inductive2.ML
changeset 30305 720226bedc4d
parent 30242 aea5d7fa7ef5
parent 30304 d8e4cd2ac2a1
child 30306 8f4d5eaa9878
equal deleted inserted replaced
30274:44832d503659 30305:720226bedc4d
    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