equal
deleted
inserted
replaced
111 then mk (Const (neu, ty), foldr1 mk (map (nth xs) js)) |
111 then mk (Const (neu, ty), foldr1 mk (map (nth xs) js)) |
112 else if null js |
112 else if null js |
113 then mk (foldr1 mk (map (nth xs) is), Const (neu, ty)) |
113 then mk (foldr1 mk (map (nth xs) is), Const (neu, ty)) |
114 else mk (foldr1 mk (map (nth xs) is), foldr1 mk (map (nth xs) js))))) |
114 else mk (foldr1 mk (map (nth xs) is), foldr1 mk (map (nth xs) js))))) |
115 (K (rewrite_goals_tac ctxt ac |
115 (K (rewrite_goals_tac ctxt ac |
116 THEN rtac Drule.reflexive_thm 1)) |
116 THEN resolve_tac [Drule.reflexive_thm] 1)) |
117 end |
117 end |
118 |
118 |
119 (* instance for unions *) |
119 (* instance for unions *) |
120 val regroup_union_conv = |
120 val regroup_union_conv = |
121 regroup_conv @{const_abbrev Set.empty} @{const_name Lattices.sup} |
121 regroup_conv @{const_abbrev Set.empty} @{const_name Lattices.sup} |