diff -r 5b01f7c233f8 -r a33d3040bf7e Attic/ProofAutomation.thy --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Attic/ProofAutomation.thy Fri Feb 05 10:16:10 2016 +0000 @@ -0,0 +1,36 @@ +theory ProofAutomation +imports Main +begin + +lemma "\x. \y. x = y" +by auto + +lemma "A \ B \ C \ A \ B \ C" +by auto + +lemma "\ \ xs \ A. \ ys. xs = ys @ ys; us \ A \ \ \n. length us = n+n" +by fastforce + +lemma "\xs @ ys = ys @ xs; length xs = length ys \ \ xs = ys" +by auto + +lemma "\ (a::nat) \ x + b; 2*x < c\ \ 2*a + 1 \ 2*b + c" +by arith + +lemma "\ (a::nat) \ b; b \ c; c \ d; d \ e \ \ a \ e" +by (blast intro: le_trans) + +lemma "Suc(Suc(Suc a)) \ b \ a \ b" +by(blast dest: Suc_leD) + +inductive ev :: "nat \ bool" where +ev0: "ev 0" | +evSS: "ev n \ ev (n + 2)" + +fun even :: "nat \ bool" where +"even 0 = True" | +"even (Suc 0) = False" | +"even (Suc(Suc n)) = even n" + +lemma "ev m \ even m" +