doc-src/Tutorial/Ifexpr/normal
author kleing
Mon, 15 Oct 2001 21:04:32 +0200
changeset 11787 85b3735a51e1
parent 5377 efb799c5ed3c
permissions -rw-r--r--
canonical 'cases'/'induct' rules for n-tuples (n=3..7) (really belongs to theory Product_Type, but doesn't work there yet)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5377
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     1
consts normal :: ifex => bool
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     2
primrec
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     3
"normal(CIF b) = True"
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     4
"normal(VIF x) = True"
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     5
"normal(IF b t e) = (normal t & normal e &
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     6
      (case b of CIF b => True | VIF x => True | IF x y z => False))"