thys2/Recs.thy
changeset 281 00ac265b251b
parent 269 fa40fd8abb54
child 293 8b55240e12c6
equal deleted inserted replaced
280:19a4ac992823 281:00ac265b251b
   567 by (induct n) (simp_all add: rec_iter_def)
   567 by (induct n) (simp_all add: rec_iter_def)
   568 
   568 
   569 
   569 
   570 section {* Bounded Maximisation *}
   570 section {* Bounded Maximisation *}
   571 
   571 
       
   572 
   572 fun BMax_rec where
   573 fun BMax_rec where
   573   "BMax_rec R 0 = 0"
   574   "BMax_rec R 0 = 0"
   574 | "BMax_rec R (Suc n) = (if R (Suc n) then (Suc n) else BMax_rec R n)"
   575 | "BMax_rec R (Suc n) = (if R (Suc n) then (Suc n) else BMax_rec R n)"
   575 
   576 
   576 definition 
   577 definition