src/ZF/ROOT.ML
changeset 6071 1b2392ac5752
parent 6070 032babd0120b
child 6112 5e4871c5136b
equal deleted inserted replaced
6070:032babd0120b 6071:1b2392ac5752
    10 
    10 
    11 val banner = "ZF Set Theory (in FOL)";
    11 val banner = "ZF Set Theory (in FOL)";
    12 writeln banner;
    12 writeln banner;
    13 
    13 
    14 eta_contract:=false;
    14 eta_contract:=false;
    15 
       
    16 (*For Pure/tactic??  A crude way of adding structure to rules*)
       
    17 fun CHECK_SOLVED tac st =
       
    18     case Seq.pull (tac st) of
       
    19         None => error"DO_GOAL: tactic list failed"
       
    20       | Some(x,_) => 
       
    21                 if has_fewer_prems 1 x then
       
    22                     Seq.cons(x, Seq.empty)
       
    23                 else (writeln"DO_GOAL: unsolved goals!!";
       
    24                       writeln"Final proof state was ...";
       
    25                       print_goals (!goals_limit) x;
       
    26                       raise ERROR);
       
    27 
       
    28 fun DO_GOAL tfs = SELECT_GOAL (CHECK_SOLVED (EVERY1 tfs));
       
    29 
    15 
    30 print_depth 1;
    16 print_depth 1;
    31 
    17 
    32 (*Add user sections for inductive/datatype definitions*)
    18 (*Add user sections for inductive/datatype definitions*)
    33 use     "$ISABELLE_HOME/src/Pure/section_utils";
    19 use     "$ISABELLE_HOME/src/Pure/section_utils";