src/HOL/Tools/Function/function_lib.ML
changeset 58839 ccda99401bc8
parent 58634 9f10d82e8188
child 59498 50b60f501b05
equal deleted inserted replaced
58838:59203adfc33f 58839:ccda99401bc8
   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}