src/Tools/isac/BridgeLibisabelle/thy-present.sml
author wneuper <walther.neuper@jku.at>
Thu, 22 Apr 2021 16:21:23 +0200
changeset 60255 5497a3d67d96
parent 60223 740ebee5948b
permissions -rw-r--r--
purge code for theory hierarchy
walther@59848
     1
(* 
neuper@37906
     2
   authors: Walther Neuper 2002, 2006
neuper@37906
     3
  (c) due to copyright terms
walther@59848
     4
walther@59848
     5
tools for rewriting, reverse rewriting, context to thy concerning rewriting
neuper@37906
     6
*)
neuper@37906
     7
walther@59917
     8
signature THEORY_DATA_PRESENTATION =
wneuper@59263
     9
sig
walther@59918
    10
  eqtype filename
walther@59918
    11
walther@59918
    12
  val guh2filename : Check_Unique.id -> filename
walther@59851
    13
  val thms_of_rls : Rule_Set.T -> Rule.rule list
wneuper@59263
    14
end 
walther@59848
    15
(**)
walther@59917
    16
structure Thy_Present(**): THEORY_DATA_PRESENTATION(**) =
wneuper@59263
    17
struct
walther@59848
    18
(**)
wneuper@59313
    19
walther@59918
    20
type filename = string;
walther@59918
    21
neuper@42372
    22
(* get all theorems in a rule set (recursivley containing rule sets) *)
wneuper@59416
    23
fun thm_of_rule Rule.Erule = []
wneuper@59416
    24
  | thm_of_rule (thm as Rule.Thm _) = [thm]
walther@59878
    25
  | thm_of_rule (Rule.Eval _) = []
wneuper@59416
    26
  | thm_of_rule (Rule.Cal1 _) = []
wneuper@59416
    27
  | thm_of_rule (Rule.Rls_ rls) = thms_of_rls rls
walther@59851
    28
and thms_of_rls Rule_Set.Empty = []
walther@59851
    29
  | thms_of_rls (Rule_Def.Repeat {rules,...}) = (flat o (map  thm_of_rule)) rules
walther@59878
    30
  | thms_of_rls (Rule_Set.Sequence {rules,...}) = (flat o (map  thm_of_rule)) rules
walther@59850
    31
  | thms_of_rls (Rule_Set.Rrls _) = []
neuper@37906
    32
wneuper@59405
    33
fun guh2filename guh = guh ^ ".xml";
neuper@37906
    34
walther@59906
    35
(**)end(**)