# HG changeset patch # User krauss # Date 1165241709 -3600 # Node ID 369e38e3568668295616f1298c0ecc785f1d3f7f # Parent d1cb78244e30b1e78fd7a809ca597fc965c3f838 fixed definition syntax diff -r d1cb78244e30 -r 369e38e35686 src/HOL/Library/Ramsey.thy --- a/src/HOL/Library/Ramsey.thy Mon Dec 04 00:06:59 2006 +0100 +++ b/src/HOL/Library/Ramsey.thy Mon Dec 04 15:15:09 2006 +0100 @@ -56,6 +56,7 @@ part :: "nat => nat => 'a set => ('a set => nat) => bool" --{*the function @{term f} partitions the @{term r}-subsets of the typically infinite set @{term Y} into @{term s} distinct categories.*} +where "part r s Y f = (\X. X \ Y & finite X & card X = r --> f X < s)" text{*For induction, we decrease the value of @{term r} in partitions.*} @@ -242,9 +243,12 @@ definition disj_wf :: "('a * 'a)set => bool" +where "disj_wf r = (\T. \n::nat. (\ii 'a, nat => ('a*'a)set, nat set] => nat" +where "transition_idx s T A = (LEAST k. \i j. A = {i,j} & i T k)"