src/ZF/Constructible/MetaExists.thy
author paulson
Wed Oct 09 11:07:13 2002 +0200 (2002-10-09)
changeset 13634 99a593b49b04
parent 13505 52a16cb7fefb
child 14854 61bdf2ae4dc5
permissions -rw-r--r--
Re-organization of Constructible theories
paulson@13505
     1
(*  Title:      ZF/Constructible/MetaExists.thy
paulson@13505
     2
    ID:         $Id$
paulson@13505
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
paulson@13505
     4
*)
paulson@13505
     5
paulson@13314
     6
header{*The meta-existential quantifier*}
paulson@13314
     7
paulson@13314
     8
theory MetaExists = Main:
paulson@13314
     9
paulson@13314
    10
text{*Allows quantification over any term having sort @{text logic}.  Used to
paulson@13314
    11
quantify over classes.  Yields a proposition rather than a FOL formula.*}
paulson@13314
    12
paulson@13314
    13
constdefs
paulson@13314
    14
  ex :: "(('a::logic) => prop) => prop"            (binder "?? " 0)
paulson@13314
    15
  "ex(P) == (!!Q. (!!x. PROP P(x) ==> PROP Q) ==> PROP Q)"
paulson@13314
    16
paulson@13314
    17
syntax (xsymbols)
paulson@13314
    18
  "?? "        :: "[idts, o] => o"             ("(3\<Or>_./ _)" [0, 0] 0)
paulson@13314
    19
paulson@13314
    20
lemma meta_exI: "PROP P(x) ==> (?? x. PROP P(x))"
wenzelm@13315
    21
proof (unfold ex_def)
paulson@13314
    22
  assume P: "PROP P(x)"
wenzelm@13315
    23
  fix Q
wenzelm@13315
    24
  assume PQ: "\<And>x. PROP P(x) \<Longrightarrow> PROP Q"
wenzelm@13315
    25
  from P show "PROP Q" by (rule PQ)
paulson@13314
    26
qed 
paulson@13314
    27
paulson@13314
    28
lemma meta_exE: "[| ?? x. PROP P(x);  !!x. PROP P(x) ==> PROP R |] ==> PROP R"
wenzelm@13315
    29
proof (unfold ex_def)
paulson@13314
    30
  assume QPQ: "\<And>Q. (\<And>x. PROP P(x) \<Longrightarrow> PROP Q) \<Longrightarrow> PROP Q"
paulson@13314
    31
  assume PR: "\<And>x. PROP P(x) \<Longrightarrow> PROP R"
paulson@13314
    32
  from PR show "PROP R" by (rule QPQ)
paulson@13314
    33
qed
paulson@13314
    34
paulson@13314
    35
end