
FATAL ERROR: opentheory failed:
in Article.fromTextFile:
error in file "Test.art" around line 99993:
thm
13076
ref
while executing thm command:
stack =
  [HOL4.bool./\
     (HOL4.bool.!
        (\f.
           HOL4.bool.!
             (\a0.
                HOL4.bool.!
                  (\a1.
                     HOL4.Test.Dertree_size f (HOL4.Test.Der a0 a1) =
                     HOL4.arithmetic.+
                       (Unwanted.id
                          (HOL4.arithmetic.BIT1 HOL4.arithmetic.ZERO))
                       (HOL4.arithmetic.+ (f a0)
                          (HOL4.Test.Dertree1_size f a1))))))
     (HOL4.bool./\
        (HOL4.bool.!
           (\f. HOL4.Test.Dertree1_size f HOL4.list.NIL = HOL4.num.0))
        (HOL4.bool.!
           (\f.
              HOL4.bool.!
                (\a0.
                   HOL4.bool.!
                     (\a1.
                        HOL4.Test.Dertree1_size f (HOL4.list.CONS a0 a1) =
                        HOL4.arithmetic.+
                          (Unwanted.id
                             (HOL4.arithmetic.BIT1 HOL4.arithmetic.ZERO))
                          (HOL4.arithmetic.+ (HOL4.Test.Dertree_size f a0)
                             (HOL4.Test.Dertree1_size f a1))))))),
   [],
   {(\a. est.@temp @ind_typeTest0lis (est.@temp @ind_typeTest0lis a)) =
    \a. a,
    (\r. est.@temp @ind_typeTest0lis (est.@temp @ind_typeTest0lis r) = r) =
    \r.
      let a1' <- r in
      HOL4.bool.!
        (\'Dertree'.
           HOL4.bool.!
             (\'@temp @ind_typeTest0list'.
                HOL4.min.==>
                  (HOL4.bool./\
                     (HOL4.bool.!
                        (\a0'.
                           HOL4.min.==>
                             (HOL4.bool.?
                                (\a0.
                                   HOL4.bool.?
                                     (\a1.
                                        HOL4.bool./\
                                          (a0' =
                                           (let a0 <- a0 in
                                            \a1.
                                              HOL4.ind_type.CONSTR
                                                HOL4.num.0 a0
                                                (HOL4.ind_type.FCONS a1
                                                   (\n.
                                                      HOL4.ind_type.BOTTOM)))
                                             a1)
                                          ('@temp @ind_typeTest0list'
                                             a1)))) ('Dertree' a0')))
                     (HOL4.bool.!
                        (\a1'.
                           HOL4.min.==>
                             (HOL4.bool.\/
                                (a1' =
                                 HOL4.ind_type.CONSTR
                                   (HOL4.num.SUC HOL4.num.0) HOL4.bool.ARB
                                   (\n. HOL4.ind_type.BOTTOM))
                                (HOL4.bool.?
                                   (\a0.
                                      HOL4.bool.?
                                        (\a1.
                                           HOL4.bool./\
                                             (a1' =
                                              (let a0 <- a0 in
                                               \a1.
                                                 HOL4.ind_type.CONSTR
                                                   (HOL4.num.SUC
                                                      (HOL4.num.SUC
                                                         HOL4.num.0))
                                                   HOL4.bool.ARB
                                                   (HOL4.ind_type.FCONS a0
                                                      (HOL4.ind_type.FCONS
                                                         a1
                                                         (\n.
                                                            HOL4.ind_type.BOTTOM))))
                                                a1)
                                             (HOL4.bool./\ ('Dertree' a0)
                                                ('@temp @ind_typeTest0list'
                                                   a1))))))
                             ('@temp @ind_typeTest0list' a1'))))
                  ('@temp @ind_typeTest0list' a1')))}
   |- HOL4.bool./\
        (HOL4.bool.!
           (\f.
              HOL4.bool.!
                (\a0.
                   HOL4.bool.!
                     (\a1.
                        HOL4.Test.Dertree_size f (HOL4.Test.Der a0 a1) =
                        HOL4.arithmetic.+
                          (Unwanted.id
                             (HOL4.arithmetic.BIT1 HOL4.arithmetic.ZERO))
                          (HOL4.arithmetic.+ (f a0)
                             (HOL4.Test.Dertree1_size f a1))))))
        (HOL4.bool./\
           (HOL4.bool.!
              (\f. HOL4.Test.Dertree1_size f HOL4.list.NIL = HOL4.num.0))
           (HOL4.bool.!
              (\f.
                 HOL4.bool.!
                   (\a0.
                      HOL4.bool.!
                        (\a1.
                           HOL4.Test.Dertree1_size f
                             (HOL4.list.CONS a0 a1) =
                           HOL4.arithmetic.+
                             (Unwanted.id
                                (HOL4.arithmetic.BIT1
                                   HOL4.arithmetic.ZERO))
                             (HOL4.arithmetic.+
                                (HOL4.Test.Dertree_size f a0)
                                (HOL4.Test.Dertree1_size f a1))))))),
   {(\a. est.@temp @ind_typeTest0lis (est.@temp @ind_typeTest0lis a)) =
    \a. a,
    (\r. est.@temp @ind_typeTest0lis (est.@temp @ind_typeTest0lis r) = r) =
    \r.
      let a1' <- r in
      HOL4.bool.!
        (\'Dertree'.
           HOL4.bool.!
             (\'@temp @ind_typeTest0list'.
                HOL4.min.==>
                  (HOL4.bool./\
                     (HOL4.bool.!
                        (\a0'.
                           HOL4.min.==>
                             (HOL4.bool.?
                                (\a0.
                                   HOL4.bool.?
                                     (\a1.
                                        HOL4.bool./\
                                          (a0' =
                                           (let a0 <- a0 in
                                            \a1.
                                              HOL4.ind_type.CONSTR
                                                HOL4.num.0 a0
                                                (HOL4.ind_type.FCONS a1
                                                   (\n.
                                                      HOL4.ind_type.BOTTOM)))
                                             a1)
                                          ('@temp @ind_typeTest0list'
                                             a1)))) ('Dertree' a0')))
                     (HOL4.bool.!
                        (\a1'.
                           HOL4.min.==>
                             (HOL4.bool.\/
                                (a1' =
                                 HOL4.ind_type.CONSTR
                                   (HOL4.num.SUC HOL4.num.0) HOL4.bool.ARB
                                   (\n. HOL4.ind_type.BOTTOM))
                                (HOL4.bool.?
                                   (\a0.
                                      HOL4.bool.?
                                        (\a1.
                                           HOL4.bool./\
                                             (a1' =
                                              (let a0 <- a0 in
                                               \a1.
                                                 HOL4.ind_type.CONSTR
                                                   (HOL4.num.SUC
                                                      (HOL4.num.SUC
                                                         HOL4.num.0))
                                                   HOL4.bool.ARB
                                                   (HOL4.ind_type.FCONS a0
                                                      (HOL4.ind_type.FCONS
                                                         a1
                                                         (\n.
                                                            HOL4.ind_type.BOTTOM))))
                                                a1)
                                             (HOL4.bool./\ ('Dertree' a0)
                                                ('@temp @ind_typeTest0list'
                                                   a1))))))
                             ('@temp @ind_typeTest0list' a1'))))
                  ('@temp @ind_typeTest0list' a1')))}
   |- HOL4.bool./\
        (HOL4.bool.!
           (\f.
              HOL4.bool.!
                (\a0.
                   HOL4.bool.!
                     (\a1.
                        HOL4.Test.Dertree_size f (HOL4.Test.Der a0 a1) =
                        HOL4.arithmetic.+
                          (Unwanted.id
                             (HOL4.arithmetic.BIT1 HOL4.arithmetic.ZERO))
                          (HOL4.arithmetic.+ (f a0)
                             (HOL4.Test.Dertree1_size f a1))))))
        (HOL4.bool./\
           (HOL4.bool.!
              (\f. HOL4.Test.Dertree1_size f HOL4.list.NIL = HOL4.num.0))
           (HOL4.bool.!
              (\f.
                 HOL4.bool.!
                   (\a0.
                      HOL4.bool.!
                        (\a1.
                           HOL4.Test.Dertree1_size f
                             (HOL4.list.CONS a0 a1) =
                           HOL4.arithmetic.+
                             (Unwanted.id
                                (HOL4.arithmetic.BIT1
                                   HOL4.arithmetic.ZERO))
                             (HOL4.arithmetic.+
                                (HOL4.Test.Dertree_size f a0)
                                (HOL4.Test.Dertree1_size f a1))))))),
   |- HOL4.Test.Dertree1_size =
      HOL4.min.@
        (\Dertree1_size.
           HOL4.bool./\
             (HOL4.bool.!
                (\f.
                   HOL4.bool.!
                     (\a0.
                        HOL4.bool.!
                          (\a1.
                             HOL4.Test.Dertree_size f
                               (HOL4.Test.Der a0 a1) =
                             HOL4.arithmetic.+
                               (Unwanted.id
                                  (HOL4.arithmetic.BIT1
                                     HOL4.arithmetic.ZERO))
                               (HOL4.arithmetic.+ (f a0)
                                  (Dertree1_size f a1))))))
             (HOL4.bool./\
                (HOL4.bool.!
                   (\f. Dertree1_size f HOL4.list.NIL = HOL4.num.0))
                (HOL4.bool.!
                   (\f.
                      HOL4.bool.!
                        (\a0.
                           HOL4.bool.!
                             (\a1.
                                Dertree1_size f (HOL4.list.CONS a0 a1) =
                                HOL4.arithmetic.+
                                  (Unwanted.id
                                     (HOL4.arithmetic.BIT1
                                        HOL4.arithmetic.ZERO))
                                  (HOL4.arithmetic.+
                                     (HOL4.Test.Dertree_size f a0)
                                     (Dertree1_size f a1)))))))),
   |- HOL4.Test.Dertree_size =
      HOL4.min.@
        (\Dertree_size.
           HOL4.bool.?
             (\Dertree1_size.
                HOL4.bool./\
                  (HOL4.bool.!
                     (\f.
                        HOL4.bool.!
                          (\a0.
                             HOL4.bool.!
                               (\a1.
                                  Dertree_size f (HOL4.Test.Der a0 a1) =
                                  HOL4.arithmetic.+
                                    (Unwanted.id
                                       (HOL4.arithmetic.BIT1
                                          HOL4.arithmetic.ZERO))
                                    (HOL4.arithmetic.+ (f a0)
                                       (Dertree1_size f a1))))))
                  (HOL4.bool./\
                     (HOL4.bool.!
                        (\f. Dertree1_size f HOL4.list.NIL = HOL4.num.0))
                     (HOL4.bool.!
                        (\f.
                           HOL4.bool.!
                             (\a0.
                                HOL4.bool.!
                                  (\a1.
                                     Dertree1_size f
                                       (HOL4.list.CONS a0 a1) =
                                     HOL4.arithmetic.+
                                       (Unwanted.id
                                          (HOL4.arithmetic.BIT1
                                             HOL4.arithmetic.ZERO))
                                       (HOL4.arithmetic.+
                                          (Dertree_size f a0)
                                          (Dertree1_size f a1))))))))),
   {(\a. est.@temp @ind_typeTest0lis (est.@temp @ind_typeTest0lis a)) =
    \a. a,
    (\r. est.@temp @ind_typeTest0lis (est.@temp @ind_typeTest0lis r) = r) =
    \r.
      let a1' <- r in
      HOL4.bool.!
        (\'Dertree'.
           HOL4.bool.!
             (\'@temp @ind_typeTest0list'.
                HOL4.min.==>
                  (HOL4.bool./\
                     (HOL4.bool.!
                        (\a0'.
                           HOL4.min.==>
                             (HOL4.bool.?
                                (\a0.
                                   HOL4.bool.?
                                     (\a1.
                                        HOL4.bool./\
                                          (a0' =
                                           (let a0 <- a0 in
                                            \a1.
                                              HOL4.ind_type.CONSTR
                                                HOL4.num.0 a0
                                                (HOL4.ind_type.FCONS a1
                                                   (\n.
                                                      HOL4.ind_type.BOTTOM)))
                                             a1)
                                          ('@temp @ind_typeTest0list'
                                             a1)))) ('Dertree' a0')))
                     (HOL4.bool.!
                        (\a1'.
                           HOL4.min.==>
                             (HOL4.bool.\/
                                (a1' =
                                 HOL4.ind_type.CONSTR
                                   (HOL4.num.SUC HOL4.num.0) HOL4.bool.ARB
                                   (\n. HOL4.ind_type.BOTTOM))
                                (HOL4.bool.?
                                   (\a0.
                                      HOL4.bool.?
                                        (\a1.
                                           HOL4.bool./\
                                             (a1' =
                                              (let a0 <- a0 in
                                               \a1.
                                                 HOL4.ind_type.CONSTR
                                                   (HOL4.num.SUC
                                                      (HOL4.num.SUC
                                                         HOL4.num.0))
                                                   HOL4.bool.ARB
                                                   (HOL4.ind_type.FCONS a0
                                                      (HOL4.ind_type.FCONS
                                                         a1
                                                         (\n.
                                                            HOL4.ind_type.BOTTOM))))
                                                a1)
                                             (HOL4.bool./\ ('Dertree' a0)
                                                ('@temp @ind_typeTest0list'
                                                   a1))))))
                             ('@temp @ind_typeTest0list' a1'))))
                  ('@temp @ind_typeTest0list' a1')))}
   |- HOL4.bool.!
        (\a0.
           HOL4.bool.!
             (\a1.
                HOL4.bool.!
                  (\f.
                     HOL4.Test.Dertree_CASE (HOL4.Test.Der a0 a1) f =
                     f a0 a1))),
   |- HOL4.Test.Dertree_CASE =
      HOL4.min.@
        (\Dertree_CASE.
           HOL4.bool.!
             (\a0.
                HOL4.bool.!
                  (\a1.
                     HOL4.bool.!
                       (\f.
                          Dertree_CASE (HOL4.Test.Der a0 a1) f =
                          f a0 a1)))),
   |- HOL4.Test.Der = HOL4.Test.@temp @ind_typeTest8,
   |- HOL4.Test.@temp @ind_typeTest8 =
      \a0 a1.
        HOL4.Test.@temp @ind_typeTest1 a0
          (HOL4.min.@
             (\fn.
                HOL4.bool./\
                  (fn HOL4.list.NIL = HOL4.Test.@temp @ind_typeTest2)
                  (HOL4.bool.!
                     (\a0.
                        HOL4.bool.!
                          (\a1.
                             fn (HOL4.list.CONS a0 a1) =
                             HOL4.Test.@temp @ind_typeTest3 a0 (fn a1)))))
             a1),
   |- HOL4.Test.@temp @ind_typeTest3 =
      \a0 a1.
        HOL4.Test.@temp @ind_typeTest6
          ((let a0 <- HOL4.Test.@temp @ind_typeTest5 a0 in
            \a1.
              HOL4.ind_type.CONSTR (HOL4.num.SUC (HOL4.num.SUC HOL4.num.0))
                HOL4.bool.ARB
                (HOL4.ind_type.FCONS a0
                   (HOL4.ind_type.FCONS a1 (\n. HOL4.ind_type.BOTTOM))))
             (HOL4.Test.@temp @ind_typeTest7 a1)),
   |- HOL4.Test.@temp @ind_typeTest2 =
      HOL4.Test.@temp @ind_typeTest6
        (HOL4.ind_type.CONSTR (HOL4.num.SUC HOL4.num.0) HOL4.bool.ARB
           (\n. HOL4.ind_type.BOTTOM)),
   |- HOL4.Test.@temp @ind_typeTest1 =
      \a0 a1.
        HOL4.Test.@temp @ind_typeTest4
          ((let a0 <- a0 in
            \a1.
              HOL4.ind_type.CONSTR HOL4.num.0 a0
                (HOL4.ind_type.FCONS a1 (\n. HOL4.ind_type.BOTTOM)))
             (HOL4.Test.@temp @ind_typeTest7 a1)),
   {(\a. est.@temp @ind_typeTest0lis (est.@temp @ind_typeTest0lis a)) =
    \a. a,
    (\r. est.@temp @ind_typeTest0lis (est.@temp @ind_typeTest0lis r) = r) =
    \r.
      let a1' <- r in
      HOL4.bool.!
        (\'Dertree'.
           HOL4.bool.!
             (\'@temp @ind_typeTest0list'.
                HOL4.min.==>
                  (HOL4.bool./\
                     (HOL4.bool.!
                        (\a0'.
                           HOL4.min.==>
                             (HOL4.bool.?
                                (\a0.
                                   HOL4.bool.?
                                     (\a1.
                                        HOL4.bool./\
                                          (a0' =
                                           (let a0 <- a0 in
                                            \a1.
                                              HOL4.ind_type.CONSTR
                                                HOL4.num.0 a0
                                                (HOL4.ind_type.FCONS a1
                                                   (\n.
                                                      HOL4.ind_type.BOTTOM)))
                                             a1)
                                          ('@temp @ind_typeTest0list'
                                             a1)))) ('Dertree' a0')))
                     (HOL4.bool.!
                        (\a1'.
                           HOL4.min.==>
                             (HOL4.bool.\/
                                (a1' =
                                 HOL4.ind_type.CONSTR
                                   (HOL4.num.SUC HOL4.num.0) HOL4.bool.ARB
                                   (\n. HOL4.ind_type.BOTTOM))
                                (HOL4.bool.?
                                   (\a0.
                                      HOL4.bool.?
                                        (\a1.
                                           HOL4.bool./\
                                             (a1' =
                                              (let a0 <- a0 in
                                               \a1.
                                                 HOL4.ind_type.CONSTR
                                                   (HOL4.num.SUC
                                                      (HOL4.num.SUC
                                                         HOL4.num.0))
                                                   HOL4.bool.ARB
                                                   (HOL4.ind_type.FCONS a0
                                                      (HOL4.ind_type.FCONS
                                                         a1
                                                         (\n.
                                                            HOL4.ind_type.BOTTOM))))
                                                a1)
                                             (HOL4.bool./\ ('Dertree' a0)
                                                ('@temp @ind_typeTest0list'
                                                   a1))))))
                             ('@temp @ind_typeTest0list' a1'))))
                  ('@temp @ind_typeTest0list' a1')))}
   |- HOL4.bool./\
        (HOL4.bool.!
           (\a.
              HOL4.Test.@temp @ind_typeTest6
                (HOL4.Test.@temp @ind_typeTest7 a) = a))
        (HOL4.bool.!
           (\r.
              (let a1' <- r in
               HOL4.bool.!
                 (\'Dertree'.
                    HOL4.bool.!
                      (\'@temp @ind_typeTest0list'.
                         HOL4.min.==>
                           (HOL4.bool./\
                              (HOL4.bool.!
                                 (\a0'.
                                    HOL4.min.==>
                                      (HOL4.bool.?
                                         (\a0.
                                            HOL4.bool.?
                                              (\a1.
                                                 HOL4.bool./\
                                                   (a0' =
                                                    (let a0 <- a0 in
                                                     \a1.
                                                       HOL4.ind_type.CONSTR
                                                         HOL4.num.0 a0
                                                         (HOL4.ind_type.FCONS
                                                            a1
                                                            (\n.
                                                               HOL4.ind_type.BOTTOM)))
                                                      a1)
                                                   ('@temp @ind_typeTest0list'
                                                      a1))))
                                      ('Dertree' a0')))
                              (HOL4.bool.!
                                 (\a1'.
                                    HOL4.min.==>
                                      (HOL4.bool.\/
                                         (a1' =
                                          HOL4.ind_type.CONSTR
                                            (HOL4.num.SUC HOL4.num.0)
                                            HOL4.bool.ARB
                                            (\n. HOL4.ind_type.BOTTOM))
                                         (HOL4.bool.?
                                            (\a0.
                                               HOL4.bool.?
                                                 (\a1.
                                                    HOL4.bool./\
                                                      (a1' =
                                                       (let a0 <- a0 in
                                                        \a1.
                                                          HOL4.ind_type.CONSTR
                                                            (HOL4.num.SUC
                                                               (HOL4.num.SUC
                                                                  HOL4.num.0))
                                                            HOL4.bool.ARB
                                                            (HOL4.ind_type.FCONS
                                                               a0
                                                               (HOL4.ind_type.FCONS
                                                                  a1
                                                                  (\n.
                                                                     HOL4.ind_type.BOTTOM))))
                                                         a1)
                                                      (HOL4.bool./\
                                                         ('Dertree' a0)
                                                         ('@temp @ind_typeTest0list'
                                                            a1))))))
                                      ('@temp @ind_typeTest0list' a1'))))
                           ('@temp @ind_typeTest0list' a1')))) <=>
              HOL4.Test.@temp @ind_typeTest7
                (HOL4.Test.@temp @ind_typeTest6 r) = r)),
   |- HOL4.Test.@temp @ind_typeTest6 =
      HOL4.min.@
        (\abs.
           HOL4.bool./\
             (HOL4.bool.! (\a. abs (HOL4.Test.@temp @ind_typeTest7 a) = a))
             (HOL4.bool.!
                (\r.
                   (let a1' <- r in
                    HOL4.bool.!
                      (\'Dertree'.
                         HOL4.bool.!
                           (\'@temp @ind_typeTest0list'.
                              HOL4.min.==>
                                (HOL4.bool./\
                                   (HOL4.bool.!
                                      (\a0'.
                                         HOL4.min.==>
                                           (HOL4.bool.?
                                              (\a0.
                                                 HOL4.bool.?
                                                   (\a1.
                                                      HOL4.bool./\
                                                        (a0' =
                                                         (let a0 <- a0 in
                                                          \a1.
                                                            HOL4.ind_type.CONSTR
                                                              HOL4.num.0 a0
                                                              (HOL4.ind_type.FCONS
                                                                 a1
                                                                 (\n.
                                                                    HOL4.ind_type.BOTTOM)))
                                                           a1)
                                                        ('@temp @ind_typeTest0list'
                                                           a1))))
                                           ('Dertree' a0')))
                                   (HOL4.bool.!
                                      (\a1'.
                                         HOL4.min.==>
                                           (HOL4.bool.\/
                                              (a1' =
                                               HOL4.ind_type.CONSTR
                                                 (HOL4.num.SUC HOL4.num.0)
                                                 HOL4.bool.ARB
                                                 (\n.
                                                    HOL4.ind_type.BOTTOM))
                                              (HOL4.bool.?
                                                 (\a0.
                                                    HOL4.bool.?
                                                      (\a1.
                                                         HOL4.bool./\
                                                           (a1' =
                                                            (let a0 <-
                                                                 a0 in
                                                             \a1.
                                                               HOL4.ind_type.CONSTR
                                                                 (HOL4.num.SUC
                                                                    (HOL4.num.SUC
                                                                       HOL4.num.0))
                                                                 HOL4.bool.ARB
                                                                 (HOL4.ind_type.FCONS
                                                                    a0
                                                                    (HOL4.ind_type.FCONS
                                                                       a1
                                                                       (\n.
                                                                          HOL4.ind_type.BOTTOM))))
                                                              a1)
                                                           (HOL4.bool./\
                                                              ('Dertree'
                                                                 a0)
                                                              ('@temp @ind_typeTest0list'
                                                                 a1))))))
                                           ('@temp @ind_typeTest0list'
                                              a1'))))
                                ('@temp @ind_typeTest0list' a1')))) <=>
                   HOL4.Test.@temp @ind_typeTest7 (abs r) = r))),
   |- HOL4.Test.@temp @ind_typeTest7 =
      HOL4.min.@
        (\rep.
           HOL4.bool.?
             (\abs.
                HOL4.bool./\ (HOL4.bool.! (\a. abs (rep a) = a))
                  (HOL4.bool.!
                     (\r.
                        (let a1' <- r in
                         HOL4.bool.!
                           (\'Dertree'.
                              HOL4.bool.!
                                (\'@temp @ind_typeTest0list'.
                                   HOL4.min.==>
                                     (HOL4.bool./\
                                        (HOL4.bool.!
                                           (\a0'.
                                              HOL4.min.==>
                                                (HOL4.bool.?
                                                   (\a0.
                                                      HOL4.bool.?
                                                        (\a1.
                                                           HOL4.bool./\
                                                             (a0' =
                                                              (let a0 <-
                                                                   a0 in
                                                               \a1.
                                                                 HOL4.ind_type.CONSTR
                                                                   HOL4.num.0
                                                                   a0
                                                                   (HOL4.ind_type.FCONS
                                                                      a1
                                                                      (\n.
                                                                         HOL4.ind_type.BOTTOM)))
                                                                a1)
                                                             ('@temp @ind_typeTest0list'
                                                                a1))))
                                                ('Dertree' a0')))
                                        (HOL4.bool.!
                                           (\a1'.
                                              HOL4.min.==>
                                                (HOL4.bool.\/
                                                   (a1' =
                                                    HOL4.ind_type.CONSTR
                                                      (HOL4.num.SUC
                                                         HOL4.num.0)
                                                      HOL4.bool.ARB
                                                      (\n.
                                                         HOL4.ind_type.BOTTOM))
                                                   (HOL4.bool.?
                                                      (\a0.
                                                         HOL4.bool.?
                                                           (\a1.
                                                              HOL4.bool./\
                                                                (a1' =
                                                                 (let a0 <-
                                                                      a0 in
                                                                  \a1.
                                                                    HOL4.ind_type.CONSTR
                                                                      (HOL4.num.SUC
                                                                         (HOL4.num.SUC
                                                                            HOL4.num.0))
                                                                      HOL4.bool.ARB
                                                                      (HOL4.ind_type.FCONS
                                                                         a0
                                                                         (HOL4.ind_type.FCONS
                                                                            a1
                                                                            (\n.
                                                                               HOL4.ind_type.BOTTOM))))
                                                                   a1)
                                                                (HOL4.bool./\
                                                                   ('Dertree'
                                                                      a0)
                                                                   ('@temp @ind_typeTest0list'
                                                                      a1))))))
                                                ('@temp @ind_typeTest0list'
                                                   a1'))))
                                     ('@temp @ind_typeTest0list'
                                        a1')))) <=> rep (abs r) = r)))),
   {(\a. est.@temp @ind_typeTest0lis (est.@temp @ind_typeTest0lis a)) =
    \a. a,
    (\r. est.@temp @ind_typeTest0lis (est.@temp @ind_typeTest0lis r) = r) =
    \r.
      let a1' <- r in
      HOL4.bool.!
        (\'Dertree'.
           HOL4.bool.!
             (\'@temp @ind_typeTest0list'.
                HOL4.min.==>
                  (HOL4.bool./\
                     (HOL4.bool.!
                        (\a0'.
                           HOL4.min.==>
                             (HOL4.bool.?
                                (\a0.
                                   HOL4.bool.?
                                     (\a1.
                                        HOL4.bool./\
                                          (a0' =
                                           (let a0 <- a0 in
                                            \a1.
                                              HOL4.ind_type.CONSTR
                                                HOL4.num.0 a0
                                                (HOL4.ind_type.FCONS a1
                                                   (\n.
                                                      HOL4.ind_type.BOTTOM)))
                                             a1)
                                          ('@temp @ind_typeTest0list'
                                             a1)))) ('Dertree' a0')))
                     (HOL4.bool.!
                        (\a1'.
                           HOL4.min.==>
                             (HOL4.bool.\/
                                (a1' =
                                 HOL4.ind_type.CONSTR
                                   (HOL4.num.SUC HOL4.num.0) HOL4.bool.ARB
                                   (\n. HOL4.ind_type.BOTTOM))
                                (HOL4.bool.?
                                   (\a0.
                                      HOL4.bool.?
                                        (\a1.
                                           HOL4.bool./\
                                             (a1' =
                                              (let a0 <- a0 in
                                               \a1.
                                                 HOL4.ind_type.CONSTR
                                                   (HOL4.num.SUC
                                                      (HOL4.num.SUC
                                                         HOL4.num.0))
                                                   HOL4.bool.ARB
                                                   (HOL4.ind_type.FCONS a0
                                                      (HOL4.ind_type.FCONS
                                                         a1
                                                         (\n.
                                                            HOL4.ind_type.BOTTOM))))
                                                a1)
                                             (HOL4.bool./\ ('Dertree' a0)
                                                ('@temp @ind_typeTest0list'
                                                   a1))))))
                             ('@temp @ind_typeTest0list' a1'))))
                  ('@temp @ind_typeTest0list' a1')))}
   |- HOL4.bool.?
        (\rep.
           HOL4.bool.TYPE_DEFINITION
             (\a1'.
                HOL4.bool.!
                  (\'Dertree'.
                     HOL4.bool.!
                       (\'@temp @ind_typeTest0list'.
                          HOL4.min.==>
                            (HOL4.bool./\
                               (HOL4.bool.!
                                  (\a0'.
                                     HOL4.min.==>
                                       (HOL4.bool.?
                                          (\a0.
                                             HOL4.bool.?
                                               (\a1.
                                                  HOL4.bool./\
                                                    (a0' =
                                                     (let a0 <- a0 in
                                                      \a1.
                                                        HOL4.ind_type.CONSTR
                                                          HOL4.num.0 a0
                                                          (HOL4.ind_type.FCONS
                                                             a1
                                                             (\n.
                                                                HOL4.ind_type.BOTTOM)))
                                                       a1)
                                                    ('@temp @ind_typeTest0list'
                                                       a1))))
                                       ('Dertree' a0')))
                               (HOL4.bool.!
                                  (\a1'.
                                     HOL4.min.==>
                                       (HOL4.bool.\/
                                          (a1' =
                                           HOL4.ind_type.CONSTR
                                             (HOL4.num.SUC HOL4.num.0)
                                             HOL4.bool.ARB
                                             (\n. HOL4.ind_type.BOTTOM))
                                          (HOL4.bool.?
                                             (\a0.
                                                HOL4.bool.?
                                                  (\a1.
                                                     HOL4.bool./\
                                                       (a1' =
                                                        (let a0 <- a0 in
                                                         \a1.
                                                           HOL4.ind_type.CONSTR
                                                             (HOL4.num.SUC
                                                                (HOL4.num.SUC
                                                                   HOL4.num.0))
                                                             HOL4.bool.ARB
                                                             (HOL4.ind_type.FCONS
                                                                a0
                                                                (HOL4.ind_type.FCONS
                                                                   a1
                                                                   (\n.
                                                                      HOL4.ind_type.BOTTOM))))
                                                          a1)
                                                       (HOL4.bool./\
                                                          ('Dertree' a0)
                                                          ('@temp @ind_typeTest0list'
                                                             a1))))))
                                       ('@temp @ind_typeTest0list' a1'))))
                            ('@temp @ind_typeTest0list' a1')))) rep),
   |- HOL4.bool./\
        (HOL4.bool.!
           (\a.
              HOL4.Test.@temp @ind_typeTest4
                (HOL4.Test.@temp @ind_typeTest5 a) = a))
        (HOL4.bool.!
           (\r.
              (let a0' <- r in
               HOL4.bool.!
                 (\'Dertree'.
                    HOL4.bool.!
                      (\'@temp @ind_typeTest0list'.
                         HOL4.min.==>
                           (HOL4.bool./\
                              (HOL4.bool.!
                                 (\a0'.
                                    HOL4.min.==>
                                      (HOL4.bool.?
                                         (\a0.
                                            HOL4.bool.?
                                              (\a1.
                                                 HOL4.bool./\
                                                   (a0' =
                                                    (let a0 <- a0 in
                                                     \a1.
                                                       HOL4.ind_type.CONSTR
                                                         HOL4.num.0 a0
                                                         (HOL4.ind_type.FCONS
                                                            a1
                                                            (\n.
                                                               HOL4.ind_type.BOTTOM)))
                                                      a1)
                                                   ('@temp @ind_typeTest0list'
                                                      a1))))
                                      ('Dertree' a0')))
                              (HOL4.bool.!
                                 (\a1'.
                                    HOL4.min.==>
                                      (HOL4.bool.\/
                                         (a1' =
                                          HOL4.ind_type.CONSTR
                                            (HOL4.num.SUC HOL4.num.0)
                                            HOL4.bool.ARB
                                            (\n. HOL4.ind_type.BOTTOM))
                                         (HOL4.bool.?
                                            (\a0.
                                               HOL4.bool.?
                                                 (\a1.
                                                    HOL4.bool./\
                                                      (a1' =
                                                       (let a0 <- a0 in
                                                        \a1.
                                                          HOL4.ind_type.CONSTR
                                                            (HOL4.num.SUC
                                                               (HOL4.num.SUC
                                                                  HOL4.num.0))
                                                            HOL4.bool.ARB
                                                            (HOL4.ind_type.FCONS
                                                               a0
                                                               (HOL4.ind_type.FCONS
                                                                  a1
                                                                  (\n.
                                                                     HOL4.ind_type.BOTTOM))))
                                                         a1)
                                                      (HOL4.bool./\
                                                         ('Dertree' a0)
                                                         ('@temp @ind_typeTest0list'
                                                            a1))))))
                                      ('@temp @ind_typeTest0list' a1'))))
                           ('Dertree' a0')))) <=>
              HOL4.Test.@temp @ind_typeTest5
                (HOL4.Test.@temp @ind_typeTest4 r) = r)),
   |- HOL4.Test.@temp @ind_typeTest4 =
      HOL4.min.@
        (\abs.
           HOL4.bool./\
             (HOL4.bool.! (\a. abs (HOL4.Test.@temp @ind_typeTest5 a) = a))
             (HOL4.bool.!
                (\r.
                   (let a0' <- r in
                    HOL4.bool.!
                      (\'Dertree'.
                         HOL4.bool.!
                           (\'@temp @ind_typeTest0list'.
                              HOL4.min.==>
                                (HOL4.bool./\
                                   (HOL4.bool.!
                                      (\a0'.
                                         HOL4.min.==>
                                           (HOL4.bool.?
                                              (\a0.
                                                 HOL4.bool.?
                                                   (\a1.
                                                      HOL4.bool./\
                                                        (a0' =
                                                         (let a0 <- a0 in
                                                          \a1.
                                                            HOL4.ind_type.CONSTR
                                                              HOL4.num.0 a0
                                                              (HOL4.ind_type.FCONS
                                                                 a1
                                                                 (\n.
                                                                    HOL4.ind_type.BOTTOM)))
                                                           a1)
                                                        ('@temp @ind_typeTest0list'
                                                           a1))))
                                           ('Dertree' a0')))
                                   (HOL4.bool.!
                                      (\a1'.
                                         HOL4.min.==>
                                           (HOL4.bool.\/
                                              (a1' =
                                               HOL4.ind_type.CONSTR
                                                 (HOL4.num.SUC HOL4.num.0)
                                                 HOL4.bool.ARB
                                                 (\n.
                                                    HOL4.ind_type.BOTTOM))
                                              (HOL4.bool.?
                                                 (\a0.
                                                    HOL4.bool.?
                                                      (\a1.
                                                         HOL4.bool./\
                                                           (a1' =
                                                            (let a0 <-
                                                                 a0 in
                                                             \a1.
                                                               HOL4.ind_type.CONSTR
                                                                 (HOL4.num.SUC
                                                                    (HOL4.num.SUC
                                                                       HOL4.num.0))
                                                                 HOL4.bool.ARB
                                                                 (HOL4.ind_type.FCONS
                                                                    a0
                                                                    (HOL4.ind_type.FCONS
                                                                       a1
                                                                       (\n.
                                                                          HOL4.ind_type.BOTTOM))))
                                                              a1)
                                                           (HOL4.bool./\
                                                              ('Dertree'
                                                                 a0)
                                                              ('@temp @ind_typeTest0list'
                                                                 a1))))))
                                           ('@temp @ind_typeTest0list'
                                              a1'))))
                                ('Dertree' a0')))) <=>
                   HOL4.Test.@temp @ind_typeTest5 (abs r) = r))),
   |- HOL4.Test.@temp @ind_typeTest5 =
      HOL4.min.@
        (\rep.
           HOL4.bool.?
             (\abs.
                HOL4.bool./\ (HOL4.bool.! (\a. abs (rep a) = a))
                  (HOL4.bool.!
                     (\r.
                        (let a0' <- r in
                         HOL4.bool.!
                           (\'Dertree'.
                              HOL4.bool.!
                                (\'@temp @ind_typeTest0list'.
                                   HOL4.min.==>
                                     (HOL4.bool./\
                                        (HOL4.bool.!
                                           (\a0'.
                                              HOL4.min.==>
                                                (HOL4.bool.?
                                                   (\a0.
                                                      HOL4.bool.?
                                                        (\a1.
                                                           HOL4.bool./\
                                                             (a0' =
                                                              (let a0 <-
                                                                   a0 in
                                                               \a1.
                                                                 HOL4.ind_type.CONSTR
                                                                   HOL4.num.0
                                                                   a0
                                                                   (HOL4.ind_type.FCONS
                                                                      a1
                                                                      (\n.
                                                                         HOL4.ind_type.BOTTOM)))
                                                                a1)
                                                             ('@temp @ind_typeTest0list'
                                                                a1))))
                                                ('Dertree' a0')))
                                        (HOL4.bool.!
                                           (\a1'.
                                              HOL4.min.==>
                                                (HOL4.bool.\/
                                                   (a1' =
                                                    HOL4.ind_type.CONSTR
                                                      (HOL4.num.SUC
                                                         HOL4.num.0)
                                                      HOL4.bool.ARB
                                                      (\n.
                                                         HOL4.ind_type.BOTTOM))
                                                   (HOL4.bool.?
                                                      (\a0.
                                                         HOL4.bool.?
                                                           (\a1.
                                                              HOL4.bool./\
                                                                (a1' =
                                                                 (let a0 <-
                                                                      a0 in
                                                                  \a1.
                                                                    HOL4.ind_type.CONSTR
                                                                      (HOL4.num.SUC
                                                                         (HOL4.num.SUC
                                                                            HOL4.num.0))
                                                                      HOL4.bool.ARB
                                                                      (HOL4.ind_type.FCONS
                                                                         a0
                                                                         (HOL4.ind_type.FCONS
                                                                            a1
                                                                            (\n.
                                                                               HOL4.ind_type.BOTTOM))))
                                                                   a1)
                                                                (HOL4.bool./\
                                                                   ('Dertree'
                                                                      a0)
                                                                   ('@temp @ind_typeTest0list'
                                                                      a1))))))
                                                ('@temp @ind_typeTest0list'
                                                   a1'))))
                                     ('Dertree' a0')))) <=>
                        rep (abs r) = r)))),
   |- HOL4.bool.?
        (\rep.
           HOL4.bool.TYPE_DEFINITION
             (\a0'.
                HOL4.bool.!
                  (\'Dertree'.
                     HOL4.bool.!
                       (\'@temp @ind_typeTest0list'.
                          HOL4.min.==>
                            (HOL4.bool./\
                               (HOL4.bool.!
                                  (\a0'.
                                     HOL4.min.==>
                                       (HOL4.bool.?
                                          (\a0.
                                             HOL4.bool.?
                                               (\a1.
                                                  HOL4.bool./\
                                                    (a0' =
                                                     (let a0 <- a0 in
                                                      \a1.
                                                        HOL4.ind_type.CONSTR
                                                          HOL4.num.0 a0
                                                          (HOL4.ind_type.FCONS
                                                             a1
                                                             (\n.
                                                                HOL4.ind_type.BOTTOM)))
                                                       a1)
                                                    ('@temp @ind_typeTest0list'
                                                       a1))))
                                       ('Dertree' a0')))
                               (HOL4.bool.!
                                  (\a1'.
                                     HOL4.min.==>
                                       (HOL4.bool.\/
                                          (a1' =
                                           HOL4.ind_type.CONSTR
                                             (HOL4.num.SUC HOL4.num.0)
                                             HOL4.bool.ARB
                                             (\n. HOL4.ind_type.BOTTOM))
                                          (HOL4.bool.?
                                             (\a0.
                                                HOL4.bool.?
                                                  (\a1.
                                                     HOL4.bool./\
                                                       (a1' =
                                                        (let a0 <- a0 in
                                                         \a1.
                                                           HOL4.ind_type.CONSTR
                                                             (HOL4.num.SUC
                                                                (HOL4.num.SUC
                                                                   HOL4.num.0))
                                                             HOL4.bool.ARB
                                                             (HOL4.ind_type.FCONS
                                                                a0
                                                                (HOL4.ind_type.FCONS
                                                                   a1
                                                                   (\n.
                                                                      HOL4.ind_type.BOTTOM))))
                                                          a1)
                                                       (HOL4.bool./\
                                                          ('Dertree' a0)
                                                          ('@temp @ind_typeTest0list'
                                                             a1))))))
                                       ('@temp @ind_typeTest0list' a1'))))
                            ('Dertree' a0')))) rep)]
dictionary = [14093]
seq = |- HOL4.bool./\
     (HOL4.bool.!
        (\f.
           HOL4.bool.!
             (\a0.
                HOL4.bool.!
                  (\a1.
                     HOL4.Test.Dertree_size f (HOL4.Test.Der a0 a1) =
                     HOL4.arithmetic.+
                       (Unwanted.id
                          (HOL4.arithmetic.BIT1 HOL4.arithmetic.ZERO))
                       (HOL4.arithmetic.+ (f a0)
                          (HOL4.Test.Dertree1_size f a1))))))
     (HOL4.bool./\
        (HOL4.bool.!
           (\f. HOL4.Test.Dertree1_size f HOL4.list.NIL = HOL4.num.0))
        (HOL4.bool.!
           (\f.
              HOL4.bool.!
                (\a0.
                   HOL4.bool.!
                     (\a1.
                        HOL4.Test.Dertree1_size f (HOL4.list.CONS a0 a1) =
                        HOL4.arithmetic.+
                          (Unwanted.id
                             (HOL4.arithmetic.BIT1 HOL4.arithmetic.ZERO))
                          (HOL4.arithmetic.+ (HOL4.Test.Dertree_size f a0)
                             (HOL4.Test.Dertree1_size f a1)))))))
th = {(\a. est.@temp @ind_typeTest0lis (est.@temp @ind_typeTest0lis a)) = \a. a,
 (\r. est.@temp @ind_typeTest0lis (est.@temp @ind_typeTest0lis r) = r) =
 \r.
   let a1' <- r in
   HOL4.bool.!
     (\'Dertree'.
        HOL4.bool.!
          (\'@temp @ind_typeTest0list'.
             HOL4.min.==>
               (HOL4.bool./\
                  (HOL4.bool.!
                     (\a0'.
                        HOL4.min.==>
                          (HOL4.bool.?
                             (\a0.
                                HOL4.bool.?
                                  (\a1.
                                     HOL4.bool./\
                                       (a0' =
                                        (let a0 <- a0 in
                                         \a1.
                                           HOL4.ind_type.CONSTR HOL4.num.0
                                             a0
                                             (HOL4.ind_type.FCONS a1
                                                (\n.
                                                   HOL4.ind_type.BOTTOM)))
                                          a1)
                                       ('@temp @ind_typeTest0list' a1))))
                          ('Dertree' a0')))
                  (HOL4.bool.!
                     (\a1'.
                        HOL4.min.==>
                          (HOL4.bool.\/
                             (a1' =
                              HOL4.ind_type.CONSTR
                                (HOL4.num.SUC HOL4.num.0) HOL4.bool.ARB
                                (\n. HOL4.ind_type.BOTTOM))
                             (HOL4.bool.?
                                (\a0.
                                   HOL4.bool.?
                                     (\a1.
                                        HOL4.bool./\
                                          (a1' =
                                           (let a0 <- a0 in
                                            \a1.
                                              HOL4.ind_type.CONSTR
                                                (HOL4.num.SUC
                                                   (HOL4.num.SUC
                                                      HOL4.num.0))
                                                HOL4.bool.ARB
                                                (HOL4.ind_type.FCONS a0
                                                   (HOL4.ind_type.FCONS a1
                                                      (\n.
                                                         HOL4.ind_type.BOTTOM))))
                                             a1)
                                          (HOL4.bool./\ ('Dertree' a0)
                                             ('@temp @ind_typeTest0list'
                                                a1))))))
                          ('@temp @ind_typeTest0list' a1'))))
               ('@temp @ind_typeTest0list' a1')))}
|- HOL4.bool./\
     (HOL4.bool.!
        (\f.
           HOL4.bool.!
             (\a0.
                HOL4.bool.!
                  (\a1.
                     HOL4.Test.Dertree_size f (HOL4.Test.Der a0 a1) =
                     HOL4.arithmetic.+
                       (Unwanted.id
                          (HOL4.arithmetic.BIT1 HOL4.arithmetic.ZERO))
                       (HOL4.arithmetic.+ (f a0)
                          (HOL4.Test.Dertree1_size f a1))))))
     (HOL4.bool./\
        (HOL4.bool.!
           (\f. HOL4.Test.Dertree1_size f HOL4.list.NIL = HOL4.num.0))
        (HOL4.bool.!
           (\f.
              HOL4.bool.!
                (\a0.
                   HOL4.bool.!
                     (\a1.
                        HOL4.Test.Dertree1_size f (HOL4.list.CONS a0 a1) =
                        HOL4.arithmetic.+
                          (Unwanted.id
                             (HOL4.arithmetic.BIT1 HOL4.arithmetic.ZERO))
                          (HOL4.arithmetic.+ (HOL4.Test.Dertree_size f a0)
                             (HOL4.Test.Dertree1_size f a1)))))))
Rule.alpha: not alpha-equivalent
