src/HOL/Isar_examples/Peirce.thy
author wenzelm
Tue, 27 Apr 1999 10:45:20 +0200
changeset 6516 09207771cc7c
parent 6493 3489490c948d
child 6746 cf6ad8d22793
permissions -rw-r--r--
added Isar_examples/Cantor.ML;

(*  Title:      HOL/Isar_examples/Peirce.thy
    ID:         $Id$
    Author:     Markus Wenzel, TU Muenchen

Peirce's law: examples of classical proof.
*)

theory Peirce = Main:;


theorem "((A --> B) --> A) --> A";
proof;
  assume ABA: "(A --> B) --> A";
  show A;
  proof (rule classical);
    assume notA: "~ A";

    have AB: "A --> B";
    proof;
      assume A: A;
      from notA A; show B; ..;
    qed;

    from ABA AB; show A; ..;
  qed;
qed;


theorem "((A --> B) --> A) --> A";
proof;
  assume ABA: "(A --> B) --> A";
  show A;
  proof (rule classical);

    assume AB: "A --> B";
    from ABA AB; show A; ..;

    next;
    assume notA: "~ A";
    show "A --> B";
    proof;
      assume A: A;
      from notA A; show B; ..;
    qed;
  qed;
qed;


end;