src/HOL/BNF_Examples/IsaFoR_Datatypes.thy
author blanchet
Thu, 24 Jul 2014 00:24:00 +0200
changeset 57634 efc00b9b8680
parent 57586 5efff4075b63
child 58139 e4c69c0985f5
permissions -rw-r--r--
tuning
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
     1
(*  Title:      HOL/BNF_Examples/IsaFoR_Datatypes.thy
57634
blanchet
parents: 57586
diff changeset
     2
    Author:     Rene Thiemann, UIBK
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
     3
    Copyright   2014
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
     4
57634
blanchet
parents: 57586
diff changeset
     5
Benchmark consisting of datatypes defined in IsaFoR.
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
     6
*)
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
     7
57634
blanchet
parents: 57586
diff changeset
     8
header {* Benchmark Consisting of Datatypes Defined in IsaFoR *}
blanchet
parents: 57586
diff changeset
     9
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    10
theory IsaFoR_Datatypes
57634
blanchet
parents: 57586
diff changeset
    11
imports Real
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    12
begin
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    13
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    14
datatype_new ('f, 'l) lab =
57634
blanchet
parents: 57586
diff changeset
    15
    Lab "('f, 'l) lab" 'l
blanchet
parents: 57586
diff changeset
    16
  | FunLab "('f, 'l) lab" "('f, 'l) lab list"
blanchet
parents: 57586
diff changeset
    17
  | UnLab 'f
blanchet
parents: 57586
diff changeset
    18
  | Sharp "('f, 'l) lab"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    19
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    20
datatype_new 'f projL = Projection "(('f \<times> nat) \<times> nat) list"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    21
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    22
datatype_new ('f, 'v) "term" = Var 'v | Fun 'f "('f, 'v) term list"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    23
datatype_new ('f, 'v) ctxt =
57634
blanchet
parents: 57586
diff changeset
    24
    Hole ("\<box>")
blanchet
parents: 57586
diff changeset
    25
  | More 'f "('f, 'v) term list" "('f, 'v) ctxt" "('f, 'v) term list"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    26
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    27
type_synonym ('f, 'v) rule = "('f, 'v) term \<times> ('f, 'v) term"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    28
type_synonym ('f, 'v) trs  = "('f, 'v) rule set"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    29
57634
blanchet
parents: 57586
diff changeset
    30
type_synonym ('f, 'v) rules = "('f, 'v) rule list"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    31
type_synonym ('f, 'l, 'v) ruleLL  = "(('f, 'l) lab, 'v) rule"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    32
type_synonym ('f, 'l, 'v) trsLL   = "(('f, 'l) lab, 'v) rules"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    33
type_synonym ('f, 'l, 'v) termsLL = "(('f, 'l) lab, 'v) term list"
57634
blanchet
parents: 57586
diff changeset
    34
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    35
datatype_new pos = Empty ("\<epsilon>") | PCons "nat" "pos" (infixr "<#" 70)
57634
blanchet
parents: 57586
diff changeset
    36
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    37
type_synonym  ('f, 'v) prseq = "(pos \<times> ('f, 'v) rule \<times> bool \<times> ('f, 'v) term) list"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    38
type_synonym  ('f, 'v) rseq = "(pos \<times> ('f, 'v) rule \<times> ('f, 'v) term) list"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    39
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    40
type_synonym ('f, 'l, 'v) rseqL   = "((('f, 'l) lab, 'v) rule \<times> (('f, 'l) lab, 'v) rseq) list"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    41
type_synonym ('f, 'l, 'v) dppLL   =
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    42
  "bool \<times> bool \<times> ('f, 'l, 'v) trsLL \<times> ('f, 'l, 'v) trsLL \<times>
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    43
  ('f, 'l, 'v) termsLL \<times>
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    44
  ('f, 'l, 'v) trsLL \<times> ('f, 'l, 'v) trsLL"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    45
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    46
type_synonym ('f, 'l, 'v) qreltrsLL =
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    47
  "bool \<times> ('f, 'l, 'v) termsLL \<times> ('f, 'l, 'v) trsLL \<times> ('f, 'l, 'v) trsLL"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    48
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    49
type_synonym ('f, 'l, 'v) qtrsLL =
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    50
  "bool \<times> ('f, 'l, 'v) termsLL \<times> ('f, 'l, 'v) trsLL"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    51
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    52
datatype_new location = H | A | B | R
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    53
57634
blanchet
parents: 57586
diff changeset
    54
type_synonym ('f, 'v) forb_pattern = "('f, 'v) ctxt \<times> ('f, 'v) term \<times> location"
blanchet
parents: 57586
diff changeset
    55
type_synonym ('f, 'v) forb_patterns = "('f, 'v) forb_pattern set"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    56
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    57
type_synonym ('f, 'l, 'v) fptrsLL =
57634
blanchet
parents: 57586
diff changeset
    58
  "(('f, 'l) lab, 'v) forb_pattern list \<times> ('f, 'l, 'v) trsLL"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    59
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    60
type_synonym ('f, 'l, 'v) prob = "('f, 'l, 'v) qreltrsLL + ('f, 'l, 'v) dppLL"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    61
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    62
type_synonym ('f, 'a) lpoly_inter = "'f \<times> nat \<Rightarrow> ('a \<times> 'a list)"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    63
type_synonym ('f, 'a) lpoly_interL = "(('f \<times> nat) \<times> ('a \<times> 'a list)) list"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    64
57634
blanchet
parents: 57586
diff changeset
    65
type_synonym 'v monom = "('v \<times> nat) list"
blanchet
parents: 57586
diff changeset
    66
type_synonym ('v, 'a) poly = "('v monom \<times> 'a) list"
blanchet
parents: 57586
diff changeset
    67
type_synonym ('f, 'a) poly_inter_list = "(('f \<times> nat) \<times> (nat, 'a) poly) list"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    68
type_synonym 'a vec = "'a list"
57634
blanchet
parents: 57586
diff changeset
    69
type_synonym 'a mat = "'a vec list"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    70
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    71
datatype_new arctic = MinInfty | Num_arc int
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    72
datatype_new 'a arctic_delta = MinInfty_delta | Num_arc_delta 'a
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    73
datatype_new order_tag = Lex | Mul
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    74
57634
blanchet
parents: 57586
diff changeset
    75
type_synonym 'f status_prec_repr = "(('f \<times> nat) \<times> (nat \<times> order_tag)) list"
blanchet
parents: 57586
diff changeset
    76
blanchet
parents: 57586
diff changeset
    77
datatype_new af_entry =
blanchet
parents: 57586
diff changeset
    78
    Collapse nat
blanchet
parents: 57586
diff changeset
    79
  | AFList "nat list"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    80
57634
blanchet
parents: 57586
diff changeset
    81
type_synonym 'f afs_list = "(('f \<times> nat) \<times> af_entry) list"
blanchet
parents: 57586
diff changeset
    82
type_synonym 'f prec_weight_repr = "(('f \<times> nat) \<times> (nat \<times> nat \<times> (nat list option))) list \<times> nat"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    83
57634
blanchet
parents: 57586
diff changeset
    84
datatype_new 'f redtriple_impl =
blanchet
parents: 57586
diff changeset
    85
    Int_carrier "('f, int) lpoly_interL"
blanchet
parents: 57586
diff changeset
    86
  | Int_nl_carrier "('f, int) poly_inter_list"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    87
  | Rat_carrier "('f, rat) lpoly_interL"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    88
  | Rat_nl_carrier rat "('f, rat) poly_inter_list"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    89
  | Real_carrier "('f, real) lpoly_interL"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    90
  | Real_nl_carrier real "('f, real) poly_inter_list"
57634
blanchet
parents: 57586
diff changeset
    91
  | Arctic_carrier "('f, arctic) lpoly_interL"
blanchet
parents: 57586
diff changeset
    92
  | Arctic_rat_carrier "('f, rat arctic_delta) lpoly_interL"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    93
  | Int_mat_carrier nat nat "('f, int mat) lpoly_interL"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    94
  | Rat_mat_carrier nat nat "('f, rat mat) lpoly_interL"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    95
  | Real_mat_carrier nat nat "('f, real mat) lpoly_interL"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    96
  | Arctic_mat_carrier nat "('f, arctic mat) lpoly_interL"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    97
  | Arctic_rat_mat_carrier nat "('f, rat arctic_delta mat) lpoly_interL"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    98
  | RPO "'f status_prec_repr" "'f afs_list"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
    99
  | KBO "'f prec_weight_repr" "'f afs_list"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   100
57634
blanchet
parents: 57586
diff changeset
   101
datatype_new list_order_type = MS_Ext | Max_Ext | Min_Ext  | Dms_Ext
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   102
type_synonym 'f scnp_af = "(('f \<times> nat) \<times> (nat \<times> nat) list) list"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   103
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   104
datatype_new 'f root_redtriple_impl = SCNP list_order_type "'f scnp_af" "'f redtriple_impl"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   105
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   106
type_synonym 'f sig_map_list = "(('f \<times> nat) \<times> 'f list) list"
57634
blanchet
parents: 57586
diff changeset
   107
type_synonym ('f, 'v) uncurry_info = "'f \<times> 'f sig_map_list \<times> ('f, 'v) rules \<times> ('f, 'v) rules"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   108
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   109
datatype_new arithFun =
57634
blanchet
parents: 57586
diff changeset
   110
    Arg nat
blanchet
parents: 57586
diff changeset
   111
  | Const nat
blanchet
parents: 57586
diff changeset
   112
  | Sum "arithFun list"
blanchet
parents: 57586
diff changeset
   113
  | Max "arithFun list"
blanchet
parents: 57586
diff changeset
   114
  | Min "arithFun list"
blanchet
parents: 57586
diff changeset
   115
  | Prod "arithFun list"
blanchet
parents: 57586
diff changeset
   116
  | IfEqual arithFun arithFun arithFun arithFun
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   117
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   118
datatype_new 'f sl_inter = SL_Inter nat "(('f \<times> nat) \<times> arithFun) list"
57634
blanchet
parents: 57586
diff changeset
   119
datatype_new ('f, 'v) sl_variant =
blanchet
parents: 57586
diff changeset
   120
    Rootlab "('f \<times> nat) option"
blanchet
parents: 57586
diff changeset
   121
  | Finitelab "'f sl_inter"
blanchet
parents: 57586
diff changeset
   122
  | QuasiFinitelab "'f sl_inter" 'v
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   123
57634
blanchet
parents: 57586
diff changeset
   124
type_synonym ('f, 'v) crit_pair_joins = "(('f, 'v) term \<times> ('f, 'v) rseq \<times> ('f, 'v) term \<times> ('f, 'v) rseq) list"
blanchet
parents: 57586
diff changeset
   125
blanchet
parents: 57586
diff changeset
   126
datatype_new 'f join_info = Guided "('f, string) crit_pair_joins" | Join_NF | Join_BFS nat
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   127
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   128
type_synonym unknown_info = string
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   129
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   130
type_synonym dummy_prf = unit
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   131
57634
blanchet
parents: 57586
diff changeset
   132
datatype_new ('f, 'v) complex_constant_removal_prf = Complex_Constant_Removal_Proof
blanchet
parents: 57586
diff changeset
   133
  "('f, 'v) term"
blanchet
parents: 57586
diff changeset
   134
  "(('f, 'v) rule \<times> ('f, 'v) rule) list"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   135
57634
blanchet
parents: 57586
diff changeset
   136
datatype_new ('f, 'v) cond_constraint =
blanchet
parents: 57586
diff changeset
   137
    CC_cond bool "('f, 'v) rule"
blanchet
parents: 57586
diff changeset
   138
  | CC_rewr "('f, 'v) term" "('f, 'v) term"
blanchet
parents: 57586
diff changeset
   139
  | CC_impl "('f, 'v) cond_constraint list" "('f, 'v) cond_constraint"
blanchet
parents: 57586
diff changeset
   140
  | CC_all 'v "('f, 'v) cond_constraint"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   141
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   142
type_synonym ('f, 'v, 'w) gsubstL = "('v \<times> ('f, 'w) term) list"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   143
type_synonym ('f, 'v) substL = "('f, 'v, 'v) gsubstL"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   144
57634
blanchet
parents: 57586
diff changeset
   145
datatype_new ('f, 'v) cond_constraint_prf =
blanchet
parents: 57586
diff changeset
   146
    Final
blanchet
parents: 57586
diff changeset
   147
  | Delete_Condition "('f, 'v) cond_constraint" "('f, 'v) cond_constraint_prf"
blanchet
parents: 57586
diff changeset
   148
  | Different_Constructor "('f, 'v) cond_constraint"
blanchet
parents: 57586
diff changeset
   149
  | Same_Constructor "('f, 'v) cond_constraint" "('f, 'v) cond_constraint" "('f, 'v) cond_constraint_prf"
blanchet
parents: 57586
diff changeset
   150
  | Variable_Equation 'v "('f, 'v) term" "('f, 'v) cond_constraint" "('f, 'v) cond_constraint_prf"
blanchet
parents: 57586
diff changeset
   151
  | Funarg_Into_Var "('f, 'v) cond_constraint" nat 'v "('f, 'v) cond_constraint" "('f, 'v) cond_constraint_prf"
blanchet
parents: 57586
diff changeset
   152
  | Simplify_Condition "('f, 'v) cond_constraint" "('f, 'v) substL" "('f, 'v) cond_constraint" "('f, 'v) cond_constraint_prf"
blanchet
parents: 57586
diff changeset
   153
  | Induction "('f, 'v) cond_constraint" "('f, 'v) cond_constraint list" "(('f, 'v) rule \<times> (('f, 'v) term \<times> 'v list) list \<times> ('f, 'v) cond_constraint \<times> ('f, 'v) cond_constraint_prf) list"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   154
57634
blanchet
parents: 57586
diff changeset
   155
datatype_new ('f, 'v) cond_red_pair_prf =
blanchet
parents: 57586
diff changeset
   156
  Cond_Red_Pair_Prf
blanchet
parents: 57586
diff changeset
   157
    'f "(('f, 'v) cond_constraint \<times> ('f, 'v) rules \<times> ('f, 'v) cond_constraint_prf) list" nat nat
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   158
57634
blanchet
parents: 57586
diff changeset
   159
datatype_new ('q, 'f) ta_rule = TA_rule 'f "'q list" 'q ("_ _ \<rightarrow> _")
blanchet
parents: 57586
diff changeset
   160
datatype_new ('q, 'f) tree_automaton = Tree_Automaton "'q list" "('q, 'f) ta_rule list" "('q \<times> 'q) list"
blanchet
parents: 57586
diff changeset
   161
datatype_new 'q ta_relation =
blanchet
parents: 57586
diff changeset
   162
    Decision_Proc
blanchet
parents: 57586
diff changeset
   163
  | Id_Relation
blanchet
parents: 57586
diff changeset
   164
  | Some_Relation "('q \<times> 'q) list"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   165
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   166
datatype_new boundstype = Roof | Match
57634
blanchet
parents: 57586
diff changeset
   167
datatype_new ('f, 'q) bounds_info = Bounds_Info boundstype nat "'q list" "('q, 'f \<times> nat) tree_automaton" "'q ta_relation"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   168
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   169
datatype_new ('f, 'v) pat_eqv_prf =
57634
blanchet
parents: 57586
diff changeset
   170
    Pat_Dom_Renaming "('f, 'v) substL"
blanchet
parents: 57586
diff changeset
   171
  | Pat_Irrelevant "('f, 'v) substL" "('f, 'v) substL"
blanchet
parents: 57586
diff changeset
   172
  | Pat_Simplify "('f, 'v) substL" "('f, 'v) substL"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   173
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   174
datatype_new pat_rule_pos = Pat_Base | Pat_Pump | Pat_Close
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   175
57634
blanchet
parents: 57586
diff changeset
   176
datatype_new ('f, 'v) pat_rule_prf =
blanchet
parents: 57586
diff changeset
   177
    Pat_OrigRule "('f, 'v) rule" bool
blanchet
parents: 57586
diff changeset
   178
  | Pat_InitPump "('f, 'v) pat_rule_prf" "('f, 'v) substL" "('f, 'v) substL"
blanchet
parents: 57586
diff changeset
   179
  | Pat_InitPumpCtxt "('f, 'v) pat_rule_prf" "('f, 'v) substL" pos 'v
blanchet
parents: 57586
diff changeset
   180
  | Pat_Equiv "('f, 'v) pat_rule_prf" bool "('f, 'v) pat_eqv_prf"
blanchet
parents: 57586
diff changeset
   181
  | Pat_Narrow "('f, 'v) pat_rule_prf" "('f, 'v) pat_rule_prf" pos
blanchet
parents: 57586
diff changeset
   182
  | Pat_Inst "('f, 'v) pat_rule_prf" "('f, 'v) substL" pat_rule_pos
blanchet
parents: 57586
diff changeset
   183
  | Pat_Rewr "('f, 'v) pat_rule_prf" "('f, 'v) term \<times> ('f, 'v) rseq" pat_rule_pos 'v
blanchet
parents: 57586
diff changeset
   184
  | Pat_Exp_Sigma "('f, 'v) pat_rule_prf" nat
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   185
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   186
datatype_new ('f, 'v) non_loop_prf =
57634
blanchet
parents: 57586
diff changeset
   187
    Non_Loop_Prf "('f, 'v) pat_rule_prf" "('f, 'v) substL" "('f, 'v) substL" nat nat pos
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   188
57634
blanchet
parents: 57586
diff changeset
   189
datatype_new ('f, 'l, 'v) problem =
blanchet
parents: 57586
diff changeset
   190
    SN_TRS "('f, 'l, 'v) qreltrsLL"
blanchet
parents: 57586
diff changeset
   191
  | SN_FP_TRS "('f, 'l, 'v) fptrsLL"
blanchet
parents: 57586
diff changeset
   192
  | Finite_DPP "('f, 'l, 'v) dppLL"
blanchet
parents: 57586
diff changeset
   193
  | Unknown_Problem unknown_info
blanchet
parents: 57586
diff changeset
   194
  | Not_SN_TRS "('f, 'l, 'v) qtrsLL"
blanchet
parents: 57586
diff changeset
   195
  | Not_RelSN_TRS "('f, 'l, 'v) qreltrsLL"
blanchet
parents: 57586
diff changeset
   196
  | Infinite_DPP "('f, 'l, 'v) dppLL"
blanchet
parents: 57586
diff changeset
   197
  | Not_SN_FP_TRS "('f, 'l, 'v) fptrsLL"
blanchet
parents: 57586
diff changeset
   198
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   199
declare [[bnf_timing]]
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   200
57634
blanchet
parents: 57586
diff changeset
   201
datatype_new ('f, 'l, 'v, 'a, 'b, 'c, 'd, 'e) generic_assm_proof =
blanchet
parents: 57586
diff changeset
   202
    SN_assm_proof "('f, 'l, 'v) qreltrsLL" 'a
blanchet
parents: 57586
diff changeset
   203
  | Finite_assm_proof "('f, 'l, 'v) dppLL" 'b
blanchet
parents: 57586
diff changeset
   204
  | SN_FP_assm_proof "('f, 'l, 'v) fptrsLL" 'c
blanchet
parents: 57586
diff changeset
   205
  | Not_SN_assm_proof "('f, 'l, 'v) qtrsLL" 'a
blanchet
parents: 57586
diff changeset
   206
  | Infinite_assm_proof "('f, 'l, 'v) dppLL" 'b
blanchet
parents: 57586
diff changeset
   207
  | Not_RelSN_assm_proof "('f, 'l, 'v) qreltrsLL" 'c
blanchet
parents: 57586
diff changeset
   208
  | Not_SN_FP_assm_proof "('f, 'l, 'v) fptrsLL" 'd
blanchet
parents: 57586
diff changeset
   209
  | Unknown_assm_proof unknown_info 'e
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   210
57634
blanchet
parents: 57586
diff changeset
   211
type_synonym ('f, 'l, 'v, 'a, 'b, 'c, 'd) assm_proof = "('f, 'l, 'v, 'a, 'b, 'c, dummy_prf, 'd) generic_assm_proof"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   212
57634
blanchet
parents: 57586
diff changeset
   213
datatype_new ('f, 'l, 'v) assm =
blanchet
parents: 57586
diff changeset
   214
    SN_assm "('f, 'l, 'v) problem list" "('f, 'l, 'v) qreltrsLL"
blanchet
parents: 57586
diff changeset
   215
  | SN_FP_assm "('f, 'l, 'v) problem list" "('f, 'l, 'v) fptrsLL"
blanchet
parents: 57586
diff changeset
   216
  | Finite_assm "('f, 'l, 'v) problem list" "('f, 'l, 'v) dppLL"
blanchet
parents: 57586
diff changeset
   217
  | Unknown_assm "('f, 'l, 'v) problem list" unknown_info
blanchet
parents: 57586
diff changeset
   218
  | Not_SN_assm "('f, 'l, 'v) problem list" "('f, 'l, 'v) qtrsLL"
blanchet
parents: 57586
diff changeset
   219
  | Not_RelSN_assm "('f, 'l, 'v) problem list" "('f, 'l, 'v) qreltrsLL"
blanchet
parents: 57586
diff changeset
   220
  | Not_SN_FP_assm "('f, 'l, 'v) problem list" "('f, 'l, 'v) fptrsLL"
blanchet
parents: 57586
diff changeset
   221
  | Infinite_assm "('f, 'l, 'v) problem list" "('f, 'l, 'v) dppLL"
blanchet
parents: 57586
diff changeset
   222
blanchet
parents: 57586
diff changeset
   223
fun satisfied :: "('f, 'l, 'v) problem \<Rightarrow> bool" where
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   224
  "satisfied (SN_TRS t) = (t = t)"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   225
| "satisfied (SN_FP_TRS t) = (t \<noteq> t)"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   226
| "satisfied (Finite_DPP d) = (d \<noteq> d)"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   227
| "satisfied (Unknown_Problem s) = (s = ''foo'')"
57634
blanchet
parents: 57586
diff changeset
   228
| "satisfied (Not_SN_TRS (nfs, q, r)) = (length q = length r)"
blanchet
parents: 57586
diff changeset
   229
| "satisfied (Not_RelSN_TRS (nfs, q, r, rw)) = (r = rw)"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   230
| "satisfied (Infinite_DPP d) = (d = d)"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   231
| "satisfied (Not_SN_FP_TRS t) = (t = t)"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   232
57634
blanchet
parents: 57586
diff changeset
   233
fun collect_assms :: "('tp \<Rightarrow> ('f, 'l, 'v) assm list)
blanchet
parents: 57586
diff changeset
   234
  \<Rightarrow> ('dpp \<Rightarrow> ('f, 'l, 'v) assm list)
blanchet
parents: 57586
diff changeset
   235
  \<Rightarrow> ('fptp \<Rightarrow> ('f, 'l, 'v) assm list)
blanchet
parents: 57586
diff changeset
   236
  \<Rightarrow> ('unk \<Rightarrow> ('f, 'l, 'v) assm list)
blanchet
parents: 57586
diff changeset
   237
  \<Rightarrow> ('f, 'l, 'v, 'tp, 'dpp, 'fptp, 'unk) assm_proof \<Rightarrow> ('f, 'l, 'v) assm list" where
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   238
  "collect_assms tp dpp fptp unk (SN_assm_proof t prf) = tp prf"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   239
| "collect_assms tp dpp fptp unk (SN_FP_assm_proof t prf) = fptp prf"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   240
| "collect_assms tp dpp fptp unk (Finite_assm_proof d prf) = dpp prf"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   241
| "collect_assms tp dpp fptp unk (Unknown_assm_proof p prf) = unk prf"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   242
| "collect_assms _ _ _ _ _ = []"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   243
57634
blanchet
parents: 57586
diff changeset
   244
fun collect_neg_assms :: "('tp \<Rightarrow> ('f, 'l, 'v) assm list)
blanchet
parents: 57586
diff changeset
   245
  \<Rightarrow> ('dpp \<Rightarrow> ('f, 'l, 'v) assm list)
blanchet
parents: 57586
diff changeset
   246
  \<Rightarrow> ('rtp \<Rightarrow> ('f, 'l, 'v) assm list)
blanchet
parents: 57586
diff changeset
   247
  \<Rightarrow> ('fptp \<Rightarrow> ('f, 'l, 'v) assm list)
blanchet
parents: 57586
diff changeset
   248
  \<Rightarrow> ('unk \<Rightarrow> ('f, 'l, 'v) assm list)
blanchet
parents: 57586
diff changeset
   249
  \<Rightarrow> ('f, 'l, 'v, 'tp, 'dpp, 'rtp, 'fptp, 'unk) generic_assm_proof \<Rightarrow> ('f, 'l, 'v) assm list" where
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   250
  "collect_neg_assms tp dpp rtp fptp unk (Not_SN_assm_proof t prf) = tp prf"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   251
| "collect_neg_assms tp dpp rtp fptp unk (Infinite_assm_proof d prf) = dpp prf"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   252
| "collect_neg_assms tp dpp rtp fptp unk (Not_RelSN_assm_proof t prf) = rtp prf"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   253
| "collect_neg_assms tp dpp rtp fptp unk (Not_SN_FP_assm_proof t prf) = fptp prf"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   254
| "collect_neg_assms tp dpp rtp fptp unk (Unknown_assm_proof p prf) = unk prf"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   255
| "collect_neg_assms tp dpp rtp fptp unk _ = []"
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   256
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   257
datatype_new ('f, 'l, 'v) dp_nontermination_proof =
57634
blanchet
parents: 57586
diff changeset
   258
    DP_Loop "(('f, 'l) lab, 'v) term" "(('f, 'l) lab, 'v) prseq" "(('f, 'l) lab, 'v) substL" "(('f, 'l) lab, 'v) ctxt"
blanchet
parents: 57586
diff changeset
   259
  | DP_Nonloop "(('f, 'l) lab, 'v) non_loop_prf"
blanchet
parents: 57586
diff changeset
   260
  | DP_Rule_Removal "('f, 'l, 'v) trsLL option" "('f, 'l, 'v) trsLL option" "('f, 'l, 'v) dp_nontermination_proof"
blanchet
parents: 57586
diff changeset
   261
  | DP_Q_Increase "('f, 'l, 'v) termsLL" "('f, 'l, 'v) dp_nontermination_proof"
blanchet
parents: 57586
diff changeset
   262
  | DP_Q_Reduction "('f, 'l, 'v) termsLL" "('f, 'l, 'v) dp_nontermination_proof"
blanchet
parents: 57586
diff changeset
   263
  | DP_Termination_Switch "('f, 'l) lab join_info" "('f, 'l, 'v) dp_nontermination_proof"
blanchet
parents: 57586
diff changeset
   264
  | DP_Instantiation "('f, 'l, 'v) trsLL" "('f, 'l, 'v) dp_nontermination_proof"
blanchet
parents: 57586
diff changeset
   265
  | DP_Rewriting "('f, 'l, 'v) trsLL option" "('f, 'l, 'v) ruleLL" "('f, 'l, 'v) ruleLL" "('f, 'l, 'v) ruleLL" "(('f, 'l) lab, 'v) rule" pos "('f, 'l, 'v) dp_nontermination_proof"
blanchet
parents: 57586
diff changeset
   266
  | DP_Narrowing "('f, 'l, 'v) ruleLL" pos "('f, 'l, 'v) trsLL" "('f, 'l, 'v) dp_nontermination_proof"
blanchet
parents: 57586
diff changeset
   267
  | DP_Assume_Infinite  "('f, 'l, 'v) dppLL"
blanchet
parents: 57586
diff changeset
   268
      "('f, 'l, 'v, ('f, 'l, 'v) trs_nontermination_proof,
blanchet
parents: 57586
diff changeset
   269
       ('f, 'l, 'v) dp_nontermination_proof,
blanchet
parents: 57586
diff changeset
   270
       ('f, 'l, 'v) reltrs_nontermination_proof,
blanchet
parents: 57586
diff changeset
   271
       ('f, 'l, 'v) fp_nontermination_proof,
blanchet
parents: 57586
diff changeset
   272
       ('f, 'l, 'v) neg_unknown_proof) generic_assm_proof list"
blanchet
parents: 57586
diff changeset
   273
and ('f, 'l, 'v) "trs_nontermination_proof" =
blanchet
parents: 57586
diff changeset
   274
    TRS_Loop "(('f, 'l) lab, 'v) term" "(('f, 'l) lab, 'v) rseq" "(('f, 'l) lab, 'v) substL" "(('f, 'l) lab, 'v) ctxt"
blanchet
parents: 57586
diff changeset
   275
  | TRS_Not_Well_Formed
blanchet
parents: 57586
diff changeset
   276
  | TRS_Rule_Removal "('f, 'l, 'v) trsLL" "('f, 'l, 'v) trs_nontermination_proof"
blanchet
parents: 57586
diff changeset
   277
  | TRS_String_Reversal "('f, 'l, 'v) trs_nontermination_proof"
blanchet
parents: 57586
diff changeset
   278
  | TRS_DP_Trans "('f, 'l, 'v) trsLL" "('f, 'l, 'v) dp_nontermination_proof"
blanchet
parents: 57586
diff changeset
   279
  | TRS_Nonloop "(('f, 'l) lab, 'v) non_loop_prf"
blanchet
parents: 57586
diff changeset
   280
  | TRS_Q_Increase "('f, 'l, 'v) termsLL" "('f, 'l, 'v) trs_nontermination_proof"
blanchet
parents: 57586
diff changeset
   281
  | TRS_Assume_Not_SN  "('f, 'l, 'v) qtrsLL"
blanchet
parents: 57586
diff changeset
   282
      "('f, 'l, 'v, ('f, 'l, 'v) trs_nontermination_proof,
blanchet
parents: 57586
diff changeset
   283
       ('f, 'l, 'v) dp_nontermination_proof,
blanchet
parents: 57586
diff changeset
   284
       ('f, 'l, 'v) reltrs_nontermination_proof,
blanchet
parents: 57586
diff changeset
   285
       ('f, 'l, 'v) fp_nontermination_proof,
blanchet
parents: 57586
diff changeset
   286
       ('f, 'l, 'v) neg_unknown_proof) generic_assm_proof list"
blanchet
parents: 57586
diff changeset
   287
and ('f, 'l, 'v)"reltrs_nontermination_proof" =
blanchet
parents: 57586
diff changeset
   288
    Rel_Loop "(('f, 'l) lab, 'v) term" "(('f, 'l) lab, 'v) prseq" "(('f, 'l) lab, 'v) substL" "(('f, 'l) lab, 'v) ctxt"
blanchet
parents: 57586
diff changeset
   289
  | Rel_Not_Well_Formed
blanchet
parents: 57586
diff changeset
   290
  | Rel_Rule_Removal "('f, 'l, 'v) trsLL option" "('f, 'l, 'v) trsLL option" "('f, 'l, 'v) reltrs_nontermination_proof"
blanchet
parents: 57586
diff changeset
   291
  | Rel_R_Not_SN "('f, 'l, 'v) trs_nontermination_proof"
blanchet
parents: 57586
diff changeset
   292
  | Rel_TRS_Assume_Not_SN  "('f, 'l, 'v) qreltrsLL"
blanchet
parents: 57586
diff changeset
   293
      "('f, 'l, 'v, ('f, 'l, 'v) trs_nontermination_proof,
blanchet
parents: 57586
diff changeset
   294
       ('f, 'l, 'v) dp_nontermination_proof,
blanchet
parents: 57586
diff changeset
   295
       ('f, 'l, 'v) reltrs_nontermination_proof,
blanchet
parents: 57586
diff changeset
   296
       ('f, 'l, 'v) fp_nontermination_proof,
blanchet
parents: 57586
diff changeset
   297
       ('f, 'l, 'v) neg_unknown_proof) generic_assm_proof list"
blanchet
parents: 57586
diff changeset
   298
and ('f, 'l, 'v) "fp_nontermination_proof" =
blanchet
parents: 57586
diff changeset
   299
    FPTRS_Loop "(('f, 'l) lab, 'v) term" "(('f, 'l) lab, 'v) rseq" "(('f, 'l) lab, 'v) substL" "(('f, 'l) lab, 'v) ctxt"
blanchet
parents: 57586
diff changeset
   300
  | FPTRS_Rule_Removal "('f, 'l, 'v) trsLL" "('f, 'l, 'v) fp_nontermination_proof"
blanchet
parents: 57586
diff changeset
   301
  | FPTRS_Assume_Not_SN  "('f, 'l, 'v) fptrsLL"
blanchet
parents: 57586
diff changeset
   302
      "('f, 'l, 'v, ('f, 'l, 'v) trs_nontermination_proof,
blanchet
parents: 57586
diff changeset
   303
       ('f, 'l, 'v) dp_nontermination_proof,
blanchet
parents: 57586
diff changeset
   304
       ('f, 'l, 'v) reltrs_nontermination_proof,
blanchet
parents: 57586
diff changeset
   305
       ('f, 'l, 'v) fp_nontermination_proof,
blanchet
parents: 57586
diff changeset
   306
       ('f, 'l, 'v) neg_unknown_proof) generic_assm_proof list"
blanchet
parents: 57586
diff changeset
   307
and ('f, 'l, 'v) neg_unknown_proof =
blanchet
parents: 57586
diff changeset
   308
    Assume_NT_Unknown unknown_info
blanchet
parents: 57586
diff changeset
   309
      "('f, 'l, 'v, ('f, 'l, 'v) trs_nontermination_proof,
blanchet
parents: 57586
diff changeset
   310
       ('f, 'l, 'v) dp_nontermination_proof,
blanchet
parents: 57586
diff changeset
   311
       ('f, 'l, 'v) reltrs_nontermination_proof,
blanchet
parents: 57586
diff changeset
   312
       ('f, 'l, 'v) fp_nontermination_proof,
blanchet
parents: 57586
diff changeset
   313
       ('f, 'l, 'v) neg_unknown_proof) generic_assm_proof list"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   314
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   315
datatype_new ('f, 'l, 'v) dp_termination_proof =
57634
blanchet
parents: 57586
diff changeset
   316
    P_is_Empty
blanchet
parents: 57586
diff changeset
   317
  | Subterm_Criterion_Proc "('f, 'l) lab projL" "('f, 'l, 'v) rseqL"
blanchet
parents: 57586
diff changeset
   318
      "('f, 'l, 'v) trsLL" "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   319
  | Redpair_Proc "('f, 'l) lab root_redtriple_impl + ('f, 'l) lab redtriple_impl" "('f, 'l, 'v) trsLL"  "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   320
  | Redpair_UR_Proc "('f, 'l) lab root_redtriple_impl + ('f, 'l) lab redtriple_impl"
blanchet
parents: 57586
diff changeset
   321
      "('f, 'l, 'v) trsLL" "('f, 'l, 'v) trsLL" "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   322
  | Usable_Rules_Proc "('f, 'l, 'v) trsLL" "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   323
  | Dep_Graph_Proc "(('f, 'l, 'v) dp_termination_proof option \<times> ('f, 'l, 'v) trsLL) list"
blanchet
parents: 57586
diff changeset
   324
  | Mono_Redpair_Proc "('f, 'l) lab redtriple_impl"
blanchet
parents: 57586
diff changeset
   325
      "('f, 'l, 'v) trsLL" "('f, 'l, 'v) trsLL" "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   326
  | Mono_Redpair_UR_Proc "('f, 'l) lab redtriple_impl"
blanchet
parents: 57586
diff changeset
   327
      "('f, 'l, 'v) trsLL" "('f, 'l, 'v) trsLL" "('f, 'l, 'v) trsLL" "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   328
  | Size_Change_Subterm_Proc "((('f, 'l) lab, 'v) rule \<times> ((nat \<times> nat) list \<times> (nat \<times> nat) list)) list"
blanchet
parents: 57586
diff changeset
   329
  | Size_Change_Redpair_Proc "('f, 'l) lab redtriple_impl" "('f, 'l, 'v) trsLL option"
blanchet
parents: 57586
diff changeset
   330
      "((('f, 'l) lab, 'v) rule \<times> ((nat \<times> nat) list \<times> (nat \<times> nat) list)) list"
blanchet
parents: 57586
diff changeset
   331
  | Uncurry_Proc "nat option" "(('f, 'l) lab, 'v) uncurry_info"
blanchet
parents: 57586
diff changeset
   332
      "('f, 'l, 'v) trsLL" "('f, 'l, 'v) trsLL" "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   333
  | Fcc_Proc "('f, 'l) lab" "(('f, 'l) lab, 'v) ctxt list"
blanchet
parents: 57586
diff changeset
   334
      "('f, 'l, 'v) trsLL" "('f, 'l, 'v) trsLL" "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   335
  | Split_Proc
blanchet
parents: 57586
diff changeset
   336
      "('f, 'l, 'v) trsLL" "('f, 'l, 'v) trsLL"
blanchet
parents: 57586
diff changeset
   337
      "('f, 'l, 'v) dp_termination_proof" "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   338
  | Semlab_Proc
blanchet
parents: 57586
diff changeset
   339
      "(('f, 'l) lab, 'v) sl_variant" "('f, 'l, 'v) trsLL"
blanchet
parents: 57586
diff changeset
   340
      "(('f, 'l) lab, 'v) term list" "('f, 'l, 'v) trsLL"
blanchet
parents: 57586
diff changeset
   341
      "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   342
  | Switch_Innermost_Proc "('f, 'l) lab join_info" "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   343
  | Rewriting_Proc
blanchet
parents: 57586
diff changeset
   344
      "('f, 'l, 'v) trsLL option" "('f, 'l, 'v) ruleLL" "('f, 'l, 'v) ruleLL"
blanchet
parents: 57586
diff changeset
   345
      "('f, 'l, 'v) ruleLL" "('f, 'l, 'v) ruleLL" pos "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   346
  | Instantiation_Proc "('f, 'l, 'v) ruleLL" "('f, 'l, 'v) trsLL" "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   347
  | Forward_Instantiation_Proc
blanchet
parents: 57586
diff changeset
   348
      "('f, 'l, 'v) ruleLL" "('f, 'l, 'v) trsLL" "('f, 'l, 'v) trsLL option" "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   349
  | Narrowing_Proc "('f, 'l, 'v) ruleLL" pos "('f, 'l, 'v) trsLL" "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   350
  | Assume_Finite
blanchet
parents: 57586
diff changeset
   351
      "('f, 'l, 'v) dppLL" "('f, 'l, 'v, ('f, 'l, 'v) trs_termination_proof, ('f, 'l, 'v) dp_termination_proof, ('f, 'l, 'v) fptrs_termination_proof, ('f, 'l, 'v) unknown_proof) assm_proof list"
blanchet
parents: 57586
diff changeset
   352
  | Unlab_Proc "('f, 'l, 'v) trsLL" "('f, 'l, 'v) trsLL" "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   353
  | Q_Reduction_Proc "('f, 'l, 'v) termsLL" "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   354
  | Complex_Constant_Removal_Proc "(('f, 'l) lab, 'v) complex_constant_removal_prf" "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   355
  | General_Redpair_Proc
blanchet
parents: 57586
diff changeset
   356
      "('f, 'l) lab redtriple_impl" "('f, 'l, 'v) trsLL" "('f, 'l, 'v) trsLL"
blanchet
parents: 57586
diff changeset
   357
      "(('f, 'l) lab, 'v) cond_red_pair_prf" "('f, 'l, 'v) dp_termination_proof list"
blanchet
parents: 57586
diff changeset
   358
  | To_Trs_Proc "('f, 'l, 'v) trs_termination_proof"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   359
and ('f, 'l, 'v) trs_termination_proof =
57634
blanchet
parents: 57586
diff changeset
   360
    DP_Trans bool bool "(('f, 'l) lab, 'v) rules" "('f, 'l, 'v) dp_termination_proof"
blanchet
parents: 57586
diff changeset
   361
  | Rule_Removal "('f, 'l) lab redtriple_impl" "('f, 'l, 'v) trsLL" "('f, 'l, 'v) trs_termination_proof"
blanchet
parents: 57586
diff changeset
   362
  | String_Reversal "('f, 'l, 'v) trs_termination_proof"
blanchet
parents: 57586
diff changeset
   363
  | Bounds "(('f, 'l) lab, 'v) bounds_info"
blanchet
parents: 57586
diff changeset
   364
  | Uncurry "(('f, 'l) lab, 'v) uncurry_info" "('f, 'l, 'v) trsLL" "('f, 'l, 'v) trs_termination_proof"
blanchet
parents: 57586
diff changeset
   365
  | Semlab
blanchet
parents: 57586
diff changeset
   366
      "(('f, 'l) lab, 'v) sl_variant" "(('f, 'l) lab, 'v) term list"
blanchet
parents: 57586
diff changeset
   367
      "('f, 'l, 'v) trsLL" "('f, 'l, 'v) trs_termination_proof"
blanchet
parents: 57586
diff changeset
   368
  | R_is_Empty
blanchet
parents: 57586
diff changeset
   369
  | Fcc "(('f, 'l) lab, 'v) ctxt list" "('f, 'l, 'v) trsLL" "('f, 'l, 'v) trs_termination_proof"
blanchet
parents: 57586
diff changeset
   370
  | Split "('f, 'l, 'v) trsLL" "('f, 'l, 'v) trs_termination_proof" "('f, 'l, 'v) trs_termination_proof"
blanchet
parents: 57586
diff changeset
   371
  | Switch_Innermost "('f, 'l) lab join_info" "('f, 'l, 'v) trs_termination_proof"
blanchet
parents: 57586
diff changeset
   372
  | Drop_Equality "('f, 'l, 'v) trs_termination_proof"
blanchet
parents: 57586
diff changeset
   373
  | Remove_Nonapplicable_Rules "('f, 'l, 'v) trsLL" "('f, 'l, 'v) trs_termination_proof"
blanchet
parents: 57586
diff changeset
   374
  | Assume_SN "('f, 'l, 'v) qreltrsLL" "('f, 'l, 'v, ('f, 'l, 'v) trs_termination_proof, ('f, 'l, 'v) dp_termination_proof, ('f, 'l, 'v) fptrs_termination_proof, ('f, 'l, 'v) unknown_proof) assm_proof list"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   375
and ('f, 'l, 'v) unknown_proof =
57634
blanchet
parents: 57586
diff changeset
   376
    Assume_Unknown unknown_info "('f, 'l, 'v, ('f, 'l, 'v) trs_termination_proof, ('f, 'l, 'v) dp_termination_proof, ('f, 'l, 'v) fptrs_termination_proof, ('f, 'l, 'v) unknown_proof) assm_proof list"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   377
and ('f, 'l, 'v) fptrs_termination_proof =
57634
blanchet
parents: 57586
diff changeset
   378
    Assume_FP_SN "('f, 'l, 'v) fptrsLL" "('f, 'l, 'v, ('f, 'l, 'v) trs_termination_proof, ('f, 'l, 'v) dp_termination_proof, ('f, 'l, 'v) fptrs_termination_proof, ('f, 'l, 'v) unknown_proof) assm_proof list"
57586
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   379
5efff4075b63 regression test for datatypes defined in IsaFoR
traytel
parents:
diff changeset
   380
end