src/CCL/Fix.thy
author berghofe
Fri, 16 Jul 1999 12:14:04 +0200
changeset 7015 85be09eb136c
parent 3837 d7f033c74b38
child 17456 bcf7544875b2
permissions -rw-r--r--
- Datatype package now also supports arbitrarily branching datatypes (using function types). - Added new simplification procedure for proving distinctness of constructors. - dtK is now a reference.

(*  Title:      CCL/Lazy/fix.thy
    ID:         $Id$
    Author:     Martin Coen
    Copyright   1993  University of Cambridge

Tentative attempt at including fixed point induction.
Justified by Smith.
*)

Fix = Type + 

consts

  idgen      ::       "[i]=>i"
  INCL      :: "[i=>o]=>o"

rules

  idgen_def
  "idgen(f) == lam t. case(t,true,false,%x y.<f`x, f`y>,%u. lam x. f ` u(x))"

  INCL_def   "INCL(%x. P(x)) == (ALL f.(ALL n:Nat. P(f^n`bot)) --> P(fix(f)))"
  po_INCL    "INCL(%x. a(x) [= b(x))"
  INCL_subst "INCL(P) ==> INCL(%x. P((g::i=>i)(x)))"

end