Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


SSL rs_integral_prep.prf   Interaktion und
PortierbarkeitLisp

 

(rs_integral_prep
 (IMP_rs_integral_def_TCC1 0
  (IMP_rs_integral_def_TCC1-1 nil 3494857844
   ("" (lemma "connected_domain") (("" (propax) nil nil)) nil)
   ((connected_domain formula-decl nil rs_integral_prep nil)) nil))
 (IMP_rs_integral_def_TCC2 0
  (IMP_rs_integral_def_TCC2-1 nil 3494857844
   ("" (lemma "not_one_element") (("" (propax) nil nil)) nil)
   ((not_one_element formula-decl nil rs_integral_prep nil)) nil))
 (integral_const_fun 0
  (integral_const_fun-1 nil 3253532115
   ("" (skosimp*)
    (("" (rewrite "integral_def")
      (("" (expand "integral?")
        (("" (skosimp*)
          (("" (auto-rewrite "Rie_sum")
            (("" (inst + "1")
              (("" (skosimp*)
                (("" (case-replace "R!1 = D!1*(g!1(b!1)-g!1(a!1))")
                  (("1" (assert)
                    (("1" (expand "abs") (("1" (assert) nil nil)) nil))
                    nil)
                   ("2" (hide 2)
                    (("2" (typepred "R!1")
                      (("2" (expand "Riemann_sum?")
                        (("2" (skosimp*)
                          (("2" (replace -1)
                            (("2" (hide -1)
                              (("2"
                                (assert)
                                (("2"
                                  (expand "const_fun")
                                  (("2"
                                    (case
                                     "FORALL (n: below(length(P!1))): n > 0 IMPLIES          sigma[below(length(P!1) - 1)]          (0, n-1,           LAMBDA (n: below(length(P!1) - 1)):             g!1(seq(P!1)(1 + n)) * D!1 - g!1(seq(P!1)(n)) * D!1) =   D!1*g!1(seq(P!1)(n)) - D!1*g!1(seq(P!1)(0))")
                                    (("1"
                                      (inst -1 "length(P!1)-1")
                                      (("1" (assert) nil nil))
                                      nil)
                                     ("2"
                                      (hide 2)
                                      (("2"
                                        (induct
                                         "n"
                                         1
                                         "below_induction[length(P!1)]")
                                        (("1" (assert) nil nil)
                                         ("2"
                                          (skosimp*)
                                          (("2"
                                            (assert)
                                            (("2"
                                              (case-replace "jb!1 = 0")
                                              (("1"
                                                (hide -3)
                                                (("1"
                                                  (expand "sigma")
                                                  (("1"
                                                    (assert)
                                                    nil
                                                    nil))
                                                  nil))
                                                nil)
                                               ("2"
                                                (assert)
                                                (("2"
                                                  (expand "sigma" 2)
                                                  (("2"
                                                    (replace -2)
                                                    (("2"
                                                      (assert)
                                                      nil
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil)
                                         ("3"
                                          (skosimp*)
                                          (("3" (assert) nil nil))
                                          nil)
                                         ("4"
                                          (skosimp*)
                                          (("4" (assert) nil nil))
                                          nil))
                                        nil))
                                      nil)
                                     ("3"
                                      (hide 2)
                                      (("3"
                                        (skosimp*)
                                        (("3" (assert) nil nil))
                                        nil))
                                      nil)
                                     ("4"
                                      (hide 2)
                                      (("4"
                                        (skosimp*)
                                        (("4" (assert) nil nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil))
              nil))
            nil))
          nil))
        nil))
      nil))
    nil)
   ((real_times_real_is_real application-judgement "real" reals nil)
    (integral_def formula-decl nil rs_integral_def nil)
    (const_fun const-decl "[T -> real]" real_fun_ops "reals/")
    (numfield nonempty-type-eq-decl nil number_fields nil)
    (* const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (- const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (number nonempty-type-decl nil numbers nil)
    (boolean nonempty-type-decl nil booleans nil)
    (number_field_pred const-decl "[number -> boolean]" number_fields
     nil)
    (number_field nonempty-type-from-decl nil number_fields nil)
    (real_pred const-decl "[number_field -> boolean]" reals nil)
    (real nonempty-type-from-decl nil reals nil)
    (T_pred const-decl "[real -> boolean]" rs_integral_prep nil)
    (T formal-nonempty-subtype-decl nil rs_integral_prep nil)
    (real_minus_real_is_real application-judgement "real" reals nil)
    (posreal nonempty-type-eq-decl nil real_types nil)
    (> const-decl "bool" reals nil)
    (nonneg_real nonempty-type-eq-decl nil real_types nil)
    (>= const-decl "bool" reals nil)
    (bool nonempty-type-eq-decl nil booleans nil)
    (= const-decl "[T, T -> boolean]" equalities nil)
    (< const-decl "bool" reals nil)
    (nat nonempty-type-eq-decl nil naturalnumbers nil)
    (barray type-eq-decl nil fseqs "structures/")
    (fseq type-eq-decl nil fseqs "structures/")
    (AND const-decl "[bool, bool -> bool]" booleans nil)
    (restrict const-decl "R" restrict nil)
    (<= const-decl "bool" reals nil)
    (increasing? const-decl "bool" sort_fseq "structures/")
    (rational_pred const-decl "[real -> boolean]" rationals nil)
    (rational nonempty-type-from-decl nil rationals nil)
    (integer_pred const-decl "[rational -> boolean]" integers nil)
    (int nonempty-type-eq-decl nil integers nil)
    (below type-eq-decl nil naturalnumbers nil)
    (partition type-eq-decl nil rs_partition nil)
    (Riemann_sum? const-decl "bool" rs_integral_def nil)
    (abs const-decl "{n: nonneg_real | n >= m AND n >= -m}" real_defs
         nil)
    (real_lt_is_strict_total_order name-judgement
     "(strict_total_order?[real])" real_props nil)
    (NOT const-decl "[bool -> bool]" booleans nil)
    (odd_plus_even_is_odd application-judgement "odd_int" integers nil)
    (real_plus_real_is_real application-judgement "real" reals nil)
    (minus_odd_is_odd application-judgement "odd_int" integers nil)
    (nnint_plus_posint_is_posint application-judgement "posint"
     integers nil)
    (sigma_0_neg formula-decl nil sigma_below "reals/")
    (below_induction formula-decl nil bounded_nat_inductions nil)
    (pred type-eq-decl nil defined_types nil)
    (P!1 skolem-const-decl "partition[T](a!1, b!1)" rs_integral_prep
     nil)
    (b!1 skolem-const-decl "T" rs_integral_prep nil)
    (a!1 skolem-const-decl "T" rs_integral_prep nil)
    (integer nonempty-type-from-decl nil integers nil)
    (+ const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (sigma def-decl "real" sigma "reals/")
    (T_high type-eq-decl nil sigma "reals/")
    (T_low type-eq-decl nil sigma "reals/")
    (OR const-decl "[bool, bool -> bool]" booleans nil)
    (IMPLIES const-decl "[bool, bool -> bool]" booleans nil)
    (posint_plus_nnint_is_posint application-judgement "posint"
     integers nil)
    (Rie_sum const-decl "real" rs_integral_def nil)
    (real_le_is_total_order name-judgement "(total_order?[real])"
     real_props nil)
    (real_ge_is_total_order name-judgement "(total_order?[real])"
     real_props nil)
    (real_gt_is_strict_total_order name-judgement
     "(strict_total_order?[real])" real_props nil)
    (int_minus_int_is_int application-judgement "int" integers nil)
    (integral? const-decl "bool" rs_integral_def nil))
   nil))
 (integral_const_restrict 0
  (integral_const_restrict-3 nil 3278176127
   ("" (skosimp*)
    (("" (lemma "integral_const_fun")
      (("" (inst?)
        (("" (assert)
          (("" (flatten)
            (("" (typepred "integral(a!1, b!1,g!1, const_fun(D!1))")
              (("" (expand "integral?")
                (("" (skosimp*)
                  (("" (inst -1 "epsi!1")
                    (("" (skosimp*)
                      (("" (inst + "delta!1")
                        (("" (skosimp*)
                          (("" (inst?)
                            (("" (assert)
                              ((""
                                (replace -3)
                                ((""
                                  (typepred "R!1")
                                  ((""
                                    (inst -2 "R!1")
                                    (("1" (assert) nil nil)
                                     ("2"
                                      (hide 2)
                                      (("2"
                                        (expand "Riemann_sum?")
                                        (("2"
                                          (auto-rewrite "Rie_sum")
                                          (("2"
                                            (skosimp*)
                                            (("2"
                                              (assert)
                                              (("2"
                                                (inst + "xis!1")
                                                (("2"
                                                  (replace -1)
                                                  (("2"
                                                    (hide -1)
                                                    (("2"
                                                      (assert)
                                                      (("2"
                                                        (expand
                                                         "const_fun")
                                                        (("2"
                                                          (rewrite
                                                           "sigma_restrict_eq[below(length(P!1) - 1)]")
                                                          (("1"
                                                            (hide 2)
                                                            (("1"
                                                              (expand
                                                               "restrict")
                                                              (("1"
                                                                (apply-extensionality
                                                                 1
                                                                 :hide?
                                                                 t)
                                                                (("1"
                                                                  (inst?)
                                                                  (("1"
                                                                    (assert)
                                                                    nil
                                                                    nil)
                                                                   ("2"
                                                                    (typepred
                                                                     "xis!1")
                                                                    (("2"
                                                                      (inst
                                                                       -
                                                                       "x!1")
                                                                      (("2"
                                                                        (typepred
                                                                         "P!1")
                                                                        (("2"
                                                                          (inst-cp
                                                                           -
                                                                           "x!1")
                                                                          (("2"
                                                                            (inst
                                                                             -
                                                                             "x!1+1")
                                                                            (("2"
                                                                              (ground)
                                                                              nil
                                                                              nil))
                                                                            nil))
                                                                          nil))
                                                                        nil))
                                                                      nil))
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil)
                                                           ("2"
                                                            (hide 2)
                                                            (("2"
                                                              (skosimp*)
                                                              (("2"
                                                                (assert)
                                                                nil
                                                                nil))
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil))
              nil))
            nil))
          nil))
        nil))
      nil))
    nil)
   ((integral_const_fun formula-decl nil rs_integral_prep nil)
    (real_times_real_is_real application-judgement "real" reals nil)
    (real_lt_is_strict_total_order name-judgement
     "(strict_total_order?[real])" real_props nil)
    (integral const-decl "{S: real | integral?(a, b, gg, ff, S)}"
     rs_integral_def nil)
    (integrable? const-decl "bool" rs_integral_def nil)
    (const_fun const-decl "[T -> real]" real_fun_ops "reals/")
    (integral? const-decl "bool" rs_integral_def nil)
    (< const-decl "bool" reals nil)
    (NOT const-decl "[bool -> bool]" booleans nil)
    (bool nonempty-type-eq-decl nil booleans nil)
    (Riemann_sum? const-decl "bool" rs_integral_def nil)
    (real_gt_is_strict_total_order name-judgement
     "(strict_total_order?[real])" real_props nil)
    (real_ge_is_total_order name-judgement "(total_order?[real])"
     real_props nil)
    (real_le_is_total_order name-judgement "(total_order?[real])"
     real_props nil)
    (Rie_sum const-decl "real" rs_integral_def nil)
    (integer nonempty-type-from-decl nil integers nil)
    (IMPLIES const-decl "[bool, bool -> bool]" booleans nil)
    (T_low type-eq-decl nil sigma "reals/")
    (T_high type-eq-decl nil sigma "reals/")
    (OR const-decl "[bool, bool -> bool]" booleans nil)
    (* const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (sigma_restrict_eq formula-decl nil sigma "reals/")
    (posint_plus_nnint_is_posint application-judgement "posint"
     integers nil)
    (restrict const-decl "[T -> real]" sigma "reals/")
    (xis!1 skolem-const-decl "xis?[T](a!1, b!1, P!1)" rs_integral_prep
     nil)
    (x!1 skolem-const-decl "below(length(P!1) - 1)" rs_integral_prep
     nil)
    (closed_interval type-eq-decl nil intervals_real "reals/")
    (nnint_plus_posint_is_posint application-judgement "posint"
     integers nil)
    (+ const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (xis? type-eq-decl nil rs_integral_def nil)
    (int_minus_int_is_int application-judgement "int" integers nil)
    (R!1 skolem-const-decl "(Riemann_sum?(a!1, b!1, P!1, g!1, f!1))"
     rs_integral_prep nil)
    (f!1 skolem-const-decl "[T -> real]" rs_integral_prep nil)
    (D!1 skolem-const-decl "real" rs_integral_prep nil)
    (g!1 skolem-const-decl "[T -> real]" rs_integral_prep nil)
    (P!1 skolem-const-decl "partition[T](a!1, b!1)" rs_integral_prep
     nil)
    (b!1 skolem-const-decl "T" rs_integral_prep nil)
    (a!1 skolem-const-decl "T" rs_integral_prep nil)
    (minus_odd_is_odd application-judgement "odd_int" integers nil)
    (partition type-eq-decl nil rs_partition nil)
    (below type-eq-decl nil naturalnumbers nil)
    (int nonempty-type-eq-decl nil integers nil)
    (integer_pred const-decl "[rational -> boolean]" integers nil)
    (rational nonempty-type-from-decl nil rationals nil)
    (rational_pred const-decl "[real -> boolean]" rationals nil)
    (increasing? const-decl "bool" sort_fseq "structures/")
    (<= const-decl "bool" reals nil)
    (restrict const-decl "R" restrict nil)
    (- const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (numfield nonempty-type-eq-decl nil number_fields nil)
    (= const-decl "[T, T -> boolean]" equalities nil)
    (AND const-decl "[bool, bool -> bool]" booleans nil)
    (fseq type-eq-decl nil fseqs "structures/")
    (barray type-eq-decl nil fseqs "structures/")
    (nat nonempty-type-eq-decl nil naturalnumbers nil)
    (>= const-decl "bool" reals nil)
    (nonneg_real nonempty-type-eq-decl nil real_types nil)
    (> const-decl "bool" reals nil)
    (posreal nonempty-type-eq-decl nil real_types nil)
    (T formal-nonempty-subtype-decl nil rs_integral_prep nil)
    (T_pred const-decl "[real -> boolean]" rs_integral_prep nil)
    (real nonempty-type-from-decl nil reals nil)
    (real_pred const-decl "[number_field -> boolean]" reals nil)
    (number_field nonempty-type-from-decl nil number_fields nil)
    (number_field_pred const-decl "[number -> boolean]" number_fields
     nil)
    (boolean nonempty-type-decl nil booleans nil)
    (number nonempty-type-decl nil numbers nil)
    (real_minus_real_is_real application-judgement "real" reals nil))
   nil)
  (integral_const_restrict-2 nil 3277741047
   ("" (skosimp*)
    (("" (lemma "integral_const_fun")
      (("" (inst?)
        (("" (assert)
          (("" (flatten)
            (("" (typepred "integral(a!1, b!1, const_fun[T](D!1))")
              (("1" (expand "integral?")
                (("1" (skosimp*)
                  (("1" (inst -1 "epsi!1")
                    (("1" (skosimp*)
                      (("1" (inst + "delta!1")
                        (("1" (skosimp*)
                          (("1" (inst?)
                            (("1" (assert)
                              (("1"
                                (replace -3)
                                (("1"
                                  (typepred "R!1")
                                  (("1"
                                    (inst -2 "R!1")
                                    (("1" (assert) nil nil)
                                     ("2"
                                      (hide 2)
                                      (("2"
                                        (expand "Riemann_sum?")
                                        (("2"
                                          (skosimp*)
                                          (("2"
                                            (assert)
                                            (("2"
                                              (inst + "xis!1")
                                              (("2"
                                                (replace -1)
                                                (("2"
                                                  (hide -1)
                                                  (("2"
                                                    (assert)
                                                    (("2"
                                                      (expand
                                                       "const_fun")
                                                      (("2"
                                                        (rewrite
                                                         "sigma_restrict_eq[below(length(P!1) - 1)]")
                                                        (("1"
                                                          (hide 2)
                                                          (("1"
                                                            (expand
                                                             "restrict")
                                                            (("1"
                                                              (apply-extensionality
                                                               1
                                                               :hide?
                                                               t)
                                                              (("1"
                                                                (inst?)
                                                                (("1"
                                                                  (assert)
                                                                  nil
                                                                  nil)
                                                                 ("2"
                                                                  (hide
                                                                   2)
                                                                  (("2"
                                                                    (typepred
                                                                     "P!1")
                                                                    (("2"
                                                                      (typepred
                                                                       "xis!1")
                                                                      (("2"
                                                                        (assert)
                                                                        (("2"
                                                                          (flatten)
                                                                          (("2"
                                                                            (assert)
                                                                            nil
                                                                            nil))
                                                                          nil))
                                                                        nil))
                                                                      nil))
                                                                    nil))
                                                                  nil))
                                                                nil)
                                                               ("2"
                                                                (skosimp*)
                                                                (("2"
                                                                  (typepred
                                                                   "xis!1")
                                                                  (("2"
                                                                    (assert)
                                                                    (("2"
                                                                      (flatten)
                                                                      (("2"
                                                                        (assert)
                                                                        nil
                                                                        nil))
                                                                      nil))
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil))
                                                          nil)
                                                         ("2"
                                                          (skosimp*)
                                                          (("2"
                                                            (hide 2)
                                                            (("2"
                                                              (typepred
                                                               "xis!1")
                                                              (("2"
                                                                (assert)
                                                                (("2"
                                                                  (flatten)
                                                                  (("2"
                                                                    (assert)
                                                                    nil
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil))
                                                          nil)
                                                         ("3"
                                                          (hide 2)
                                                          (("3"
                                                            (skosimp*)
                                                            (("3"
                                                              (assert)
                                                              nil
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil)
               ("2" (propax) nil nil))
              nil))
            nil))
          nil))
        nil))
      nil))
    nil)
   ((const_fun const-decl "[T -> real]" real_fun_ops "reals/")
    (restrict const-decl "[T -> real]" sigma "reals/")
    (sigma_restrict_eq formula-decl nil sigma "reals/"))
   nil)
  (integral_const_restrict-1 nil 3253532115
   ("" (skosimp*)
    (("" (lemma "integral_const_fun")
      (("" (inst?)
        (("" (assert)
          (("" (flatten)
            (("" (typepred "integral(a!1, b!1, const_fun[T](D!1))")
              (("1" (expand "is_integral")
                (("1" (skosimp*)
                  (("1" (inst -1 "epsi!1")
                    (("1" (skosimp*)
                      (("1" (inst + "delta!1")
                        (("1" (skosimp*)
                          (("1" (inst?)
                            (("1" (assert)
                              (("1"
                                (replace -3)
                                (("1"
                                  (hide -3)
                                  (("1"
                                    (case-replace
                                     "Riemann_sum(a!1, b!1, P!1, f!1) = Riemann_sum(a!1, b!1, P!1, const_fun[T](D!1))")
                                    (("1" (assert) nil nil)
                                     ("2"
                                      (hide -1 2)
                                      (("2"
                                        (expand "Riemann_sum")
                                        (("2"
                                          (rewrite "sigma_restrict_eq")
                                          (("1"
                                            (hide 2)
                                            (("1"
                                              (expand "restrict")
                                              (("1"
                                                (apply-extensionality
                                                 1
                                                 :hide?
                                                 t)
                                                (("1"
                                                  (lift-if)
                                                  (("1"
                                                    (ground)
                                                    (("1"
                                                      (expand
                                                       "const_fun")
                                                      (("1"
                                                        (inst?)
                                                        (("1"
                                                          (replace -3)
                                                          (("1"
                                                            (propax)
                                                            nil
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil)
                                                 ("2"
                                                  (skosimp*)
                                                  (("2"
                                                    (typepred "P!1")
                                                    (("2"
                                                      (inst - "i!1-1")
                                                      (("1"
                                                        (assert)
                                                        nil
                                                        nil)
                                                       ("2"
                                                        (assert)
                                                        nil
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil)
                                                 ("3"
                                                  (skosimp*)
                                                  (("3"
                                                    (assert)
                                                    nil
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil)
                                           ("2"
                                            (hide 2)
                                            (("2"
                                              (skosimp*)
                                              (("2"
                                                (assert)
                                                (("2"
                                                  (typepred "P!1")
                                                  (("2"
                                                    (inst - "n!1-1")
                                                    (("2"
                                                      (assert)
                                                      nil
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil)
                                           ("3"
                                            (hide-all-but 1)
                                            (("3"
                                              (skosimp*)
                                              (("3" (assert) nil nil))
                                              nil))
                                            nil)
                                           ("4"
                                            (hide-all-but 1)
                                            (("4"
                                              (skosimp*)
                                              (("4" (ground) nil nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil)
               ("2" (propax) nil nil))
              nil))
            nil))
          nil))
        nil))
      nil))
    nil)
   ((const_fun const-decl "[T -> real]" real_fun_ops "reals/")
    (sigma_restrict_eq formula-decl nil sigma "reals/")
    (restrict const-decl "[T -> real]" sigma "reals/"))
   nil))
 (integral_scal 0
  (integral_scal-3 nil 3280253820
   ("" (skosimp*)
    (("" (case-replace "D!1 = 0")
      (("1" (assert)
        (("1" (expand "*")
          (("1" (lemma "integral_const_fun")
            (("1" (inst - "0" "a!1" "b!1" "g!1")
              (("1" (expand "const_fun")
                (("1" (flatten) (("1" (assert) nil nil)) nil)) nil))
              nil))
            nil))
          nil))
        nil)
       ("2" (rewrite "integral_def")
        (("2" (typepred "integral(a!1, b!1, g!1,f!1)")
          (("2" (expand "integral?")
            (("2" (skosimp*)
              (("2" (inst -1 "epsi!1/abs(D!1)")
                (("1" (skosimp*)
                  (("1" (inst + "delta!1")
                    (("1" (skosimp*)
                      (("1" (inst?)
                        (("1" (assert)
                          (("1" (typepred "R!1")
                            (("1" (expand "Riemann_sum?")
                              (("1"
                                (auto-rewrite "Rie_sum")
                                (("1"
                                  (assert)
                                  (("1"
                                    (skosimp*)
                                    (("1"
                                      (replace -1)
                                      (("1"
                                        (hide -1)
                                        (("1"
                                          (case-replace
                                           "Rie_sum(a!1, b!1,g!1, P!1, xis!1, D!1 * f!1) = D!1*Rie_sum(a!1, b!1, g!1,P!1, xis!1, f!1)")
                                          (("1"
                                            (expand "Rie_sum")
                                            (("1"
                                              (assert)
                                              (("1"
                                                (replace -1)
                                                (("1"
                                                  (hide -1)
                                                  (("1"
                                                    (inst
                                                     -
                                                     "sigma[below(length(P!1) - 1)]
                                              (0, length(P!1) - 2,
                                               LAMBDA (n: below(length(P!1) - 1)):
                                                 g!1(P!1`seq(1 + n)) * f!1(xis!1(n)) -
                                                  g!1(P!1`seq(n)) * f!1(xis!1(n)))"
)
                                                    (("1"
                                                      (cross-mult -1)
                                                      (("1"
                                                        (assert)
                                                        (("1"
                                                          (split -1)
                                                          (("1"
                                                            (flatten)
                                                            (("1"
                                                              (rewrite
                                                               "abs_mult "
                                                               :dir
                                                               rl)
                                                              (("1"
                                                                (assert)
                                                                nil
                                                                nil)
                                                               ("2"
                                                                (hide
                                                                 3)
                                                                (("2"
                                                                  (skosimp*)
                                                                  (("2"
                                                                    (assert)
                                                                    nil
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil)
                                                           ("2"
                                                            (flatten)
                                                            (("2"
                                                              (hide-all-but
                                                               (1 2))
                                                              (("2"
                                                                (expand
                                                                 "abs")
                                                                (("2"
                                                                  (lift-if)
                                                                  (("2"
                                                                    (ground)
                                                                    nil
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil)
                                                       ("2"
                                                        (skosimp*)
                                                        (("2"
                                                          (assert)
                                                          nil
                                                          nil))
                                                        nil))
                                                      nil)
                                                     ("2"
                                                      (hide-all-but
                                                       (1 2))
                                                      (("2"
                                                        (grind)
                                                        nil
                                                        nil))
                                                      nil)
                                                     ("3"
                                                      (hide 3)
                                                      (("3"
                                                        (skosimp*)
                                                        (("3"
                                                          (assert)
                                                          nil
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil)
                                           ("2"
                                            (hide 2)
                                            (("2"
                                              (hide 2)
                                              (("2"
                                                (expand "Rie_sum")
                                                (("2"
                                                  (assert)
                                                  (("2"
                                                    (lemma
                                                     "sigma_scal[below(length(P!1) - 1)]")
                                                    (("1"
                                                      (inst?)
                                                      (("1"
                                                        (assert)
                                                        (("1"
                                                          (expand "*")
                                                          (("1"
                                                            (propax)
                                                            nil
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil)
                                                     ("2"
                                                      (assert)
                                                      (("2"
                                                        (skosimp*)
                                                        (("2"
                                                          (assert)
                                                          nil
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil)
                 ("2" (case "epsi!1 / abs(D!1) > 0")
                  (("1" (assert) nil nil)
                   ("2" (hide-all-but (1 3))
                    (("2" (cross-mult 1) (("2" (assert) nil nil)) nil))
                    nil)
                   ("3" (lemma "abs_eq_0")
                    (("3" (inst?) (("3" (assert) nil nil)) nil)) nil))
                  nil)
                 ("3" (lemma "abs_eq_0")
                  (("3" (inst?) (("3" (assert) nil nil)) nil)) nil))
                nil))
              nil))
            nil))
          nil))
        nil))
      nil))
    nil)
   ((number nonempty-type-decl nil numbers nil)
    (boolean nonempty-type-decl nil booleans nil)
    (= const-decl "[T, T -> boolean]" equalities nil)
    (number_field_pred const-decl "[number -> boolean]" number_fields
     nil)
    (number_field nonempty-type-from-decl nil number_fields nil)
    (real_pred const-decl "[number_field -> boolean]" reals nil)
    (real nonempty-type-from-decl nil reals nil)
    (* const-decl "[T -> real]" real_fun_ops "reals/")
    (T formal-nonempty-subtype-decl nil rs_integral_prep nil)
    (T_pred const-decl "[real -> boolean]" rs_integral_prep nil)
    (real_times_real_is_real application-judgement "real" reals nil)
    (const_fun const-decl "[T -> real]" real_fun_ops "reals/")
    (integral_const_fun formula-decl nil rs_integral_prep nil)
    (real_lt_is_strict_total_order name-judgement
     "(strict_total_order?[real])" real_props nil)
    (NOT const-decl "[bool -> bool]" booleans nil)
    (div_mult_pos_gt1 formula-decl nil extra_real_props nil)
    (abs_nat formula-decl nil abs_lems "reals/")
    (abs_eq_0 formula-decl nil abs_lems "reals/")
    (int_minus_int_is_int application-judgement "int" integers nil)
    (Rie_sum const-decl "real" rs_integral_def nil)
    (xis? type-eq-decl nil rs_integral_def nil)
    (+ const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (real_le_is_total_order name-judgement "(total_order?[real])"
     real_props nil)
    (real_plus_real_is_real application-judgement "real" reals nil)
    (int_plus_int_is_int application-judgement "int" integers nil)
    (div_mult_pos_neg_lt2 formula-decl nil extra_real_props nil)
    (nonzero_real nonempty-type-eq-decl nil reals nil)
    (abs_mult formula-decl nil real_props nil)
    (nnreal_times_nnreal_is_nnreal application-judgement "nnreal"
     real_types nil)
    (xis!1 skolem-const-decl "xis?[T](a!1, b!1, P!1)" rs_integral_prep
     nil)
    (sigma def-decl "real" sigma "reals/")
    (T_high type-eq-decl nil sigma "reals/")
    (T_low type-eq-decl nil sigma "reals/")
    (OR const-decl "[bool, bool -> bool]" booleans nil)
    (f!1 skolem-const-decl "[T -> real]" rs_integral_prep nil)
    (g!1 skolem-const-decl "[T -> real]" rs_integral_prep nil)
    (IMPLIES const-decl "[bool, bool -> bool]" booleans nil)
    (integer nonempty-type-from-decl nil integers nil)
    (P!1 skolem-const-decl "partition[T](a!1, b!1)" rs_integral_prep
     nil)
    (b!1 skolem-const-decl "T" rs_integral_prep nil)
    (a!1 skolem-const-decl "T" rs_integral_prep nil)
    (posint_plus_nnint_is_posint application-judgement "posint"
     integers nil)
    (sigma_scal formula-decl nil sigma "reals/")
    (Riemann_sum? const-decl "bool" rs_integral_def nil)
    (nat nonempty-type-eq-decl nil naturalnumbers nil)
    (barray type-eq-decl nil fseqs "structures/")
    (fseq type-eq-decl nil fseqs "structures/")
    (- const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (restrict const-decl "R" restrict nil)
    (<= const-decl "bool" reals nil)
    (increasing? const-decl "bool" sort_fseq "structures/")
    (rational_pred const-decl "[real -> boolean]" rationals nil)
    (rational nonempty-type-from-decl nil rationals nil)
    (integer_pred const-decl "[rational -> boolean]" integers nil)
    (int nonempty-type-eq-decl nil integers nil)
    (below type-eq-decl nil naturalnumbers nil)
    (partition type-eq-decl nil rs_partition nil)
    (epsi!1 skolem-const-decl "posreal" rs_integral_prep nil)
    (posreal nonempty-type-eq-decl nil real_types nil)
    (> const-decl "bool" reals nil)
    (/ const-decl "[numfield, nznum -> numfield]" number_fields nil)
    (nznum nonempty-type-eq-decl nil number_fields nil)
    (D!1 skolem-const-decl "real" rs_integral_prep nil)
    (abs const-decl "{n: nonneg_real | n >= m AND n >= -m}" real_defs
         nil)
    (- const-decl "[numfield -> numfield]" number_fields nil)
    (AND const-decl "[bool, bool -> bool]" booleans nil)
    (nonneg_real nonempty-type-eq-decl nil real_types nil)
    (>= const-decl "bool" reals nil)
    (/= const-decl "boolean" notequal nil)
    (nzreal_div_nzreal_is_nzreal application-judgement "nzreal"
     real_types nil)
    (real_ge_is_total_order name-judgement "(total_order?[real])"
     real_props nil)
    (real_gt_is_strict_total_order name-judgement
     "(strict_total_order?[real])" real_props nil)
    (real_minus_real_is_real application-judgement "real" reals nil)
    (integral const-decl "{S: real | integral?(a, b, gg, ff, S)}"
     rs_integral_def nil)
    (integral? const-decl "bool" rs_integral_def nil)
    (integrable? const-decl "bool" rs_integral_def nil)
    (< const-decl "bool" reals nil)
    (bool nonempty-type-eq-decl nil booleans nil)
    (* const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (numfield nonempty-type-eq-decl nil number_fields nil)
    (integral_def formula-decl nil rs_integral_def nil))
   nil)
  (integral_scal-2 nil 3278176311
   ("" (skosimp*)
    (("" (case-replace "D!1 = 0")
      (("1" (assert)
        (("1" (expand "*")
          (("1" (lemma "integral_const_fun")
            (("1" (inst - "0" "a!1" "b!1")
              (("1" (expand "const_fun")
                (("1" (flatten) (("1" (assert) nil nil)) nil)) nil))
              nil))
            nil))
          nil))
        nil)
       ("2" (rewrite "integral_def")
        (("2" (typepred "integral(a!1, b!1, f!1)")
          (("1" (expand "integral?")
            (("1" (skosimp*)
              (("1" (inst -1 "epsi!1/abs(D!1)")
                (("1" (skosimp*)
                  (("1" (inst + "delta!1")
                    (("1" (skosimp*)
                      (("1" (inst?)
                        (("1" (assert)
                          (("1" (typepred "R!1")
                            (("1" (expand "Riemann_sum?")
                              (("1"
                                (auto-rewrite "Rie_sum")
                                (("1"
                                  (assert)
                                  (("1"
                                    (skosimp*)
                                    (("1"
                                      (replace -1)
                                      (("1"
                                        (hide -1)
                                        (("1"
                                          (case-replace
                                           "Rie_sum(a!1, b!1, P!1, xis!1, D!1 * f!1) = D!1*Rie_sum(a!1, b!1, P!1, xis!1, f!1)")
                                          (("1"
                                            (expand "Rie_sum")
                                            (("1"
                                              (assert)
                                              (("1"
                                                (replace -1)
                                                (("1"
                                                  (hide -1)
                                                  (("1"
                                                    (inst
                                                     -
                                                     "sigma[below(length(P!1) - 1)]
                          (0, length(P!1) - 2,
                           LAMBDA (n: below(length(P!1) - 1)):
                             P!1`seq(1 + n) * f!1(xis!1`seq(n)) -
                              P!1`seq(n) * f!1(xis!1`seq(n)))"
)
                                                    (("1"
                                                      (cross-mult -1)
                                                      (("1"
                                                        (assert)
                                                        (("1"
                                                          (split -1)
                                                          (("1"
                                                            (flatten)
                                                            (("1"
                                                              (rewrite
                                                               "abs_mult "
                                                               :dir
                                                               rl)
                                                              (("1"
                                                                (assert)
                                                                nil
                                                                nil)
                                                               ("2"
                                                                (hide
                                                                 3)
                                                                (("2"
                                                                  (skosimp*)
                                                                  (("2"
                                                                    (assert)
                                                                    nil
                                                                    nil))
                                                                  nil))
                                                                nil)
                                                               ("3"
                                                                (skosimp*)
                                                                (("3"
                                                                  (assert)
                                                                  (("3"
                                                                    (typepred
                                                                     "xis!1")
                                                                    (("3"
                                                                      (assert)
                                                                      nil
                                                                      nil))
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil)
                                                           ("2"
                                                            (flatten)
                                                            (("2"
                                                              (hide-all-but
                                                               (1 2))
                                                              (("2"
                                                                (expand
                                                                 "abs")
                                                                (("2"
                                                                  (lift-if)
                                                                  (("2"
                                                                    (ground)
                                                                    nil
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil)
                                                       ("2"
                                                        (skosimp*)
                                                        (("2"
                                                          (assert)
                                                          nil
                                                          nil))
                                                        nil)
                                                       ("3"
                                                        (skosimp*)
                                                        (("3"
                                                          (assert)
                                                          (("3"
                                                            (typepred
                                                             "xis!1")
                                                            (("3"
                                                              (assert)
                                                              nil
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil)
                                                       ("4"
                                                        (hide-all-but
                                                         (1 2))
                                                        (("4"
                                                          (expand
                                                           "abs")
                                                          (("4"
                                                            (lift-if)
                                                            (("4"
                                                              (ground)
                                                              nil
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil)
                                                     ("2"
                                                      (hide 3)
                                                      (("2"
                                                        (expand
                                                         "Riemann_sum?")
                                                        (("2"
                                                          (assert)
                                                          (("2"
                                                            (inst
                                                             +
                                                             "xis!1")
                                                            nil
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil)
                                                     ("3"
                                                      (skosimp*)
                                                      (("3"
                                                        (assert)
                                                        nil
                                                        nil))
                                                      nil)
                                                     ("4"
                                                      (skosimp*)
                                                      (("4"
                                                        (assert)
                                                        (("4"
                                                          (typepred
                                                           "xis!1")
                                                          (("4"
                                                            (assert)
                                                            nil
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil)
                                           ("2"
                                            (hide 2)
                                            (("2"
                                              (hide 2)
                                              (("2"
                                                (expand "Rie_sum")
                                                (("2"
                                                  (assert)
                                                  (("2"
                                                    (lemma
                                                     "sigma_scal[below(length(P!1) - 1)]")
                                                    (("1"
                                                      (inst?)
                                                      (("1"
                                                        (assert)
                                                        (("1"
                                                          (expand "*")
                                                          (("1"
                                                            (assert)
                                                            nil
                                                            nil))
                                                          nil))
                                                        nil)
                                                       ("2"
                                                        (hide 2)
                                                        (("2"
                                                          (skosimp*)
                                                          (("2"
                                                            (assert)
                                                            (("2"
                                                              (typepred
                                                               "xis!1")
                                                              (("2"
                                                                (assert)
                                                                nil
                                                                nil))
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil)
                                                     ("2"
                                                      (skosimp*)
                                                      (("2"
                                                        (assert)
                                                        nil
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil)
                 ("2" (hide 3)
                  (("2" (assert)
                    (("2" (case "epsi!1 / abs(D!1) > 0")
                      (("1" (assert) nil nil)
                       ("2" (hide 2)
                        (("2" (hide -2)
                          (("2" (cross-mult 1)
                            (("1" (grind) nil nil)
                             ("2" (assert)
                              (("2"
                                (hide 2)
                                (("2" (grind) nil nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil)
                       ("3" (hide 2) (("3" (grind) nil nil)) nil))
                      nil))
                    nil))
                  nil)
                 ("3" (hide -2 3) (("3" (grind) nil nil)) nil))
                nil))
              nil))
            nil)
           ("2" (propax) nil nil) ("3" (propax) nil nil))
          nil))
        nil))
      nil))
    nil)
   ((const_fun const-decl "[T -> real]" real_fun_ops "reals/")
    (sigma def-decl "real" sigma "reals/")
    (sigma_scal formula-decl nil sigma "reals/"))
   nil)
  (integral_scal-1 nil 3253532115
   ("" (skosimp*)
    (("" (case-replace "D!1 = 0")
      (("1" (assert)
        (("1" (expand "*")
          (("1" (lemma "integral_const_fun")
            (("1" (inst - "0" "a!1" "b!1")
              (("1" (expand "const_fun")
                (("1" (flatten) (("1" (assert) nil nil)) nil)) nil))
              nil))
            nil))
          nil))
        nil)
       ("2" (rewrite "integral_def")
        (("2" (typepred "integral(a!1, b!1, f!1)")
          (("1" (expand "integral?")
            (("1" (skosimp*)
              (("1" (inst -1 "epsi!1/abs(D!1)")
                (("1" (skosimp*)
                  (("1" (inst + "delta!1")
                    (("1" (skosimp*)
                      (("1" (inst?)
                        (("1" (assert)
                          (("1" (typepred "R!1")
                            (("1" (expand "Riemann_sum?")
                              (("1"
                                (assert)
                                (("1"
                                  (skosimp*)
                                  (("1"
                                    (replace -1)
                                    (("1"
                                      (hide -1)
                                      (("1"
                                        (case-replace
                                         "Rie_sum(a!1, b!1, P!1, xis!1, D!1 * f!1) = D!1*Rie_sum(a!1, b!1, P!1, xis!1, f!1)")
                                        (("1"
                                          (expand "Rie_sum")
                                          (("1"
                                            (assert)
                                            (("1"
                                              (replace -1)
                                              (("1"
                                                (hide -1)
                                                (("1"
                                                  (inst
                                                   -
                                                   "sigma[below(length(P!1) - 1)]
                (0, length(P!1) - 2,
                 LAMBDA (n: below(length(P!1) - 1)):
                   P!1`seq(1 + n) * f!1(xis!1`seq(n)) -
                    P!1`seq(n) * f!1(xis!1`seq(n)))"
)
                                                  (("1"
                                                    (cross-mult -1)
                                                    (("1"
                                                      (assert)
                                                      (("1"
                                                        (split -1)
                                                        (("1"
                                                          (flatten)
                                                          (("1"
                                                            (rewrite
                                                             "abs_mult "
                                                             :dir
                                                             rl)
                                                            (("1"
                                                              (assert)
                                                              nil
                                                              nil)
                                                             ("2"
                                                              (hide 3)
                                                              (("2"
                                                                (skosimp*)
                                                                "(lemma "onnected_domain" ((" (propax)nilnil) nil)
                                                                                  (assert)
                                                                 
                                                                  )
                                                                nil)              (("" (skosimp*)
                                                              nil)
                                                             ("3"
                                                              (skosimp*)
                                                              (("3"
                                                                (assert)
                                                                (("3"
                                                                  (typepred
                                                                   "xis!1")
                                                                  (("3"
                                                                    (2"
                                                                    
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil))
                                                          nil)
                                                         ("
2"
                                                          (flatten)
                                                          (("
2"
                                                            hideall-java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
                                                             (1 2))
                                                            (("
2"
                                                              (grind)
                                                              nil)
                                                              nil))
                                                            nil))
                                                          (skosimp*java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
                                                        ))
                                                      (kosimp*)
                                                     ("
2"
                                                      (skosimp*((4"

                                                      (("2"
                                                        (assert)
                                                        nil
                                                        nil
                                                      niljava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
                                                     
                                                      (>const  )
                                                      boolnonemptytype--decl nilbooleansniljava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
                                                        (assert)
                                                        applicationjava.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 63
                                                          (typepred
                                                           "xis!1")
                                                          
                                                            
         nil
                                                            nil))
"(strict_total_java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 50
                                                       
                                                      nil)
                                                     
                                                      (hide-all-(" inst?java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
                                                       )
                                                      ("

                                                        (expand "abs")
                                                        (""
             (ifjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
                                                          (("4"
("2"
                                                            
                                                            nil(
                                                          nil))
                                                        nil))
:hide
                                                    nil)
                                                   ("2"
                                                    (hide 3)
-
                                                      java.lang.StringIndexOutOfBoundsException: Range [70, 61) out of bounds for length 75
                                                                                                                             
                                                      (("java.lang.StringIndexOutOfBoundsException: Range [76, 59) out of bounds for length 81
(assert)
                                                        (("
2"
                                                          (inst
                                                           hide)
                                                           "
xis!1")
                                                          nil
                                                          nil))
                                                        nil))
                                                      nil)
                                                    nil)nil)
                                                   )
                                                    (skosimp*)
                                                    java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 68
                                                      )
                                                      nil
                     )java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
                                                    
                                                   n)
                                                    
                                                    
                                                      (java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 56
                                                      
java.lang.StringIndexOutOfBoundsException: Range [61, 41) out of bounds for length 61
                                                         !"
)
                                                        decl numbers)
                                                          (assert)
                                                          nil
                                                          nil))
                                                        nil))
                                                      nil))
                                                    java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 39
                                                  nil))
nil)
                                              nil))
                                            nil))
                                          nil)
                                         ("2"
                                           )
                                          (("2"
                                            (java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 52
                                            (("2"
                                              (expand "java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 83
                                              
                                                (assert)
                                                (("
2"
                                                  (lemma                                                                 ("
2
                                                   "                                                                   2)
                                                  (("
1"
                                                    (inst?)
                                                    (("
1"
                                                      (assert)
                                                      (("
1"
                                                        (expand "
*")
                                                        (("
1"
                                                          (assert)
                                                          nil
                                                          nil))
                                                        nil))
                                                      )
                                                     ("
2"
                                                      ( (skosimp*)
                                                      (("
2"
                                                        )
                                                        (("
2"
                                                          (assert)
                                                          (("
2                                                               "
                                                            (typepred
                                                             "
xis!1 nil))
                                                            (("2"
                                                              (assert)
                                                              nil
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil)
                                                   ""
                                                    (skosimp*)
                                                    (("2"
                                                      (assert)
                                                      nil
                                                      )
                                                    nil))
                                                  nil))
                                                )
                                              )
                                            nil))
                                          nil)("3java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61

                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    il)
                  
                 ("
2" (hide 3)
                  (("
2" (assert)
                    (("
2" (case "epsi!1 / abs(D!1) > 0")
                      (("
1" (assert) nil nil)
                       
                        (("
2" (hide -2)
                          (("
               nil
                            (("1" (grind) nil nil)
                             ("nil)
                              (("
2"
                                (hide 2)
                                (("
2" (grind) nil nil))
                                    (sigma_restrict_eq formula-declnil sigma "
reals/")
                              nil))
                            nil))
                          nil))
                        nil)
                       3 h )("
"(rind) nil nil) nil))
                      nil))
                    nil))
                  nil)
                 ("
3" (hide -2 3) (("3" (grind) nil nil)) nil))
                nil))
              nil))
            nil)
           ("
2" (propax) nil nil) ("3"
          nil))
        nil))
      nil))
    nil)
   ((const_fun -ecl "
[T>real"real_fun_opsr/)
    (sigma_scal formula-                            ("
"(ssert)nil nil)
    (sigma def-                   (-12
   nil)java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
 (integral_scal_g 0
  (integral_scal_g-1 nil 3488722885
   ("
" (skosimp*)
    (("
" (case-replace "D!1 = 0")
      (("
1" (assert)
        (("
1"
          (case "
integral?(a!1, b!1, LAMBDA (x: T): 0 * g!1(x), f!1, 0)")
          (("
1" (expand "integrable?")
            (("
1" (split +)
              (("
1" (inst + "                                (expand
                (("1" (assert)
                  (("1" (expand "*") (("1" (propax) nil nil)) nil))
                  nil))
                nil)
               ("2" (typepred "integral(a!1, b!1, 0 *                                                             nil
                (("
2" (lemma "integral_unique")
                  (("
2"
                    (nst - 0 i(a!,b!,0  g!1 !)"

                     "a!1" "b!1" "f!1" "0*g!1")
                    (("2" (assert)
                      (("2" (expand "*") (("2" (propax) nil nil)) nil))
                      nil)                                                 ("2java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
                    nil))
                  nil))
                nil))
              nil))
            nil)
           ("
2" (hide 2)
            (("
2" (expand "integral?")
              (("
2" (skosimp*)
                (("
2" (inst + "1")
                  (("
2" (skosimp*)
                    (("
2" (typepred "R!1")
                      (("
2" (expand "Riemann_sum?")
                        (("
2" (skosimp*)
                          (("
2"
                            (case "
Rie_sum(a!1, b!1, LAMBDA (x: T): 0 * g!1(x), P!1, xis!1, f!1) = 0")
                            (("
1" (lemma "abs_0")
                              (("
                                                        
                             ("2" (hide 2)
                              (("2"
                                (3
                                (("2"
                                  (expand                                                     (ssert)
                                  (""
                                    (lemma
                                     "sigma_zero[below(P!1`length-1)]")
                                    (("1"
                                      (hide2)
                                      (("1" (assert) nil nil))
                                      nil)
                                     ("2"
                                      (skosimp*)
                                      (("2" (ssert)nil nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil)                                                  nil))
                      nil))
                    nil))
                  nil))
                nil)
              nil))
            nil))
          nil))
        nil)
       ("(skosimp*java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
        (("
2" (typepred "integral(a!1, b!1, g!1,f!1                                          nil)
          (("2" (expand "integral?")
            (("2" (skosimp*)
              (("2" (inst -1 "epsi!1/abs(D!1)                              
                (("
1" (skosimp*)
                  (("
1" (inst + "delta!1")
                    (("
1" (skosimp*)
                      (("
1" (inst?)
                        (("
1" (assert)
                          ((("
2 propax)nil ))
                                       ("" ( "?")
                              (("1"
                                (auto-rewrite          nil)java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15

                                 java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 42
                                  (("1"
                                    (skosimp*)
                                    (("1"
                                      rjava.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 50
                                      (("1"
                                        (hide -1)
                                        (("1"
                                          (case-replace
                                           "java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 15
                                          (("
1"
                                            (expand "
Rie_sum")
                                            (("
1"
                                              assert)
                                              (("
1"
                                                (hide -1)
                                                ("
"
                                                  (inst
                                                   
                                                   "
sigma[java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 35
                                                 (0, P!1`length - 2,
((""
                                                    g!1(P!1`seq(1 + n)) * f!1(xis!1`seq(n)) -
                                                     g!1(P!1`seq(n)) * f!1(xis!1`seq(n)))")
                                                  (("
1"
                                                    cross-mult -1)
                                                    (("
1"
                                                      (assert)
                                                      (("
1"
                                                        (split -1)
                                                        (("
1"
                                                          (flatten)
(("
"
                                                            (lemma
                                                             "
sigma_scal[below(P!1`length - 1)]")
                                                            (("
1"
                                                              (inst?)
                                                              (1"

                                                                (inst                                                 1(P!1`seq1+n)*f!1(xis1n)-
                                                                 -
                                                                 
                                                                (                                                        (assertjava.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
                                                                  (expand
                                                                   "*")
(("1java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
                                                                    (assert)
  (("
1"
                                                                      (replace
                                                                       -1)
                                                                      ("
1
                                                                        (lemma
                                                                         ")
                                                                        (("
1"
                                                                          (inst
                                                                           -
                                                                           "
integral(a!1, b!1, g!1, f                                                                    )
                                                           sigma[below(P!java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
                                                               (0, P!1`length - 2,
                                                                LAMBDA (n: below(P!1`length - 1)):
                                                                  g!1(P!1`seq(1 + n)) * f!1(java.lang.StringIndexOutOfBoundsException: Range [0, 95) out of bounds for length 73
                                                                   g!1(P!1`seq(n)) * f!1(java.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 67
                                                                           "D!1")
                                                                          (("1"
                                                                            (assert)
                                                                            nil
                                                                            nil)
                                                                           ("2"
                                                                            (skosimp*)
                                                                            2"
                                                                              (assert)
                                                                              nil
                                                                              nil))
                                                                            nil))
                                                                          nil))
                                                                        nil))
                                                                      nil))
                                                                    nil))
                                                                  (hide 3)
                                                                nil))
                                                              nil)
                                                             (("
"
                                                              (skosimp*)
                                                              (("
2"
                                                                (assert)
                                                                nil
                                                                nil))
                                                              nil))
                                                            nil))
                                                          nil)
                                                         ("
2"
                                                          (flatten)
                                                          (("
2"
                                                            (hide-all-but
                                                             (1 2))
                                                            (("
2"
                                                              (grind)
                                                              nil
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil)
                                                     ("
2"
                                                      (skosimp*)
                                                      (("
2"
                                                        (assert)
                                                        nil
                                                        nil))
                                                      nil))
                                                    nil)
                                                   ("
2"
                                                    (hide 3)
                                                    (("
                                            nil
                                                      (expand
                                                       "Riemann_sum?")
                                                      (("2"
                                                        (inst
                                                         ((2"
                                                         "
xis!1")
                                                        2"

                                                          (expand
                                                           "Rie_sum")
                                                          (("2"
                                                            ((""
                                                            nil
                                                            nil))
                                                          nil))
                                                        
                                                      nil))
                                                    nil)                                                        nil))
                                                   ("3"
                                                    skosimp*java.lang.StringIndexOutOfBoundsException: Range [62, 63) out of bounds for length 62
                                                    ((3"
                                                      (assert)
                                                      nil
                                                      nil))
                                                    nil))
                                                  nil))
                                                
                                              nil))
                                            nil)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
                                           2
                                            (hide -1)
                                            (("
2"
                                              (hide 3)
                                              (("
2"
                                                (expand "
Rie_sum")
                                                (("
2"
                                                  (expand "
*                    nil)
                                                  ("2"
                                                    (lemma
                                                     "sigma_scal[below(P!1`length - 1)]")
                                                    (("1"
                                                      (inst
                                                       -
                                                       "LAMBDA (n: below(P!1`length - 1)):
                                           f!1(xis!1`seq(n)) * g!1(P!1`seq(1 + n)) -
                                            f!1(xis!1`seq(n)) * g!1(P!1`seq(n))"

                                                       "D!        nil))
                                                       "
P!1`length-2"
                                                       "
0")
                                                      (("
1"
                                                        (assert)
                                                        nil
                                                        nil))
                                                      nil)
                                                     ("
2"
                                                      (skosimp*)
                                                      (("
2"
                                                        (assert)
                                                        nil
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil)
                 ("
2" (case "epsi!1/abs(D!1)>0")
                  (("
1" (assert) nil nil)
                   ("
2" (cross-mult 1) (("2" (assert) nil nil)) nil)
                   ("
3" (assert) nil nil))
                  nil)
                 ("
3" (assert) nil nil))
                nil))
              nil))
            nil))
          nil))
        nil))
      nil))
    nil)
   ((number nonempty-type-decl nil numbers nil)
    (boolean nonempty-type-decl nil booleans nil)
    (= const-decl "
[T, T -> boolean]" equalities nil)
    (number_field_pred const-decl "
[number -> boolean]" number_fields
     nil)
    (number_field nonempty-type-from-decl nil number_fields nil)
    (real_pred const-decl "
[number_field -> boolean]" reals nil)
    (real nonempty-type-from-decl nil reals nil)
    (* const-decl "
[numfield, numfield -> numfield]" number_fields nil)
    (numfield nonempty-type-eq-decl nil number_fields nil)
    (integral? const-decl "
bool" rs_integral_def nil)
    (< const-decl "
bool" reals nil)
    (bool nonempty-type-eq-decl nil booleans nil)
    (T formal-nonempty-subtype-decl nil rs_integral_prep nil)
    (T_pred const-decl "
[real -> boolean]" rs_integral_prep nil)
    (real_times_real_is_real application-judgement "
real" reals nil)
    (* const-decl "
[T -> real]" real_fun_ops "reals/")
    (integral_unique formula-decl nil rs_integral_def nil)
    (integral const-decl "
{S: real | integral?(a, b, gg, ff, S)}"
     rs_integral_def nil)
    (NOT const-decl "
[bool -> bool]" booleans nil)
    (integrable? const-decl "
bool" rs_integral_def nil)
    (real_minus_real_is_real application-judgement "
real" reals nil)
    (posreal nonempty-type-eq-decl nil real_types nil)
    (> const-decl "
bool" reals nil)
    (nonneg_real nonempty-type-eq-decl nil real_types nil)
    (>= const-decl "
bool" reals nil)
    (Riemann_sum? const-decl "
bool" rs_integral_def nil)
    (partition type-eq-decl nil rs_partition nil)
    (below type-eq-decl nil naturalnumbers nil)
    (int nonempty-type-eq-decl nil integers nil)
    (integer_pred const-decl "
[rational -> boolean]" integers nil)
    (rational nonempty-type-from-decl nil rationals nil)
    (rational_pred const-decl "
[real -> boolean]" rationals nil)
    (increasing? const-decl "
bool" sort_fseq "structures/")
    (<= const-decl "
bool" reals nil)
    (restrict const-decl "
R" restrict nil)
    (- const-decl "
[numfield, numfield -> numfield]" number_fields nil)
    (AND const-decl "
[bool, bool -> bool]" booleans nil)
    (fseq type-eq-decl nil fseqs "
structures/")
    (barray type-eq-decl nil fseqs "
structures/")
    (nat nonempty-type-eq-decl nil naturalnumbers nil)
    (T_low type-eq-decl nil sigma "
reals/")
    (T_high     nil)
    (OR const-decl "
[bool, bool -> bool]" booleans nil)
    (sigma_nat application-judgement "
nat" sigma_below "reals/")
    (real_le_is_total_order name-judgement "
(total_order?[real])"
     real_props nil)
    (integer nonempty-type-from-decl nil integers nil)
    (IMPLIES const-decl "
[bool, bool -> bool]" booleans nil)
    (sigma_zero formula-decl nil sigma "
reals/"java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
    /"
)
    (int_abs_is_nonneg application-judgement "{j nonneg_int | j >= i}"
     real_defs nil)
    (real_ge_is_total_order name-judgement "(total_order?[real])"
     real_props nil)
    (abs_nat formula-decl nil abs_lems "reals/")
    (Rie_sum const-decl "real" rs_integral_def nil)
    (xis "(strict_total_order?[real])" real_props )
    (-decl "[numfield, numfield -> numfield] number_fields nil)
(judgement"
nt" integers nil)
    (real_lt_is_strict_total_order name-judgement
     "
(strict_total_order?[real])" real_props nil)
    (div_mult_pos_gt1 formula-decl nil extra_real_props nil)
    (posint_plus_nnint_is_posint application-judgement "
posint"
     integers nil)
    (a!1 skolem-const-decl "
T" rs_integral_prep nil)
    (b!1 skolem-const-decl "
T" rs_integral_prep nil)
    (P!1 skolem-const-decl "
partition[T](a!1, b!1)" rs_integral_prep
     nil)
    (g!1 skolem-const-decl "
[T -> real]" rs_integral_prep nil)
    (f!1 skolem-const-decl "
[T -> real]" rs_integral_prep nil)
    (sigma def-decl "
real" sigma "reals/")
    (xis!1 skolem-const-decl "
xis?[T](a!1, b!1, P!1)" rs_integral_prep
     nil)
    (nnreal_times_nnreal_is_nnreal application-judgement "
nnreal"
     real_types nil)
    (abs_mult formula-decl nil real_props nil)
    (sigma_scal formula-decl nil sigma "
reals/")
    (nonzero_real nonempty-type-eq-decl nil reals nil)
    (div_mult_pos_neg_lt2 formula-decl nil extra_real_props nil)
    (epsi!1 skolem-const-decl "
posreal" rs_integral_prep nil)
    (/ const-decl "
[numfield, nznum -> numfield]" number_fields nil)
    (nznum nonempty-type-eq-decl nil number_fields nil)
    (D!1 skolem-const-decl "
real" rs_integral_prep nil)
    (abs const-decl "
{n: nonneg_real | n >= m AND n >= -m}" real_defs
         nil)
    (- const-decl "
[numfield -> numfield]" number_fields nil)
    (/= const-decl "
boolean" notequal nil)
    (nzreal_div_nzreal_is_nzreal application-judgement "
nzreal"
     real_types nil)
    (real_gt_is_strict_total_order name-judgement
     "
(strict_total_order?[real])" real_props nil)
    (integral_def formula-decl nil rs_integral_def nil))
   nil))
 (integral_sum 0
  (integral_sum-1 nil 3253532115
   ("
" (skosimp*)
    (("
" (rewrite "integral_def")
      (("
" (typepred "integral(a!1, b!1, g!1, f!1)")
        (("
" (typepred "integral(a!1, b!1, g!1, h!1)")
          (("
" (name-replace "I1" "integral(a!1, b!1, g!1, f!1)")
            (("
" (name-replace "I2" "integral(a!1, b!1, g!1, h!1)")
              (("
" (expand "integral?")
                (("
" (skosimp*)
                  (("
" (inst -1 "epsi!1/2")
                    (("
" (inst - "epsi!1/2")
                      "
"()
                        (("
" (inst + "min(delta!1,delta!2)")
                              (xis?type-decl nil rs_integral_defnil)
                            ((    (eal_le_is_total_order name-judgement "
(total_order?[real])"
                              (("
"
                                (inst - "
P!1")
                                (("
"
                                   -java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
                                  (("
1"
                                    (split -2)
                                    (sigma def-decl "
real"sigma "reals/")
                                      (hide-4 -5 -)
                                      (1
                         typepred "
R!1")
                                        (("
1"
                                          ( ---nil integers nil)
                     ((1"

                                            (skosimp*)
                                            (("1"
                                              (replace -1)
                                              (("1    (1skolem-const-ecl""nil)
                                                -)
                                                (("
1"
                                                  (case-replace
                                                   "
Rie_sum( -"java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 47
                                                  (("
1"
                                                    (hide -1)
                                                    (("
1"
                                                      (inst
-
                                                       "
Rie_sum(a!1    ANDconst-decl "[bool, bool -> bool]" booleans nil)
                                                      (("1"
                                                        (inst
                                                         
                                                         "Rie_sum(a!1, b!1, g!1, P!1, xis!1, h!1)")
                                                        (("1"
                                                          (lemma
                                  java.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 70
                                                          (("( decl"[ java.lang.StringIndexOutOfBoundsException: Range [40, 38) out of bounds for length 71
                                                            (inst
                                                             -1
                                                             "I1 - Rie_sum(a!1, b!1,g!1, P!1, xis!1, f!1)"
                                                             "I2 - Rie_sum(a!1, b!1, g!1,P!1, xis!1, h!1)")
                                                            (("1"
                                                              ((" flatten (1" assert))nil
                                                              nil
                                                               "java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 36
                                                            nil))
                                                          nil)
                                                         "
2"
                                                          (hide-all-but
                                                           1)
                                                          (("
2"
                                                            (expand
                                                             "
Riemann_sum?")
                                                            (("
2"
                                                              (inst?)
                                                              nil
                                                              nil))
                                                            nil (assert)
                                                          nil))                                   (skosimp)
                                                        nil)
                                                       ("
2"
                                                        (hide-all-but
                                                         1)
                                                        (("
2"
                                                          (java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
                                                           "
java.lang.StringIndexOutOfBoundsException: Range [0, 71) out of bounds for length 55
                                                          (("2"
                        inst
                                                            !seq  n  !1xis1seq) 
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil)
                                                   ("2"
                                                    (hide 2)
                                                    (("2"
                                                      (hide -1 -2)
                                                      (""
                                                        (expand
                                                         "Rie_sum")
                                                        (("2"
                                                          (                                                               
                                                          (("2"
                                                            (lemma
                                                             "sigma_sum[below(length(P!1) - 1)]")
                                                            (("1"
                                                              (inst?)
                                                                                                                                (skosimp*)
                                                                (assert)
                                                                nil
                                                                nil))
                                                              nil)
                                                             ("2"
                                                              ((("3
                                                              (("
2"
                                                                (skosimp*)
                                                               ((2"

                                                                  ((3"
                                                                  nil
                                                                  nil))
                                                                nil))
                                                              nil))
                                                           )
                                                                                                                      nil)
                                                        nil))
                                                     )
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil)
)java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
                                    nil)
                                   ("
2" (assert) nil nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil)
                        nil))
                      nil))
                    nil))
                  nil))
                nil))
              nil))
            nil))
          nil))
        nil))
      nil))
    nil)
   ((real_plus_real_is_real application-judgement "
real" reals nil)
    integral_def decl nil rs_integral_def )
    (numfield nonempty-type-eq-decl nil number_fields nil)
    (                                                              (ground)
    (bool nonempty-type-eq-decl nil booleans nil)
    (< const-decl "
bool" reals nil)
    (integrable? const-decl "
bool" rs_integral_def nil)
    (integral? const-decl "
bool" rs_integral_def nil)
    integral const-decl "
{S: real | integral?(a, b, gg, ff, S)}"
     rs_integral_def nil)
    (                                               +
    (boolean nonempty-type-decl nil booleans nil
    (number_field_pred                             ("
3"
     nil)
    (number_field nonempty-type-from-decl nil number_fields nil)
    (real_pred const-decl "
[number_field -> boolean]" reals nil)
    (real nonempty-type-from-decl nil reals nil)
    (T_pred const-                                                        (assert)
    (T formal-nonempty-subtype-decl nil rs_integral_prep nil)
    (posreal_min application-judgement
     "
{z: posreal | z <= x AND z <= y}" real_defs nil)
    (min const-decl "
{p((4"
    (<= const-decl "
bool" reals nil)
    (AND const-decl "
[bool, bool -> bool]" booleans nil)
    (--decl nil rs_partition nil)
    (below type-eq- nil naturalnumbers nil)
    itypeeq-declintegers nil)
    (integer_pred const-decl "
[rational -> boolean]" integers nil)
    (rational nonempty-type-from-decl nil rationals nil)
    (rational_pred const-decl "
[real -> boolean]" rationals nil)
    (increasing? const-decl "
bool" sort_fseq "structures/")
    (restrict const-decl "
R" restrict nil)
    (- const-decl "
[numfield, numfield -> numfield]" number_fields nil)
    (fseq type-eq-decl nil fseqs "
structures/")
    (barray type-eq-decl nil fseqs "
structures/")
    (nat nonempty-type-eq-decl nil naturalnumbers nil)
    (int_minus_int_is_int application-judgement "
int" integers nil)
    (Rie_sum const-decl "
real" rs_integral_def nil)
    (xis? type-eq-decl nil rs_integral_def nil)
    (a!1 skolem-const-decl "
T" rs_integral_prep nil)
    (b!1 skolem-const-decl "
T" rs_integral_prep nil)
    (P!1 skolem-const-decl "
partition[T](a!1, b!1)" rs_integral_prep
     nil)
    (g!1 skolem-const-decl "
[T -> real]" rs_integral_prep nil)
    (f!1 skolem-const-decl "
[T -> real]" rs_integral_prep nil)
    (xis!1 skolem-const-decl "
xis?[T](a!1, b!1, P!1)" rs_integral_prep
     nil)
    (triangle formula-decl nil real_props nil)
    (real_lt_is_strict_total_order name-judgement
     "
(strict_total_order?[real])" real_props nil(("2"
(application-judgement"
nnreal
     real_types nil)(expand")
    (real_ge_is_total_order name-judgement "
(total_order?[real])"
     real_props nil)
    (real_le_is_total_order name-judgement "
(total_order?[real])"
     real_props nil)
   (h! skolem-const-decl "
T- real]" rs_integral_prep nil)
    (real_gt_is_strict_total_order name-judgement
     "
(strict_total_order?[real])" real_props nil)
    (posint_plus_nnint_is_posint application-judgement "
posint"
     integers nil)
    (         (assert)
    (T_high type-eq-decl nil sigma "
reals/")
    (OR const-decl "
[bool, bool -> bool]" booleans nil)
    (* const-decl "
[                          nil))
    (integer nonempty-type-from-decl nil integers nil)
    (IMPLIES const-decl "[bool, bool -> bool]" booleans nil)
    (sigma_sum formula-decl nil sigma "reals/")
    (real_times_real_is_real application-judgement "real" reals nil)
    (Riemann_sum? const-decl "bool" rs_integral_def                                                        ((2
    (>= const-decl "bool" reals nil)
    (nonneg_real nonempty-type-eq-decl nil real_types nil)
    (> const-decl "bool" reals nil)
    (posreal nonempty-type-eq-decl nil real_types nil)
    (/= const-decl "boolean" notequal nil)
    (nznum nonempty-type-eq-decl nil number_fields nil)
    (/ const-decl "[numfield, nznum -> numfield]" number_fields nil)
    (posreal_div_posreal_is_posreal application-judgement "posreal"
     real_types nil)
    (                          nil)
    (= const-decl "[T, T -> boolean]" equalities nil)
    (NOT const-decl "[bool -> bool]" booleans nil))
   nil))
 (integral_sum_g 0
  (integral_sum_g-1 nil 3488732672
   ("" (skosimp*)
    (("" (                 nil)
      (("" (typepred                                             )
        (("" (typepred "integral(a!1, b!1, h!1, f!1)")
          ("" (replace I1""a1, b1, g1 !))
            (("" (name-replace "I2" "integral(a!1, b!1, h!1, f!1)")
              (("" (expand "integral?")
                (("" (skosimp*)
                  ((""                              nil))
                    (("" (inst - "epsi!1/2")
                      (("" (skosimp*)
                                            java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
                          (("" (skosimp*)
                            (("" (inst - "P!1")
                              ((""
                                (inst - "P!1")
                                ((""
                                  (split -1)
                                  (("1"
                                    (split -2)
                                    (("1"
                                      (hide -4 -5 -6)
                                      (("1"
                                        (typepred "R!1")
                                        (("1"
                                          (expand "Riemann_sum?")
                                          (("1"
                                            (skosimp*)
                                            (("1"
                                              (replace -1)
                                              (("1"
                                                (hide -1)
                                                (("1"
                                                  (case-replace
                                                   "Rie_sum(a!1, b!1, LAMBDA x: g!1(x) + h!1(x), (3 (2 (""(  
                                                  (("1"nil
                                                    (java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 21
                                                    (        )java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
                                                      (inst
                                                       -
                                                       "Rie_sum(a!1, b!1  (integral_scal- nil3253532115
                                                      (("
1"
                                                        (inst
                                                         -
                                                         "
Rie_sum(a!1, b              (""(expand "const_fun"java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
                                                        (("1"
                                                          (lemma
                                                           "triangle")
                                                          (("1"
                                                            (inst                  (""( + d!"java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
                                                             -1
                                                             "
I1 - Rie_sum(a!1, b!1,g!1, P!1, xis!1, f!1)"
                                                             "
I2 - Rie_sum(a!1, b!1, h!1,P!1, xis!1,                                 (1
                                                            (                                    replacejava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
                                                              (assert)
                                                              nil
                                                              nil))
                                                            nil))
                                                          nil                                            )
                                                         1
                                                          (hide-all-but
                                                           1)
                                                          -
                                                            (expand
                                                                              LAMBDA (:below(lengthP!1) -1):
                                                            (("2"
                                                              (inst?)
                                                              nil
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil)
                                                       ("2"
                                                        (hide-all-but
                                                         1)
                                                       (2"
                                                          (expand
                                                           "
Riemann_sum?")
                                                          ("
"
                                                            (inst?)
                                                            java.lang.StringIndexOutOfBoundsException: Range [63, 64) out of bounds for length 63
                                                            nil))
                                                          (hide3
                                                        nil))
                                                      nil))
                                                    nil)
                                                   ("
                                                      (3
                                                    
                                                    (("2"
                                                      (hide -1 -2)
                                                      (("2"
                                                        (expand
                                                          )
                                                        (("2"
                                                          (assert)
                                                          (("2"
                                                            (lemma
                                                             "sigma_sum[below(length(P!1) - 1)]")
                                                            (("1"
                                                              (inst?)
                                                              1"
                                                                (assert)
       nil
                                                                nil))
                                                              nil)
                                                             ("
2"
                                                              (hidejava.lang.StringIndexOutOfBoundsException: Range [0, 68) out of bounds for length 63
                                                              (("
2"
                                                     "
"
                                                                (("
2"
                                                                  (assert)
                                                                  nil
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil)                                                      (("

nil
                                                nil))
                                              )
                                            nil))
                                          nil))
                                        )java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
                                      nil)
                                     ("2" (assert) nil nil))
                                    )
                                   ("2" (assert) nil nil))
                                  nil                                                    ((""
)
                              nil))
                            nil))
                          nil))
)
                      nil))
                    nil))
                  nil))
                nil))
              nil))
            nil))
          nil))
        nil))
      nil))
    nil)
   ((real_plus_real_is_real application-judgement "real" reals nil)
    java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 55
    (numfield nonempty-type-eq-decl nil number_fields nil)
    (+ const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (bool nonempty-type-eq-decl nil booleans nil)
    (< const-decl "bool" reals nil)
    (               h)
    (integral? const-decl "bool" rs_integral_def nil)
    (integral const                                                        
     rs_integral_def nil)
    (number nonempty-type-decl nil numbers nil)
    (boolean nonempty-type-decl nil booleans nil)
    (number_field_pred const-decl "[number -> boolean]" number_fields
     nil)
    (number_field nonempty-type-from-decl nil number_fields nil)
    (real_pred const-decl "[number_field -> boolean]" reals nil)
    (nil)java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
    (T_pred const-decl "[real -> boolean]" rs_integral_prep
    (T formal-nonempty-subtype-decl nil rs_integral_prep nil)
    (posreal_min application-judgement
     "{z: posreal                               )
    (min const-decl "
{p: real | p <= m AND p
    (<= const
    (AND const-decl "[bool, bool -> bool]" booleans nil)
    (partition type-eq-decl nil rs_partition nil)
    (below type-eq-decl nil naturalnumbers nil)
    (int nonempty-type-eq-decl nil integers nil)
    (integer_pred const-decl "[rational -> boolean]" integers nil)
    (rational nonempty-type-from-decl nil rationals nil)
    (rational_pred const-decl "[real -> boolean]" rationals nil)
    (increasing? const-decl "bool" sort_fseq "structures/")
    (restrict const-decl "R" restrict nil)
    (- const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (fseq type-eq-decl nil fseqs "structures/")
(eqdecl nil fseqs structures/")
    (nat nonempty-type-eq-decl nil naturalnumbers nil)
    (int_minus_int_is_int application-judgement "
int" integers nil)
    (Rie_sum const-decl "
real" rs_integral_def nil)
    (xis? type-eq-decl nil rs_integral_def nil)
    (a!1 skolem-const-decl "
T" rs_integral_prep nil)
    (b!1 skolem-const-decl "
T" rs_integral_prep nil)
    (P!1 skolem-const-decl "
partition[T](a!1, b!1)" rs_integral_prep
     nil)
    (g!1 skolem-const-decl "
[T -> real]" rs_integral_prep nil)
    (fnil)
    (xis!1 skolem-const-decl "
xis?[T](a!1, b!1, P!1)" rs_integral_prep
     nil)
           ("
2 h)
    real_lt_is_strict_total_order-udgement
     "(strict_total_order?[real])" real_props nil)
   nnreal_plus_nnreal_is_nnrealapplication-udgement""
     real_types nil)
    (real_ge_is_total_order name-judgement "(total_order?[real])"
     real_props nil)
    (real_le_is_total_order name-judgement "(total_order?[real])"
     real_props nil)
    (h!1 skolem-const-decl "[T -> real]" rs_integral_prep nil)
    (real_gt_is_strict_total_order name-judgement
     "(strict_total_order?[real])" real_props nil)
    pjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 63
     integers nil)
    (T_low type-eq-decl nil sigma "reals/")
    (T_high type-eq-decl nil sigma "reals/")
    (OR const-decl "[bool, bool -> bool]" booleans nil)
*const-"numfield - numfield] number_fields nil)
    (integer nonempty-type-from-decl nil integers nil)
    (IMPLIES const-decl "
[bool, bool -> bool]" booleans nil)
    (sigma_sum formula-decl nil sigma "
reals/")
    r - real  nil)
    (Riemann_sum? const-decl "
bool" rs_integral_def nil)
    "
belowP!)"
    (                (inst?java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
    (> const-decl "
bool" reals nil)
    (n-eq-  java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 54
    (/= const-decl "
boolean" notequal nil)
    (nznum nonempty-type-eq-decl nil number_fields nil)
    (/ const-decl "
[numfield, nznum -> numfield]" number_fields nil)
    (posreal_div_posreal_is_posreal application-judgement "
posreal"
     real_types nil)
    (real_minus_real_is_real java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 25
    (= const-decl "
[T, T -> boolean]" equalities nil)
    (NOT const-decl "
[bool -> bool]" booleans nil))
   nil))
 (integral?_sum 0
  (integral?_sum-1 nil 3278177576
   ("
" (skosimp*)
    (("
" (lemma " nil)
      (("" (inst?)
        (("" (inst?)
          (""(ssert)
            (("" (lemma "integral_def")
              (("" (inst - "a!1" "b!1" "f!1" "g!1" "v1!1")
                (("" (assert)
                  (("" (lemma "integral_def")
                    (("" (inst - "a!1" "b!1" "h!1" "g!1" "v2!1")
                      (("" (assert)
                        (("" (flatten)
                          (("" (assert)
("(inst - "g!1")
                              (("
"(expand "restrict"1)
                                (assert)
                                )
                                  (flatten)
                                  (("
" (assert) nil nil))
                                  nil))
                                  nil))
                              nil))
                            nil))
                          nil)
                        nil)
                      )
                    nil))
                  nil))
                ))
              nil))
)
          (1java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 45
        )
      nil))
    nil)
  ( - nilr )
    (integral_def formula-decl -"
transitive)
    (name-java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
     [])"n)
     ->boolean]"
 realsnil
    (T formal-nonempty-java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 9
    (_pred const-ecl                           1(pand Riemann_sum)
    (real nonempty-type-from-decl nil reals nil)
    (real_pred const-decl "[number_field ->                                 (auto-rewrite "Rie_sumauto- ")
    (number_field nonempty-type-from-decl nil number_fields nil)
    (number_field_pred const-decl "[number -> boolean]" number_fields
     nil)
    (boolean nonempty-type-decl nil booleans nil)
    (number nonempty-type-decl nil numbers nil))
   shostak))
 (integral?_sum_g 0
  (integral?_sum_g-1 nil 3489152310
   ("" (skosimp*)
    (("" (lemma "integral_sum_g")
      (" i?
        (("
"                                           (("1"
          (("
" (inst - "f!1")
            (("
" (assert)
              (("
" (lemma "integral_def")
                (("
" (inst - "a!1" "b!1" "f!1" "g!1" "v1!1")
                  (("
" (assert)
                    (("
" (lemma "integral_def")
                      (("
" (inst - "a!1" "b!1" "f!1" "h!1" "v2!1")
                        (("
" (assert)
                          (("
" (flatten)
                            (("
" (        (("1" (expand* "has_least?" "leas"java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
                                                  (1 (assertnil )) nil))
                                (                  nil)
                                ((""
                                  (replace -4)
                                  ((""
                                    (flatten)
                                    (("" (assert) nil nil))
                                    niljava.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 67
                                  nil)
                                nil))
                              nil))
                            nil)
                          nil))
                        nil))
                      nil))
                    nil)
((" skosimp* :preds? )
nil)
              nil                )
            nil))
          nil))
        nil))
      nil))
    nil)
   ((    (restrict const-decl "
R" restrict nil)
     nil)
    (real_lt_is_strict_total_order name-judgement
"
strict_total_orderreal]"java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
    ( formula-decl nil rs_integral_def nil)
( -nonempty-subtype-decl nil rs_integral_prep nil)
    (    java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 61
    (real nonempty-     restrict_order_props nil)
    (real_pred const-decl "
[number_field
(nonempty-ype-romdeclnilnil)
   number_field_pred decl [umber >boolean] 
     nil)
    
nonemptytype- -
   nil))
 (integral_diff 0
  integral_diff-1nil 3253532115
("skosimp
    ("
 (lemma "")
      !1" "b!1""!" "g!1"-!")
        (("" (assert    <bool  )
          (" split-)
            "
"(latten)
              "
(sert
      (" (cp - "x1)
                  (("1" (assert)
                    (     bounded_integersnil)
                      (("1" (!1  (1
                        (("1" (assertrestrict_order_props)
                          (("1" (lemma " restrict_order_propsnil)
                            (("
1"-nil java.lang.StringIndexOutOfBoundsException: Range [60, 52) out of bounds for length 65
                                   (("

    T_predconst-ecl [int ->"bounded_integers nil)
                            (("
1"
                                  (flatten)
                                  (("
                                       (expand
java.lang.StringIndexOutOfBoundsException: Range [46, 36) out of bounds for length 49
                                     "(LAMBDA (x: T): -h!1(x)) = -1 * h!1")
                                    (1 a 
                                     ""
                                      apply-extensionality1:java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 71
("
                  (xpand *)
                                        (2 assert)nil il)
                                        nil))
                            )
                                    nil))
nil)
                                has_greatest? const-decl "
bool" minmax_orders nil)
                              )
                            nil))
                          nil))
                        ))
                      nil))
                    nil))
nil)
                ))
              nil)
             ("
2" (hide 2)
              (("
2"(lemma "integral_scal")
                (("
2" (inst -1 "-1" "a!1" "b!1     nil
(""(java.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
                    (("
2" (flatten)
                      (("
2" (assert)
                        (("
2" (case-replace "-h!1 = -1*h!1")
                          (("
2" (apply-extensionality 1 :hide? t)
                            (("
2" (expand "*")
                             (                                  nil)
                                (assert)
                                (("
2"
                                  real_props nil)
                                  ("
2 (assertnil))
                                  ("(propjava.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
                                nil))
                              nil))
                            nil))
                          nil))
                        nil)
                      nil))
                    nil))
                  nil))
                nil))
              nil))
            nil))
          nil))
        nil))
      nil))
    nil)
   ((integral_sum formula-decl nil rs_integral_prep nil)
    (bounded_integers  java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 30
     "
(strict_total_order?[real])" java.lang.StringIndexOutOfBoundsException: Range [54, 40) out of bounds for length 64
    (minus_real_is_real application-judgement "
real" reals nil)
    (minus_odd_is_odd application-judgement "
odd_int" integers nil)
    (numfield nonempty-type-eq-decl nil number_fields nil)
    (= const-decl "
[    (reorder_restrict applicationjudgement"[]"
                                                      2java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 55
    (* const-restrict_order_props)
    ( application-udgement "eal" reals nil
    (P -nil
    (real_plus_real_is_real application-   restrict constd"R nil)
    ("
[T->real" real_fun_ops "eals"java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
                                                             
    T_pred const-decl "
[real -> boolean]" rs_integral_prep nil)
    (real nonempty-type-from-decl nil reals nil)
    (real_pred const-decl     (eal_pred const-decl "
[number_field -> boolean]" reals nil)
    (number_field    booleantype-nil  )
    (number_field_pred   )(
     (on_empty_bounded_above_has_greatestjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
    (boolean nonempty-type-decl nil booleans nil)
    (number -- il  )
   nil))
 (integral_diff_g 0                    ("
 assert
  (integral_diff_g-1 nil 3489152523
   ("" 
    (("" (lemma "integral_sum_g")
      (("" (inst -1 "a!1" "b!1" "f!1" "g!1" "-h!1")
        (("" (assert)
          (("" (split -1)
            (("1" (flatten)
              (("1" (assert)
                (("1"
                  (case "(LAMBDA x: (-h!1)(x) + g!1(x)) = (LAMBDA x: g!1(x) - h!1(x))")
                  (("1"                                java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
                    (("1" (replace -1)
                      (("1" (lemma "integral_scal_g")
                        (("1" (inst - "-1" "a!1" "b!1" "f!1" "h!1")
                          (("1" (assert)
                            (("1" (flatten)
                              (("1"
                                (case "-1*h!1 = -h!1")
                                (("1" (assert) nil nil)
                                 ("2"
                                  (hide-all-but 1)
                                  (("2"
                                    (expand "*")
                                    (("2"
                                      (decompose-equality)
                                      (("2"
                                         ")
                                        (("
2" (assert) nil nil))
                                        nil))
                                      nil))
                                    nil))
                                                                (inst -
                                nil))
                              nil))
                            il))
                          ))
                        nil))
                      nil))
                    nil)
                   ("
2" (hide-all-but 1) (("2" (                   )
                  nil))
                nil))
              nil)
             ("
2" (lemma "integral_scal_g")
              (("
2" (inst - "-1" "a!1" "b!1" "f!1nil
                (("2" (assert)
                  (("2" (flatten)
                    (("2" (case "-1*h!1 = -h!1")
                      (("1" (assert) nil nil)
                       ("2" (hide-all-but 1)
                        (("2" (decompose-equality)
                          (("2" (grind) nil nil)) nil))
                        nil))
                      nil))
                    nil))
         nil))
                nil))                   nil))
              nil))
            )
          nil))
        nil))
      nil))
    nil)
   ((integral_sum_g formula-decl nil rs_integral_prep nil)
    (real_minus_real_is_real application-judgement "real" reals nil)
    (real_lt_is_strict_total_order name-judgement
     "(strict_total_order?[real])" real_props nil)
    (- const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (+ const-decl "[numfield, numfield -> numfield]" number_fields nil)
(constdecl "T T - boolean]" equalities nil)
    (numfield     (int_minus_int_is_application-judgement "int" integers nil)
    (minus_odd_is_odd application-judgement "odd_int" java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 19
    -constdecl"numfield -> numfield]" number_fields nil)
    (* const-decl "[numfield, numfield -> numfield]" java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 53
    (    (< const<constjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 35
    (real_times_real_is_real application-judgement "real" reals nil)
    (* const-decl "[T -> real]" real_fun_ops "reals/")
    integral_scal_g formuladecl nil rs_integral_prep nil)
    (real_plus_real_is_real application-judgement "real" reals nil)
-decl"T- real]" real_fun_ops  "eals/" (constdecl"T - real]" real_fun_ops "reals/")
    (T( application-
     declool  )
    (real nonempty-type-from    (ool-eq java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
    (real_pred const-decl "[number_field    )
    -type-rom- nil number_fields nil
tdecl "
number  boolean] number_fields
nil
    (boolean nonempty-type-decl nil booleans nil)
    (number nonempty-type-decl nil numbers nil))
   nil                              (1java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
     ANDconstdecl "bool,bool -> bool]" booleans nil                                     [real,real, [,T (="
1nil 3253532115
    
    (("
" (typepred "integral(a!1, b!1,g!1, f!1)")
      ("
"(xpand "integral"
(
          (case "
FORALL (eps: posreal): integral(a!1, b!1, g!1, f!1) >= -eps")
          (("
1" (hide -2 -3 -5)
            (1 (nst -1 "
-integral(a!1, b!1, g!1, f!1)/2"                               restrict[[,real],[,T] ]<)
              (("
1" (assert) nil nil)
               ("
2" (prop)
                (("
1" (assert) nil nil) ("2" (assert) nil nil)) nil))
              nil))
            nil)
           ("
2" (skosimp*)
            (("
2" (assert)
              (("
2" (inst -1 "eps!1")
                (("
2" (skosimp*)
                  (("
2" (lemma "axiom_of_archimedes")
                    (("
2" (inst -1 "(b!1-a!1)/delta!1+2")
                      (("
2" (skosimp*)
                            (epsi!1skolem-const-decl "
posreal" rs_integral_prep nil)
                          (("
2" (inst - "eq_partition(a!1,b!1,NM)")
                            (("
1" (split -3)
                              "
"
                                (inst
                                 -
                                 "
    absconstdecl"n:nonneg_real  n = mAND n > -} real_defs
                                (("
1"
                                  (name-replace
                                   "
II"
                                   real_types 
                                  (("
1"
                                    (case
                                     "
Rie_sum(a!1, b!1, g!1, eq_partition(a!1, b!1, NM), gen_xis(a!1,b!1,eq_partition(a!1, b!1, NM)), f!1) >= 0")
                                    (("
1"
                                      (expand "
abs")
                                      (("
1"
                                        (lift-if)
                                               ("
1"(ground) nil nil)java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
      nil))
                                      )
                                     (2 nil)
                                          (number -type            ( (amereplace"
I2""integrala!,!,g1 h!1))
                                      (("2"
                                        (name
                                         "
                                         "
eq_partition(a!1, b!1, NM)")
                                        (("
2"
java.lang.StringIndexOutOfBoundsException: Range [50, 42) out of bounds for length 54
("
"
                                            (expand "
Rie_sum")
                                            (("
2"
                                              (lemma
                                               "
sigma_nonneg[java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 56
                                              (("1"
                                                (assert)
                                                1                                   1java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
                                                  
                                                  (("1"
    - (?S)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
                                                    (("1"
                                                      (hide 2)
                                                      (("1"
                                                        (skosimp*)
                                                        (("1"
                                                          (factor 1 l)
                                                          (("1"
                                                            (inst?)
                                                            (("1"
                                                              (case
                                                               "g!1(NN`seq(1 + i!2)) - g!1(NN`seq(i!2)) >= 0")
                                                              (("1"                                                   Rie_sum!1,1 ! !,!,LAMBDAx 1(x  h!(x)                        Rie_sum!, b!,g1P1 xis!,f1  Rie_sum(!1,b1 g!,))
                                                                (mult-by
                                                                 -1
                                                                 "f!1(gen_xis(a!1, b!1, NN)`seq(i!2))")
                                                                (("1"
                                                                  (assert)
                                                                  nil
                                                                  nil))
                                                                nil)
                                                               ("2"
                                                                -
                                                                 2)
                                                                (("2"
                                                                  (typepred
                                                                   "                                                          "triangle")
                                                                  (("
2"
                                                                    (inst
                                                                     -
                                                                     "
i!2")
                                                                    (("
2"
                                                                      (assert)
                                                                      (("
2"
                                                                        (expand
                                                                         "
increasing?")
                                                                        nil))
                                                                          (assert)
                                                                          2java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
                                                                            (hide-all-java.lang.StringIndexOutOfBoundsException: Range [71, 72) out of bounds for length 71
                                                                             -9
                                                                             "
seq(NN)(i!2)"
                                                                             "
seq(NN)(1+i!2)")
                                                                            (inst?)
                                                                              (assert)
                                                                              (("
2"
                                                                                (inst?)
                                                                                (("
2"
                                                                                  (2java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
                                                                                  nil
                                                                                  nil))
                                                                                nil))
                     nil))
          nil))
                                                                          nil)                                                      2"

                                                                        nil))
                                                                      nil))
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil)
                                                             ((""
                                                              (assert)
                                                              (("2"
                                                                (hide
                                                                 2)
                                                                (("2"
                                                                  (typepred
                                                                   "gen_xis(a!1, b!1, NN)")
                                                                  (("2"
                                                                    (inst
                                                                     -
                                                                     "i!2")
                                                                    (                                                                  il
                                                                      (flatten)
                                                                      (("2"
                                                                        (typepred
                                                                         "NN")
                                                                        (("2"
                                                                          (inst-cp
                                                                           -
                                                                           "i!2")
                                                                          (("2                                                nil)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
                                                                            (inst
                                                                             -
                                                                             "
 ("" assert nil
                                                                            (2 (ssert nilnil))
                                                                              (ground)
                                                                              nil
                                                                              nil))
                                                                            nil))
                                                                          nil))
                                                                        nil))
                                                                      nil))
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil))
                                                          java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil)
                                                 ("2"
                                                  (assert)
                                                  nil
                                                  nil))
                                                nil)
                                               ("2"
                                                (hide 2)
(("2"
                                                  (skosimp*)
                                                  ""
                                                    (assert)
                                                    nil
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil))
                                        )
                                      nil))
                                    nil)
                                  nil)
                                 ("2"
                                  (lemma "Riemann?_Rie")
                                  (("2"
                                    (inst -1 "a!1" "b!1" "f!1" "g!1")
                                    (("2"
(-
                                      (("1" (inst?) nil nil)
                                       ("2" (propax) nil nil))
                                      nil))
                                    nil))
                                  nil)
(3"
                                  (expand "
max" -1)
                                  (("
3"
                                    (lift-if)
                                    (("
3" (ground) nil nil))
                                    nil))
                                  nil))
                                nil)
                               ("
2java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
                                (rewrite "width_eq_part")
                                (("2"
                                  (hide -3 -4 -5 2 3)
                                  (("2"
                                    (name-replace ba "b!1-a!1")
                                    (("2"
                                      (move-terms -2 l 2)
                                      (("2"
                                        (case "ba / delta!1 < i!1 - 1")
(heqnilsigma"/)
                                          (-)
                                          (("
1"
                                            (mult-by -1 "
delta!1"    (integer nonempty-type-from-decl nil integers nil)
                                            (("
1"
                                 mult-by 1 "
NM-1")
                                              (("
1"
                                                (expand "
max")
                                                (("
1"
                                                  (lift-if)
                                                  (("
1"
                                                    nonneg_real typeeqdecl nil real_typesnil)
                                                    (("
1"
                                                      (replace -2 * rl)
                                                      (("
1"
                                                        (hide -2)
                                                    1
                                                          (assert)
                                                          (("
1"    (real_minus_real_is_real application-judgement "real" reals nil)
                                                            (typepred
                                                             "
i!1")
                                                            (("
1"
                                                              (factor
                                                               -3
                                                               r)
                                                              (("
1"
                                                                (case
                                                                 "
i! (("(ypepred  "ntegrala1 !1 1 !))
                                                                (("1"
                                                                  (mult-by
                                                                  
                                                                   )
                                                                  (("1"
                                                                    (assert)
                                                                    nil
                                                                    nil))
                                                                  nil)
                                                                 java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
                              assert)
                                                                  nil
                                                                  nil))
                                                                nil))                                  ("java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
         nil)
                                                            nil))
                                                          tR1"

                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil)
                                         ("2" (assert) nil nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil)
                             ("2" (assert) nil nil))
                            nil)
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
               ))
              nil))
            nil))
          nil))
        nil))
      nil))
    nil)
   ((integral const-decl "{                                                         (2
     rs_integral_def nil)
    (integrable? const-decl "
bool" rs_integral_def nil)
    (integral? const-decl "
bool" rs_integral_def nil)
    (< const-decl "
bool" reals nil)
    (T formal-nonempty-subtype-decl nil rs_integral_prep nil)
    (T_pred const-decl "
[real -> boolean]" rs_integral_prep nil)
    (real nonempty-type-from-decl nil reals nil)
    (real_pred const-decl "
[number_field -> boolean]" reals nil)
    (number_field nonempty-type-from-decl nil number_fields nil)
    (number_field_pred const-decl "
[number -> boolean]" number_fields
     nil)
    (number nonempty-type-decl nil numbers nil)
    (NOT const-decl "
[bool -> bool]" booleans nil)
    (bool nonempty-type-eq-decl nil booleans nil)
    (boolean nonempty-type-decl nil booleans nil)
    (- const-decl "
[numfield -> numfield]" number_fields nil)
    (        "
Riemann_sum)
    (posreal nonempty-type-eq-decl nil real_types nil)
    (> const-                                   ("
    (nonneg_real nonempty-type-eq-decl nil real_types nil)
    (>= const-decl "
bool" reals nil)
    (minus_nzreal_is_nzreal application-judgement "
nzreal" real_types
     nil)
    (real_gt_is_strict_total_order name-judgement
     "
(strict_total_order?[real])" real_props                                                       ))
    (minus_real_is_real application-judgement "
real" reals nil)
    (real_ge_is_total_order name-judgement "
(total_order?[real])"
     real_props nil)
    (real_div_nzreal_is_real application-judgement "
real" reals nil)
    (AND const-decl "
[bool, bool -> bool]" booleans nil)
    (/= const-decl "
boolean" notequal nil)
    (nznum(("
2java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
    (/ const-decl "[numfield, nznum -> numfield]" number_fields nil)
    (a!1 skolem-const-decl "T" rs_integral_prep nil)
    (b!1 skolem-const-decl "T"                                            assert)
    (g!1 skolem-const-decl "[T -> real]" rs_integral_prep nil)
    (f!1 skolem-const-decl "[T -> real]" rs_integral_prep nil)
    (real_lt_is_strict_total_order name-judgement
     "(strict_total_order?[real])" real_props nil)
    (real_plus_real_is_real application-judgement "real" reals nil)
    (- const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (+ const-decl "[numfield, numfield -> numfield                                                                )
    (int_max application-judgement "
{k: int | i <= k AND j <= k}"
     real_defs nil)
    (rat_max application-judgement "
{s: rat | s >= q AND s >= r}"
     real_defs nil)
    (= const-decl "
[T, T -> boolean]" equalities nil)
    (max const-decl "
{p: real | p >= m AND p >= n}" real_defs nil)
    (rational_pred const-decl "
[real -> boolean]" rationals nil)
    (rational nonempty-type-from-decl nil rationals nil)
    (integer_pred const-decl "
[rational -> boolean]" integers nil)
    (int nonempty-type-eq-decl nil integers nil)
    (<= const-decl "
bool" reals nil)
    (Riemann?_Rie formula-decl nil rs_integral_def nil)
    (minus_odd_is_odd application-judgement "odd_int" integers nil)
    (sigma_nonneg formula-decl nil sigma "reals/")
    (IMPLIES const-decl "[bool, bool -> bool]" booleans nil)
    (integer nonempty-type-from-decl nil integers nil)
    (posint_plus_nnint_is_posint application-judgement "posint"
     integers nil)
    (T_low type-eq-decl nil sigma "reals/")
    (T_high type-eq-decl nil sigma "reals/")
    (OR const-decl "[bool, bool -> bool]" booleans nil)
    (* const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (nnint_plus_posint_is_posint application-judgement "posint"
     integers nil)
    (both_sides_times_pos_ge1_imp formula-decl nil extra_real_props
     nil)
    (increasing? const-decl "bool" real_fun_preds "reals/")
    (closed_interval type-eq-decl nil intervals_real "reals/")
    (i!2 skolem-const-decl "below(length(NN) - 1)" rs_integral_prep
     nil)
    (NN skolem-const-decl "partition[T](a!1, b!1)" rs_integral_prep
     nil)
    (int_minus_int_is_int application-judgement "int" integers nil)
    (real_le_is_total_order name-judgement "(total_order?[real])"
     real_props nil)
    (real_times_real_is_real application-judgement "real" reals nil)
    (abs const-decl "
{(hide 2)
         nil)
    (gen_xis const-decl "xis?(                                                                skosimp*)
    (Rie_sum const-decl "
real" rs_integral_def nil)
    (xis? type-eq-decl nil rs_integral_def nil)
    (Riemann_sum? const-decl "
bool" rs_integral_def nil)
    (IFF const-decl "
[bool, bool -> bool]" booleans nil)
    (posreal_times_posreal_is_posreal application-judgement "
posreal"
     real_types nil)
    (nonzero_real nonempty-type-eq-decl nil reals nil)
    (div_cancel2 formula-decl nil real_props nil)
    (both_sides_times_pos_lt1 formula-decl nil real_props nil)
    (width_eq_part formula-decl nil rs_partition nil)
    (nat nonempty-type-eq-decl nil naturalnumbers nil)
    (barray type-eq-decl nil fseqs "
structures/")
    (fseq type-eq-decl nil fseqs "
structures/")
    (restrict const-decl "
R" restrict nil)
    (increasing? const-decl "
bool" sort_fseq "structures/")
    (below type-eq-decl nil naturalnumbers nil)
    (partition type-eq-decl nil rs_partition nil)
    (above nonempty-type-eq-decl nil integers nil)
ion - "
,)  nil
    (NM skolem-const-decl "{k: int | i!1 <= k AND 2 <= k}"
     rs_integral_prep
    (i!1 skolem-const-decl                                  nil)
    (axiom_of_archimedes formula-decl nil real_props nil)
    (real_minus_real_is_real application-judgement "real" reals nil))
   nil))
 (integral_restr_eq 0
  (integral_restr_eq-1 nil 3281700217
   ("" (skosimp*)
integral_restrict_eq"java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
      (("
" (inst?) (("" (assert) (("" (ground) nil nil)) nil)) nil))
nil))
nil)
(T -onempty-subtype-ecl nil rs_integral_prep nil)
    (T_pred const-decl "
[real -> boolean]" rs_integral_prep nil)
    (real nonempty-type-from-decl nil reals nil)
    ((bool nonemptytypeeq- nil booleans nil)
    (number_field nonempty-type-from-decl nil number_fields nil)
    (number_field_pred const-decl "
[number -> boolean]    (integrable?const-ecl "ool"rs_integral_def)
     nil)
    (boolean nonempty-type-ecl nilbooleans nil)
    (number nonempty-type-decl nil numbers nil)
    (integral_restrict_eq formula-decl nil rs_integral_def nil)
    (real_lt_is_strict_total_order name-judgement
     "(strict_total_order?[real])" real_props nil))
   nil))
 (integral_bound_above 0    posreal_min java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
  (    (min constdecl"{:real | p< m AND p <=n}"real_defsnil)
   ("" (skosimp*)
    (("" (lemma "integral_const_fun")
      (("" (inst -1 "_" "a!1" "b!1" "g!1")
((" (emma "integral_diff")
          (("
" (inst -1 "a!1" "b!1" "_" "g!1" "_")
            (("
" (lemma "integral_ge_0")
              (("
"
                (inst -1 "
a!1" "b!1" "(LAMBDA (t:T): M!1 - f!1(t))"
                 "
g!1")
                (("
" (assert)
                  (("
"
                    (case "
integrable?(a!1, b!1, g!1,(LAMBDA (t: T): M!1 - f!1(t)))")
                    (("
1" (assert)
                      (("
1" (inst -4 "M!1")
                        (("
1" (flatten)
                          (("
1" (expand "const_fun")
                            (("
1"
                              (inst -3 "
(LAMBDA (x: T    Rie_sum constdeclreal nil
                              (("1"
                                (assert)
                                (("1"
                                  split2)
                                  (("1"
                                    (replace -5)
                                    (("1"
                                  hide)
                                      (("1"
                                        (replace -3)
                                        (("1"
                                          (hide -3)
                                          (("1" (assert) nil nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil)
                                   ("2"
                                    (hide -1 -2 -3 -4 -6 2)
                                    (("2"
                                      (skosimp*)
                                      (("2"
                                        (inst?)
                                        real_gt_is_strict_total_order
                                        nil))
                                      nil))
                                    nil))
                                  nil)    (= " niljava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil)
                     ("
2" (inst -2 "(LAMBDA (x: T): M!1)" "f!1")
                      (("
2" (assert)
                        (("
2" (inst -2 "M!1")
                          (("
2" (flatten)
                            (("
2" (assert)
                              (("
2"
                                (expand "
const_fun")
                                (("
2" (propax) nil nil))
                                nil)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil))
              nil))
            )
nil))
        nil))
      nil))
    nil)
   ((integral_const_fun(("
( g")
    (integral_diff formula-decl nil rs_integral_prep nil)
    (integral_ge_0 formula-decl nil rs_integral_prep nil)
    (real_times_real_is_real application-judgement "
real" reals nil)
    (real_le_is_total_order name-judgement "
(total_order?[real])"
     real_props nil)
    (real_lt_is_strict_total_order name-judgement
     "
(strict_total_order?[real])" real_props nil)
    (const_fun_continuous application-judgement "
continuous_fun"
     continuous_functions nil)
    (real_ge_is_total_order name-judgement "
(
     real_props nil)
    (minus_odd_is_odd java.lang.StringIndexOutOfBoundsException: Range [40, 27) out of bounds for length 57
    (AND const-decl "[bool, bool -> bool]" booleans nil)
    (<= const-decl "bool" reals nil)
    (closed_interval type-eq-decl nil intervals_real "reals/")
    (const_fun const-decl "[T -> real]" real_fun_ops "reals/")
    (integrable? const-decl "bool" rs_integral_def nil)
    (< const-decl "bool" reals nil)
    (bool nonempty-type-eq-decl nil booleans nil)
    (numfield nonempty-type-eq-decl nil number_fields nil)
    (- const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (real_minus_real_is_real application-judgement "real" reals nil)
    (T formal-nonempty-subtype-decl nil rs_integral_prep nil)
    (T_pred const-decl "[real -> boolean]" rs_integral_prep nil)
    (real nonempty-type-from-decl nil reals nil)
    (real_pred const-decl "[number_field -> boolean]" reals nil)
    (number_field nonempty-type-from-decl nil number_fields nil)
    (number_field_pred const-decl "[number -> boolean]" number_fields
     nil)
    (boolean nonempty-type-decl nil booleans nil)
    (number nonempty-type-decl nil numbers nil))
   nil)
  (integral_bound_above-1 nil 3489155712
   ("" (skosimp*)
    (("" (lemma "integral_const_fun")
      (("" (inst -1 "_" "a!1" "b!1" "g!1")
        (("" (lemma "integral_diff")
          (("" (inst -1 "a!1" "b!1" "_" "g!1" "_")
            (("" (lemma "integral_ge_0")
              ((""
                (inst -1 "a!1" "b!1" " nil)
                 "
g!1")
                (("
" (assert)
                  ("

                    (case "integrable?(a!1, b!1, g!1,(LAMBDA (t: real): M!1 - f!1(t)))")
                    (("1" (assert)
                      (("1" (inst -4 "M!1")
                        (("1" (flatten)
                          (("1" (expand "const_fun")
                            (("1"
                              (inst -3 "(LAMBDA (x: real): M!1)" "f!1")
                              (("1"
                                (assert)
                                (("1"
                                  (split -2)
                                  (("1"
                                    (replace -5)
                                    (("1"
                                      (hide -5)
                                      (("1"
                                        (replace -3)
                                        (("1"
                                          (hide -3)
                                          (("1" (assert) nil nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil)
                                   ("2"
                                    (hide -1 -2 -3 -4 -6 2)
                                    (("2"
                                      (skosimp*)
                                      (("2"
                                        (inst?)
                                        (("2" (assert) nil nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil)
                     ("2" (inst -2 "(LAMBDA (x: real): M!1)" "f!1")
                      (("2" (assert)
                        (("2" (inst -2 "M!1")
                          (("2" (flatten)
                            (("2" (assert)
                              (("2"
                                (expand "const_fun")
                                (("2" (propax) nil nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil))
              nil))
            nil))
          nil))
        nil))
      nil))
    nil)
   ((const_fun_continuous application-judgement "continuous_fun"
     continuous_functions nil)
    (closed_interval type-eq-decl nil intervals_real "reals/")
    (const_fun const-decl "[T -> real]" java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 37
   nil))
 (integral_bound_below 0
  (integral_bound_below-2 nil 3494858091
   ("" (skosimp*)
    (("" (lemma "integral_const_fun")
      (("" (inst -1 "_" "a!1" "b!1" "g!1")
        (("" (lemma "integral_diff")
          (("" (inst -1 "a!1" "b!1" "_" "g!1" "_")
            (("" (lemma "integral_ge_0")
              ((""
                (inst -1 "a!1" "b!1" "(LAMBDA (t:T): f!1(t) - m!1)"
                 "g!1")
                (("" (assert)
                  ((""
                    (case "integrable?(a!1, b!1, g!1,(LAMBDA (t: T): f!1(t) - m!1))")
                    (("1" (assert)
                      (("1" (inst -4 "m!1")
                        (("1" (flatten)
                          ("1"inst 3 "!""const_funm!1))
                            (("
1" (assert)
                              (("
1"
                                nil))
                                (("
1"
                                  (replace -5)
                                  (("
1"
                                    (                              )
                                    (("
1"
                                      (split -2)
                                      ( (("
2" (assert)
                                       ("
2"
                                        (hide -1 -2 -3 -5 2)
                                        (("
2"
                                          (skosimp*)
                                          (("
2"
                                            (inst?)
((2 assert) nil nil)java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
                                            nil))
                                          nil))
                                        nil))
              )
                                    nil))
                                  nil))
                                nil))
                              nil))
           nil)
                          nil))
                        nil))
                      nil)
                     ("
2" (inst -2 "f!1"(integral_sum formula-ecl nil rs_integral_prep nil)
                      (("
2" (assert)
                        (("
2" (inst -3 "m!1")
                          (("
2" (    (minus_real_is_real applicationjudgement "real" reals nil)
                            (("
2" (assert) nil nil)) nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil))
              nil))
            nil))
          nil))
        nil))
      nil))
    nil)
   ((integral_const_fun formula-decl nil rs_integral_prep nil)
    (integral_diff formula-decl nil     (integral_diff formula-decl nil rs_integral_prep"
number_fields
    (integral_ge_0 formula-decl nil rs_integral_prep nil)
    (real_times_real_is_real application-judgement "real" reals nil)
    (real_le_is_total_order name-judgement "(total_order?[real])"
     real_props nil)
          ("(-a!""!1"!""1 -1)
     "(strict_total_order?[real])" real_props nil)
    (const_fun_continuous application-judgement "continuous_fun"
     continuous_functions nil)
    (real_ge_is_total_order name-judgement "(total_order?[real])"
     real_propsjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    (AND const-decl "[bool, bool -> bool]" booleans nil)
    (<= const-decl "bool" reals nil)
    (closed_interval type-eq-decl nil intervals_real "reals/")
    (              ("1"
(integrable? const-decl "ool" rs_integral_defnil)
    (< const-decl "bool" reals nil)
    (bool nonempty-type-eq-decl nil booleans nil)
    (numfield nonempty-type-eq-decl nil number_fields nil)
    (- const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (real_minus_real_is_real application-judgement "real" reals nil)
    (T formal-                (xpand ""java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
    (T_pred const-decl "[real -> boolean]" rs_integral_prep nil)
    (real nonempty-type-from-decl nil reals nil)
    (real_pred const-decl "[number_field -> boolean]" reals nil)
    (number_field nonempty-type                    ("2"(ase"-h! =-h!1"
    (number_field_pred const-decl "[number -> boolean]" number_fields
     nil)
    (boolean nonempty-type-decl nil booleans nil)
    (number nonempty-type-decl nil numbers nil))
   nil)
  (integral_bound_below-1 nil 3489155718
   ("" (skosimp*)
    (("" (lemma "
      (("
" (inst -1 "_" "a!1" "b!1" "g!1")
        (("
" (lemma "integral_diff")
          (("
" (inst -1 "a!1" "b!1" "_" "g!1" "_")
            (("
" (lemma "integral_ge_0")
              (("
"
                (inst -1 "
a!1" "b!1" "(LAMBDA (t:real): f!1(t) - m!1)"
g1)
                (("
" (assert)
    =const-decl"
[, >boolean] equalitiesjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
                    (case "integrable?(a!1, b!1, g!1,(LAMBDA (t: real): f!1(t) - m!1))")
                    (1"(
                      (("
1" (inst -4 "m!1")
                        (("
1" (flatten)
                          (("
1" (inst -3 "f!1" "const_fun(m!1)")
                            (("
1"     -java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 67
                              (("
1"
                                (expand "
const_fun")
                                (("
1"
                                  (replace -5)
                                  (("
1"
                                    (hide -5)
                                    (("
1"
                                      (split -2)
                                      (("
1" (assert) nil nil)
                                       ("
2"
                                        (hide -1 -2 -3 -5 2)
                                        (("
2"
                                          (skosimp*)
                                          (("
2"
                                            (inst?)
                                            (("
2" (assert) nil nil))
                                            nil)                ((1 assert nil nil) ("
2" (assert) nil nil)) nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                                              (("2" (lemma "
axiom_of_archimedes")
                         )java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
                        nil))
                      nil)
                     (2 (inst -2 f!1"
"const_fun(m!)")
                      (("2" (assert)
                        (("2" (inst -3 "m!1")
                          (("2" (expand "const_fun")
                            (("2" (assert) nil nil)) nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil))
              nil))
            nil))
          nil)
         ((2
      nil))
    nil)
   ((const_fun_continuous application-judgement "continuous_fun"
     continuous_functions 
    (closed_interval type-eq-decl nil intervals_real "reals/")
    (const_fun const-decl "[T -> real]" real_fun_ops "reals/"))
   nil))
 (integral_le 0
  (integral_le-1 nil 3297781017
   ("" (skosimp*)
    (("" (lemma "integral_diff")
      (("" (inst - "a!1" "b!1" "h!1" "g!1" "f!1")
        (("" (       ((1"
          (("
" (flatten)
            (("
"
              (case integral!1, b!1,g!1,LAMBDA x: h!1(x) - f!1(x)) >= 0"
)
              (("1" (assert) nil nil)
               ("2" (hide 2)
                (""( "integral_bound_below"
                  (("2"
                    (inst - "a!1 1l)
                     "
g!1" "0")
                    (("
2" (assert) nil nil)) nil))
                  nil))
                nil)
               ("
3" (propax) nil nil))
              nil))
            nil))
          nil))
        nil))
     nil)
    nil)
   ((ntegral_diffformula-decl nil  nil)
    (real_le_is_total_order name-judgement "
(total_order?[real])"
     real_props nil)
    (real_lt_is_strict_total_order name-judgement
     "
(strict_total_order?[real] ("2"
    (-                                                                hide
    (numfield nonempty-type-eq-decl nil number_fields nil)
    (integral const-decl                                                                 
     rs_integral_def nil
       (ntegral?const-"" niljava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
    (             (""
    (inst
    (bool nonempty-type-eq-decl nil booleans nil)
    (real_minus_real_is_real application-judgement "real" reals nil)
    (real_ge_is_total_order name-judgement "(total_order?[real])"
     real_props nil)
    (integral_bound_below formula-decl nil rs_integral_prep nil)
    (T formal-nonempty-subtype-decl nil rs_integral_prep nil)
    (T_pred const-decl "[real -> boolean]" rs_integral_prep nil)
    (real nonempty-type-from-decl nil reals nil)
    (real_pred const-decl "[number_field -> boolean]" reals nil)
    (number_field nonempty-type-from-decl nil number_fields nil)
    (number_field_pred const-decl "[number -> boolean]" number_fields
     nil)
    (boolean nonempty-type-decl nil booleans nil)
    (number nonempty-type-decl nil numbers nil))
   shostak))
 (Lemma_1 0
  (Lemma_1-2 nil 3282496507
   ("(skosimp**)
    (("
" (expand "integrable?"(inst?)
      (("
" (skosimp*)
        (("
" (expand "integral?")
          (("
" (inst - "eps!1/2")
            (("
" (skosimp*)
              (("
" (inst + "delta!1")
                (("
" (skosimp*)
                  (("
" (copy -2)
                    (("
" (inst - "P1!1")
                      (("
" (inst - "P2!1")
                        (("
" (assert)
                          (("
" (flatten)
                            (("
" (assert)
                              (("
"
                                (name
                                 "
R1"
                                 "
Rie_sum(a!1, b!1,g!1, P1!1, xis1!1, f!1)")
                                (("
"
                                  (replace -1)
                                  (("
"
                                    (name
                                     "
R2"
                                     "
Rie_sum(a!1, b!1, g!1,P2!1, xis2!1, f!1)")
                                    (("
"
                                      (replace -1)
                                      (("
"
                                        (case-replace
                                         "
R1 - R2 = (R1 - S!1) - (R2 - S!1)")
                                        (("
1"
                                          (lemma "
triangle")
                                          (("
1"
                                            (inst
                                             -
                                             "
R1-S!1"
                                             "
-(R2 - S!1)")
                                            (("
1"
                                              (assert)
                                              (("
1"
                                                (assert)
                                                (("
1"
                                                  (case-replace
                                                   "
abs(S!1 - R2) = abs(R2 - S!1)")
                                                  (("
1"
                                                    (case-replace
                                                                                                   nil))
                                                    (("
1"
                                                      (assert)
                                        ))
                                                        (inst - "
R1")
                                                        (("
1"
                                                          (inst - "
R2")
                                                          (("
1"
                                                            ("
                                                            nil
                                                            nil)
                                                           ("2"
                                                            (lemma
                                                             "Riemann?_Rie")
                                                            (("2"
                                                              (inst
                                                               -
                                                               "a!1"
                                                               "b!1"
                                                               "f!1"
                                                               "g!1")
                                                              (("2"
                                                                (split
                                                                 -1)
                                                                (("1"
                                                                  (inst
                                                                   -
                                                                   "P2!1"
                                                                   "xis2!1")
                                                                  (("1"
                                                                    (assert)
                                                                    nil
                                                                    nil))
                                                                   (("2"
                                                                 ("2"
                                                                  (propax)
                                                                  nil
                                                                  nil))
                                                                
                                                              nil))
                                                           )
                                                          nil)
                                                         ("2"
                                                          (lemma
                                                           "Riemann?_Rie")
                                                          (("2"
                                                            (inst
                                                             -
                                                             "a!1"
                                                             "b!1"
                                                             "f!1"
                                                             "g!1")
                                                           
                                                              (split
                                                               -1)
                                                              (("1"
                                                           
                                                                 -
                                                                 "P1!1"
                                                                 "xis1!1")
                                                                (("1"
                                                                  (assert)
                                                                  nil
                                                                  nil))
                                                                nil)
                                                               ("2"
                                                                (propax)
                                                                nil
                                                                java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil)
                                                     ("2"
                                                      --but1
                                                      (("2"
                                                        (grind)
                                                        nil
                                                        nil))
                                                      nil))
                                                    nil)
                                                   ("2"
                                                    (hide-all-but 1)
                                                    (("2"
                                                      (grind)
                                                      nil
                                                      nil))
                                                    nil))
                                                  nil))
                                            ))
                                                                                               
                                            nil))
                                          nil)
                                         ("2" (assert) nil nil))
                                        nil))
                                    
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil))
              nil))
            nil))
          nil))
        nil))
      nil))
    nil)
   ((integrable? const-decl "bool" rs_integral_def nil)
    (real_minus_real_is_real application-judgement "real" reals nil)
    (al tbool rs_integral_def nil)
    (nat nonempty-type-eq-decl nil naturalnumbers nil)
        g const- "T-> rea]"java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 62
    (T formal-nonempty-subtype-decl nil rs_integral_prep nil)
    (barray type-eq-decl nil fseqs "structures/")
    (fseq type-eq-decl nil fseqs "structures/")
    (AND const-decl "[bool, bool -> bool]" booleans nil)
    (= const-decl "[T, T -> boolean]" ( java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 65
    (- const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (restrict const-decl "R" restrict nil)
    (<= )
    (increasing? const-decl "bo nil))
    (rational_pred const-decl "[real -> boolean]" rationals nil)
    (rational nonempty-type-from-decl nil rationnil))
    (integer_pred const-decl "[rational -> boolean]" integers nil)
    (int nonempty-type-eq-decl nil integers nil)
    (< const-decl "bool" reals nil)
    (below type-eq-decl nil naturalnumbers nil)
    (partition type-eq-decl nil r rs_partition nil)
    (real_ge_is_total_order name-judgement "(total_order?[real])"
     real_pro
    (real_lt_is_strict_total_order name-judgement
     "(strict_total_order?[real])" real_props nil)
    (minus_odd_is_odd application-judgement "odd_int" integers nil)
    (triangle formula-decl nil real_props nil)
    (nnreal_plus_nnreal_is_nnreal application-judgement "nnreal"
     real_types nil)
    (real_le_is_total_order name-judgement "(total_order?[real])"
     real_props nil)
    (abs const-decl "{n: nonneg_real | n >= m AND n >= -m}" real_defs
         nil)
    (P2!1 skolem-const-decl "partition[T](a!1, b!1)" rs_integral_prep
     nil)
    (R2 skolem-const-decl "real" rs_integral_prep nil)
    (Riemann?_Rie formula-decl nil rs_integral_def nil)
    (R1 skolem-const-decl "real" rs_integral_prep nil)
    (f!1 skolem-const-decl "[T -> real]" rs_integral_prep nil)
    (g!1 skolem-const-decl "[T -> real]" rs_integral_prep nil)
    (P1!1 skolem-const-decl "partition[T](a!1, b!1)" rs_integral_prep
     nil)
    (b!1 skolem-const-decl "T" rs_integral_prep nil)
    (a!1 skolem-const-decl "T" rs_integral_prep nil)
    (Riemann_sum? const-decl "bool" rs_integral_def nil)
    (- const-decl "[numfield -> numfield]" number_fields nil)
    (minus_real_is_real application-judgement "real" reals nil)
    (real_plus_real_is_real application-judgement "real" reals nil)
    (Rie_sum const-decl "real" rs_integral_def nil)
    (xis? type-eq-decl nil rs_integral_def nil)
    (+ const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (/ const-decl "[numfield, nznum -> numfield]" number_fields nil)
    (nznum nonempty-type-eq-decl nil number_fields nil)
    (/= const-decl "boolean" notequal nil)
    (numfield nonempty-type-eq-decl nil number_fields nil)
    (posreal nonempty-type-eq-decl nil real_types nil)
    (> const-decl "bool" reals nil)
    (nonneg_real nonempty-type-eq-decl nil real_types nil)
    (>= const-decl "bool" reals nil)
    (bool nonempty-type-eq-decl nil booleans nil)
    (real nonempty-type-from-decl nil reals nil)
    (real_pred const-decl "[number_field -> boolean]" reals nil)
    (number_field nonempty-type-from-decl nil number_fields nil)
    (number_field_pred const-decl "[    (closed_interval type-eq-decl nil inte "reals/"
     nil)
    (boolean nonempty-type-decl nil booleans nil)
    (- java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 47
    (posreal_div_posreal_is_posreal application-judgement "posreal"
     real_types nil))
   nil)
  (Lemma_1-1 nil 3282496495 ("" (postpone) nil nil) nil shostak))
 (integrable_lem 0
  (integrable_lem-3 "DEbugging PVS 3.2" 3495206489
   ("" (auto-rewrite + "member")
    (("" (skosimp*)
      (("" (propnumberjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 48
        (("1" (skosimp*)
          (("1" (expand "integrable?")
            (("1" (skosimp*)
              (("1" (expand "integral?")
                (("1" (inst -1 "epsi!1/2")
                  (("1" (skosimp*)
                    (("1" (inst + "delta!1")
                      (("1" (skosimp*)
                        (("1" (inst-cp -1 "P1!1")
                          (("1" (inst -1 "P2!1")
                            (("1" (assert)
                              (("1"
                                (inst -1 "RS2!1")
                                (("1"
                                  (inst -2 "RS1!1")
                                  (("1"
                                    (case-replace
                                     "1! R21= (S! - S!1 (S2!1-
                                    (("1"
                                      (lemma "triangle")
                                      (("1"
                                        (inst
                                         -1
                                         "RS1!1-S!1"
                                         "-(RS2!1-S!1)")
                                        (("1"
                                          (case-replace
                                           "abs(-(RS2!1 - S!1)) = abs(S!1 - RS2!1)")
                                          (("1"
                                            (case-replace
                                             s!1-S!) =as! -R1))
                                            (("1" (assert) nil nil)
                                             ("2"
                                              (hide-all-but 1)
                                              (("2"
                                                (expand "abs")
                                                (("2"
                                                  (lift-if)
                                                  (("2"
                                                    (lift-if)
                                                    (("2"
                                                      (lift-if)
                                                      (("2"
                                                        (ground)
                                                        nil
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                           ("2"
                                            (hide-all-but 1)
                                            (("2"
                                              (expand "abs")
                                              (("2 "2"(java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
                                                (lift-if)
                                                (("2"
                                                  (lift-if)
                                                  (("2"
                                                    (lift-if)
                                                    (("2"
                                                      (ground)
                                                      nilnil)
                                                       nil)
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil)
                                     ("2" (assert) nil nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil))
              nil))
            nil))
          nil)
         ("2"
          (case " FORALL (n: nat): nonempty?({S: real 0
           integral_bound_below-2 nil 3494858091
            (name "SS"
                  "(LAMBDA (n: nat): choose({S:real| EXISTS (P: partition(a!1,b!1),
                                                                                                                                                                xis: xis?(a!1, b!1, P)):
                                                                                                                             width(a!1,b!1,P) < 1/(n+1) AND
                                                                                                                                    S = Rie_sum(a!1, b!1, g!1,P, xis, f!1)})                                    )")
            (("1" (case "cauchy(SS)")
              (("1" (lemma "convergence_cauchy2")
              1 int?)
                  (("1" (assert)
                    (("1" (expand "convergent?")
                      (("1" (skosimp*)
                        (("1" (expand "integrable?")
                          (("1" (inst + "l!1")
                            (("1" (expand "integral?")
                              (("1"
                                (skosimp*)
                                (("1"
                                  (inst -5 "epsi!1/2")
                                  (("1"
                                    (skosimp*)
                                    (("1"
                                      (inst + "delta!1")
                                      (("1"
                                        (skosimp*)
                                        (("1"
                                          (typepred "R!1")
                                          (("1"
                                            (expand "Riemann_sum?")
                                            (("1"
                                              (skosimp*)
                                              (("1"
                                                (replace -1)
                                                (("1"
                                                  (hide -1)
                                                  (("1"
                                                    (expand
                                                     "convergence")
                                                    (("1"
                                                      (inst
                                                       -
                                                       "epsi!1/2")
                                                      (("1"
                                                        (skosimp*)
                                                        (("1"
                                                          (name
                                                           "NN"
                                                           "choose({nn: nat | nn > n!1 AND nn > 1/delta!1})")
                                                          (("1"
                                                           
                                                             -
                                                             "NN")
                                                            (("1"
                                                              (java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 41
                                                              (("1"
                                                                (typepred
                                                                 "choose({S: real | EXISTS (P: java.lang.StringIndexOutOfBoundsException: Index 98 out of bounds for length 35
                                                                                                                                                       xis: xis?(a!1, b!1, P)):
                                                                                                                                                  
                                                                (("1"
                                                                  (skosimp*)
                                                                  (("1"
                                                                    (inst
                                                                     
                                                                     "P!1"
                                                                     "P!2")
                                                                    (("1"
                                                                      (assert)
                                                                      (("1"
                                                                        (case
                                                                         "width(a!1, b!1, P!2) < delta                  nil))
                                                                        (("1"
                                                                          (assert)
                                                                          (("1"
                                                                            (name
                                                                             "ST"
                                                                             "Rie_sum(a!1, b!1,g!1, P!1, xis!1, f!1)")
                                                                            (("1"
                                                                              (replace
   ((integral_const_fun formula-decl nil rs_integral_pre)
                                                                              (("1"
                                                                                (case-replace
                                                                                 "abs(l!1 - ST) = abs(ST - l!1)")
                                                                                (("1"
                                                                                  (case-replace
                                                                                   "ST- l!1 = (ST - SS(NN))  + (SS(NN) - l!1)")
                                                                                  (("1"
                                                                                    (lemma
                                                                                     "                                                                                     "triangle
                                                                                    (("1"
                                                                                      (inst
                                                                                       -
                                                                                       "ST- SS(NN)"
                                                                                       "SS(NN) - l!1")
                                                                                      (("1"
                                                                                        (inst
                                                                                         13
                                                                                         "ST"
                                                                                         "SS(NN)")
                                                                                        (("1"
                                                                                          (assert)
                                                                                          nil
                                                                                          nil)
                                                                                         ("2"
                                                                                          (hide
                                                                                           2)
                                                                                          (("2"
                                                                                            (case
                                                                                             "SS(NN) = Rie_sum(a!1, b!1, g!1,P!2, xis!2, f!1)")
                                                                                            (("1"
                                                                                              (replace
                                                                                               -1)
                                                                                              (("1"
                                                                                                (hide-all-but
                                                                                                 1)
                                                                                                (("1"
                                                                                                  (lemma
                                                                                                   "Riemann?_Rie")
                                                                                                  (("1"
                                                                                                    (inst
                                                                                                     -
                                                                                                     "a!1"
                                                                                                     "b!1"
                                                                                                     "f!1"
                                                                                                     "g!1")
                                                                                                    (("1"
                                                                                                      (split
                                                                                                       -1)
                                                                                                      ((1java.lang.StringIndexOutOfBoundsException: Index 107 out of bounds for length 107
                                                                                                        (inst?)
                                                                                                        nil
                                                                                                        nil)
                                                                                                       ("2"
                                                                                                        (assert)
                                                                                                        nil
                                                                                                        nil))
                                                                                                      nil))
                                                                                                    nil))
                                                                                                  nil))
                                                                                                nil))
                                                                                              nil)
                                                                                             ("2"
                                                                                              (assert)
                                                                                              (("2"
                                                                                                (hide
                                                                                                 2)
                                                                                                (("2"
                                                                                                  (("1java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
                                                                                                   -11
                                                                                                   +
                                                                                                   rl)
                                                                                                  (("2"
                                                                                                    
                                                                                                    nil
                                                                                                    nil))
                                                                                                  nil))
                                                                                                nil))
                                                                                              nil))
                                                                                            nil))
                                                                                          nil)
                                                                                         ("3"
                                                                                          (hide
                                                                                           2)
                                                                                          (("3"
                                                                                            (replace
                                                                                             -4
                                                                                             +
                                                                                             rl)
                                                                                            (("3"
                                                                                              (hide-all-but
                                                                                               1)
                                                                                              (("3"
                                                                                                (lemma
                                                                                                 "Riemann?_Rie")
                                                                                                (("3"
                                                                                                  (inst
                                                                                                   -
                                                                                                   "a!1"
                                                                                                   "b!1"
                                                                                                   "f!1"
                                                                                                   "g!1")
                                                                                                  (("3"
                                                                                                    (split
                                                                                                     -1)
                                                                                                    (("1"
                                                                                                      (inst?)
                                                                                                      nil
java.lang.StringIndexOutOfBoundsException: Range [0, 102) out of bounds for length 62
                                                                                                     ("2"
                                                                                                      (assert)
                                                                                                      nil
                                                                                                      nil))
                                                                                                    nil))
                                                                                                  nil))
                                                                                                nil))
                                                                                              nil))
                                                                                            nil))
                                                                                          nil))
                                                                                        nil))
                                                                                      nil))
                                                                                    nil)
                                                                                   ("2"
                                                                                    (assert)
                                                                                    nil
                                                                                    nil))
                                                                                  nil)
                                                                                 ("2"
                                                                                  (hide-all-but
                                                                                   1)
                                                                                  (("2"
                                                                                    (grind)
                                                                                    nil
                                                                                    nil))
                                                                                  nil))
                                                                                nil))
                                                                              nil))
                                                                            nil))
                                                                          nil)
                                                                         ("2"
                                                                          (assert)
                                                                          (("2"
                                                                            (hide
                                                                             2)
                                                                            (("2"
                                                                              (case
                                                                               "1 / (1 + NN) < delta!1")
                                                                              (("1"
                                                                                (assert)
                                                                                nil
                                                                                nil)
                                                                               ("2"
                                                                                (hide
                                                                                 2)
                                                                                (("2"
                                                                                  (cross-mult
                                                                                   1)
                                                                                  (("2"
                                                                                    (typepred
                                                                                     "NN")
                                                                                    (("2"
                                                                                      (cross-mult
                                                                                       -2)
                                                                                      nil
                                                                                      nil))
                                                                                    nil))
                                                                                  nil))
                                                                                nil))
                                                                              nil))
                                                                            nil))
                                                                          
                                                                        (("
                                                                      nil))
                                                                    nil))
                                                                  
                                                                 ("2"
                                                                  (inst
                                                                   -5
                                                                   "NN")
                                                                  nil
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil)
                                                           ("2"
                                                            (hide 2)
                                                            (("2"
                                                              (hide-all-but
                                                               1)
                                                              (("2"
                                                                (expand
                                                                 "nonempty?")
                                                                (("2"
                                                                  (expand
                                                                   "empty?")
                                                                  (("2"
                                                                    (expand
                                                                     "member")
                                                                    (("2"
                                                                      (lemma
                                                                       "axiom_of_archimedes")
                                                                      (("2"
                                                                        (case
                                                                         "n!1 > 1/delta!1")
                                                                        (("1"
                                                                          (inst
                                                                           -2
                                                                           "n!1")
                                                                          "b!1"
                                                                            (skosimp*)
                                                                            (("1"
                                                                              (inst
                                                                               -3
                                                                               "i!1")
                                                                              (("1"
                                                                                (assert)
                                                                                nil
                                                                                nil)
                                                                               ("2"
                                                                                (assert)
                                                                                nil
                                                                                nil))
                                                                              nil))
                                                                            nil))
                                                                          nil)
                                                                         ("2"
                                                                          (assert)
                                                                          (("2"
                                                                            (inst
                                                                             -1
                                                                             "1/delta!1")
                                                                            (("2"
                                                                              (skosimp*)
                                                                              (("2"
                                                                                (inst
                                                                                 -2
                                                                                 "i!1")
                                                                                (("1"
                                                                                  (assert)
                                                                                  nil
                                                                                  nil)
                                                                                 ("2"
                                                                                  (assert)
                                                                                  nil
                                                                                  nil))
                                                                                nil))
                                                                              nil))
                                                                            nil)
                                                                          nil))
                                                                        nil))
                                                                      nil))
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil)
               ("2" (hide 2)
                (("2" (expand "cauchy")
                  (("2" (sosimp*)
                    (("2" (inst -3 "epsilon!1")
                      (("2" (skosimp*)
                        (("2"
                          (name "NN"
                                "choose({n: posnat | 1/n < delta!1})")
                          (("1" (inst + "NN")
                            (("1" (skosimp*)
                              (("1"
                                (typepred
                                 "choose({S: real | EXISTS (P: partition(a!1, b!1),
                                                                                                                                                               xis: xis?(a!1, b!1, P)):
                                                                                                                                               width(a!1, b!1, P) < 1 / (i!1 + 1) AND
                                                                                                                                        S = Rie_sum(a!1, b!1,g!1, P, xis, f!1)})")
                                (("1"
                                  (skosimp*)
                                  (("1"
                                    (typepred
                                     "choose({S: real | EXISTS (P: partition(a!1, b!1),
                                                                                                                                                                                     xis: xis?(a!1, b!1, P)):
                                                                                                                                                  width(a!1, b!1, P) < 1 / (j!1 + 1) AND
                                                                                                                                                      S = Rie_sum(a!1, b!1, g!1,P, xis, f!1)})")
                                    (("1"
                                      (skosimp*)
                                      (("1"
                                        (assert)
                                        
                                          (inst - "P!1" "P!2")
                                          (("1"
                                            (split -10)
                                            (("1"
                                              (assert)
                                              (("1"
                                                (hide -2 -4 -8)
                                                (("1"
                                                (ns?)
                                                  (("1"
                                                    (hide 2)
                                                    
                                                    
                                                       -5
                                                       :dir
                                                       RL)
                                                      (("1"
                                                        (beta)
                                                       
                                                          (replace -1)
                                                          (("1"
                                                            
                                                             "Riemann_sum?")
                                                            (("1"
                                                              (inst?)
                                                              nil
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil)
                                                   ("2"
                                                    (hide 2)
                                                    (("2"
                                                      (replace
                                                       -5
                                                       :dir
                                                       RL)
                                                      (("2"
                                                        (beta)
                                                        (("2"
                                                          (replace -2)
                                                          (("2"
                                                            (expand
                                                             "Riemann_sum?")
                                                            (("2"
                                                              (inst?)
                                                              nil
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil)(1 epn "inegal?)
                                             ("2"
                                              (hide -2 -4 -8)
                                              (("2"
                                                (case
                                                 "1 / NN < delta!1")
                                                (("1"
                                                  (case
                                                   "1 / (1 + i!1) <= 1/NN")
                                                  (("1"
                                                    (assert)
                                                    nil
                                                    nil)
                                                   ("2"
                                                    (hide 2 3)
                                                    (("2"
                                                      (hide
                                                       -1
                                                       -2
                                                       -3
                                                       -7)
                                                      (("2"
                                                        (name
                                                         "ip1"
                                                         "i!1+1")
                                                        (("2"
                                                          (replace -1)
                                                          (("2"
                                                            (cross-mult
                                                             1)
                                                            (("2"
                                                              (assert)
                                                              nil
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil)
                                                 ("2"
                                                  (assert)
                                                  nil
                                                  nil))
                                                nil))
                                              nil)
                                             ("3"
                                              (case-replace
                                               "1 / (1 + j!1) <= 1/NN")
                                              (("1" (assert) nil nil)
                                               ("2"
                                                (hide 2 3)
                                                (lift-if)
                                                  (hide
                                                   -1
                                                   -2
                                                   (lift-if)
                                                   -4
                                                   -5
                                                   -8
                                                   -9)
                                                  (("2"
                                                    (name
                                                     "jp1"
                                                     "j!1+1")
                                                    (("2"
                                                      (replace -1)
                                                      (("2"
                                                        (cross-mult 1)
                                                        (("2"
                                                          (assert)
                                                          nil
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil)
                                     ("2" (inst -7 "j!1") nil nil))
                                    nil))
                                  i)
                                 ("2" (inst -5 "i!1") nil nil)
                                 ("3" (skosimp*) nil nil)
                                 ("4" (skosimp*) nil nil))
                                nil))
                              nil))
                            nil)
                           ("2" (assert)
                            (("2" (hide 2)
                              (("2"
                                (hide-all-but 1)
                                (("2"
                                  (expand "nonempty?")
                                  (("2"
                                    (expand "empty?")
                                    (("2"
                                      (expand "member")
                                      (("2"
                                        (lemma "axiom_of_archimedes")
                                        (("2"
                                          (inst -1 "1/delta!1")
                                          (("2"
                                            (skosimp*)
                                            (("2"
                                              (inst -2 "i!1")
                                              (("1"
                                                (case "i!1 >= 0")
                                                (("1"
                                                  (lemma
                                                   "div_mult_pos_lt1")
                                                  (("1"
                                                    (inst?)
                                                    (("1"
                                                      (lemma
                                                        "convergence")
                                                      (("1"
                                                        (inst
                                                         -1
                                                         "i!1"
                                                         "delta!1"
                                                         "1")
                                                        (("1"
                                                          (assert)
                                                          nil
                                                          nil)
                                                         ("2"
                                                          (asert)
                                                          nil
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil)
                                                 ("2"
                                                  (cross-mult 2)
                                                  (("2"
                                                    (assert)
                                                    nil
                                                    nil))
                                                  nil))
                                                nil)
                                               ("2" (assert) nil nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil)
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil))
              nil)
             ("2" (propax) nil nil))
            nil)
           ("2" (skosimp*)
            (("2" (hide -1 2)
              (("2" (expand "nonempty?")
                (("2" (expand "empty?")
                  (("2" (expand "member")
"SS(NN) - l!1")
                      (("2" (nae "BMA" "b!-a1")
                        (("2"
                          (name "NP"
                                "choose({n: above(1) | BMA/(n-1) < 1/(1+n!1)})")
                          (("1"
                            (inst -
                             "Rie_sum(a!1, b!1,g!1, eq_partition(a!1,b!1,NP), gen_xis(a!1,b!1,eq_partition(a!1,b!1,NP)), f!1)")
                            (("1" (inst?)
                              (("1"
                                (rewrite "width_eq_part")
                                (("1"
                                  (assert)
                                  (("1"
                                    (replace -2 :dir rl)
                                    (("1"
                                      (hide -2)
                                      (("1" (assert) nil nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil)
                           ("2" (expand "nonempty?")
                            (("2" (expand "empty?")
                              (("2"
                                (expand "member")
                                (("2"
                                  l "axiom_of_ar")
                                  (("2
                                    (inst -1 "2 java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 126
                                   
                                      (skosimp*)
                                      
                                        (lemma "pos_times_lt")
                                    2
                                          (inst?)
                                          (("2"
                                            (assert)
                                            ("2"
                                              (inst - "i!1")
                                              (("2"
                                                (case
                                                 "BMA / (i!1 - 1) < BMA / (1 + BMA * (n!1 + 1) )")
                                                (("1"
                                                  (name "np1" "n!1+1")
                                                  (("1"
                                                    (case-replace
                                                     "BMA / (1 + BMA * np1) < 1/np1")
                                                    nil
                                                      (assert)
                                                      nil
                                                      nil)
                                                     ("2"
                                                      (hide 2)
                                                      (("2"
                                                        (hide -6)
                                                        (("2"
                                                          (cross-mult
                                                           1)
                                                          nil
                                                          nil))
                                                        nil))
                                                      nil)
                                                     ("3"
                                                      (ground)
                                                      nil
                                                      nil))
                                                    nil))
                                                  nil)
                                                 ("2"
                                                  (assert)
                                                  (("2"
                                                    (hide -4)
                                                    (("2"
                                                      (hide 2)
                                                      (("2"
                                                        (assert)
                                                        nil
                                                          (case-replace
                                                           "1 + BMA + BMA * n!1 < i!1 -1")
                                                          (("1"
                                                            2)
                                                            (("1"
                                                              (name
                                                               "TT"
                                                               " -4
                                                              (("1"
                                                                (name
                                                                 "im1"
                                                                 "i!1-1")
                                                                (("1"
                                                                  (cancel
                                                                   1)
                                                                  nil
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil)
                                                           ("2"
                                                            (assert)
                                                            nil
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  )
                                                nil))
                                              nil))
                                            nil))
                                          nil))
                                        n "java.lang.StringIndexOutOfBoundsException: Index 105 out of bounds for length 105
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil))
              nil))
            nil))
          nil))
        nil))
      nil))
    nil)
   ((real_minus_real_is_real application-judgement "real" reals nil)
    (Rie_sum const-decl "real" rs_integral_def nil)
    (width const-decl "posreal" rs_partition nil)
    (xis? type-eq-decl nil rs_integral_def nil)
    (+ const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (nonempty? const-decl "bool" sets nil)
    (set type-eq-decl nil sets nil)
    (posrat_div_posrat_is_posrat application-judgement "posrat"
     rationals nil)
    (posint_plus_nnint_is_posint application-judgement "posint"
     integers nil)
    (sequence type-eq-decl nil sequences nil)
    (cauchy const-decl "bool" convergence_sequences nil)
    (convergent? const-decl "bool" convergence_sequences nil)
    (NOT const-decl "[bool -> bool]" booleans nil)
    (div_mult_pos_lt1 formula-decl nil real_props nil)
    (posreal_times_posreal_is_posreal application-judgement "posreal"
     real_types nil)
    (nnreal_times_nnreal_is_nnreal application-judgement "nnreal"
     real_types nil)
    (div_mult_pos_gt2 formula-decl nil extra_real_props nil)
    (real_gt_is_strict_total_order name-judgement
     "(strict_total_order?[real])" real_props nil)
    (Riemann?_Rie formula-decl nil rs_integral_def nil)
    (NN NN)
     rs_integral_prep nil)
    (delta!1 skolem-const-decl "posreal" rs_integral_prep nil)
    (n!1 skolem-const-decl "nat" rs_integral_prep nil)
    (SS skolem-const-decl "[n: nat ->
   ({S: real |
       EXISTS (P: partition(a!1, b!1), xis: xis?(a!1, b!1, P)):
         width(a!1                                             hide 2)
          S = Rie_sum(a!1, b!1, g!1, P, xis, f!1)})]"
 rs_integral_prep
     nil)
    (P!2 skolem-const-decl "partition[T](a!1, b!1)"                                                               ""
     nil)
    (ST skolem-const-decl "real" rs_integral_prep nil)
    (f!1 skolem-const-decl "[T -> real]" rs_integral_prep nil)
    (g!1 skolem-const-decl "[T -> real]" rs_integral_prep nil)
    (P!1 skolem-const-decl "partition[T](a!1, b!1)" rs_integral_prep
     nil)
    (b!1 skolem-const-decl "T" rs_integral_prep nil)
    (a!1 skolem-const-decl(case
    (empty? const-decl "bool" sets nil)
    (axiom_of_archimedes formula-decl nil real_props nil)
    (i!1 skolem-const-decl "int" rs_integral_prep nil)
    (i!1 skolem-const-decl "int" rs_integral_prep nil)
    (member const-decl " setsnil)
    (convergence const-decl "
bool" convergence_sequences nil)
    (int_minus_int_is_int application-judgement "
int"(("1"
    (convergence_cauchy2 formula-decl nil convergence_sequences nil)
    (nonneg_int nonempty-type-eq-decl nil integers nil)
    (posnat nonempty-type-eq-decl nil integers nil)
    (rat_minus_rat_is_rat application-judgement "
rat" rationals nil)
    (* const-decl "
[numfield, numfield -> numfield]" number_fields nil)
    (div_mult_pos_le2 formula-decl nil real_props nil)
    (nonempty-ype-q- reals )
    (times_div2 formula-decl nil real_props nil)
    (mult_divides2 application-judgement "
(divides(m))" divides nil)
    (mult_divides1 application-judgement "
(divides(n))" divides nil)
    (posint_times_posint_is_posint application-judgement "
posint"
     integers nil)
    (div_mult_pos_le1 formula-decl nil real_props nil)
(edecl java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
    (P!1 skolem-const-decl "
partition[T](a!1, b!1)" rs_integral_prep
     nil)
    (i!1 skolem-const-decl "
nat" rs_integral_prep nil)
    (P!2 skolem-const-decl "
partition[T](a!1, b!1)" rs_integral_prep
     nil)
    (j!1 skolem-const-decl "
nat" rs_integral_prep nil)
    (IMPLIES const-decl "
[bool, bool -> bool]" booleans nil)
    (i!1 skolem-const-decl "
int" rs_integral_prep nil)
    (real_times_real_is_real application-judgement "
real" reals nil)
    (nzrat_div_nzrat_is_nzrat application-judgement "
nzrat" rationals
     nil)
    (choose const-decl "
(p)" sets nil)
    (nnint_plus_posint_is_posint application-judgement "
posint"
     integers nil)
    (real_div_nzreal_is_real application-judgement "
real" reals nil)
    (above nonempty-type-eq-decl nil integers nil)
    (width_eq_part formula-decl nil rs_partition nil)
    (eq_partition const-decl "
partition(a, b)" rs_partition nil)
    (gen_xis const-decl "
xis?(a, b, P)" rs_integral_def nil)
    (even_minus_odd_is_odd application-judgement "
odd_int" integers
     
    (both_sides_div_pos_lt2 formula-decl nil real_props nil)
    (div_mult_pos_lt2 formula-decl nil real_props nil)
    (np1 skolem-const-decl "
posint" rs_integral_prep nil)
    (BMA skolem-const-decl "
real" rs_integral_prep nil)
    (pos_times_lt formula-decl nil real_props nil)
    (posreal_div_posreal_is_posreal application-judgement "
posreal"
     real_types nil)
    (number nonempty-type-decl nil numbers nil)
    (boolean nonempty-type-decl nil booleans nil)
    (number_field_pred const-decl "
[number -> boolean]" number_fields
     nil)
    (number_field nonempty-type-from-decl nil number_fields nil)
    (real_pred const-decl "
[number_field -> boolean]" reals nil)
    (real nonempty-type-from-decl nil reals nil)
    (bool nonempty-type-eq-decl nil booleans nil)
    (>= const-decl "
bool" reals nil)
    (nonneg_real nonempty-type-eq-decl nil real_types nil)
    (> const-decl "
bool" reals nil)
    (posreal nonempty-type-eq-decl nil real_types nil)
    (numfield nonempty-type-eq-decl nil number_fields nil)
    (/= const-decl "
boolean" notequal nil)
    (nznum nonempty-type-eq-decl nil number_fields nil)
    (/ const-decl "
[numfield, nznum -> numfield]" number_fields nil)
    (nat nonempty-type-eq-decl nil naturalnumbers nil)
    (T_pred const-decl "
[real -> boolean]" rs_integral_prep nil)
    (T formal-nonempty-subtype-decl nil rs_integral_prep nil)
    (barray type-eq-decl nil fseqs "
structures/")
    (fseq type-eq-decl nil fseqs "
structures/")
    (AND const-decl "
[bool, bool -> bool]" booleans nil)
    (= const-decl "
[T, T -> boolean]" equalities nil)
    (- const-decl "
[numfield, numfield -> numfield]" number_fields nil)
    (restrict const-decl "
R" restrict nil)
    (<= const-decl "
bool" reals nil)
    (increasing? const-decl "
bool" sort_fseq "structures/")
    (rational_pred const-decl "
[real -> boolean]" rationals nil)
    (rational nonempty-type-from-decl nil rationals nil)
    (integer_pred const-decl "
[rational -> boolean]" integers nil)
    (int nonempty-type-eq-decl nil integers nil)
    (< const-decl "
bool" reals nil)
    (below type-eq-decl nil naturalnumbers nil)
    (partition type-eq-decl nil rs_partition nil)
    (real_ge_is_total_order name-judgement "
(total_order?[real])"
     real_props nil)
    (real_lt_is_strict_total_order name-judgement
     "
(strict_total_order?[real])" real_props nil)
    (triangle formula-decl nil real_props nil)
    (abs const-decl "
{n: nonneg_real | n >= m AND n >= -m}" real_defs
         java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
    (lemma wmapXH: "p wmap(,)\longleftrightarrow>( x y.p<y <nd <f(x)f()  "

ypesnil)
   real_le_is_total_order-udgement"total_order?[real])"
     real_props nil)
a simp
    (  unfoldingunfoldingwf_def by blast
    (real_plus_real_is_real application-judgement "real" reals nil)
    (inus_odd_is_oddapplicationjudgement"odd_int"  )
    (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      (rule List_indjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
   (integrable?const-decl bool rs_integral_def nil))
   nil))
 (integrable_lem2_alt 0
  (integrable_lem2_alt-1erulebspec SubtypeEsym [THEN subst])
("
    (case "
FORALL (a, b:T, f, g: [T -> real]):
                                                                       a <  done
                                                                        
                                                                                                (: | 1/n< !}"java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
                                                                                )
                                                                        IMPLIES
                                                                        ?(,b, g f IFF
                                                                          assumes 1:"
gab =c
                                                                             EXISTS (delta: posreal):
                                                                               FORALL (P: partition(a,  apply1[symmetric]
                                                                                 
(FORALL (RS1 (iemann_sum?a b,P g,f),
                                                                                           RS2: (Riemann_sum?(a, b, P, g, f))):
abs  )epsi)
    "<And> P.a:{x:Nat.Psuccx)}\<ongrightarrow> succ(a) : {x:Nat. P(x)}"
      (("1" (flatten)
        ("" (ssert)
(""(xpand "onotonic?")
            (("subsection \openTypechecking\<close>

                (("
1" (inst?) (("1" (assert) nil nil)) nil)
                 (    l n\<^Const_><open>Ball  for  \open>Abs(s,_,t)\<close>\<close> = get_bno (s::l) (n+1) t
                  (("
1" (hide-all-but (-1 1))
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                      (("
1" (expand "decreasing?")
       ("
1"(skeep)
           (1xis:xis?(!, b!1,)java.lang.StringIndexOutOfBoundsException: Index 205 out of bounds for length 205
                            (("
1" (assert)
("
1"
                                (expand "
restrict* upCorrectness Condictions**)
                                java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 75
                                  (expand
                                  (("1" (assert) nil nil))
nil)
                                nil))
                              nil))
                            nil)  :" <longlongrightarrow>a"
                          nilapply (unfold let_def)
                        eresolve_tac<context {thmssubstitute )\close>)
                      nil))
                   )
                   ("2" (
                    (2 (inst  "a b """-gg")
                      (("
2" (assert)
                        (("
2 \Andc(("1"
                          (("1" (flatten)
                            ("("ntegrablea,gg,))
(""
                                (  "letrec f  bencase,succ(zero)\<ambda>x.nrec(n,zero,\<lambda>y g. nrec(f(x),g,\<lambda>z h. succ(h))))  
                                (("
1"
                                  (hide -5)
                                  (("
1"
                                    (skeep)
("
1"
(inst - "
epsi)
                                      end
                                        (skeep -4)
                                        (("1"
                                          (inst + "delta")
                                          (("1"
                                            (skeep)
                                            (("1"
                                              (inst - "P")
                                              (("1"
                                                (assert)
                                                (("1"
                                                  (skolem
                                                   1
                                                   ("RSS1" "RSS2"))
                                                  (("1"
                                                    (typepred "RSS1")
                                                    (("1"
                                                      (typepred "RSS2")
                                                      (("1"
                                                        (expand
                                                         "Riemann_sum?")
                                                        (("1"
                                                          (skolem
                                                           -1
                                                           
                                                          (("1"
                                                            (skolem
                                                             -2
                                                             "xis1")
                                                            (("1"
                                                              (name
                                                               "RSP1"
                                                               "Rie_sum(a,b,-gg,P,xis1,f)")
                                                              (("1"
                                                                (name
                                                                 "RSP2"
                                                    )
                                                                (("1"
                                                                  (case
                                                                   "RSP1 = -RSS1 AND RSP2 = -RSS2")
                                                                  (("1"
                                                                    (flatten)
                                                                    (("1"
                                                                      (inst
                                                                       -
                                                                       "RSP1"
                                                                       "RSP2")
                                                                      (("1"
                                                                        (hide-all-but
                                                                         (-1
                                                                          -2
                                                                          -11
                                                                          +))
                                                                        (("1"
                                                                          (grind)
                                                                          nil
                                                                          nil))
                                                                        nil)
                                                                       ("2"
                                                                        (replace
                                                                         -3
                                                                                                                                     ""
                                                                         :dir
                                                                         rl)
                                                                        (("2"
                                                                          (lemma
                                                                           "Riemann?_Rie")
                                                                          (("2"
                                                                            (inst
                                                                             -
                                                                             "a"
                                                                             "b"
                                                                             "f"
                                                                             "-gg")
                                                                            (("2"
                                                                              (split
                                                                               -)
                                                                              (("1"
                                                                                (inst
                                                                                 -
                                                                                 "P"
                                                                                 "java.lang.StringIndexOutOfBoundsException: Range [0, 86) out of bounds for length 61
                                                                                nil
                                                                                nil)
                                                                               ("
2"
                                                                                (propax)
                                                                                nil
                                                                                nil))
                                                                              nil))
                                                                            nil))
                                                                          nil))
                                                                        nil)
                                                                       ("
3"
                                                                        (replace
                                                                         -4
                                                                         +
                                                                         :dir
                                                                         rl)
                                                                        (("
3"
                                                                          (lemma
                                                                           "
Riemann?_Rie")
                                                                          (("
3"
                                                                            (inst
                                                                             -
                                                                             "
a"
                                                                             "
b"
                                                                             "
f"
                                                                             "
-gg"                                                       java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
                                                                            (("
3"
                                                                              (split
                                                                               -)
                                                                              (("
2"
                                                                                (inst
                                                                                 -
                                                                                 "
P"
                                                                                 "
xis1")
                                                                                nil
nil)
                                                                               ("
2"
                                                                                (java.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 65
                                                                                nil
                                                                                nil))
                                                                              nil))
                                                                            nil))
                                                                          nil))
                                                                        nil))
                                                                      nil))
                                                                    nil)
                                                                   ("
2"
                                                                    (replace
                                                                     -1
                                                                     1
                                                                     :dir
                                                                     rl)
                                                                    (("
2"
                                                                      (replace
                                                                       -2
                                                                       1
                                                                       :dir
                                                                       rl)
                                                                      (("
2"
                                                                        (replace
                                                                         -3
                                                                         1)
                                                                        (("
2"
                                                                          (replace
                                                                           -4
                                                                           1)
                                                                          ((2"

                                                                            (hide-all-but
                                                                             1)
                                                                            (("2"
                                                                              (expand
                                                                               Rie_sum"
                                                                                                                                        (assertjava.lang.StringIndexOutOfBoundsException: Range [66, 67) out of bounds for length 66
                                                                                (split
                                                                                 +)
                                                                                (("
1"
                                                                                  (lemma
                                                                                   "
                                                )java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
                                                                                  (("1"
                                                                                    (inst
                                                                                     -
                                                                                     "LAMBDA (n: below(P`length - 1)):
                                                                                                                                                                                 f(xis1`seq(n)) * gg(P`seq(1 + n)) -
                                                                                                                                                                                  f(xis1`seq(n)) * gg(P`seq(n))"

                                                                                     "-1"
                                                                                     "P`length-2"
                                                                                     "0")
                                                                                    (("1"
                                                                                      (replace
                                                                                       -1
                                  ("
                                                                                       rl)
                                                                                      (("
1"
                                                                                        (hide
                                                                                         -1)
                                                                                        (("
1"
                                                                                          (lemma
                                                                                           "
sigma_restrict_eq[below(java.lang.StringIndexOutOfBoundsException: Range [0, 117) out of bounds for length 54
                                                                                          (("1"
                                                                                            (inst?)
                                                                                            (("1"
                                                                                              (assert)
                                                                                              (("1"
                                                                                                (hide
                                                                                                
                                                                                                (("1"
                                                                                                  (expand
                                                                                                   
                                                                                                  (("1"
                                                                                                    (expand
                                                                                                     "-")
                                                                                                    (("1"
                                                                                                      (assert)
                                                                                                      nil
                                                                                                      nil))
                                                                                                    nil))
                                                                                                  nil))
                                                                                                nil))
                                                                                              nil))
                                                                                            nil))
                                                                                          nil))
                                                                                        nil))
                                                                                      nil))
                                                                                    nil)
                                                                                   ("2"
                                                                                    (skosimp*)
                                                                                    (("2"
                                                                                      
                                                                                      nil
                                                                                      nil))
                                                                                    nil))
                                                                                  nil)
                                                                                 ("2"
                                                                                  (lemma
                                                                                   "sigma_scal[below(P`length-1)]")
                                                                                  nil)
                                                                                    (inst
                                                                                     -
                                                                                     "LAMBDA (n: below(P`length - 1)):
                                                                                                                                                                                 f(xis2`seq(n)) * gg(P`seq(1 + n)) -
                                                                                                                                                                                  f(xis2`seq(n)) * gg(P`                  nil))
                                                                                     "-1"
                                                                                     "P`length-2"
                                                                                     "0")
                                                                                    (("1"
                                                                                      (replace
                                                                                       -1
                                                                                       :dir
                                                                                       rl)
                                                                                      (("1"
                                                                                        (hide
                                                                                         -)
                                                                                        (("1"
                                                                                          (lemma
                                                                                           "sigma_restrict_eq[below(P`length-1)]")
                                                                                          (("1"
                                                                                            (inst?)
                                                                                            (("1"
                                                                                              (assert)
                                                                                              (("1"
                                                                                                (hide
                                                                                                 2)
                                                                                                (("1"
                                                                                                  
                                                                                                   "restrict")
                                                                                                  (("1"
(2""java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
                                                                                                     "-")
                                                                                                    (("1"
                                       a)
                                                                                                      nil
                                                                                                      nil))
                                                                                                    nil))
                                                                                                  nil))
                                                                                                nil))
                                                                                              nil))
                                                                                            nil))
                                                                                          nil))
                                                                                        nil))
                                                                                      nil))
                                                                                    nil)
                                                                                   ("2"
                                                                                    (skosimp*)
                                                                                    (("2"
                                                                                      (java.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 57
                                                                                      nil
                                                                                      nil))
                                                                                    nil))
                                                                                  nil))
                                                                                nil))
                                                                              nil ("3
                                                                            nil))
                                                                          nil))
                                                                        nil))
                                                                      nil))
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              (("2"
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                "1+BMA +  n!1")
                               ("2"
                                (hide-all-but (-1 1))
                                (("2"
                                  (lemma "integral_scal_g")
                                  (("2"
                                    (inst - "-1" "a" "b" "f                                    (cancel
                                    (("2"
                                      (assert)
                                      (("2"
                                        (flatten)
                                        (("2"
                                          (assert)
                                          (("2"
(-)
                                            (("2"
                                              (expand "*")
                                              (("2" (assert) nil nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil)
                           ("2" (flatten)
                            (("2" (case "integrable?(a,b,-gg,f)")
                              (("1"
                                (hide-all-but (-1 1))
                                (("1"
                                  (lemma "integral_scal_g")
                                  (("1"
                                    (inst - "-1" "a" "                      nil)))
                                    (("1"
                                      (assert)
                                      (("1"
                                        (flatten)
                                        (("1"
                                          (expand "-")
                                          (("1"
                                            (expand "*")
                                            (("1"
                                              (case
                                               "gg = (LAMBDA (x_1:T): -1 * -gg(x_1))")
                                              (("1" (assert) nil nil)
                                               ("2"
                                                (decompose-equality 1)
                                                nil
                                                nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil)
                               ("2"
                                (hide 2)
                                (("2"
                                  (assert)
                                  (("2"
                                    (hide -3)
                                    (("2"
                                      (hide 1)
                                      (("2"
                                        (skeep)
                                        (("2"
                                          (inst - "epsi")
                                          (("2"
                                            (skeep -1)
                                            (("2"
                                              (inst + "delta")
                                              (("2"
                                                (skeep)
                                                (("2"
                                                  (inst - "P")
                                                  (("2"
                                                    (assert)
                                                    (("2"
                                                      (skolem
                                                       1
                                                       ("RSS1" "RSS2"))
                                                      (("2"
                                                        (typepred
                                                         "RSS1")
                                                        (("2"
                                                          (typepred
                                                           "RSS2")
                                                          (("2"
                                                            (expand
                                                             "Riemann_sum?")
                                                            (("2"
                                                              (skolem
                                                               -1
                                                               "xis2")
                                                              (("2"
                                                                (skolem
                                                                 -2
                                                                 "xis1")
                                                                (("2"
                                                                  (name
                                                                   "RSP1"
                                                                   "Rie_sum(a,b,gg,P,xis1,f)")
                                                                  (("2"
                                                                    (name
                                                                     "RSP2"
                                                                     "Rie_sum(a,b,gg,P,xis2,f)")
                                                                    (("2"
                                                                      (case
                                                                       "RSP1 = -RSS1 AND RSP2 = -RSS2")
                                                                      (("1"
                                                                        (flatten)
                                                                        (("1"
                                                                          (inst
                                                                           -
                                                                           "RSP1"
                                                                           "RSP2")
                                                                          (("1"
                                                                            (hide-all-but
                                                                             (-1
                                                                              -2
                                                                              -7
                                                                              +))
                                                                            (""
                                                                              (grind)
                                                                              nil
                                                                              nil))
                                                                            nil)
                                                                           ("2"
                                                                            (lemma
                                                                             "Riemann?_Rie")
                                                                            (("2"
                                                                              (inst
                                                                               -
                                                                               "a"
                                                                               "b"
                                                                               "f"(osrealdecl niljava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
                                                                               "gg")    (= const-"oolean" notequalnil)
                                                                              (("2"
                                                                                (split
                                                                                 -)
                                                                                (("1"
                                                                                  (inst
                                                                                   -
                                                                                   "P"
                                                                                   "xis2")
                                                                                  (("1"
                                                                                    (assert)
                                                                                    nil
                                                                                    nil))
                                                                                  nil)
                                                                                 ("2"
                                                                                  (propax)
                                                                                  nil
                                                                                  nil))
                                                                           
                                                                              nil))
                                                                            nil)
                                                                           ("3"
                                                                            (lemma
                                                                             "Riemann?_Rie")
                                                                            (("3"
                                                                              (inst
                                                                               -
                                                                               "a"
                                                                               "b"
                                                                               "f"
                                                                               "gg")
                                                                              (("3"
                                                                                (split
                                                                                 -)
                                                                                (("1"
                                                                                  (inst
                                                                                   -
                                                                                   "P"
                                                                                   "xis1")
                                                                                  (("1"
                                                                                    (assert)
                                                                                    nil
                                                                                    nil))
                                                                                  nil)
                                                                                 ("2"
                                                                                  (propax)
                                                                                  nil
                                                                                  nil))
                                                                                nil))
                                                                              )java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
                                                                            nil))
                                                                          nil))
                                                                        nil)
                                                                       ("2"
                                                                        (replace
                                                                         -1
                                                                         1
                                                                         :dir
                                                                         rl)
                                                                        (("2"
                                                                          (replace
                                                                           -2
                                                                           1
                                                                           :dir
                                                                            bool functions niljava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
                                                                          (("2"
                                                                            (
                                                                             -3
                                                                             1)
                                                                                              (""
                                                                              decl"- ]booleans )
                                                                               
                             1)
                                                                                  (reserves const-ecl "
ool" functions nil)
                                                                                (hide-all-but
                                                                                 1)
                                                                                (("
2"
                                                                                  (expand     ("
"( -x! "11)(3 assertnil) java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
                                                                                   "Rie_sum")
(("2"
                                                                                    (split
                                    +
                                                                                    ( (nion - set  )
                                   (lemma
                                                                                       "sigma_scal[below(P`length-1)]")
                                                                                      
                             (inst
                                   -
                                                                   n P`length - 1))java.lang.StringIndexOutOfBoundsException: Range [122, 123) out of bounds for length 122
(-gg)(P`seq(1 + n)) * f(xis1`seq(n)-
    java.lang.StringIndexOutOfBoundsException: Range [18, 16) out of bounds for length 47
                                                                                         "-1"
                                                                                         "P`ength-2"
                                                                                         "0"    pred --decl nil nil)
                                                                                        (""
                                                                                          (replace
                                                                                           -1
                                                                                           :dir
                                                                                           rl)
                                                                                          (("1"
                                                                                            (hide
                                                                                             -1)
                                                                                            (("1"
                                                                                              (lemma
                                                                                               "sigma_restrict_eq[below(P`length-1)]")
                                                                                              (("1"
                                                                                                (inst?)
                                                                                                (("1"
                                                                                                  (assert)
                                                                                                  (("1"
                                                                                                    (hide
                                                                                                     2)
                                                                                                    (("1"                                                              
                                                                                                      (expand
                                                                                                       "restrict")
                                                                                                      (("1"
                                                                                                        (expand
                                                                                                         "-")
                                                                                                        (("1"
                                                                                                          (assert)
                                                                                                          nil
                                                                                                          nil))
                                                                                                        nil))
                                                                                                      nil))
                                                                                                    nil))
                                                                                                  nil))
                                                                                                nil))
                                                                                              nil))
                                                                                            nil))
                                                                                          nil))
                                                                                        nil)
                                                                                       ("2"
                                                                                        (skosimp*)
                                                                                        (("2"
                                                                                          (assert)
                                                                                          nil
                                                                                          nil))
                                                                                        nil))
                                                                                      nil)
                                                                                     ("2"
                                                                                      (lemma
                                                                                       "sigma_scal[below(P`length-1)]")
                                                                                      (("1"
                                                                                         (replace
                                                                                         -
                                                                                         "LAMBDA (n: below(P`length - 1)):
                                                                                                                                                                                 (-gg)(P`seq(1 + n)) * f(xis2`seq(n)) -
                                                                                                                                                                                  (-gg)(P`seq(n)) * f(xis2`seq(n))"

                                                                                         "-1"
                                                                                         "P`length-2"
                                                                                         "0")
                                                                                        (("1"
                                                                                          (replace
                                                                                           -1
                                                                                           :dir
                                                                                           rl)
                                                                                          (("1"
                                                                                            (hide
                                                                                            -
                                                                                            (("1"
                                                                                              (lemma
                                                                                               "sigma_restrict_eq[below(P`length-1)]")
                                                                                              (("1"
                                                                                                (inst?)
                                                                                                (("1"
                                                                                                  (assert)
                                                                                                  (("1"
                                                                                                    (hide
                                                                                                     2)
                                                                                                    (("nil))
                                                                                                      (expand
                                                                                                       "
restrict")
                                                                                                      (("
1"
                                                                                                        (expand
                                                                                                                                                                                  :ir
                                                                                                        (("
1"
                                                                                                          (assert)
                                                                                                          "
Riemann_"
                                                                                                          nil))
                                                                                                        nil))
                                                                                                      nil))
                                                                                                    nil))
                                                                                                  nil))
                                                                                                nil))
                                                                                              nil))
                                                                                            nil))
                                                                                          nil))
                                                                                        nil)
                                                                                       ("
2"
                                                                                        (skosimp*)
                                                                                        
                                                                                          (assert)
                                                                                          nil
                                                                                          nil))
                                                                                        nil))
                                                                                      
                                                                                    nil))
                                                                                  nil))
                                                                                nil))
                                                                              nil))
                                                                       
                                                                          nil))
                                                                        nil))
                                                                      nil))
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil(replace
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              ))
                                            nil))
                                          nil))
                                                                                                                        (split
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil)
                nil))
              nil))
            nil))
          nil))
        nil))
      nil)
     ("
2" (hide 2)
      (("
2" (skolem 1 ("a" "b" "f" "gg"))
        (("
2" (flatten)
          (("
2" (label "gincreasing?" -2)
            (("
2" (hide "gincreasing?")
              (("
2" (ground)
                (("
1" (rewrite "integrable_lem")
                  (("
1" (skeep)
                    (("
1" (inst - "epsi")
                      (("
1" (skeep -1)
                        (("
1" (inst + "delta")
                          (("
1" (skeep)
                            (("
1" (inst - "P" "P")
                              (("
"assert) nil nil)) nil))
                            nil))
                          nil))
                        ))
                      nil))
                    nil))
                  nil)
                 ("
2"
                  (case "
FORALL (epsi:posreal): EXISTS (delta: posreal):
                                                                                                                    FORALL (P1, P2: partition(a,b)):
                                                                                                                      width(a, b, P1) < delta IMPLIES
                                                                                                                       (FORALL (RS1: (Riemann_sum?(a, b, P1, gg, f)),
                                                                                                                                RS2: (Riemann_sum?(a, b, partition_union(a,b)(P1,P2), gg, f))):
                                                                                                                          abs(RS1 - RS2) < epsi)")
                  (("
1" (hide -2)
                    ("
1"
                      (("
1" (skeep)
                        (("
1" (inst - "epsi/2")
                          (("
1" (skeep -1)
                            (("
1" (inst + "delta")
                              (("
1"
                                (skeep)
                                (("
1"
                                  (inst-cp - "
P1" "P2")
                                  (("
1"
                                    (inst - "
P2" "P1")
                                    (("
1"
                                      (assert)
                                      (("
1"
                                        (case
                                         "
EXISTS (RS12: (Riemann_sum?(a, b, partition_union(a, b)(P1, P2), gg,f))): TRUE")
                                        (("
1"
                                          (skeep -1)
                                          (("
1"
                                            (skosimp*)
                                            (("
1"
                                              (inst - "
RS2!1" "RS12")
                                              (("
1"
                                                (inst - "
RS1!1" "RS12")
                                                (("
1"
                                                  (hide -3)
                                                  (("
1"
                                                    (hide -3)
                                                    (("
1"
                                                      (grind)
                                                      nil
                                                      nil))
                                                    nil)
                                                  nil))
                                                nil)
                                               ("
2"
                                                (typepred "
RS12")
                                                (("
2"
                                                  (lemma
                                                   "
partition_union_sym")
                                                  (("
2"
                                                    (inst - "
a" "b")
                                                    (("
2"
                                                      (assert)
                                                      (("
2"
                                                        (inst
                                                         -
                                                         "
P1"
                                                         "
)
                                                        (("2"
                                                          (assert)
                                                          nil
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil)
                                         ("2"
                                          (lemma "Riemann?_Rie")
                                          (("2"
                                            (inst - "a" "b" "f" "gg")
                                            (("2"
                                              (split -)
                                              (("1"
                                                (inst
                                                 -
                                                 "partition_union(a,b)(P1,P2)"
                                                 "gen_xis(a,b,partition_union(a,b)(P1,P2))")
                                                (("1"
                                                  (inst
                                                   +
                                                   "Rie_sum(a, b, gg, partition_union(a, b)(P1, P2),
                                                                                                                                                 gen_xis(a, b, partition_union(a, b)(P1, P2                                                                                                      )java.lang.StringIndexOutOfBoundsException: Index 107 out of bounds for length 107
                                                  nil
                                                  nil))
                                                nil)
                                               ("
2" (propax) nil nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil)
                   ("
2" (hide 2)
                    (("
2" (lemma "Rie_sum_diff_extend_union")
                      (("
2" (skeep)
                        (("
2" (inst -2 "epsi")
                          (("
2" (skeep -2)
                            (("
2" (inst + "delta")
                              (("
2"
                                (skolem 1 ("
P" "Q"))
                                (("
2"
                                  (inst - "
a" "b" "f" "gg")
                                  (("
2"
                                    (assert)
                                    (("
2"
                                      (reveal "
gincreasing?")
                                      (("
2"
                                        (replace "
gincreasing?")
                                        (("
2"
                                          (hide "
gincreasing?")
                                          (("
2"
                                            (inst -"
-"a" b f""
                                            (("2"
                                              (flatten)
                                              (("2"
                                                (skolem
                                                 1
                                                 (                                          (2
                                                (("2"
                                                  (typepred "RSS1")
                                                  (("2"
                                                    (typepred "RSS2")
                                                    (("2"
                                                      (expand
                                                       "Riemann_sum?")
                                                      (("2"(assert) nil)java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
                                                        (skolemnil)
                                                         -1
                                                         "xispq")
                                                        (("2"
                                                          (skolem
                                                           -2
                                                           "xis")
                                                          (("2"
                                                            (inst
                                                             -
                                                             "xispq"
                                                             "xis")
                                                            (("2"
                                                              (skeep
                                                               -3)
                                                              (("2"
                                                                (inst
                                                                 -
                                                                 "P")
                                                                (("2"
                                                                  (assert                                          expand ""
                                                                  (("2"
                                                                    (inst
                                                                     -
                                                                     "RSS1"
                                                                    (a b,gg,P,  f)"
                                                                    (("
1"
                                                                      (assert)
                                                                      nil
                                                                      nil)
                                                                     ("
2"
                                                                      (lemma
                                                                       "
Riemann?_Rie")
                                                                      (("
2"
                                                                        (inst
                                                                         -
                                                                         "
a"
                                                                         "
b"
                                                                         "
f"
                                                                         "
gg")
                                                                        (("
2"
                                                                          (split
                                                                           -)
                                                                          (("
1"
                                                                            (inst
                                                                             -
                                                                             "
P"
                                                                             "
xis2")
                                                                            nil
                                                                            nil)
                                                                           ("
2"
                   (propax)
                                                                            nil
                                                                            nil))
                                                                          nil))
                                                                        nil))
                                                                      nil))
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil) -2
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                               )
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil))
              nil))
            nil))
          nil))
        nil))
      nil))
    nil)
   ((partition_union const-decl "
{PQ: partition(a, b) |
         (FORALL (x: T): member-7
          AND strictly_increasing?(PQ)}" rs_partition nil)
    (strictly_increasing? const-decl "
bool" sort_fseq "structures/")
    (member const-decl "
bool" fseqs "structures/")
    (posreal_div_posreal_is_posreal application-judgement "
posreal"
     real_types nil)
    (/ const-decl "
[numfield, nznum -> numfield]" number_fields nil)
    (nznum nonempty-type-eq-decl nil number_fields nil)
    (/= const-decl "
boolean" notequal nil)
    (gen_xis const-decl "
xis?(a, b, P)" rs_integral_def nil)
    (a skolem-const-decl "
T" rs_integral_prep                                                 inst
    (b skolem-const-decl "
T" rs_integral_prep nil)
    (P2 skolem-const-decl "
partition[T](a, b)" rs_integral_prep nil "b"
    (P1 skolem-const-decl "
partition[T](a, b)" rs_integral_prep nil)
    (gg skolem-const-decl "
[T -> real]" rs_integral_prep nil)
    (f skolem-const-decl "
[T -> real]" rs_integral_prep nil)
    (RS12 skolem-const-decl
     "
(Riemann_sum?(a, b, partition_union(a, b)(P1, P2), gg, f))"
                      (inst
    (partition_union_sym formula-decl nil rs_partition nil)
    (TRUE const-decl "
bool" booleans nil)
    (Rie_sum_diff_extend_union formula-decl nil rs_integral_def nil)
    (xis2 skolem-const-decl "
(assert
( skolemconst "T(, b"rs_integral_prep)
    (integrable_lem formula-decl nil rs_integral_prep nil)
    (real_lt_is_strict_total_order name-judgement
     "(strict_total_order?[real])" real_props nil)
    (NOT const-decl "[bool -> bool]" booleans nil)
    (- const-decl "[T -> real]" real_fun_ops "reals/")
    (real_le_is_total_order name-judgement "(total_order?[real])"
     real_props nil)
    (minus_real_is_real application-judgement "real" reals nil)
    (decreasing? const-decl "bool" real_fun_preds "reals/")
    (+ const-decl "[numfield, numfield -> numfield]" number_fields nil)
                                               (3"
    (Rie_sum const-decl "
real" rs_integral_def nil)
    (a skolem-const-decl "
T" rs_integral_prep nil)
    (b skolem-const-decl "
T" rs_integral_prep nil)
    (P skolem-const-decl "
partition[T](a, b)" rs_integral_prep nil)
    (gg skolem-const-decl "
[T -> real]" rs_integral_prep nil)
    (f skolem-const-decl "
[T -> real]" rs_integral_prep nil)
    (RSP1 skolem-const-decl "
real" rs_integral_prep nil)
    (RSP2 skolem-const-decl "
real" rs_integral_prep nil)
    (minus_odd_is_odd application-judgement "
odd_int" integers nil)
    (Riemann?_Rie formula-decl nil rs_integral_def nil)
    (real_times_real_is_real application-judgement "
real" reals nil)
    (sigma_scal formula-decl nil sigma "
reals/")
    (integer nonempty-type-from-decl nil integers nil)
    (sigma_restrict_eq formula-decl nil sigma "
reals/")
    (real_gt_is_strict_total_order name-judgement
     "
(strict_total_order?[real])" real_props nil)
    (real_ge_is_total_order name-judgement "
(total_order?[real])"
     real_props nil)
    (restrict const-decl "
[T -> real]" sigma "reals/")
    (* const-decl "
[numfield, numfield -> numfield]" number_fields nil)
    (OR const-decl "
[bool,                                nil
    (T_high type-eq-decl nil sigma "reals/")
    (T_low type-eq-decl nil sigma "reals/")
    (posint_plus_nnint_is_posint application-judgement "posint"
     integers nil)
    (int_minus_int_is_int application-judgement "int"                                                                          1
    (integral_scal_g formula-decl nil rs_integral_prep nil)
    (* const-decl "[T -> real]" real_fun_ops "reals/")
    (P skolem-const-decl "partition[T](a, b)" rs_integral_prep nil)
    (RSP1 skolem-const-decl "real" rs_integral_prep nil)
    (RSP2 skolem-const-decl "real" rs_integral_prep nil)
    (monotonic? const-decl "bool"  :dir
    (real_minus_real_is_realjudgement "real" reals nil)
    (number nonempty-type-decl nil numbers nil)
    (boolean nonempty-type-decl nil booleans nil)
    (    (number_field_pred-3
     nil)
    (number_field nonempty-type-from-decl nil number_fields nil)
    (real_pred const-decl "[number_field -> boolean]" reals nil)
    (real nonempty-type-from-decl nil reals nil)
    (T_pred const-decl "[real -> boolean]" rs_integral_prep nil)
    (T formal-nonempty-subtype-decl nil rs_integral_prep nil)
    (bool java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
    (IMPLIES const-decl "[bool, bool -> bool]" booleans nil)
    (AND const-decl "[bool, bool -> bool]" booleans nil)
    (< const-decl "bool" reals nil) (<= const-decl "bool" reals nil)
    (increasing? const-decl "bool" real_fun_preds "reals/")
    (restrict const-decl "R" restrict nil)
    (IFF const-decl ""sigma_scalbelowPl1])
    (integrable? const-decl "bool" rs_integral_def nil)
    (>= const-decl "bool" reals nil)
    (nonneg_real nonempty-type-eq-decl nil real_types nil)
    (> const-decl "bool" reals nil)
    (posreal nonempty-type-eq-decl nil real_types nil)
    (nat nonempty-type-eq-decl nil naturalnumbers nil)
    (barray type-eq-decl nil fseqs "structures/")
    (fseq type-eq-decl nil fseqs "structures/")
    (= const-decl "[T, T -> boolean]" equalities nil)
    (numfield nonempty    (("1java.lang.StringIndexOutOfBoundsException: Range [93, 94) out of bounds for length 93
    (- const-decl "
[numfield, numfield -> numfield]" number_fields nil)
    (increasing? const-decl "
bool" sort_fseq "structures/")
    (rational_pred const-decl "
[real -> boolean]" rationals nil)
    (rational nonempty-type-from-decl nil rationals nil)
    (integer_pred const-decl "
[rational -> boolean]" integers nil)
    (int nonempty-type-eq-decl nil integers nil)
    (below type-eq-decl nil naturalnumbers nil)
    (partition type-eq-decl nil rs_partition nil)
    (width const-decl "
posreal" rs_partition nil)
    (Riemann_sum? const-decl "
bool" rs_integral_def nil)
    (- const-decl "
[numfield -> numfield]" number_fields nil)
    (abs const-decl "
{n: nonneg_real | n >= m AND n >= -m}" real_defs
         nil))
   nil))
 (integrable_lem2 0
  (integrable_lem2-3 nil 3494858376
   (""
    (case "
FORALL (a, b:T, f, g: [T -> real]):
                                                                              a < b AND
                                                                               increasing?[(LAMBDA (x:T): a <= x AND x <= b)]
                                                                                   (                                                                                        
                                                                                        )
                                                                               IMPLIES
                                                                               (integrable?(a, b, g, f) IFF
                                                                                 (FORALL (epsi: posreal):
EXISTS (delta:posreal):
                                                                                      FORALL (P: partition(a, b)):
                                                                                        width(a, b, P) < delta IMPLIES
(FORALL ( R?a  ,g )java.lang.StringIndexOutOfBoundsException: Index 133 out of bounds for length 133
                                                                                                  RS2: (Riemann_sum?(a, b, P, g, f))):
                                                                                            abs(RS1 - RS2) < epsi)))")
    (("
1" (skolem 1 ("a" "b" "f" "gg"))
      (("
                     ("
        (("
1" (assert)
          (("
1" (expand "monotonic?")
            (("
1" (flatten)
(("
s
                (("1" (inst?) (("1" (assert) nil              (:belowtransposeA1`ols)
                 ("2" (case "NOT increasing?[(closed_intv(a,b))](-gg)")
                  (("1" (hide-all-but (-1 1))
                    (("1" (expand "increasing?")
                      (("1" (expand "decreasing?")
                        (""(keep
                          (("1" (inst - "x" "y")
                            (("1" (assert)
                              (("1"
                                (expand "restrict")
                                (("1"
                                  (expand "-")
                                  (("1" (assert) nil nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil)
                   ("2" (hide -2)
                    (("2" (inst - "a" "b" "f" "-gg")
                      (("2" (assert)
                        (("2" (split +)
                          (("1" (flatten)
                            (("1" (case "integrable?(a,b,-gg,f)")
                              (("1"
                                (assert)
                                (("1"
                                  (hide -5)
                                  (("1"
                                    (skeep)
                                    (("1"
                                      (inst - "epsi")
                                      (("1"
                                        (skeep -4)
                                        (("1"
                                          (inst + "delta")
                                          (("1"
                                            (skeep)
                                            (("1"
                                              (inst - "P")
                                              (("1"
                                                (assert)
                                                (("1"
                                                  (skolem
                                                   1
                                                   ("RSS1" "RSS2"))
                                                  (("1"
(typepred")
                                                    (("
1"
                                                      (typepred "
RSS2")
                                                      (("
1"
                                                        (expand
                                                         "
Riemann_sum?")
                                                        (("
1"
                                                          (skolem
                                                           -1
                                                           "
xis2")
                                                          (("
1"
                                                            (skolem
                                                             -2
                                                             "
xis1")
                                                            (("
1"
                                                              (name
                                                               "
RSP1"
                                                               "
Rie_sum(a,b,-gg,P,xis1,f)")
                                                              (("
1"
                                                                (name
                                                                 "
RSP2"
                                                                 "
Rie_sum(a,b,-gg,P,xis2,f)")
                                                                (("
1"
                                                                  (case
                                                                   "
RSP1 = -RSS1 AND RSP2 = -RSS2")
                                                                  (("
1"
                                                                    (flatten)
                                                                    (("
1"
                                                                      (inst
                                                                       -
    "
RSP1
                                                                       "RSP2")
                                                                      (("1"
                                                                        (hide-all-but
                                                                         (-1
                                                                          -2
                                                                          -11
                                                                          +))
                                                                        (("1"
                                                                          (grind)
                                                                          nil
                                                                          nil))
                                                                        nil)
                                                                       ("2"
                                                                        (replace
                                                                         -3
                                                                         +
                                                                         :dir
                                                                         rl)
                                                                        (("2"
                                                                          (lemma
                                                                           "Riemann?_Rie")
                                                                          (("2"
                                                                            (inst
                                                                             -
                                                                             "a"
                                                                             "b"
                                                                             (1 r")
                                                                             "
-gg")
                                                                            (("
2"
                                                                              (split
                                                                               -)
                                                                              (("
1"
                                                                                (inst
                                                                                 -
                                                                                 "
P"
                                                                                 "
xis2")
                                                                                nil
                                                                                nil)
                                                                               ("
2"
                                                                                (propax)
                                                                                nil
                                                                                nil))
                                                                              nil))
                                                                            nil))
                                                                          nil))
                                                                        nil)
                                                                       ("
3"
                                                                        (replace
                                                                         -4
                                                                         +
                                                                         :dir
                                                                         rl)
                                                                        (("
3"
                                                                          (lemma
              "
Riemann)
                                                                          (("3"
                                                                            (inst
                                                                             -
                                                                             "a"
                                                                             "b"
                                                                             "f"
                                                                             "-gg")
                                                                            (("3"
                                                                              (split
                                                                               -)
                                                                              (("1"
                                                                                (inst
                                                                                 -
                                                                                 "P"
                                                                                 "xis1")
                                                                                nil
                                                                                nil)
                                                                               ("2"
                                                                                (propax)
                                                                                nil
                                                                                nil))
                                                                              nil))
                                                                            nil))
                                                                          nil))
                                                                        nil))
                                                                      nil))
                                                                    nil)
                                                                   ("2"
                                                                    (replace
                                                                     -1
                                                                     1
                                                                     :dir
                                                                     rl)
                                                                    (("2"
                                                                      (replace
                                                                       -2
                                                                       1
                                                                       :dir
                                                                       rl)
                                                                      (("2"
                                                                        (replace
                                                                         -3
                                                                         1)
                                                                        (("2"
                                                                          (replace
                                                                           -4
                                                                           1)
                                                                          2
                                                                            (hide-all-but
                                                                             1)
                                                                            (("2"
                                                                              (expand
                                                                               "Rie_sum")
                                                                              (2
                                                                                (split
                                                                                 +)
                                                                                (("1"
                                                                                  (lemma
                                                                                   "sigma_scal[below(P`length-1)]")(""
                                                                                  (("1"
                                                                                    (inst
                                                                                     -
                                                                                     "LAMBDA (n: below(P`length - 1)):
                                                                                                                                                                                                   f(xis1`seq(n)) * gg(P`seq(1 + n)) -
                                                                                                                                                                                                    f(xis1`seq(n)) * gg(P`seq(n))"

                                                                                     "-1"
                                                                                     "P`length-2"
                                                                                     "0")
                                                                                    (("1"
                                                                                      (replace
                                                                                       -1
                                                                                       :dir
                                                                                       rl)
                                                                                      (("1"
                                                                                        (hide
                                                                                         -1)
                                                                                        (("1"
                                                                                          (lemma
                                                                                           "sigma_restrict_eq[below(P`length-1)]")
                                                                                          (("1"
                                                                                            (inst?)
                                                                                            (("1"
                                                                                              (assert)
                                                                                              (("1"
                                                                                                (hide
                                                                                                 2)
                                                                                                (("1"
                                                                                                  (expand
                                                                                                   "Riemann"
                                                                                                  (("1"
                                                                                                    (expand
                                                                                                     "-")
                                                                                                    (("1"
                                                                                                      (assert)
                                                                                                      nil
                                                                                                      nil))
                                                                                                    nil))
                                                                                                  nil))
                                                                                                nil))
                                                                                              nil))
                                                                                            nil))
                                                                                          nil))
                                                                                        nil))
                                                                                      nil))
                                                                                    nil)
                                                                                   ("2"
                                                                                    (skosimp*)
                                                                                    (("2"
                                                                                      (assert)
                                                                                      nil
                                                                                      nil))
                                                                                    nil))
                                                                                  nil)
                                                                                 ("2"
                                                                                  (lemma
                                                                                   "sigma_scal[below(P`length-1)]")
                              (1"
                                                                                    (inst
                                                                                     -
                                                                                     "LAMBDA (n: below(P`length - 1)):
                                                                                                                                                                                                   f(xis2`seq(n)) * gg(P`seq(1 + n)) -
                                                                                                                                                                                                    f(xis2`seq(n)) * gg(P`seq(n))"
                                                                                     "-1"
                                                                                     "P`length-2"
                                                                                     "0")
                                                                                    (("1"
                                                                                      (replace
                                                                                       -1
                                                                                       :dir
                                                                                       rl)
                                                                                      (("1"
                                                                                        (hide
                                                                                         -)
                                                                                        (("1"
                                                                                          (lemma
                                                                                           (java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 55
                                                                                          (("1"
                                                                                           
                                                                                            (("1"
                                                                                              (assert)
                                                                                              (("1"
                                         hjava.lang.StringIndexOutOfBoundsException: Index 101 out of bounds for length 101
                                                                                                 2)
                                                                                                ((    askolem- T  java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
                                                                                                  (expand
                                                                                                   "restrict")
                                                                                                  (("1"
                                                                                                    (expand
                                                                                                     "-")
                                                                                                    (("1"
                                                                                                      (assert)
                                                                                                  
                                                                                                      nil))
                                                                                                    nil))
                                                                                                  nil))
                                                                                                nil))
                                                                                              nil))
                                                                                            nil))
                                                                                          nil))
                                                                                        nil))
                                                                                      nil))
                                                                                    nil)
                                                                                   ("2"
                                                                                    (skosimp*)
                                                                                    (("2"
                                                                                      (assert)
                                                                                      nil
                                                                                      nil))
                                                                                    nil))
                                                                                  nil))
                                                                                nil))
                                                                              nil))
                                                                            nil))
                                                                          "
skosimp*
                                                                        " i1 G!""!1")
              nil
                                                                    nil))
                              )
                                                                java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 49
         nil
                                                            ("(ide 2java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
                                                     
                                                        nil))
                                                      nil))
                                                    nil ="
nil
                                                  nil))
                                                
                                               java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 17
nil)
nil)
                                        java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
                                      nil))
                                   )java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
n)
                                nil)
                               ("2"
                                (hide-                                                     ""
                                (("2"
                                  lemmaintegral_scal_g"
                                  (("
2"
                                    (inst - "
-1" "a(lemma
                                    (("2"
                                      (assert)
                                      (("2"
(java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 49
                                        (("2"
                                          (                                              java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
((2(("java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
                                            (expand "
-")
                                            (("
nil
*")
"
java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 63
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
nil)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
                                
                              nil))
nil)
f)
((2 (case "integrable?(a,b,-gg,f"
(""
                                (-(1 1)java.lang.StringIndexOutOfBoundsException: Range [53, 54) out of bounds for length 53
                                (("1"
                                  (lemma "integral_scal_g")
                                  (("1"
                                    (inst - "-1" "a" "b" "f" "-gg")
                                    (("1"
                                      (assert)
                                      (("1"
                                        (flatten)
                                        (("1"
        java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 54
                                          (("1"
                                            (expand "*")
                                            (("1"
                                              )
                                                  x_1:-*x1))
                                              (("1" (assert) nil nil)
                                               ("2"
                                                FORALL (java.lang.StringIndexOutOfBoundsException: Range [44, 32) out of bounds for length 63
(     
java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
                                              )
                                            nil))
                                          nil))
nil)
   nil)
                                    nil))
                                  )
nil
                               ("2"
                                ((java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 37
(""
a)
                                  )
                                    (hide -3)
                                    (("( java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 47
                                      (hide 1)
                                      (("
2"
                                        (skeep)
                       2"

 java.lang.StringIndexOutOfBoundsException: Range [16, 14) out of bounds for length 16
                                          (("2"
                                            ((""(
                                            (("2"
(inst "")
                       (2
                                                (skeep)
                                                2
                                                  (inst - "P")
                                                  (("2"
(
                                                    (("2"
                                                      (skolem
                                                       1
                                                       ("RSS1" "RSS2"))
                                                      (("2"
                                                        (typepred
                                           RSS1
                                                        (("2"
                                                          (typepred
                                                           "RSS2")
                                                          (("2"
                                                            (expand
                                                             "Riemann_sum?")
                                                            (("2"
                                                              (skolem
                                                               -1
                                                               "xis2")
                                                              (("2"
                                                                (skolem
                                                                 -
                                                                 "xis1")
         (("2"
                                                                  (name
                                                                   "RSP1"
                                                                   "Rie_sum(a,b,gg,P,xis1,f)")
                                                                  (("2"
                                                                    (name
"RSP2"
                                                                     "Rie_sum(a,b,gg,P,xis2,f(java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 66
                                                                    (("
2"
                                                                      (case
                                                                       "
RSP1 = -RSS1 AND RSP2 = -RSS2")
                                                                      (("
1"
                                                                        (flatten)
                                                                        (("
1"
                                                                          (inst
                                                                           -
                                                                           "
RSP1"
                                                                           "
RSP2")
                                                                          (("
1"
                                                                            (hide-all-but
                                                                             (-1
                                                                              -2
                                                                              -7
                                                                              +))
                                                                            (("
1"
                                                                              (grind)
                                                                              nil
                                                                              nil))
                                                                            nil)
                                                                           ("
2"
                                                                            (lemma
                                                                             "
Riemann?_Rie")
                                                                            (("
2"
                                                                              (inst
                                                                               -
                                                                               "
a"
                                                                               "
b"
                                                                               "
f"
                                                                               "
gg")
                                                                              (("
2"
                                                                                (split
                                                                                 -)
                                                                                (("
1"
                                                                                  (inst
                                                                                   -
                                                                                   "
P"
                                                                                   "
xis2")
                                                                                  (("
1"
                                                                                    (assert)
                                                                                    nil
                                                                                    nil))
                                                                                  nil)
                                                                                 ("
2"
                                                                                  (propax)
                                                                                  nil
                                                                                  nil))
                                                                                nil))
                                                                              nil))
                                                                            nil)
                                                                           ("
3"
                                                                            (lemma
                                                                                 
                                                                            (("
3"
                                                                              (inst
                                                                               -
                                                                               "
a"
                                                                               "
b"
                                                                               "
f"
                                                                               "
gg")
                                                                              (("
3"
                                                                                (split
                                                                                 -)
                                                                                (("
1"
                                                                                  (inst
                                                                                   -
                                                                                   "
P"
                                                                                   "
xis1")
                                                                                  (("
1"
                                                                                    (assert)
                                                                                    nil
                                                                                    nil))
                                                                                  nil)
                                                                                 ("
2"
                                                                                  (propax)
                                                                                  nil
                                                                                  nil))
                                                                                nil))
                                                                              nil))
                                                                            nil))
                                                                          nil))
                                                                        nil)
                                                                       ("
2"
                                                                        (replace
                                                                         -1
                                                                         1
                                                                         :dir
                                                                         rl)
                                                                        (("
2"
                                                                          (replace
                                                                           -2
                                                                           1
                                                                           :dir
                                                                           rl)
                                                                          (("
2"
                                                                            (replace
                                                                             -3
                                                                             1)
                                                                            (("
2"
                                                                              (replace
                                                                               -4
                                                                               1)
                                                                              (("
2"
                                                                                (hide-all-but
                                                                                 1)
                                                                                (("
2"
                                                                                  (expand
                                                                                   "
Rie_sum" :dir
                                                                                  (("
2"
                                                                                    (split
                                                                                     +)
                                                                                    (("
1"
                                                                                      (lemma
                                                                                       "
sigma_scal[below(P`length-1)]")
                                                                                      (("
1"
                                                                                        1)
                                                                                         -
                                                                                         "
LAMBDA (n: below(P`length - 1)):
                                                                                                                                                                                                   (-gg)(P`seq(1 + n)) * f(xis1`seq(n)) -
                                                                                                                                                                                                    (-gg)(P`seq(n)) * f(xis1`seq(n))"
                                                                                         "
-1"
                                                                                         "
P`length-2"
                                                                                         "
0")
   (("
1"
                                                                                          (replace
                                                                                           -1
                                                                                           :dir
                                                                                           rl)
                                                                                          (("1"
                                                                                            (hide
                                                                                             -1)
                                                                                            (("
1"
                                                                                              (lemma
                                                                                               "
sigma_restrict_eq[below(P`length-1)]")
                                                                                              (("
1"
                                                                                                (inst?)
                                                                                                (("
1"
                                                                                                  (assert)
                                                                                                  (("
1"
                                                                                                    
                                                                                                     2)
                                                                                                    (("
1"
                                                                                                      (expand
                                                                                                       "
restrict")
                                                                                                      (("
1"
                                                                                                        (expand
                                                                                                         "
-")
                                                                                                        (("
1"
                                                                                                          (assert)
                                                                                                          nil
                                                                                                          nil))
                                                                                                        nil))
                                                                                                      nil))
                                                                                                    nil))
                                                                                                  nil))
                                                                                                nil))
                                                                                              nil))
                                                                                            nil))
                                                                                          nil))
                                                                                        
                                                                                       "
"
                                                                                        (skosimp*)
                                                                                        (("
2"
                                                                                          (assert)
                                                                                          nil
                                                                                          nil))
                                                                                        nil))
                                                                                      nil)
                                                                                     ("
2"
                                                                                      
                                                                                       [below(P`ength-1])
                                                                                      nil))
                                                                                        (inst
                                                                                         -
                                                                                         "
LAMBDA (n: below(P`length - 1)):
                                                                                                                                                                                                   (-gg)(P`seq(1 + n)) * f(xis2`seq(n)) -
                                                                                                                                                                                                    (-gg)(P`seq(n)) * f(xis2`seq(n))"
                                                                                         "
-1"
                                                                                         "
P`length-2"
                                                                                         "
0")
                                                                                        (("
1"
                                                                                          (replace
                                                                                           -1
                                                                                           :dir
                                                                                           rl)
                                                                                          (("
1"
                                                                                            (hide
                                                                                             -)
                                                                                            (("
1"
                                                                                              (lemma
                                                                                               "
sigma_restrict_eq[below(P`length-1)]")
                                                                                              (("
1"
                                                                                                (inst?)
                                                                                                (("
1"
                                                                                                  (assert                                                                                           f(is2`seqn)*gg(P`()"

                                                                                                  (("1"
                                                                                                    (hide
                                                                                                     2)
                                                                                                    (("1"
                                                                                                      (expand
                                                                                                       "restrict")
                                                                                                      (("1"
                                                                                                        (expand
                                                                                                         "-")
                                                                                                        (("1"
                                                                                                          (assert)
                                                                                                          nil
                                                                                                          nil))
                                                                                                        nil))
                                                                                                      nil))
                                                                                                    nil))
                                                                                                  nil))
                                                                                                nil))
                                                                                              nil))
                                                                                            nil))
                                                                                          nil))
                                                                                        nil)
                                                                                                  
                                                                                        (skosimp*)
                                                                                        (("2"
                                                                                          (assert)
                                                                                          nil
                                                                                          nil))
                                                                                        nil))
                                                                                      nil))
                                                                                    nil))
                                                                                  nil))
                                                                                nil))
                                                                              nil))
                                                                            nil))
                                                                          nil))
                                                                        nil))
                                                                      nil))
                                                                    nil))
                                                                  nil))
                                                                     )
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil))
              nil))
            nil))
          nil))
        nil))
      nil)
     ("2" (hide 2)
      (("2" (skolem 1 ("a" "b" "f" "gg"))
        (("2" (flatten)
          (("2" (label "gincreasing?" -2)
            (("2" (hide "gincreasing?")
              (("2" (ground)
                (("1" (rewrite "integrable_lem")
                  (("1" (skeep)
                    (("1" (inst - "epsi")
                      (("1" (skeep -1)
                        (("1" (inst + "delta")
                          (("1" (skeep)
                            (("1" (inst - "P" "P")
                              (("1" (assert) nil nil)) nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil)
                 ("2"
                  (case "FORALL (epsi:posreal): EXISTS (delta: posreal):
                                                                                                                               FORALL (P1, P2: partition(a,b)):
                                                                                                                                 width(a, b, P1) < delta IMPLIES
                                                                                                                                  (FORALL (RS1: (Riemann_sum?(a, b, P1, gg, f)),
                                                                                                                                           RS2: (Riemann_sum?(a, b, partition_union(a,b)(P1,P2), gg, f))):
                                                                                                                                     abs(RS1 - RS2) < epsi)"
)
                  (("1" (hide -2)
                    (("1" (rewrite "integrable_lem")
                      (("1" (skeep)
                        (("1" (inst - "epsi/2")
                          (("1" (skeep -1)
                            (("1" (inst + "delta")
                              (("1"
                                (skeep)
                                (("1"
                                  (inst-cp - "P1" "P2")
                                  (("1"
                                    (inst - "P2" "P1")
                                    (("1"
                                      (assert)
                                      (("1"
                                        (case
                                         "EXISTS                                            )
                                        (("
1"
                                          (skeep -1)
                                          (("
1"
                                            (skosimp*)
                                            (("
1"
                                              (inst - "
RS2!1" "RS12")
                                              (("
1"
                                                (inst - "
RS1!1" "RS12")
                                                (("
1"
                                                  (                                (hide-all-but (-1 1)
                                                  (("
1"
                                                    (hide -3)
                                                    (("
1"
                                                      (grind)
                                                      nil
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil)
                                               ("
2"
        typepred "
")
                                                (("
2"
                                                  (lemma
                                                   "
partition_union_sym")
                                                  (("
2"
                                                    (inst - "
a" "b")
                                                    (2java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
                                                      (assert)
                                                      nil))
                                                        (inst
                                                         -
                                                         "
P1"
                                                         "
P2")
                                                        (("
2"
                                                          (assert)
                                                          nil
                                                          nil))
                                                        nil))
                                                      nil))
                      ))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil)
                                         ("
2"
                                          (lemma "
Riemann?_Rie")
                                          (("
2"
                                            (inst - "
a" "b" "f" "gg")
                                            (("
2"
                                              (split -)
                                              (("
1"
                                                (inst
                                                 -
                                                 "
partition_union(a,b)(P1,P2)"
                                                 gen_xis(a,b,partition_union(a,b)(P1,P2))"
)
(""
                                                  (inst
                                                   +
                                                   Rie_sum(,b gg partition_union(,b(P1, 2,
                                                                                                                                                             gen_xis(a, b, partition_union(a, b)(P1, P2)), f)")
                                                  nil
                                                  nil))
                                                nil)
                                               ("
2" (propax) nil nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil)
                   ("
2" (hide 2)
                    (("
2" (lemma "Rie_sum_diff_extend_union")
                      (("
2" (skeep)
                        (("
2" (inst -2 "epsi")
                          (("
2" (skeep -2)
                            (("
2" (inst + "delta")
                              (("
2"
                                (skolem 1 ("
P" "Q"))
                                (("2"
                                  (inst - "
a" "b" "f" "gg")
                                  (("
2"
                                    (assert)
                                    ("
"
                                      0
                                      (2java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
                                        replace"
increasing)
                                        (("2"
                                          (hide "gincreasing?")
                                          (("2"
group constdecl " nil)
                                            is_finite const-decl "
bool" finite_sets nil)
                                              java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
                                              
                                                (java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 47
                                                 1
                                                 ("
RSS1" "RSS2"))
                                                (("
2"
                                                  (typepred "
RSS1")
                                                  (("
2"
                                                    (typepred "
RSS2")
((roup -"
ool" group_def 
                                                      (    (ingleton const-decl "
(singleton?)" sets nil)
                                                       constdecl [bool - bool"
booleans 
        (("
                            s
                                                         -1
                                                              
                                                        -1
                                                          
                                                           -2
                                                           "
xis")
                                                          (("
2"
                                                            (inst
                                                             -
                                                             --"
T >"groupnil)
                                                             xis)
                                                            (("
2"
                                                              (skeep
                                                               -java.lang.StringIndexOutOfBoundsException: Range [66, 67) out of bounds for length 66
                                                                  java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
(inst
                                                                 
( constdecl "
" nil)
                             (("
"
                                                                  (assert)
                                                                  (("
2"
                                                                    (inst( - "
boolbool >] booleans nil
                                                                     -
                                                                     "java.lang.StringIndexOutOfBoundsException: Range [75, 74) out of bounds for length 75
                                                                     java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 19
                                                                    (("
1"
                                                                      "
RSP1
                                                                      nil
                                                                      nil)
                                                                     ("2"
                                                                      (lemma
                                                                       "Riemann?_Rie")
                                                                      (("2"
                                                                        (inst
                                                                         -
                                                                         "a"
                                                                         
                                                                         "f"
                                                                         "gg")
                                                                        (("2"
                                                                          (split
                                                                           (lemma
                                  1
                                  
-
                                                                              nonemptytype-decl niljava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
                                                                             "xis2")
                                   
                                                                            bool nonemptytype--eclnilbooleansnil)
                                                                           ("2"
                                                                            (propax)
nil
                                                                            (NDconst-"bool,bool>"booleansnil
                                                            nil)
                                       nil)java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
                                                                      nil))
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            (("1"
                                                         )
                                                         constdecl "T"groupnil
                                                      nil))
nil))
                                                  nil))
   nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil)
                                    nil))
                                  nil))
                                nil))
                              nil
                            " nil)
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil))
              nil))
            nil))
          nil))
        nil))
      nil))
    nil)
   ((    (one const                                                          "

         F(:T: ember(x PQ IFF (memberx P ORx Q)java.lang.StringIndexOutOfBoundsException: Range [74, 75) out of bounds for length 74
          AND strictly_increasing?(PQ)}" rs_partition nil)
    (strictly_increasing? const-decl "
bool" sort_fseq "structures/")
    (member const-decl "
bool" fseqs "structures/")
    (posreal_div_posreal_is_posreal application-judgement "
posreal"
     real_types nil)
    (/ const-decl "
[numfield, nznum -> numfield]" number_fields nil)
    (nznum nonempty-type-eq-decl nil number_fields nil)
    (/= const-decl "
boolean" notequal nil)
( const-decl "
xis?(a, b, P)" rs_integral_def nil)
    (a skolem-const-decl "
T" rs_integral_prep     (boolean nonempty-type-decl nil booleans nil)
    (b skolem-const-decl "
T" java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 41
    (P2 (bool nonempty nonempty-type-eq-decl nil booleans nil)
    (P1    nil))
    (gg skolem-const-decl "
[T -> real(("1"(rewrite "eft_identity") nil nil)
    (f skolem-const-decl "[            nil))
    (      nil)
     "
(Riemann_sum?(a, b, partition_union(a, b)(P1, P2), gg, f))"
     rs_integral_prep nil)
    (right_identity-nil  nil)
    TRUE const-decl "
bool" booleans nil)
    (    (monad? const-decl "boolmonad_defnil)
    (xis2 skolem-const-decl "
xis                                                                         1 nil3293049089
    (Pshostak))
    ((subgroup constdecl "bool" group_def nil)) shostak))
    (real_lt_is_strict_total_order name-judgement
     "(strict_total_order?[real])" real_props nil)
    (NOT const-decl "[bool -> bool]" booleans nil)
    (- const-decl "[T -> real]" real_fun_ops "reals/")
( name-judgement "total_order?[]"
     real_props nil)
    (minus_real_is_real application-judgement "real" reals nilniljava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    (decreasing? const-decl "bool" real_fun_preds "reals/")
    (+ const-decl "[numfield, numfield -> numfield]" number_fields nil)
    (xis? type-eq-decl nil rs_integral_def nil)
    (Rie_sum              (4 e inv_closed"java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
    (a skolem-const-decl                                       "
"-4
    (b skolem-const-decl "
T" rs_integral_prep  (rewrite"nv_rightjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
    (P skolem-const-decl "partition[T](a, b)" rs_integral_prep nil)
    (gg skolem-const-decl "[T -> real]" rs_integral_prep nil)
( skolem-const-decl "T->real]"rs_integral_prep nil)
    (RSP1 skolem-const-decl "real" rs_integral_prep nil)
emconstdecl"eal rs_integral_prep nil)
    minus_odd_is_odd application-judgement "
odd_int" integers nil)
    (Riemann?_Rie formula-decl nil rs_integral_def nil)
    (real_times_real_is_real application-judgement "
real" reals nil)
    (sigma_scal formula-decl nil sigma "
reals/")
    integer nonempty-ype-from-decl nil integers nil)
    (sigma_restrict_eq                                    ("
java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
    (real_gt_is_strict_total_order name-judgement
     "(strict_total_order?[real])" real_props nil)
    (real_ge_is_total_order name-judgement "(total_order?[real])"                                                                  n java.lang.StringIndexOutOfBoundsException: Range [107, 106) out of bounds for length 122
     real_props nil)
    (restrict const-decl "[T -> real]" sigma "reals/")
    (* const-decl"[numfield, numfield -> numfield]" number_fields nil)
    (OR const-decl "[bool, bool -> bool]" booleans nil)
    (T_high type-eq-decl nil sigma "reals/")
    (                                            (
    (posint_plus_nnint_is_posint application-judgement "posint"
     integers nil)
    (int_minus_int_is_int application-judgement "int" integers nil)
    (integral_scal_g formula-decl nil rs_integral_prep nil)
    (* const-decl "[T -> real]" real_fun_ops "reals/")
    (P skolem-const-decl "partition[T](a,  nil))
    (RSP1 skolem-const-decl "
real" rs_integral_prep java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 23
    (RSP2 skolem-const-decl "    (one formal-const-decl "T" grnil)
        Tformal--declnil groupnil)
    (real_minus_real_is_real application-judgement "
real" reals nil)
    (number nonempty-type-decl nil numbers nil nil)
    boolean -ype-decl booleans )
(const-    ts nil

    (number_field nonempty-from-ecl nil number_fields nil)
    (real_pred const-decl "
[number_field -> boolean]" reals nil)
    (real nonempty-type-from-decl nil reals nil)
  const- "
 -"rs_integral_prepjava.lang.StringIndexOutOfBoundsException: Range [64, 65) out of bounds for length 64
    (T formal-nonempty-subtype-decl nil rs_integral_prep nil)
    (bool nonempty-type-eq-decl nil booleans nil)
    (IMPLIES const-decl "
[bool, bool -> bool]" booleans nil)
    (AND const-decl "
[bool, bool -> bool]" booleans nil)
    (< const-decl "
bool" reals nil) (<= const-decl "bool" reals nil)
    (increasing? const-decl "
bool" real_fun_preds "reals/")
    (restrict const-decl "
R" restrict nil)
    (IFF const-decl "
[bool, bool -> bool]" booleans nil)
    (integrable? const-decl "
bool" rs_integral_def nil)
    (= const--decl "
bool" reals 
    o --eqdecl real_typesnil)
>decl bool  java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
 -ype-eq-decl nil real_types nil)
    -type-eq-decl nil naturalnumbers nil)
    (barray type-eq-decl nil fseqs "
java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 21
turesjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
lities 
    (numfield nonempty-type-eq-decl nil number_fields nil)
    (*java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 49
    (    ( - [  -> ]  nil
nst" - boolean]  nil)
    (rational            nil))
    ((T formalnonempty-typedecl groupnil
       java.lang.StringIndexOutOfBoundsException: Range [12, 10) out of bounds for length 12
    (below java.lang.StringIndexOutOfBoundsException: Range [45, 15) out of bounds for length 47
type-q-ecl nil  nil)
 const-                     )
egral_def nil)
    ]"
 number_fieldsnil
absdecl":nonneg_real|n>  ANDAND n = -}   0
         nil))
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 7
  java.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
"

    rational_predjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 29
                                                                       a < b AND
                                                                        (1 (lemma "inv_exists"" (x" z1)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
                                                                            )
                                                                                 (g))

                                                                        r)
                                                                          (=decl[,T-boolean"equalities)
                                                                             c0
                                                                       :artition(,))
                                                                                 ,P <delta IMPLIES
                                                                                 (FORALL (S1:(Riemann_sum?(a,b, , g, f)),
                                                                                           RS2: (Riemann_sum?(a, b, P, g, f))):
                                                                                     abs(RS1 - RS2) < epsi)))"
)
    ( (nonempty-qdeclnilintegers
1 
 (1"(assert)
          (("
1" (expand "monotonic?")
            java.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19

()(1 a  nil)nil)
"
 NOT?(java.lang.StringIndexOutOfBoundsException: Range [0, 57) out of bounds for length 56
                  (("1" (hide-all-but (-1 1))
                    (("1" (expand "increasing?")
                      (("1" (expand "decreasing?")
                       (1 (keep)
                          (("1" (inst - "x" "y")
                            (("1" (assert( formalconst-ecl"T  >T] group nil)
(("
1"
                                (expand "
restrict")
(1
                                   "
)
                                  ("assert)nil nil)java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
"
r "")
                                niljava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 49
                              nil))
                            java.lang.StringIndexOutOfBoundsException: Range [26, 1) out of bounds for length 45
                                                    nil
                       )
                      nil))
                    nil)
                   ^-" java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 33
                    (("
2" ((    (boole_is_total_order-udgement "[]"
(2 assert)
                        (("
2" (split +)
                          
("
"("                                                 (""
                              (("1"
                                (assert)
                                (("1"
                                  (hide -5)
                                  (("1"
                                    (skeep)
                                    (("1"
                                      ( ijava.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 70
                  "java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
                                        (skeep -4)
                                        (    (dd_minus_odd_is_evennst  "
)
                                          (inst + "                                                    (expan
                                          (("
1"
                                                                                              java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
                                            (("
1"
                                              (inst    (=const-"
oolrealsnil
                                              (("1"
                                                (assert)
                                                (("1"
                                                  (skolem
                                                   1
                                                   ("RSS1" "RSS2"))
                                                  (("1"
                                                    (R")
"
"
                                                      (typepred "
RSS2")
(("
1
                                                        (expand
                    "?)
                                                        (("
1"
(skolem
              -1
                                                           "xis2")
         ("
                                                            (skolem
                                                             
                                                             "
xis1")
                                                               (--q-group(java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 66

java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 41
"
,ggf"
                                                              java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 42
(name
                                                                 "
RSP2"
                                                                 "
Rie_sum(a,b             (2 (assert nilnil)
((""
                                 
                                                                   java.lang.StringIndexOutOfBoundsException: Range [33, 31) out of bounds for length 33
                                                                  (("1    (- [ >java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 71
                                                                    (flatten)
                                                                    (("
1"
                         (
-
                                                                       "
RSP1"                                " ! *a^i"
                                                                       "
java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 35
                                                              java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
                                                                                     (3 s java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
                                                                         (-1
                                                                          -2
                                                                          -java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 64
                                                                          +))
                                                                        (("1"
                                                                          (grind)
                                                                          
                                                                          nil))
                                )
                                                                       formalnonemptyypedecl groupniljava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
(replace
                                                                         -     java.lang.StringIndexOutOfBoundsException: Range [20, 16) out of bounds for length 21
                             +
                                                                         :dir
                                                                         1(java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 49
                          "
java.lang.StringIndexOutOfBoundsException: Range [75, 74) out of bounds for length 80
                                   
                                 ("

                                                                            (  ( java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 66
java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 35
                                                                             "a"
                          ""
                                                                             "f"
                                                                             "gg"
                                                                            (("(""(java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 69
                                                                              (      (( tjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 43
                                                                               -)
                                                                              (("
1"
                                                                                (inst
                                                                                 ("
assert))
                                                                                 "P"
                                                                                 "
                                                                                
                                                                                nil)
                                                                               ("
2"
                                                                                (propax)
                                                                                nil
                                                                   
                                                                              nil))
                                                                            
                                                                          (java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 42
                                                                        *)
                                                                       ()
                                                                        (replace
                                                                         ("
h -java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
                                                                         +
                                                                         :dir(  java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 44
                                           )
(("3java.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
                                                      
                                                                           "
Riemann?_Rie")
                                                                          (("
3"
(inst
                                                                             -
                                                                             a"

   (formuladecl  nil
                                                                             "f"
(e 
          (("
                                                                              
-)
                                                                              (("
1"
                                                                                
                                                                                 -
                                                                    
                                                                                 "
xis1")
                                                                                nil
                                                                                nil)
                                                                               ("
2"
                                                                                (propax)
                               nil
              nil)
                                                                              nil))
                               nil)
                                                                          nil))
                                                                        shostak))
                                                                      nil   ("
 (kolem)
                                )
                                                      
                                                                    (replace
                                                                     -1
                                                                     1
                                                                     :dir
                                                                    
                                                                                   (2 rewrite ")nil )
                                                                      (replace
                                                                       -1nil 
1
:dir
                                                                       rl)
                                                                      ("
"
(replace
                                                                         -3
1)
    intnonempty---declnil  nil)
                                                                          replace
                                                                           -4
                                                                           1)
                                      (2"

                                                                            - java.lang.StringIndexOutOfBoundsException: Range [1, 43) out of bounds for length 35
                                                                             1)
                                                                            (("2"
xpand
                                                                               ("(emma inv_member"
                                                                        
                                                                                (    *formalnil
                                                                      " 1
                                                     java.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 85
                                   
                                                                                    (s*java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
                                                              
                                                                                    (inst
                                                                                     -
"
java.lang.StringIndexOutOfBoundsException: Index 88 out of bounds for length 9
                                                                                                                                                                                 
                                                                                                                                                                                   aa1 ii1j)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
                                                                                     " nemptyd   java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
"
P`length    one-declTnil)(2i )
                                                                                     "                                                                      (              nil)java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
(("
(^const ""groupnil
                                                                                      (replace
                                                                                       -1
                                                                                       :dir
rl
                                                                                      (("1"
                                      ("java.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
                                                                      
                                                                                        
                               
                                                                                           -declR"
 restrict nil)
                         ""
                                                                                            java.lang.StringIndexOutOfBoundsException: Range [0, 67) out of bounds for length 47
                                                                                            (("1"
                                   (!)"
                                                                                              
                                                  
                                                                                                 "
i("y""1)
java.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 62
                                                                                                  
                                                                                                   "
restrict")
                                                  
                                                                                                    
                                                                                                     "
-")
java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 35
                                      (1java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
nil
                                                                                                      "
wer_member
                             niljava.lang.StringIndexOutOfBoundsException: Index 105 out of bounds for length 105
                                                                                                  nil))
                                                                                                nil))
                                                                                              nil))
( 
                                                                                          
                                                                                        nil))
                                                                       nil)
                                   java.lang.StringIndexOutOfBoundsException: Index 88 out of bounds for length 88
(2"
(*
                                                                                    (("
2"
                                                                 (assert)
                                                                                                "
 
                                                                                      nil))
                                                                                    (1 (                                                               (skosimp
                                                                                  )
              ("2
                     (r java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
                                                        P   monad? nil)
                                                                                  (("
1"(! java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 45
                                                           java.lang.StringIndexOutOfBoundsException: Range [89, 90) out of bounds for length 89
                                                                        
ljava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 46
                                                                                                                                                                                  nonempty-java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 18
                                                                                                                                                                                  
                                            1
                                                                                     "
    *"T-     ( f)
                                                                                     "0"(1
                                                                                    1                                ))
                                                                                      (replace
                                                                                       -java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
                                                                                       2 x"
                                                                                       rl)
                           
                                                                                        (hide
                                                                                         
                                                                                        (("
1"
((java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 67
                                                                                           "
sigma_restrict_eq[below(P`length-1)] real_propsniljava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
                                                                                          (("1"
( (2java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
                                                                                            
                                                                                              java.lang.StringIndexOutOfBoundsException: Index 94 out of bounds for length 49
                                                                                              (("1"
    bnonemptytype- niljava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
                                                                                                 2)
                                                                                                (("1"
                                                                                                  ( java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 17
                                                                            
                                                                  
java.lang.StringIndexOutOfBoundsException: Range [100, 18) out of bounds for length 64
                                                                                                     "-")
                                                                                                    (          (1 assertnilniljava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
                                                                                                      (java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
                                                                                                      (java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 50
                                                                                                     
                                                                                                    nil))
                                                                                                  nil))
                                                                                                
        
                                                                                            nil)
                                                                                          nil))
                                                                                        ( eqnilnaturalnumbers
                      nil)
                                                                                        (ational-ype-decl nil
                                        (java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 13
                                                                                    (skosimp*)
                                                                                    (("2"
                        (e java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 39
                                                                                      nil
    FALSE constdecl "                                     ("
                                                                                    " niljava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
                                                                                 constjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 43
                                                                                nil))
java.lang.StringIndexOutOfBoundsException: Range [83, 84) out of bounds for length 83
                                                                            nil))
                                                                          java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 43
                                                                        nil))
java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
                                                                    nil))
                                                                  -decl java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 56
                                                                 nil))
                                                              nil))
                                                            nil))
nil))
     )
                                                      nil))
                                     
                                                   (nt_minus_int_is_int application-udgement"
  nil((java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 50
                                                nil))
                                                  b
                                            nil)
                                          java.lang.StringIndexOutOfBoundsException: Range [0, 45) out of bounds for length 35
                                        nil))
                                      expt_mult1nil3292926712
                                    
                                  nil))
  (                 nil)

                               -all -1)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
                                (("2"
                                  (lemma "integral_scal_g")
                                  (("2"
                                      "" " b" --decl java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
                                    (("2"
                                      (assert)
((""
                                        (
                                        (("2"
                                          java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 48
("
                                            (expand "
-")
                                            (("
2    minus_int_is_intjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 63
                                              (expand "*")
                                              (("2" (assert) nil nil))
 niljava.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
                                            nil))
                       ))
                                        )
                                      nil))
(
                                  nil))
                                nilnil)
niljava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35

                           (" ()java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
                            ("
"c i<"java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
                              (("java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 31
( "
java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 68
                                (("1"
                                  (lemma "integral_scal_g")
                                  (("1"
                                    (inst - "                                          ( -                )java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
                                    (("
1        (-"())
                                           - "
  )
                                      (("1"
                                        (flatten)
                                        (("1"
                                          (expand "-")
                                          (("1"
                                            (expand "*")
                                            (("1"
                                                                                                niljava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
(java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 43
                            )
   (2java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
                                                (decompose-                                    ((2"
                                                nil
                               )
                                              nil))
                                            nil))
        )
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil)    (IMPLIES decl "
[  >java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 60
                               ("2"
                                (hide 2)
                                (("2"
                                  (assert)
                                  (("2"
                                    (hide -3)
                                    (("2"
                                      (hide 1)
                                    2java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
                                        (skeep)
                                        (("2"
                                          (inst - "epsi")
 (("
                                            (skeep -1          nil
                                            (("2"
                                              (inst + "delta")
                                              (("2"
                                                (skeep)
                                                (("2"
               ( ")
                                                  (("
2"
()
                                                    (("
2"
                                                      (skolem
                                                       1
("
 R")
                                                      (("
2"
                                                        (typepred
                                                         "
RSS1")
                                                        (("
2"
                                                          (typepred
                                                           "
RSS2")
                                                          (const- g"
group )
                                                            (expand                                  hide 5java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
                                                             "Riemann_sum?")
                                                            (("2"
                                                              (skolem
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 17
                                                               "xis2")
                                                              (("2"
                                                                (skolem
                                                                 -2
                                                                 "xis1")
                                                                (("2"
                                                                  
                                                                   "RSP1"
                                                                   ()
                                                                  (("2"
                                                                    (name
                                                                     "
RSP2"
                                                                     "Rie_sum(a,b,gg,P,xis2,f)")
                                                                    (("2"
                                                                      (case
                                                                       "RSP1 = -RSS1 AND RSP2 = -RSS2")
                                                                      (("1"
                                                                        (flatten)
                                                                        (("1"
                                                                           - [ java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 66
                                                                           )
                                                                           "RSP1"
                                                                           "RSP2")
                                                                          (("1"
                                                                            (hide-all-but
                                                                    
                                                                              -2
                                                                              -(java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 27
                                                                              +))
                                                                           
                                                                              (grind)
                                                                              nil
                                                                              nil))
                                                                            nil)
(iden?-decljava.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 51
                                                                            (lemma
                          "?)
                                                                            ((("
1java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
                                                                              (inst
                         -
                                                                               "a"
                                                              
                                                                               "f"
                                                                               "gg")                  ((1"(xpand member)
                                                                              (("
2"
                                                                                (split
                                                                                 -)
                                                                                (("
1"
                                                                                  (inst
                                                                                   -
                                                                                   "
P"
                                                                                   "
xis2")
                                                                                  (("
1"
                                                                                    (assert)
                                                                                    
                                                          1
                                                                                  nil)
                                                                                 ("
2"
                                                                                  (propax)
                                                                                  nil
                                                                                  nil))
                                                                                nil))
                                                                              (inst
                                                                            nil)
                                                                           ("
"
                                                                            (lemma
                                                                             m"
java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
                                                                            (("3"
                                                                              (inst
                                                                               )
                                                                               "a"
                                                                               java.lang.StringIndexOutOfBoundsException: Range [79, 80) out of bounds for length 33
                                                                               "f"
                                  "
                                                                              (("
3"
                                                                                (split
                                                                                 -)
                                                                                (("
1"
                                                                                  (inst
                                                                                   -
                                                                                   "
P"
                                                                                   "
xis1")
                                                                                  (("
1"
         (assert
                                                                                    nil
"

                                                                                  nil)
                                                                                 ("2"
                                                                                  (propax)
                                                                                 
                                                                                  nil))
                                                                                nil))
                                                                              nil))
                                                                            nil))
                                                                          nil))
                                                                        nil)
                                                                       "f"
                                                                        (replace
                                                                         -1
                                                                         
                                                                         :dir
                                                                         rl)
                                                                        
                                
-2
                                                                           1
                                                                           :dir
                                                                           rl)
                                                                          (("2"
                                                                            (replace
                                                                             -3
                                                                             1)
                                                                               shostak)
                                                                              (replace
                                                                               -4
                                                                               1)
                                                                              (("2"
                                                                                (hide-all-but
                                                                                 1)
                                                                                (("2"
                                                                                  (                                                                     
                                                                                   "Rie_sum")
                                                                                  (("2"
                                                                                    (split
                                                                                     +)
                                                                                    (("1"
                                                                                      (lemma
                                                                                       "sigma_scal[below(P`length-1)]")
                                                                                      (("1"
                                                                                        (inst
                                                                                         -
                                                                                         "LAMBDA (n: below(P`length - 1)):
                                                                                                                                                                                 (-gg)(P`seq(1 + n)) * f(xis1`seq(n)) -
                                                                                                                                                                                  (-gg)(P`seq(n)) * f(xis1`seq(n))"

                                                                                         "-1"
                                                                                         "P`length-2"
                                                                                         "0")
                                                                                        (("1"
                                                                                          (replace
                                                                                           -1
                                                                                           :dir
                                                                                           rl)
                                                                                          (("1"
                                                                                            (hide
                                                                                             -1)
                                                                                            (("1"
                                                                                              (lemma
                                                                                               "sigma_restrict_eq[below(P`length-1)]")
                                                                                              (("1"
                                                                                                (inst?)
                                                                                                (("1"
                                                                                                  (assert)
                                                                                                  (("1"
                                                                                                    (hide
                                                                                                     2)
                                                                                                    (("1"
                                                                                                      (expand
                                                                                                       "restrict")
                                                                                                      (("1"
                                                                                                        (expand
                                                                                                         "-")
                                                                                                        (("1"
                                                                                                          (assert)
                                                                                                          nil
                                                                                                          nil))
                                                                                                        nil))
                                                                                                      nil))
                                                                                                    nil))
                                                                                                  nil))
                                                                                                nil))
                                                                                              nil))
                                                                                            nil))
                                                                                          nil))
                                                                                        nil)
                                                                                       ("2"
                                                                                        (skosimp*)
                                                                                        (("2"
                                                                                          (assert)
                                                                                          nil
                                                                                          nil))
                                                                                             restrict
                                                                                      nil)
                                                                                     ("2"
                                                                                      (lemma
                                                                                       "sigma_scal[below(P`length-1)]")
                                                                                      (("1"
                                                                                        (inst
                                                                                         -
                                                                                         "LAMBDA (n: below(P`length - 1)):
                                                                                                                                                                                 (-gg)(P`seq(1 + n)) * f(xis2`seq(n)) -
                                                                                                                                                                                  (-gg)(P`seq(n)) * f(xis2`seq(n))"

                                                                                         "-1"
                                                                                         "P`length-2"
                                                                                         "0"                                                                                    )
                                                                                        (("1"
                                                                                          (replace
                                                                                           -1
                                                                                           :dir
                                                                                           rl)
                                                                                          (("1"
                                                                                            (hide
                                                                                             -)
                                                                                            (("1"
                                                                                              (lemma
                                                                                               "sigma_restrict_eq[below(P`length-1)]")
                                                                                              
                                                                                                (inst?)
                                                                                                (("1"
                                                                                                  java.lang.StringIndexOutOfBoundsException: Index 106 out of bounds for length 106
                                                                                                  (("1"
                                                                                                    (hide
                                                                                                     2)
                                                                                                    (("1"
                                                                                                      (expand
                                                                                                       ":dir
                                                                                                      (("
1"
                                                                                                        (expand
                                                                                                         "
-")
                                                                                                        (("
1"
                                                                                                          (lemma
                                                                                                          nil
                                                                                                          nil))
                                                                                                        nil))
                                                                                                      nil))
                                                                                                    nil))
                                                                                                  nil))
                                                                                                nil))
                                                                                              nil))
                                                                                            nil))
                                                                                          nil))
                                                                                        (("
1"
                                                                                       ("
2"
                                                                                        (skosimp*)
                                                                                        (("
2"
                                                                                          (assert)
                                                                                          nil
                                                                                          nil))
                                                                                        nil))
                                                                                      nil))
                                                                                    nil)java.lang.StringIndexOutOfBoundsException: Index 99 out of bounds for length 99
                                                                                  nil))
                                                                                nil))
                                                                              nil))
                                                                            nil))
                                                                          nil))
                                                                        nil))
                                                                      )
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil))
              nil))
            nil))
          nil))
        nil))
      nil)
     ("
2" (hide 2)
      (("
2" (skolem 1 ("a" "b" "f" "gg"))
        (("
2" (flatten)
          (("
2" (label "gincreasing?" -2)
            (("
2" (hide "gincreasing?")
              (("
2" (ground)
                (("
1" (rewrite "integrable_lem")
                  (("
1" (skeep)
                    (("
1" (inst - "epsi")
                      (("
1" (skeep -1)
                        (("
1" (inst + "delta")
                          (("
1" (skeep)
                            (("
1" (inst - "P" "P")
                              (("
1" (assert) nil nil)) nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil)
                 ("
2"
                  (case "
FORALL (epsi:posreal): EXISTS (delta: posreal):
                                                                                                                    FORALL (P1, P2: partition(a,b)):
                                                                                                                      width(a, b, P1) < delta IMPLIES
                                                                                                                       (FORALL (RS1: (Riemann_sum?(a, b, P1, gg, f)),
                                                                                                                                RS2: (Riemann_sum?(a, b, partition_union(a,b)(P1,P2), gg, f))):
                                                                                                                          abs(RS1 - RS2) < epsi)")
                  (("
1" (hide -2)
                    (("
1" (rewrite "integrable_lem")
                      (("
1" (skeep)
                        (("
1" (inst - "epsi/2")
                          (("
1" (skeep -1)
                            (("
1" (inst + "delta")
                              (("
1"
                                (skeep)
                                (("
1"
                                  (inst-cp - "P1" "P2")
                                  (("
1"
                                    (inst - "
P2" "P1")
                                    (("
1"
                                      (assert)
                                      (("
1"
                                        (case
                                         "
EXISTS (RS12: (Riemann_sum?(a, b, partition_union(a, b)(P1, P2), gg,f))): TRUE")
                                        (("
1"
                                          (skeep -1)
                                          (("
1"
                                            (skosimp*)
                                            (("
1"
                                              (inst - "
RS2!1" "RS12")
                                              (("
1"
                                                (inst - "
RS1!1" "RS12")
                                                (("
1"
                                                  (hide -3)
                                                  (("
1"
                                                                                   "
"
                                                    (("
1"
                                                      (grind)
                                                      nil
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil)
                                               ("
2"
                                                (typepred "
RS12")
                                                (("
2"
                                                  (lemma
                                                   "
partition_union_sym")
                                                  (("
2"
                                                    (inst - "
a" "b")
                                                    (("
2"
                                                      (assert)
                                                      (("
2"
                                                        (inst
                                                         -
                                                         "
P1"
                                                         "
P2")
                                                        (("
2"
                                                          (assert)
                                                          nil
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil)
                                         ("
2"
                                          (lemma "
Riemann?_Rie")
                                          (("
2"
                                            (inst - "
a" "b" "f" "gg")
                                            (("
2"
                                              (split -)
                                              (("
1"
                                                (inst
                                                 -
                                                 "
partition_union(a,b)(P1,P2)"
                                                 "
gen_xis(a,b,partition_union(a,b)(P1,P2))")
                                                (("
1"
                                                  (inst
                                                  
                                                   "
Rie_sum(a                                                                    ("2"
                                                                                                                                                 gen_xis(a, b, partition_union(a, b)(P1, P2)), f)")
                                                  nil
                                                  nil))
                                                nil)
                                               ("
2" (propax) nil nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil)
                   ("
2" (hide 2)
                    (("
2" (lemma "Rie_sum_diff_extend_union")
                      (("
2" (skeep)
                        (("
2" (inst -2 "epsi")
                          (("
2" (skeep -2)
                            (("
2" (inst + "delta")
                              (("
2"
                                (skolem 1 ("
P" "Q"))
                                (("
2"
                                  (inst - "
a" "b" "f" "gg")
                                  (("
2"
                                    (assert)
                                    (("
2"
                                      (reveal "
gincreasing?")
                                      (("
2"
                                        (replace "
gincreasing?")
                                        (("
2"
                                          (hide "
gincreasing?")
                                          (("
2"
                                            (inst - "
P" "Q")
                                            (("
2"
                                              (flatten)
                                              (("
2"
                                                (skolem
                                                 1
                                                 ("
RSS1" "RSS2"))
                                                (("
2"
                                                  (typepred "
RSS1")
                                                  (("
2"
                                                    (typepred "
RSS2")
                                                    (("
2"
                                                      (expand
                                                       "
Riemann_sum?")
                                                      (("
2"
                                                        (skolem
                                                         -1
                                                         "
xispq")
                                                        (("
2"
                                                          (skolem
                                                           -2
                                                           "
xis")
                                                          (("
2"
                                                            (inst
                                                             
                                                             "
xispq"
                                                             "
xis")
                                                            (("
2"
                                                              (skeep
                                                               -3)
                                                              (("
2"
                                                                (inst
                                                                 -
                                                                 "
P")
                                                                (("
2"
                                                                  (assert)
                                                                  (("
2"
                                                                    (inst
                                                                     -
                                                                     "
RSS1"
                                                                     "
Rie_sum(a, b, gg, P, xis2, f)")
                                                                    (("
1"
                                                                      (assert)
                                                                      nil
                                                                      nil)
                                                                     ("2"
                                                                      (lemma
                                                                       "Riemann?_Rie")
                                                                      (("2"
                                                                        (inst
                                                                         -
                                                                         "a"
                                                                         "b"
                                                                         "f"
                                                                         "gg")
                                                                        (("2"
                                                                          (split
                                                                           -)
                                                                          (("1"
                                                                            (inst
java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
                                                                             "P"
                                                                             "xis2")
                                                                            nil
                                                                            nil)
                                                                           ("2"
                                                                            (propax)
                                                                            nil
                                                                            nil))
                                                                          nil))
                                                                        nil))
                                                                      nil))
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil))
              nil))
            nil))
          nil))
        nil))
      (inst?)
    nil)
   ((increasing? const-decl "bool" sort_fseq "structures/")
    (fseq type-eq-decl nil                                               ((1
    (barray type-eq-decl nil fseqs "structures/")
    (increasing? const-decl "bool" real_fun_preds "reals/")
    (monotonic? const-decl "bool" real_fun_preds "reals/")
    (T_low type-eq-decl nil sigma "reals/")
    (T_high type-eq-decl nil sigma "reals/")
    (restrict const-decl "[T -> real]" sigma "reals/")
    (sigma_restrict_eq formula-decl nil sigma "reals/")
    ((("1"
    (decreasing? const-decl "bool" real_fun_preds "reals/")
    (strictly_increasing? const-decl "bool" sort_fseq "structures/")
    (member const-decl "bool" fseqs "structures/"))
   nil)
  (integrable_lem2-1 nil 3491565290
   (""
    (case "FORALL (a, b: real, f, g: [real -> real]):
                                           a < b AND
                                            increasing?[(LAMBDA (x: real)nil))
                                                (restrict[real, (LAMBDA (x: real): a <= x AND x <= b), real]
                                                     (g))
                                            IMPLIES
                                            (integrable?(a, b, g, f) IFF
                                              (FORALL (epsi: posreal):
                                                 EXISTS (delta: posreal):
                                                   FORALL (P: partition(a, b)):
width(,b P) <delta IMPLIES
                                                      (FORALL (RS1: (Riemann_sum?(a, b, P, g, f)),
                                                               RS2: (Riemann_sum?(a, b, P, g, f))):
                                                         abs(RS1 - RS2) < epsi)))")
    (("1" (skolem 1 ("a" "b" "f" "gg"))
      (("1" (flatten)
        (("1" (expand "monotonic?")
          (("1" (split -)
            (("1" (inst?) (("1" (assert) nil nil)) nil)
             ("2" (case "NOT increasing?[(closed_intv(a,b))](-gg)")
              (("1" (hide-all-but (-1 1))
                (1 ("
                  (("1" (expand "decreasing?")
                    (("1" (skeep)
                      (("1" (inst - "x" "y")
                        (("1" (assert)
                          (("1" (expand "restrict")
                            (("1" (expand "-") (("1" (assert) nil nil))
                              nil))
                            nil))
                          nil))
                        nil))
                      nil))
                    nil))
                  nil))
                nil)
               ("2" (hide -2)
                (("2"(("1"
                  (("2" (assert)
                    (2 split +)
                      (("1" ( (("1"
                        (("1" (case "integrable?(a,b,-gg,f)")
                          (("1" (assert)
                            (("1" (hide -5)
                              (("1"
                                (skeep)
                                (("1"
                                  (inst - "epsi")
                                  (("1"
                                    (skeep -4)
                                    (("1"
                                      (inst + "delta")
                                      (("1"
                                        (skeep)
                                        (("1"
                                          (inst - "P")
                                          (("1"
                                            (assert)
                                            (("1"
                                              (skolem
                                               1
                                               ("RSS1" "RSS2"))
                                              (("1"
                                                (typepred "RSS1")
                                                (("1"
                                                  (typepred "RSS2")
                                                  (("1"
                                                    (expand
                                                     "Riemann_sum?")
                                                    (("1"
                                                      nil))
                                                       -1
                                                       "xis2")
                                                      (("1"
                                                        (skolem
                                                         -2
                                                         "xis1")
                                                        (("1"
                                                          (name
                                                           "RSP1"
                                                           "Rie_sum(a,b,-gg,P,xis1,f)")
                                                          (("1"
                                                            (name
                                                             "RSP2"
                                                             "Rie_sum(a,b,-gg,P,xis2,f)")
                                                            (("1"
                                                              (case
                                                               "RSP1 = -RSS1 AND RSP2 = -RSS2")
                                                              (("1"
                                                                (flatten)
                                                                (("1"
                                                                  (inst
                                                                   -
                                                                   "RSP1"
                                                                   "RSP2")
                                                                  (("1"
                                                                    (hide-all-but
                                                                     (-1
                                                                      -2
                                                                      -11
                                                                      
                                                                    (("1"
                                                                      (grind)
                                                                      nil
                                                                      nil))
                                                                    nil)
                                                                   ("2"
                                                                    (replace
                                                                     -3
                                                                     +
                                                                     :dir
                                                                     rl)
                                                                    (("2"
                                                                      (lemma
                                                                       "Riemann?_Rie")
                                                                      (("2"
                                                                        (inst
                                                                         -
                                                                         "a"
                                                                         "b"
                                                                         "f"
                                                                         "-gg")
                                                                        (("2"
                                                                          (split
                                                                           -)
                                                                          (("1"
                                                                            (inst
                                                                             -
                                                                             "P"
                                                                             "xis2")
                                                                            nil
                                                                            nil)
                                                                           ("2"
                                                                            (propax)
                                                                            nil
                                                                            nil))
                                                                          nil))
                                                                        nil))
                                                                      nil))
                                                                    nil)
                                                                   ("3"
                                                                    (replace
                                                                     -4
                                                                     +
                                                                     :dir
                                                                     rl)
                                                                    (("3"
                                                                      (lemma
                                                                       "Riemann?_Rie")
                                                                      (("3"
                                                                        (inst
                                                                         -
                                                                         "a"
                                                                         "b"
                                                                         "f"
                                                                         "-gg")
                                                                        (("3"
                                                                          (split
                                                                           -)
                                                                          "
                                                                            (inst
                                                                             -
                                                                             "P"
                                                                             "xis1")
                                                                            nil
                                                                            nil)
                                                                           ("2"
                                                                            (propax)
                                                                            nil
                                                                            nil))
                                                                          nil))
                                                                        nil))
                                                                      nil))
                                                                    nil))
                                                                  nil))
                                                                nil)
                                                               ("2"
                                                                (replace
                                                                 -1
                                                                 1
                                                                 :dir
                                                                 rl)
                                                                (("2"
                                                                  (replace
                                                                   -2
                                                                   1
                                                                   :dir
                                                                   rl)
                                                                  (("2"
                                                                    (replace
                                                                     -3
                                                                     1)
                                                                    (("2"
                                                                      (replace
                                                                       -4
                                                                       1)
                                                                      (("2"
                                                                        (hide-all-but
                                                                         1)
                                                                        (("2"
                                                                          (expand
                                                (("1"
                                                                          (("2"
                                                                            (split
                                                                             +)
                                                                            (("1"
                                                                              (lemma
                                                                               "sigma_scal[below(P`length-1)]")
                                                                              (("1"
                                                                                (inst
                                                                                 -
                                                                                 "LAMBDA (n: below(P`length - 1)):
                                                                                                         f(xis1`seq(n)) * gg(P`seq(1 + n)) -
                                                                                                          f(xis1`seq(n)) * gg(P`seq(n))"
                                                                                 "-1"
                                                                                 "P`length-2"
                                                                                 "0")
                                                                                (("1"
                                                                                  (replace
                                                                                   -1
                                                                                   :dir
                                                                                   rl)
                                                                                  (("1"
                                                                                    (hide
                                                                                     -1)
                                                                                    (("1"
                                                                                      (lemma
                                                                                       "sigma_restrict_eq[below(P`length-1)]")
                                                                                      (("1"
                                                                                        (inst?)
                                                                                        ((""
                                                                                          (assert)
                                                                                          (("1"
                                                                                            (hide
                                                                                             2)
                                                                                            (("1"
                                                                                              (expand
                                                                                               "restrict")
                                                                                              (("1"
                                                                                                (expand
                                                                                                 "-")
                                                                                                (("1"
                                                                                                  (                                          ("java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
                                                                                                  nil
(
                                                                                                nil))
                                                                                              nil))
                                                                                            nil))
                                                                                          nil))
                                      nil)java.lang.StringIndexOutOfBoundsException: Index 93 out of bounds for length 93
                                                                                      nil))
                                                                                    nil))
                                                                                  nil))
                                                                                nil)
                                                                               ("2"
                                                                                (skosimp*)
                                                                                (("2"
                                                                                  (assert)
                                                                                  nil
                                                                                  nil))
                                                                                nil))
                                                                              nil)
                                                                             ("2"
                                                                              (lemma
                                                                               "sigma_scal[below(P`length-1)]")
                                                                              (("1"
                                                                                (inst
                                                                                 -
                                                                                 "LAMBDA (n: below(                                                              skeep
                                                                                                         f(xis2`seq(n)) * gg(P`seq(1 + n)) -
                                                                                                          f(xis2`seq(n)) * gg(P`seq(n))"
                                                                                 "-1"
                                                                                 "P`length-2"
                                                                                 "0")
                                                                                (("1"
                                                                                  (java.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 71
                                                                                   -1
                                                                                   :dir
                                                                                   rl)
                                                                                  (("1"
                                                                                    (hide
                                                                                     -)
                                                                                    (("1"
                                                                                      (lemma
                                                                                       "sigma_restrict_eq[below(P`length-1)]")
                                                                                      (("1"
                                                                                        (inst?)
                                                                                        (("1"
                                                                                          (assert)
                                                                                          (("1"
                                                                                            (hide
                                                                                             2)
                                                                                            (("1"
                                                                                              (expand
                                                                                               "restrict")
                                                                                              -)
                                                                                                (expand
                                                                                                 "-")
                                                                                                (("1"
                                                                                                  (assert)
                                                                                                  nil
                                                                                                  nil))
                                                                                                nil))
                                                                                              nil))
                                                                                            nil))
                                                                                          nil))
                                                                                        nil))
                                                                                      nil))
                                                                                    nil))
                                                                                  nil))
                                                                                nil)
                                                                               ("2"
                                                                                (skosimp*)
                                                                                (("2"
                                                                                  (assert)
                                                                                  nil
                                                                                  nil))
                                                                                nil))
                                                                              nil))
                                                                            nil))
                                                                          nil))
                                                                        nil))
                                                                      nil))
                                                                    nil))
                                                                  nil))
                                                                nil))
                                                              nil))
                                                            nil))
                                                          nil))
                                                        nil))
                                                      nil))
                                                    nil))
                                                  nil))
                                                nil))
                                              nil))
                                            nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil)
                           ("2" (hide-all-but (-1 1))
                            (("2" (lemma "integral_scal_g")
                              (("2"
                                (inst - "-1" "a" "b" "f" "gg")
                                (("2"
                                  (assert)
                                  (("2"
                                    (flatten)
                                    (("2"
                                      (assert)
                                      (("2"
                                        (expand "-")
                                        (("2"
                                          (expand "*")
                                          (("2" (assert) nil nil))
                                          nil))
                                        nil))
                                      nil))
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil))
                          nil))
                        nil)
                       ("2" (flatten)
                        (("2" (case "integrable?(a,b,-gg,f)")
                          (("1" (hide-all-but (-1 1))
                            (("1" (lemma "integral_scal_g")
                              (("1"
                                (inst - "-1" "a" "b" "f" "-gg")
                                (("1"
                                  (assert)
                                  (("1"
                                    (flatten)
                                    (("1"
                                      (expand "-")
                                      (("1"
                                        (expand "*")
                                        (("1"
                                          (                                            (("1"
                                           "gg = (LAMBDA (x_1: real): -1 * -gg(x_1))")
                                          (("1" (assert) nil nil)
                                           ("2"
                                            (decompose-equality 1)
                                            nil
                                            nil))
                                          nil))
                                        nil))
                                      (expand
                                    nil))
                                  nil))
                                nil))
                              nil))
                            nil)
                           ("2" (hide 2)
                            (("2" (assert)
                              (("2"
                                (hide -3)
                                (("2"
                                  (hide 1)
                                  (("2"
                                    (skeep)
                                    (("2"
                                      (inst - "epsi")
                                      (("2"
                                        (skeep -1)
                                        (("2"
                                          (inst + "delta")
                                          (("2"
                                            (skeep)
                                            (("2"
                                              (inst - "P")
                                              (("2"
                                                (assert)
                                                (("2"
                                                  (skolem
                                                   1
                                                   ("RSS1" "RSS2"))
--> --------------------

--> maximum size reached

--> --------------------

Messung
CHZG
8110010093

¤ Dauer der Verarbeitung: 1.519 Sekunden  ¤

*Bot Zugriff







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,187,961
#Domains=975,547