src/HOL/ex/Mutil.ML
author paulson
Fri, 17 Jan 1997 11:09:19 +0100
changeset 2513 d708d8cdc8e8
parent 2031 03a843f0f447
child 2834 9b47fc57ab7a
permissions -rw-r--r--
New miniscoping rules for the bounded quantifiers and UN/INT operators
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
     1
(*  Title:      HOL/ex/Mutil
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
     2
    ID:         $Id$
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
     4
    Copyright   1996  University of Cambridge
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
     5
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
     6
The Mutilated Chess Board Problem, formalized inductively
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
     7
*)
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
     8
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
     9
open Mutil;
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    10
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    11
Addsimps tiling.intrs;
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    12
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    13
(** The union of two disjoint tilings is a tiling **)
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    14
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    15
goal thy "!!t. t: tiling A ==> \
2513
d708d8cdc8e8 New miniscoping rules for the bounded quantifiers and UN/INT operators
paulson
parents: 2031
diff changeset
    16
\              u: tiling A --> t <= Compl u --> t Un u : tiling A";
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    17
by (etac tiling.induct 1);
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    18
by (Simp_tac 1);
1820
e381e1c51689 Classical tactics now use default claset.
berghofe
parents: 1684
diff changeset
    19
by (fast_tac (!claset addIs tiling.intrs
2513
d708d8cdc8e8 New miniscoping rules for the bounded quantifiers and UN/INT operators
paulson
parents: 2031
diff changeset
    20
                      addss (!simpset addsimps [Un_assoc])) 1);
1911
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
    21
qed_spec_mp "tiling_UnI";
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    22
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    23
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    24
(*** Chess boards ***)
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    25
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    26
val [below_0, below_Suc] = nat_recs below_def;
1911
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
    27
Addsimps [below_0, below_Suc];
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    28
1911
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
    29
goal thy "ALL i. (i: below k) = (i<k)";
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    30
by (nat_ind_tac "k" 1);
1911
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
    31
by (ALLGOALS (asm_simp_tac (!simpset addsimps [less_Suc_eq])));
1820
e381e1c51689 Classical tactics now use default claset.
berghofe
parents: 1684
diff changeset
    32
by (Fast_tac 1);
1911
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
    33
qed_spec_mp "below_less_iff";
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
    34
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
    35
Addsimps [below_less_iff];
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    36
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    37
goal thy "below(Suc n) Times B = ({n} Times B) Un ((below n) Times B)";
1911
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
    38
by (Simp_tac 1);
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
    39
by (Fast_tac 1);
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    40
qed "Sigma_Suc1";
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    41
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    42
goal thy "A Times below(Suc n) = (A Times {n}) Un (A Times (below n))";
1911
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
    43
by (Simp_tac 1);
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
    44
by (Fast_tac 1);
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    45
qed "Sigma_Suc2";
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    46
1911
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
    47
(*Deletion is essential to allow use of Sigma_Suc1,2*)
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
    48
Delsimps [below_Suc];
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
    49
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    50
goal thy "{i} Times below(n + n) : tiling domino";
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    51
by (nat_ind_tac "n" 1);
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    52
by (ALLGOALS (asm_simp_tac (!simpset addsimps [Un_assoc RS sym, Sigma_Suc2])));
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    53
by (resolve_tac tiling.intrs 1);
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    54
by (assume_tac 2);
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    55
by (subgoal_tac    (*seems the easiest way of turning one to the other*)
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    56
    "({i} Times {Suc(n1+n1)}) Un ({i} Times {n1+n1}) = \
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    57
\    {(i, n1+n1), (i, Suc(n1+n1))}" 1);
1911
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
    58
by (Fast_tac 2);
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    59
by (asm_simp_tac (!simpset addsimps [domino.horiz]) 1);
1820
e381e1c51689 Classical tactics now use default claset.
berghofe
parents: 1684
diff changeset
    60
by (fast_tac (!claset addIs [equalityI, lessI] addEs [less_irrefl, less_asym]
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    61
                      addDs [below_less_iff RS iffD1]) 1);
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    62
qed "dominoes_tile_row";
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    63
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    64
goal thy "(below m) Times below(n + n) : tiling domino";
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    65
by (nat_ind_tac "m" 1);
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    66
by (ALLGOALS (asm_simp_tac (!simpset addsimps [Sigma_Suc1])));
1820
e381e1c51689 Classical tactics now use default claset.
berghofe
parents: 1684
diff changeset
    67
by (fast_tac (!claset addIs [equalityI, tiling_UnI, dominoes_tile_row] 
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    68
                      addEs [below_less_iff RS iffD1 RS less_irrefl]) 1);
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    69
qed "dominoes_tile_matrix";
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    70
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    71
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    72
(*** Basic properties of evnodd ***)
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    73
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    74
goalw thy [evnodd_def] "(i,j): evnodd A b = ((i,j): A  &  (i+j) mod 2 = b)";
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    75
by (Simp_tac 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    76
qed "evnodd_iff";
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    77
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    78
goalw thy [evnodd_def] "evnodd A b <= A";
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    79
by (rtac Int_lower1 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    80
qed "evnodd_subset";
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    81
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    82
(* finite X ==> finite(evnodd X b) *)
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    83
bind_thm("finite_evnodd", evnodd_subset RS finite_subset);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    84
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    85
goalw thy [evnodd_def] "evnodd (A Un B) b = evnodd A b Un evnodd B b";
1820
e381e1c51689 Classical tactics now use default claset.
berghofe
parents: 1684
diff changeset
    86
by (Fast_tac 1);
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    87
qed "evnodd_Un";
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    88
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    89
goalw thy [evnodd_def] "evnodd (A - B) b = evnodd A b - evnodd B b";
1820
e381e1c51689 Classical tactics now use default claset.
berghofe
parents: 1684
diff changeset
    90
by (Fast_tac 1);
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    91
qed "evnodd_Diff";
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    92
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    93
goalw thy [evnodd_def] "evnodd {} b = {}";
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    94
by (Simp_tac 1);
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    95
qed "evnodd_empty";
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
    96
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    97
goalw thy [evnodd_def]
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    98
    "evnodd (insert (i,j) C) b = \
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
    99
\    (if (i+j) mod 2 = b then insert (i,j) (evnodd C b) else evnodd C b)";
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   100
by (asm_full_simp_tac (!simpset addsimps [evnodd_def] 
1895
92b30c4829bf Now also Deepen_tac and Best_tac are used.
berghofe
parents: 1820
diff changeset
   101
             setloop (split_tac [expand_if] THEN' Step_tac)) 1);
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   102
qed "evnodd_insert";
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   103
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   104
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   105
(*** Dominoes ***)
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   106
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
   107
goal thy "!!d. [| d:domino; b<2 |] ==> EX i j. evnodd d b = {(i,j)}";
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   108
by (eresolve_tac [domino.elim] 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   109
by (res_inst_tac [("k1", "i+j")] (mod2_cases RS disjE) 2);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   110
by (res_inst_tac [("k1", "i+j")] (mod2_cases RS disjE) 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   111
by (REPEAT_FIRST assume_tac);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   112
(*Four similar cases: case (i+j) mod 2 = b, 2#-b, ...*)
1911
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
   113
by (REPEAT (asm_full_simp_tac (!simpset addsimps
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
   114
                          [less_Suc_eq, evnodd_insert, evnodd_empty, mod_Suc] 
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   115
                          setloop split_tac [expand_if]) 1
1820
e381e1c51689 Classical tactics now use default claset.
berghofe
parents: 1684
diff changeset
   116
           THEN Fast_tac 1));
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   117
qed "domino_singleton";
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   118
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
   119
goal thy "!!d. d:domino ==> finite d";
1820
e381e1c51689 Classical tactics now use default claset.
berghofe
parents: 1684
diff changeset
   120
by (fast_tac (!claset addSIs [finite_insertI, finite_emptyI] 
1911
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
   121
                      addEs [domino.elim]) 1);
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
   122
qed "domino_finite";
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   123
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
   124
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
   125
(*** Tilings of dominoes ***)
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   126
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   127
goal thy "!!t. t:tiling domino ==> finite t";
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   128
by (eresolve_tac [tiling.induct] 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   129
by (rtac finite_emptyI 1);
1820
e381e1c51689 Classical tactics now use default claset.
berghofe
parents: 1684
diff changeset
   130
by (fast_tac (!claset addIs [domino_finite, finite_UnI]) 1);
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   131
qed "tiling_domino_finite";
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   132
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   133
goal thy "!!t. t: tiling domino ==> card(evnodd t 0) = card(evnodd t 1)";
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   134
by (eresolve_tac [tiling.induct] 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   135
by (simp_tac (!simpset addsimps [evnodd_def]) 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   136
by (res_inst_tac [("b1","0")] (domino_singleton RS exE) 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   137
by (Simp_tac 2 THEN assume_tac 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   138
by (res_inst_tac [("b1","1")] (domino_singleton RS exE) 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   139
by (Simp_tac 2 THEN assume_tac 1);
1895
92b30c4829bf Now also Deepen_tac and Best_tac are used.
berghofe
parents: 1820
diff changeset
   140
by (Step_tac 1);
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   141
by (subgoal_tac "ALL p b. p : evnodd a b --> p ~: evnodd ta b" 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   142
by (asm_simp_tac (!simpset addsimps [evnodd_Un, Un_insert_left, 
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   143
                                     tiling_domino_finite,
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   144
                                     evnodd_subset RS finite_subset,
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   145
                                     card_insert_disjoint]) 1);
1820
e381e1c51689 Classical tactics now use default claset.
berghofe
parents: 1684
diff changeset
   146
by (fast_tac (!claset addSDs [evnodd_subset RS subsetD] addEs [equalityE]) 1);
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   147
qed "tiling_domino_0_1";
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   148
1684
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
   149
goal thy "!!m n. [| t = below(Suc m + Suc m) Times below(Suc n + Suc n);   \
3eaf3ab53082 Rearrangement and polishing to look for for publication
paulson
parents: 1673
diff changeset
   150
\                   t' = t - {(0,0)} - {(Suc(m+m), Suc(n+n))}              \
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   151
\                |] ==> t' ~: tiling domino";
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   152
by (rtac notI 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   153
by (dtac tiling_domino_0_1 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   154
by (subgoal_tac "card(evnodd t' 0) < card(evnodd t' 1)" 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   155
by (Asm_full_simp_tac 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   156
by (subgoal_tac "t : tiling domino" 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   157
(*Requires a small simpset that won't move the Suc applications*)
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   158
by (asm_simp_tac (HOL_ss addsimps [dominoes_tile_matrix]) 2);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   159
by (subgoal_tac "(m+m)+(n+n) = (m+n)+(m+n)" 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   160
by (asm_simp_tac (!simpset addsimps add_ac) 2);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   161
by (asm_full_simp_tac 
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   162
    (!simpset addsimps [evnodd_Diff, evnodd_insert, evnodd_empty, 
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   163
                        mod_less, tiling_domino_0_1 RS sym]) 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   164
by (rtac less_trans 1);
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   165
by (REPEAT
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   166
    (rtac card_Diff 1 
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   167
     THEN
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   168
     asm_simp_tac (!simpset addsimps [tiling_domino_finite, finite_evnodd]) 1 
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   169
     THEN
1911
c27e624b6d87 Tidied some proofs
paulson
parents: 1895
diff changeset
   170
     asm_simp_tac (!simpset addsimps [mod_less, evnodd_iff]) 1));
1621
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   171
qed "mutil_not_tiling";
d92f42acdb26 New mutilated checkerboard example
paulson
parents:
diff changeset
   172