src/HOL/Tools/function_package/mutual.ML
changeset 19773 ebc3b67fbd2c
parent 19770 be5c23ebe1eb
child 19781 c62720b20e9a
equal deleted inserted replaced
19772:45897b49fdd2 19773:ebc3b67fbd2c
   127 	val (mutual, thy) = analyze_eqs thy eqss
   127 	val (mutual, thy) = analyze_eqs thy eqss
   128 	val Mutual {name, sum_const, qglrss, ...} = mutual
   128 	val Mutual {name, sum_const, qglrss, ...} = mutual
   129 	val global_glrs = flat qglrss
   129 	val global_glrs = flat qglrss
   130 	val used = fold (fn (qs, _, _, _) => fold (curry op ins_string o fst o dest_Free) qs) global_glrs []
   130 	val used = fold (fn (qs, _, _, _) => fold (curry op ins_string o fst o dest_Free) qs) global_glrs []
   131     in
   131     in
   132 	(mutual, name, FundefPrep.prepare_fundef_new thy congs name (Const sum_const) global_glrs used)
   132 	(mutual, name, FundefPrep.prepare_fundef thy congs name (Const sum_const) global_glrs used)
   133     end
   133     end
   134 
   134 
   135 
   135 
   136 (* Beta-reduce both sides of a meta-equality *)
   136 (* Beta-reduce both sides of a meta-equality *)
   137 fun beta_norm_eq thm = 
   137 fun beta_norm_eq thm =