src/Pure/Pure.thy
changeset 15803 42c75e0c9140
child 15824 222eeb9655f3
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/Pure/Pure.thy	Thu Apr 21 22:06:00 2005 +0200
     1.3 @@ -0,0 +1,34 @@
     1.4 +(*  Title:      Pure/Pure.thy
     1.5 +    ID:         $Id$
     1.6 +    Author:     Larry Paulson and Makarius
     1.7 +
     1.8 +The Pure theory.
     1.9 +*)
    1.10 +
    1.11 +theory Pure
    1.12 +imports ProtoPure
    1.13 +begin
    1.14 +
    1.15 +setup "Context.setup ()"
    1.16 +
    1.17 +
    1.18 +text{*These meta-level elimination rules facilitate the use of assumptions
    1.19 +that contain !! and ==>, especially in linear scripts. *}
    1.20 +
    1.21 +lemma meta_mp:
    1.22 +  assumes major: "PROP P ==> PROP Q" and minor: "PROP P"
    1.23 +  shows "PROP Q"
    1.24 +proof -
    1.25 +  show "PROP Q" by (rule major [OF minor])
    1.26 +qed
    1.27 +
    1.28 +lemma meta_spec:
    1.29 +  assumes major: "!!x. PROP P(x)"
    1.30 +  shows "PROP P(x)"
    1.31 +proof -
    1.32 +  show "PROP P(x)" by (rule major)
    1.33 +qed
    1.34 +
    1.35 +lemmas meta_allE = meta_spec [elim_format]
    1.36 +
    1.37 +end