doc-src/IsarAdvanced/Codegen/Thy/examples/lexicographic.ML
author huffman
Thu, 08 Jan 2009 10:43:09 -0800
changeset 29409 f0a8fe83bc07
parent 26513 6f306c8c2c54
permissions -rw-r--r--
add lemma dvd_diff to class comm_ring_1

structure HOL = 
struct

type 'a eq = {eq : 'a -> 'a -> bool};
fun eq (A_:'a eq) = #eq A_;

type 'a ord = {less_eq : 'a -> 'a -> bool, less : 'a -> 'a -> bool};
fun less_eq (A_:'a ord) = #less_eq A_;
fun less (A_:'a ord) = #less A_;

end; (*struct HOL*)

structure Codegen = 
struct

fun less_eq (A1_, A2_) B_ (x1, y1) (x2, y2) =
  HOL.less A2_ x1 x2 orelse HOL.eq A1_ x1 x2 andalso HOL.less_eq B_ y1 y2;

end; (*struct Codegen*)