src/HOL/ex/Codegenerator_Candidates.thy
author haftmann
Sat, 06 Mar 2010 15:31:30 +0100
changeset 35617 a6528fb99641
parent 35303 816e48d60b13
child 36115 6601c227c5bf
permissions -rw-r--r--
added Table.thy


(* Author: Florian Haftmann, TU Muenchen *)

header {* A huge collection of equations to generate code from *}

theory Codegenerator_Candidates
imports
  Complex_Main
  AssocList
  Binomial
  "~~/src/HOL/Decision_Procs/Commutative_Ring_Complete"
  Dlist
  Fset
  Enum
  List_Prefix
  Nat_Infinity
  Nested_Environment
  Option_ord
  Permutation
  "~~/src/HOL/Number_Theory/Primes"
  Product_ord
  "~~/src/HOL/ex/Records"
  SetsAndFunctions
  Table
  Tree
  While_Combinator
  Word
begin

inductive sublist :: "'a list \<Rightarrow> 'a list \<Rightarrow> bool" where
    empty: "sublist [] xs"
  | drop: "sublist ys xs \<Longrightarrow> sublist ys (x # xs)"
  | take: "sublist ys xs \<Longrightarrow> sublist (x # ys) (x # xs)"

code_pred sublist .

(*avoid popular infix*)
code_reserved SML upto

end