src/HOL/Nominal/nominal_inductive2.ML
changeset 30304 d8e4cd2ac2a1
parent 30087 a780642a9c9c
child 30305 720226bedc4d
equal deleted inserted replaced
30303:9c4f4ac0d038 30304:d8e4cd2ac2a1
    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