src/ZF/ROOT.ML
changeset 4271 3a82492e70c5
parent 4262 e4113a682883
child 5511 7f52fb755581
equal deleted inserted replaced
4270:957c887b89b5 4271:3a82492e70c5
    13 
    13 
    14 eta_contract:=false;
    14 eta_contract:=false;
    15 
    15 
    16 (*For Pure/tactic??  A crude way of adding structure to rules*)
    16 (*For Pure/tactic??  A crude way of adding structure to rules*)
    17 fun CHECK_SOLVED tac st =
    17 fun CHECK_SOLVED tac st =
    18     case Sequence.pull (tac st) of
    18     case Seq.pull (tac st) of
    19         None => error"DO_GOAL: tactic list failed"
    19         None => error"DO_GOAL: tactic list failed"
    20       | Some(x,_) => 
    20       | Some(x,_) => 
    21                 if has_fewer_prems 1 x then
    21                 if has_fewer_prems 1 x then
    22                     Sequence.cons(x, Sequence.null)
    22                     Seq.cons(x, Seq.empty)
    23                 else (writeln"DO_GOAL: unsolved goals!!";
    23                 else (writeln"DO_GOAL: unsolved goals!!";
    24                       writeln"Final proof state was ...";
    24                       writeln"Final proof state was ...";
    25                       print_goals (!goals_limit) x;
    25                       print_goals (!goals_limit) x;
    26                       raise ERROR);
    26                       raise ERROR);
    27 
    27