src/HOL/Tools/Sledgehammer/sledgehammer_isar_minimize.ML
changeset 55264 43473497fb65
parent 55263 4d63fffcde8d
child 55265 bd9f033b9896
equal deleted inserted replaced
55263:4d63fffcde8d 55264:43473497fb65
    41               Played time => minimize_facts mk_step time min_facts facts
    41               Played time => minimize_facts mk_step time min_facts facts
    42             | _ => minimize_facts mk_step time (f :: min_facts) facts)
    42             | _ => minimize_facts mk_step time (f :: min_facts) facts)
    43 
    43 
    44         val (time, min_lfs) = minimize_facts (fn lfs => mk_step_lfs_gfs lfs gfs) time [] lfs
    44         val (time, min_lfs) = minimize_facts (fn lfs => mk_step_lfs_gfs lfs gfs) time [] lfs
    45         val (time, min_gfs) = minimize_facts (mk_step_lfs_gfs min_lfs) time [] gfs
    45         val (time, min_gfs) = minimize_facts (mk_step_lfs_gfs min_lfs) time [] gfs
       
    46 
       
    47         val step' = mk_step_lfs_gfs min_lfs min_gfs
    46       in
    48       in
    47         set_preplay_outcomes_of_isar_step preplay_data l [(meth, Lazy.value (Played time))];
    49         set_preplay_outcomes_of_isar_step ctxt time preplay_data step'
    48         mk_step_lfs_gfs min_lfs min_gfs
    50           [(meth, Lazy.value (Played time))];
       
    51         step'
    49       end
    52       end
    50     | _ => step (* don't touch steps that time out or fail *))
    53     | _ => step (* don't touch steps that time out or fail *))
    51 
    54 
    52 fun postprocess_isar_proof_remove_unreferenced_steps postproc_step =
    55 fun postprocess_isar_proof_remove_unreferenced_steps postproc_step =
    53   let
    56   let