src/ZF/AC/AC1_AC17.ML
author paulson
Thu, 07 Jan 1999 18:30:55 +0100
changeset 6070 032babd0120b
parent 5137 60205b0de9b9
child 11317 7f9e4c389318
permissions -rw-r--r--
ZF: the natural numbers as a datatype

(*  Title:      ZF/AC/AC1_AC17.ML
    ID:         $Id$
    Author:     Krzysztof Grabczewski

The proof of AC1 ==> AC17
*)

Goal "f : (PROD X:Pow(A) - {0}. X) ==> f : (Pow(A) - {0} -> A)";
by (rtac Pi_type 1 THEN (assume_tac 1));
by (dtac apply_type 1 THEN (assume_tac 1));
by (Fast_tac 1);
val lemma1 = result();

Goalw AC_defs "AC1 ==> AC17";
by (rtac allI 1);
by (rtac ballI 1);
by (eres_inst_tac [("x","Pow(A)-{0}")] allE 1);
by (etac impE 1);
by (Fast_tac 1);
by (etac exE 1);
by (rtac bexI 1);
by (etac lemma1 2);
by (rtac apply_type 1 THEN (assume_tac 1));
by (fast_tac (claset() addSDs [lemma1] addSEs [apply_type]) 1);
qed "AC1_AC17";