src/HOL/Isar_examples/Cantor.ML
author paulson
Tue, 20 Jun 2000 11:41:07 +0200
changeset 9086 e4592e43e703
parent 7578 80525697a87c
child 9474 b0ce3b7c9c26
permissions -rw-r--r--
now setsum f A = 0 unless A is finite; proved setsum_cong


(* tactic script -- single steps *)

Goal "EX S. S ~: range(f :: 'a => 'a set)";
  by (rtac exI 1);
  by (rtac notI 1);
  by (etac rangeE 1);
  by (etac equalityCE 1);
  by (dtac CollectD 1);
  by (contr_tac 1);
  by (swap_res_tac [CollectI] 1);
  by (assume_tac 1);
qed "";


(* tactic script -- automatic *)

Goal "EX S. S ~: range(f :: 'a => 'a set)";
  by (best_tac (claset() addSEs [equalityCE]) 1);
qed "";