<commit_before><commit_msg>Object logic specific operations.<commit_after>(*  Title:      Pure/object_logic.ML
    ID:         $Id$
    Author:     <NAME>, <NAME>

Object logic specific operations.

TODO:
  - theory data instead of hardwired operations (!!);
*)

signature OBJECT_LOGIC =
sig
  val dest_statement: string * term -> (string * term) list
  val setup: (theory -> theory) list
end;

structure ObjectLogic: OBJECT_LOGIC =
struct


fun dest_statement (name, prop) =
  let val concl = Logic.strip_imp_concl prop in
    [(name ^ "_prop", prop), (name ^ "_concl", concl)] @
      (case concl of Const ("Trueprop", _) $ t => [(name, t)] | _ => [])
  end;


(* FIXME *)
val setup = [];

end;
{'fraction_non_alphanumeric': 0.14224137931034483, 'fraction_numerical': 0.0, 'mean_word_length': 3.3836477987421385, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4087360', 'n_tokens_mistral': 235, 'n_tokens_neox': 231, 'n_words': 71}