# HG changeset patch # User wenzelm # Date 966257849 -7200 # Node ID b732997cfc11306c9f94fd6b0b6c58443fbb77d3 # Parent abbd48606a0a981eb410ce846591863861ef8f6b tuned names; diff -r abbd48606a0a -r b732997cfc11 src/HOL/arith_data.ML --- a/src/HOL/arith_data.ML Mon Aug 14 14:53:47 2000 +0200 +++ b/src/HOL/arith_data.ML Mon Aug 14 14:57:29 2000 +0200 @@ -262,7 +262,7 @@ (* arith theory data *) -structure ArithDataArgs = +structure ArithTheoryDataArgs = struct val name = "HOL/arith"; type T = {splits: thm list, discrete: (string * bool) list}; @@ -276,12 +276,12 @@ fun print _ _ = (); end; -structure ArithData = TheoryDataFun(ArithDataArgs); +structure ArithTheoryData = TheoryDataFun(ArithTheoryDataArgs); -fun arith_split_add (thy, thm) = (ArithData.map (fn {splits, discrete} => +fun arith_split_add (thy, thm) = (ArithTheoryData.map (fn {splits, discrete} => {splits = thm :: splits, discrete = discrete}) thy, thm); -fun arith_discrete d = ArithData.map (fn {splits, discrete} => +fun arith_discrete d = ArithTheoryData.map (fn {splits, discrete} => {splits = splits, discrete = d :: discrete}); @@ -342,7 +342,7 @@ negate(decomp1 discrete (T,(rel,lhs,rhs))) | decomp2 discrete _ = None -val decomp = decomp2 o #discrete o ArithData.get_sg; +val decomp = decomp2 o #discrete o ArithTheoryData.get_sg; end; @@ -377,7 +377,7 @@ {add_mono_thms = add_mono_thms @ add_mono_thms_nat, lessD = lessD @ [Suc_leI], simpset = HOL_basic_ss addsimps add_rules addsimprocs nat_cancel_sums_add}), - ArithData.init, arith_discrete ("nat", true)]; + ArithTheoryData.init, arith_discrete ("nat", true)]; end; @@ -407,7 +407,7 @@ (l <= min m n + k) = (l <= m+k & l <= n+k) *) fun arith_tac i st = - refute_tac (K true) (REPEAT o split_tac (#splits (ArithData.get_sg (Thm.sign_of_thm st)))) + refute_tac (K true) (REPEAT o split_tac (#splits (ArithTheoryData.get_sg (Thm.sign_of_thm st)))) ((REPEAT_DETERM o etac linorder_neqE) THEN' fast_arith_tac) i st; fun arith_method prems =