src/HOL/Codegenerator_Test/Candidates.thy
author wenzelm
Sun, 25 Jan 2015 18:31:35 +0100
changeset 59442 9f45b95d3543
parent 58889 5b7a9633cfa8
child 59484 a130ae7a9398
permissions -rw-r--r--
make it independent from GUI thread, e.g. for Graph_File.write;


(* Author: Florian Haftmann, TU Muenchen *)

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

theory Candidates
imports
  Complex_Main
  "~~/src/HOL/Library/Library"
  "~~/src/HOL/Library/Sublist_Order"
  "~~/src/HOL/Number_Theory/Eratosthenes"
  "~~/src/HOL/ex/Records"
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 .

code_reserved SML upto -- {* avoid popular infix *}

end