src/HOL/ex/Case_Product.thy
author wenzelm
Sat, 23 May 2015 17:19:37 +0200
changeset 60299 5ae2a2e74c93
parent 58889 5b7a9633cfa8
child 61343 5b5656a63bd6
permissions -rw-r--r--
clarified NEWS: document_files are officially required since Isabelle2014, but the absence was tolerated as legacy feature;

(*  Title:      HOL/ex/Case_Product.thy
    Author:     Lars Noschinski
    Copyright   2011 TU Muenchen
*)

section {* Examples for the 'case_product' attribute *}

theory Case_Product
imports Main
begin

text {*
  The {@attribute case_product} attribute combines multiple case distinction
  lemmas into a single case distinction lemma by building the product of all
  these case distinctions.
*}

lemmas nat_list_exhaust = nat.exhaust[case_product list.exhaust]

text {*
  The attribute honors preconditions
*}

lemmas trancl_acc_cases= trancl.cases[case_product acc.cases]

text {*
  Also, case names are generated based on the old names
*}

end