src/HOL/Induct/Acc.thy
author wenzelm
Wed, 06 Oct 1999 18:15:22 +0200
changeset 7759 44dd5dc8e90f
parent 7721 cb353d802ade
child 7800 8ee919e42174
permissions -rw-r--r--
tuned presentation;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3120
c58423c20740 New directory to contain examples of (co)inductive definitions
paulson
parents:
diff changeset
     1
(*  Title:      HOL/ex/Acc.thy
c58423c20740 New directory to contain examples of (co)inductive definitions
paulson
parents:
diff changeset
     2
    ID:         $Id$
c58423c20740 New directory to contain examples of (co)inductive definitions
paulson
parents:
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
c58423c20740 New directory to contain examples of (co)inductive definitions
paulson
parents:
diff changeset
     4
    Copyright   1994  University of Cambridge
c58423c20740 New directory to contain examples of (co)inductive definitions
paulson
parents:
diff changeset
     5
c58423c20740 New directory to contain examples of (co)inductive definitions
paulson
parents:
diff changeset
     6
Inductive definition of acc(r)
c58423c20740 New directory to contain examples of (co)inductive definitions
paulson
parents:
diff changeset
     7
c58423c20740 New directory to contain examples of (co)inductive definitions
paulson
parents:
diff changeset
     8
See Ch. Paulin-Mohring, Inductive Definitions in the System Coq.
c58423c20740 New directory to contain examples of (co)inductive definitions
paulson
parents:
diff changeset
     9
Research Report 92-49, LIP, ENS Lyon.  Dec 1992.
c58423c20740 New directory to contain examples of (co)inductive definitions
paulson
parents:
diff changeset
    10
*)
c58423c20740 New directory to contain examples of (co)inductive definitions
paulson
parents:
diff changeset
    11
7759
44dd5dc8e90f tuned presentation;
wenzelm
parents: 7721
diff changeset
    12
header {* The acessible part of a relation *};
44dd5dc8e90f tuned presentation;
wenzelm
parents: 7721
diff changeset
    13
44dd5dc8e90f tuned presentation;
wenzelm
parents: 7721
diff changeset
    14
theory Acc = WF + Inductive:;
3120
c58423c20740 New directory to contain examples of (co)inductive definitions
paulson
parents:
diff changeset
    15
c58423c20740 New directory to contain examples of (co)inductive definitions
paulson
parents:
diff changeset
    16
consts
7759
44dd5dc8e90f tuned presentation;
wenzelm
parents: 7721
diff changeset
    17
  acc  :: "('a * 'a)set => 'a set"  -- {* accessible part *};
3120
c58423c20740 New directory to contain examples of (co)inductive definitions
paulson
parents:
diff changeset
    18
7721
cb353d802ade Tuned inductive definition.
berghofe
parents: 5717
diff changeset
    19
inductive "acc r"
3120
c58423c20740 New directory to contain examples of (co)inductive definitions
paulson
parents:
diff changeset
    20
  intrs
7721
cb353d802ade Tuned inductive definition.
berghofe
parents: 5717
diff changeset
    21
    accI [rulify_prems]: "ALL y. (y, x) : r --> y : acc r ==> x : acc r"
cb353d802ade Tuned inductive definition.
berghofe
parents: 5717
diff changeset
    22
3120
c58423c20740 New directory to contain examples of (co)inductive definitions
paulson
parents:
diff changeset
    23
5273
70f478d55606 Added macro `termi'
nipkow
parents: 5102
diff changeset
    24
syntax        termi :: "('a * 'a)set => 'a set"
70f478d55606 Added macro `termi'
nipkow
parents: 5102
diff changeset
    25
translations "termi r" == "acc(r^-1)"
70f478d55606 Added macro `termi'
nipkow
parents: 5102
diff changeset
    26
3120
c58423c20740 New directory to contain examples of (co)inductive definitions
paulson
parents:
diff changeset
    27
end