src/HOL/UNITY/UNITY_Main.thy
author wenzelm
Fri Mar 28 19:43:54 2008 +0100 (2008-03-28)
changeset 26462 dac4e2bce00d
parent 24147 edc90be09ac1
child 27882 eaa9fef9f4c1
permissions -rw-r--r--
avoid rebinding of existing facts;
paulson@13786
     1
(*  Title:      HOL/UNITY/UNITY_Main.thy
paulson@13786
     2
    ID:         $Id$
paulson@13786
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
paulson@13786
     4
    Copyright   2003  University of Cambridge
paulson@13798
     5
*)
paulson@13786
     6
paulson@13798
     7
header{*Comprehensive UNITY Theory*}
paulson@13786
     8
haftmann@16417
     9
theory UNITY_Main imports Detects PPROD Follows ProgressSets
haftmann@16417
    10
uses "UNITY_tactics.ML" begin
paulson@13786
    11
paulson@16184
    12
method_setup safety = {*
paulson@13786
    13
    Method.ctxt_args (fn ctxt =>
wenzelm@24147
    14
        Method.SIMPLE_METHOD' (constrains_tac (local_clasimpset_of ctxt))) *}
paulson@13786
    15
    "for proving safety properties"
paulson@13786
    16
paulson@13786
    17
method_setup ensures_tac = {*
paulson@13786
    18
    fn args => fn ctxt =>
wenzelm@21588
    19
        Method.goal_args' (Scan.lift Args.name)
wenzelm@24147
    20
           (ensures_tac (local_clasimpset_of ctxt))
paulson@13786
    21
           args ctxt *}
paulson@13786
    22
    "for proving progress properties"
paulson@13786
    23
paulson@13786
    24
end