src/HOL/Tools/legacy_transfer.ML
changeset 61853 fb7756087101
parent 61476 1884c40f1539
child 66795 420d0080545f
equal deleted inserted replaced
61852:d273c24b5776 61853:fb7756087101
   251       >> (fn key => Thm.declaration_attribute (fn thm =>
   251       >> (fn key => Thm.declaration_attribute (fn thm =>
   252             add key false { inj = [], embed = [], return = [thm], cong = [], hints = [] })))
   252             add key false { inj = [], embed = [], return = [thm], cong = [], hints = [] })))
   253     "install transfer data" #>
   253     "install transfer data" #>
   254     Attrib.setup @{binding transferred}
   254     Attrib.setup @{binding transferred}
   255       (selection -- these (keyword_colon leavingN |-- names)
   255       (selection -- these (keyword_colon leavingN |-- names)
   256         >> (fn (selection, leave) => Thm.rule_attribute (fn context =>
   256         >> (fn (selection, leave) => Thm.rule_attribute [] (fn context =>
   257               Conjunction.intr_balanced o transfer context selection leave)))
   257               Conjunction.intr_balanced o transfer context selection leave)))
   258     "transfer theorems");
   258     "transfer theorems");
   259 
   259 
   260 end;
   260 end;
   261 
   261