# HG changeset patch # User wenzelm # Date 1465206613 -7200 # Node ID e53830948c4f5bb20d9d61393b2c2a63fe1a4bb1 # Parent 7238ed9a27ab0183306fc524aef8530f0c0dc39c tuned; diff -r 7238ed9a27ab -r e53830948c4f src/HOL/Induct/Common_Patterns.thy --- a/src/HOL/Induct/Common_Patterns.thy Mon Jun 06 10:34:56 2016 +0200 +++ b/src/HOL/Induct/Common_Patterns.thy Mon Jun 06 11:50:13 2016 +0200 @@ -287,7 +287,7 @@ inductive Even :: "nat \ bool" where zero: "Even 0" -| double: "Even n \ Even (2 * n)" +| double: "Even (2 * n)" if "Even n" for n lemma assumes "Even n" @@ -349,8 +349,8 @@ inductive Evn :: "nat \ bool" and Odd :: "nat \ bool" where zero: "Evn 0" -| succ_Evn: "Evn n \ Odd (Suc n)" -| succ_Odd: "Odd n \ Evn (Suc n)" +| succ_Evn: "Odd (Suc n)" if "Evn n" for n +| succ_Odd: "Evn (Suc n)" if "Odd n" for n lemma "Evn n \ P1 n" @@ -384,8 +384,8 @@ inductive star :: "('a \ 'a \ bool) \ 'a \ 'a \ bool" for r where - refl: "star r x x" -| step: "r x y \ star r y z \ star r x z" + refl: "star r x x" for x +| step: "star r x z" if "r x y" and "star r y z" for x y z text \Underscores are replaced by the default name hyps:\ diff -r 7238ed9a27ab -r e53830948c4f src/HOL/Induct/Sigma_Algebra.thy --- a/src/HOL/Induct/Sigma_Algebra.thy Mon Jun 06 10:34:56 2016 +0200 +++ b/src/HOL/Induct/Sigma_Algebra.thy Mon Jun 06 11:50:13 2016 +0200 @@ -13,13 +13,12 @@ definitions in classical mathematics. We define the least \\\-algebra over a given set of sets. \ -inductive_set \_algebra :: "'a set set \ 'a set set" - for A :: "'a set set" +inductive_set \_algebra :: "'a set set \ 'a set set" for A :: "'a set set" where - basic: "a \ \_algebra A" if "a \ A" + basic: "a \ \_algebra A" if "a \ A" for a | UNIV: "UNIV \ \_algebra A" -| complement: "- a \ \_algebra A" if "a \ \_algebra A" -| Union: "(\i. a i) \ \_algebra A" if "\i::nat. a i \ \_algebra A" +| complement: "- a \ \_algebra A" if "a \ \_algebra A" for a +| Union: "(\i. a i) \ \_algebra A" if "\i::nat. a i \ \_algebra A" for a text \ The following basic facts are consequences of the closure properties