src/HOL/Tools/Predicate_Compile/predicate_compile_core.ML
changeset 35267 8dfd816713c6
parent 35021 c839a4c670c6
child 35324 c9f428269b38
equal deleted inserted replaced
35266:07a56610c00b 35267:8dfd816713c6
  2434     fn prem => fn additional_arguments =>
  2434     fn prem => fn additional_arguments =>
  2435     let
  2435     let
  2436       val [polarity, depth] = additional_arguments
  2436       val [polarity, depth] = additional_arguments
  2437       val polarity' = (case prem of Prem _ => I | Negprem _ => HOLogic.mk_not | _ => I) polarity
  2437       val polarity' = (case prem of Prem _ => I | Negprem _ => HOLogic.mk_not | _ => I) polarity
  2438       val depth' =
  2438       val depth' =
  2439         Const ("Algebras.minus", @{typ "code_numeral => code_numeral => code_numeral"})
  2439         Const (@{const_name Groups.minus}, @{typ "code_numeral => code_numeral => code_numeral"})
  2440           $ depth $ Const ("Algebras.one", @{typ "Code_Numeral.code_numeral"})
  2440           $ depth $ Const (@{const_name Groups.one}, @{typ "Code_Numeral.code_numeral"})
  2441     in [polarity', depth'] end
  2441     in [polarity', depth'] end
  2442   }
  2442   }
  2443 
  2443 
  2444 val random_comp_modifiers = Comp_Mod.Comp_Modifiers
  2444 val random_comp_modifiers = Comp_Mod.Comp_Modifiers
  2445   {
  2445   {