Prove.thy
author Cezary Kaliszyk <kaliszyk@in.tum.de>
Thu, 27 Aug 2009 09:04:39 +0200
changeset 11 0bc0db2e83f2
parent 6 6a1b4c22a386
child 46 e801b929216b
permissions -rw-r--r--
Use metavariables in the 'non-lambda' definitions

theory Prove
imports Main
begin

ML {*
val r = ref (NONE:(unit -> term) option)
*}
ML {*
let
   fun setup_proof (txt, pos) lthy =
   let
     val trm = ML_Context.evaluate lthy true ("r", r) txt
   in
       Proof.theorem_i NONE (K I) [[(trm,[])]] lthy
   end;

   val setup_proof_parser = OuterParse.ML_source >> setup_proof
        
   val kind = OuterKeyword.thy_goal
in
   OuterSyntax.local_theory_to_proof "prove" "proving a proposition" 
    kind setup_proof_parser
end
*}

end