src/LCF/ex/Ex3.thy
author obua
Sun, 09 May 2004 23:04:36 +0200
changeset 14722 8e739a6eaf11
parent 4905 be73ddff6c5a
child 17248 81bf91654e73
permissions -rw-r--r--
replaced apply-style proof for instance Multiset :: plus_ac0 by recommended Isar proof style
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4905
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     1
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     2
(*** Addition with fixpoint of successor ***)
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     3
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     4
Ex3 = LCF +
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     5
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     6
consts
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     7
  s	:: "'a => 'a"
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     8
  p	:: "'a => 'a => 'a"
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
     9
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
    10
rules
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
    11
  p_strict	"p(UU) = UU"
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
    12
  p_s		"p(s(x),y) = s(p(x,y))"
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
    13
be73ddff6c5a proper thy files;
wenzelm
parents:
diff changeset
    14
end