src/ZF/ex/Mutil.thy
author paulson
Thu, 28 Mar 1996 10:56:10 +0100
changeset 1624 e2a6102b9369
parent 1606 dd66bed09592
child 1702 4aa538e82f76
permissions -rw-r--r--
Alternative proof removes dependence upon AC
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1606
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
     1
(*  Title:      ZF/ex/Mutil
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
     2
    ID:         $Id$
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
     4
    Copyright   1996  University of Cambridge
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
     5
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
     6
The Mutilated Checkerboard Problem, formalized inductively
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
     7
*)
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
     8
1624
e2a6102b9369 Alternative proof removes dependence upon AC
paulson
parents: 1606
diff changeset
     9
Mutil = CardinalArith +
1606
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    10
consts
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    11
  domino  :: i
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    12
  evnodd  :: [i,i]=>i
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    13
  tiling  :: i=>i
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    14
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    15
inductive
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    16
  domains "domino" <= "Pow(nat*nat)"
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    17
  intrs
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    18
    horiz  "[| i: nat;  j: nat |] ==> {<i,j>, <i,succ(j)>} : domino"
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    19
    vertl  "[| i: nat;  j: nat |] ==> {<i,j>, <succ(i),j>} : domino"
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    20
  type_intrs "[empty_subsetI, cons_subsetI, PowI, SigmaI, nat_succI]"
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    21
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    22
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    23
defs
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    24
  evnodd_def "evnodd(A,b) == {z:A. EX i j. z=<i,j> & (i#+j) mod 2 = b}"
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    25
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    26
inductive
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    27
    domains "tiling(A)" <= "Pow(Union(A))"
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    28
  intrs
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    29
    empty  "0 : tiling(A)"
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    30
    Un     "[| a: A;  t: tiling(A);  a Int t = 0 |] ==> a Un t : tiling(A)"
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    31
  type_intrs "[empty_subsetI, Union_upper, Un_least, PowI]"
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    32
  type_elims "[make_elim PowD]"
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    33
dd66bed09592 New example: mutilated checkerboard
paulson
parents:
diff changeset
    34
end