src/HOL/Tools/Lifting/lifting_def.ML
changeset 58112 8081087096ad
parent 58028 e4250d370657
child 59058 a78612c67ec0
equal deleted inserted replaced
58111:82db9ad610b9 58112:8081087096ad
   583     fun rename (Const (@{const_name Pure.all}, T1) $ Abs (_, T2, t)) (new_name :: names) = 
   583     fun rename (Const (@{const_name Pure.all}, T1) $ Abs (_, T2, t)) (new_name :: names) = 
   584         (Const (@{const_name Pure.all}, T1) $ Abs (new_name, T2, rename t names)) 
   584         (Const (@{const_name Pure.all}, T1) $ Abs (new_name, T2, rename t names)) 
   585       | rename t _ = t
   585       | rename t _ = t
   586 
   586 
   587     val (fixed_def_t, _) = yield_singleton (Variable.importT_terms) term ctxt
   587     val (fixed_def_t, _) = yield_singleton (Variable.importT_terms) term ctxt
   588     val new_names = Datatype_Prop.make_tnames (all_typs fixed_def_t)
   588     val new_names = Old_Datatype_Prop.make_tnames (all_typs fixed_def_t)
   589   in
   589   in
   590     rename term new_names
   590     rename term new_names
   591   end
   591   end
   592 
   592 
   593 (* This is not very cheap way of getting the rules but we have only few active
   593 (* This is not very cheap way of getting the rules but we have only few active