Eine aufbereitete Darstellung der Quelle

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


Quelle  pvs-strategies   Sprache: Lisp

 

 java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 54
        ("+" "ADD") ("-" "SUB") ("*" "MULT") ("/" "DIV")
        ("^" "POW")
 ") (FALSE""CONST(ALSE))
        ("
NOT" "BNOT") ("AND                          (2 expandmember")
                             ("
OR" "BOR") ("IMPLIES" "BIMPLIES") ("=>" "BIMPLIES")
        ("
>" "REL(>)") (">=" "REL(>=)") ("<" "REL(<)") ("<=" "REL(<=)")
      "
"""
        ("
##" "BINCLUDES")))
(defparameter *ia-extended* '(("
sqrt" ("SQRT_n")) ("pi" ("PI_n")) 
         ("
sin" ("SIN_n"                       " ("x1=4"java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
         ("ln" ("LN_n")) ("exp" ("EXP_n")) ("e" ("E_n"))))

(defparameter *ia-let-names* nil)

;; Every element in *ia-extended* has the form (<f> <F>), where <F> is either <F>, for
;; rational functions, or (<F> <n>) for approximated ones. It is expected that these functions
;; satisfy the inclusion and fundamental theorems of interval arithmetic.

(defparameter *interval-strategies* "
%  decimalize: Decimalizes relational formulas involving rational                         (1
%  decimalize-expr: Decimalizes rational expressions.
%  numerical: Computes bounds to minimum and maximum values of real-valued expressions.
%  interval: Checks whether or not properties on  (expand "
metric_open?")
%  Supported operations include: +,-,*,/,^,sq,abs,sqrt,pi,sin,cos,tan,atan,ln,exp,e"
)

(defparameter *ia-excluded* '("Tan?" "[||]"))

;; The parameter intervl is a list of 2 lisp numbers (ratios), over is a boolean,
;; and n is the number of decimals in the output. The output is a string representing
;; a decimal interval, where the bounds are exact to the original one up to the n-1 decimal.
;; Furthermore, if over is t, then the output is an over-approximation. Otherwise, the
;; output is an under-approximation.
(defun ia-interval2decimal (intervl over n)
  (when (and intervl
      (numberp (nth 0 intervl))
      (numberp (nth 1 intervl)))
    (format nil "[|~a,~a|]"
     (ratio2decimal (nth 0 intervl) (not over) n)
     (              (nst -"!1)

(defstep decimalize (fnum &optional (precision 3) (side r) (tccs?                            "nnx" "px!1" y"
"4 nnz px1 "" "4)                                   1
  (let ((initeqs (extra-reset-evalexprs))
 (fnum    (               (
    (when fnum
      (with-fresh-labels
       ((!dec fnum :tccs? tccs?))
       (let ((expr  (extra-get-formula !dec))
      (castr (if (is-function-expr expr "                          (1 assert)nil ))                                      (1
   (let ((int2dec (ia-interval2decimal (ia-concrete-interval(skosimp)
           (< fnum 0) precision)))
     (when int2dec
       (format nil "
~a ## ~a" (args1 expr) int2dec)))
  expr))
        (num (when rel (extra-get-number-from-expr 
          (extra-add-evalexpr
           (if (member side '(r R))
        (args2 expr)
      (args1 expr)))))))
   (when num
     (if (and (equal rel '=) (< fnum 0))
         (format nil "
~a ## [| ~a, ~a |]" (if (member side '(r                                           (inst + "ball(x!1, r!1
           (args1 expr)
                        nil)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
          (ratio2decimal num nil precision)
          (ratio2decimal num t precision))
       (unless (equal rel '=)
         (if (member side '(r R))
      (format nil "
~a ~a ~a" (args1 expr) rel
       (              (lemma
        (iff (< fnum 0) (member rel '(< <=)))
        precision))
    (format nil "
~a ~a ~a" 
     (ratio2decimal num 
             (iff (> fnum 0) (member rel '(< <=)))
            precision)
     rel (args2 expr)))))))))
      (eqs   (when castr (extra-evalexprs))))
  (if castr
      (then
       (extra-evalexprs$ eqs)
       (branch (case castr)
        ((if (< fnum 0)
      (hide !dec)
    (then
     (hide-all-but (!dec -1))
     (expand "
##")
     (lattenjava.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14
  ())
         (if (> fnum 0)
      (hide !dec)
    (then
     (hide-all-but (!dec 1))
     (expand "
##")
     (flatten)
     (assert)))
         (assert))))
    (printf "
Formula ~a is not suitable for decimalization" fnum))))))
  "
[((1 assert)niljava.lang.StringIndexOutOfBoundsException: Range [66, 63) out of bounds for length 68
by a decimal number that is exact to the rational number up to the PRECISION-1 decimal.
SIDE can be either r (right) or l (left). If TCCs? is set to nil                                            )
to prove possible TCCs generated during its execution."
  "
Decimalizing ~2@*~ahs of relational formula ~@*~a                                           ""

(defstep decimalize-expr                                            propjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
  (let ((initeqs (extra-reset-evalexprs))
 (exprat  (extra-get-expr expr))
 (num(extraget                                            (1"
 (castr   (when num
     (format nil "
~a ## [| ~a, ~a |]"
      exprat
     (ratio2decimal num nil precision)
     (ratio2decimal num t precision))))
 (eqs    (when (skosimp*)
    (if castr
 (spread (case castr)
  ((skip)
   (then
    (hide-all-but 1)
    (extra-evalexprs$ eqs)
    (expand "
##")
    (flatten)
    (assert))))
      (printf "
Expression ~a is not suitable
                                              ((1"
rational number up to the PRECISION-1 decimal."

  "Decimalizing expression ~a to the precision ~a")

;;;;;;;; INTERVAL FUNCTIONS

(defun ia-get-vars-from-expr                                                 "?"
  (get-vars-from-expr expr
        (append (mapcar #'          nil)java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
         (mapcar #'
car *ia-extended*))))

;; Find unbounded vars (vars is a list of variable names) 
(defun ia-find-unbound-vars (vars)
  (loop for v in vars
 when (let ((xv (gethash v *extra-varranges*)))
val-ub xv))java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
 collect v))

(defun ia-complete-vars (vars morevars)
  l((ars (
        #'(lambda(x)(member (extra-var-name x) morevars :test #'string=)                                                  ""
    (append vars
     (loop for v in morevars
    unless (member v vars
     :test #'(lambda (x y) (string= x (extra-var-name y))))
    collect v))))

      niljava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
  (loop for v in vars
 for xv = (gethash v *extra-varranges*)
 collect (format nil "[|~a,~a|]" (xterval-lb xv) (xterval-ub xv))))

;; Form a string representing the box of variables vars
(defun          nil
  (if vars
      (format nil "(: ~{~a~^,~} :)" (ia-var-intervals vars))
    "(::)"))

;; Is id in subs?
(defun ia-idsubs? (id subs     ("(*
  nil))
        :test #'
(lambda (x y) (string= x (car y))))))

;; Form a string representing an interval expression of expr, where
;;   - n      : approximation parameter
;;   - var    : list of variables
;;   - subs   : list of substitutions of the general form (<f> (<F> <n>) <arity>)
;; Output:
;;   - Expr such that eval(expr,vars) ## Eval(Expr,box)
(defun ia-interval-expr (expr n vars &optional subs)
  (setq *ia-let-names* nil)
  (catch '*ia-error*
    (ia-interval-expr-rec expr n vars
     (append subs *ia-builtin      (2"(nst -"!"java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
    check-name "ntervalStrategies__)))

(defun ia-approx-n (n nn)
  (if nn (max (+ n nn) 0) n))

(defun ia-error (msg)
  (throw '*ia-error* (list msg)))

(defun ia-format-local-var (vl n)
  (let ((posvar (+ n (1- (length vl)))))
    (if (is-number-type (cdar vl))
 (format nil "
X        (""(assert
      (format nil "POS?(X(~a))" posvar))))

(defun ia-interval-expr-rec (expr n vars subs extended &optional localvars)
  (let ((val (when                                              inst  x!1""r!"java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
        (typecheck (extra-add-evalexpr expr)))))
    (cond ((and val (is-number-type            ("
2                  nil
    (format nil "r2E(~a)" val))
   ((and val (is-bool-type (type val)))
    (format nil "b2B(~a)" val))
   ((is-const-decl-expr expr                                               )
    (let ((opl (ia-idsubs? (expr2str expr) *ia-extended*))) ;; Check if extended import is required.
      (when (and opl (not extended))
       a-(ormat 
     nil
     "Theory interval_arith@strategies needs to be imported to support constant ~a"
     expr))))
    ;; At this point, imported chain is OK. 
    (let ((opl (ia-idsubs? (expr2str expr) subs)))
      (if opl
   (let ((op (cadr opl)))
     (if (listp op)
         (format nil "~a(~a)" (car op) (ia-approx-il)
       (format nil "~a" op)))
 (ia-rror (format nil "Don'  totranslate java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 43
   ((is-variable-expr expr)
    (let ((vl (when (name-expr? expr)
         (member (id expr) localvars :test #'(lambda(x y) (equal x (car y)))))))
      (if vl (ia-format-local-var                                   )
        (let ((vl (member (expr2str expr) vars :test #'string=)))
   (if vl
       (format nil "
X(~a)" (- (length vars) (length vl)))
    iaerror(format "
't howto variable~"expr))))
   ((and (unary-application? expr)
  (is-function-expr expr "-"))
    (format nil "NEG(~a)"
     (ia-interval-expr-rec (args1 expr) n vars subs extended localvars)))
   ((is-function-expr expr "^")
    (format nil "POW(~a,~a)"
     (ia-interval-expr-rec                                   )
     (args2 expr)))
   ((is-function-expr expr "##")
    (let (                  name-replace "SN2" "sin_approx(px!1, 2 * j!1+2)")
      (if (record-expr? val)
   (format nil "BINCLUDEX(~a,~a)"
    (ia-interval-expr-rec (args1 expr) n vars subs extended localvars)
    val)
       (java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 91
   ((if-expr? expr)
    (if (is-bool-type (type expr))
        (format nil "
BITE(~a,~a,~a)"
                   (2
         (ia-interval-expr-rec (nth 1 (arguments((2
         (ia-interval-expr-rec (nth 2 (arguments expr)) n vars subs extended localvars))
ia-error"
THENconstruct~unsupported ))
   ((let-expr? expr)
    (if (or (is-bool-                    lemma"sin_term_lt0"(a "px1" "n 12j("2
        (let* ((op  (operator expr))
        (typ (domain (type op))))
   (      (replace--
         (is-bool-type typ)))
       (let* ((vt  (cons (id (car (bindings op))) typ))
   x  ia                                        
       (nm  (freshname (format nil "V_~a" (length *ia-let-names*)))))
         (setq *ia-let-names* (append *ia-let-names* (list        (setq *ia-let-names* (append *ia-let-names* (list 
         (format nil "~:[~;B~]LETIN(~a,~a)" (is-bool-type (type expr)) nm
          (ia-interval-expr-rec (expression op) n vars                                           java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
           (cons                                             inst -"
!)
     (ia-error "LET-IN construct ~a is unsupported" expr)))
supported" expr)                                           "(assert   il)
   ((arg-tuple-expr? expr)
    (format nil "~{~a~^,~}"
     (mapcar #'(lambda(x)(ia-interval-expr-rec x n vars subs extended localvars))
      (                     nil))
   ((is-function-expr expr)
    (let ((opl (ia-idsubs? (id (operator expr)) (cdr *ia-extended*))))
      (when (and opl (not extended))

     nil
     "Theory interval_arith@strategies needs to be imported to support function ~a"
     (id (operator expr))))))
    (let ((opl (ia-idsubs? (id (operator expr)) subs)))
      (if opl 
   (let ((op (cadr opl)))
     (if (listp op)
         (format nil "~a(~a)(~a)"
          (car op) (ia-approx-n n (nth 1 op))
         (ainterval-expr-rec (args1 expr) n vars subs extended localvars))
       (format nil "~a(~a)" op
        (ia-interval-expr-rec (argument expr) n vars java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 29
        (ia-error (format nil "Don'
t know how to translate function ~anil))
   (t (ia-error (format nil "Don't know how to translate expression ~a" expr))))))

(defun ia-concrete-interval (expr)
  (let ((val (extra-                       ))
    when(ecordexpr )
      (let ((lb (extra-get-number-from-expr (get-expr-from-obj val 'lb)))
                                nil))
 (when (and lb ub) (list lb ub))))))

(defhelper interval-eq__ (names fnum &optional subs nohide)
  (let ((excl (append
        n)
        (mapcar #'
car *ia-builtin*) 
        (mapcar #(""""""
        (mapcar #'car subs))))
    with-resh-labels
     (!ieq fnum)
     (apply (repeat (expand "length" !ieq)))
     (apply (repeat (expand names !ieq)))
     (expand ("X" "r2E" "b2B") !ieq)
     (apply (repeat (expand "list2array" !ieq)))
     (apply (repeat (                       )
     (expand "##")
     (flatten)
     (java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
     (protect (^ !ieq) (then (hide-all-but (!ieq nohide))
        (grind :exclude excl)))
     (assert)))
  "[Interval] Internal java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 27

(defhelper vars-sharp__ ()
  (hen
   (expand* "##" "contains?")
   (       nil))
   (flatten)
   (assert))
  "[Interval] Internal strategy." "")

(defhelper vars-in-box__ ()
  (then
   (apply (repeat (expand "list2array" 1)))
   (rewrite "vars_in_box")
   (apply (repeat (expand "length" 1)))
   (apply (repeat (                           "2 hide - - - 2
   (vars-sharp__$))
  "[Interval] Internal strategy." "")

(defstep numerical (expr &optional (precision 3) (n 3) (maxdepth 10)
    min? max?
    vars 
    subs
    dirvar
    verbose?
    label
    (equiv? t))
  (let ((name      (freshname "nml"))
 (label     (or label (freshlabel name)))
 decimal (expt 10 (-precision)nil precision))
 (ia-expr   (typecheck (extra-get-expr expr)))
 (ia-estr   (expr2str ia-expr))
 (fms       (append (mapcar #'
(lambda (f) (java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 17
                                     (lemma "iv_mult_pos_gt1"
      (mapcar #'(lambda (f) 
           (make-negation
     (extra-get-formula-from-fnum f)))
      e-get- '
))java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
 (vars      (ia-complete-vars (enlist-it vars) (ia-get-vars-from-expr ia-expr subs)))
 (initeqs   (java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 11
(-extra-var java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 44
 (unvars    (ia-find-unbound-vars ia-vars))
 (msg       (cond ((not (check-name "IntervalStrategies4Q__"))
     (format nil "This strategy   ( decl R  )
or interval_arith@strategies (for real-valued expressions) for its proper operation"
))
    (unvars
     (format nil "Variable~:[~;s~] ~{~a~^,~} ~:[is~;are~] unbounded."
      (cdr unvars) unvars (cdr                                 "px!1!"
    ((null ia-expr)
     (format nil "Do not understand argument ~a." expr))
    ((not (is-number-type (type ia-expr)))
         metric_induced_topology constdecl"setofsets[T]"metric_space_def
 (ia-box    (unless msg (ia-box ia-vars)))
 (m_or_m                                    p"
 (ia-iexpr       nil)
 (names     (unless msg (append (mapcar #'car *ia-let-names*) (list name))))
 (exprs     (unless msg (append (mapcar #'cdr *ia-let-names*) (list ia-iexpr))))
 (namexprs  (merge-lists (ball_is_metric_open application "
etric_open 
 (ia-dirvar (or dirvar (cond ((< m_or_m 0) "mindir_maxvar")
        ((> m_or_m 0) "maxdir_maxvar")
        (t "altdir_maxvar"))))
 (      java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 56
 (ia-eval   (format nil "numerical(~a,~a,~a,~a)(~a,~a)"
     (nonneg_real nonempty-type--declnilreal_types nil)
 (ia-lvars  (format nil "list2array                                "x"
 (msg       (or msg (when (listp ia-iexpr) (car ia-iexpr)))))
    (if msg
 (printf msg)
      (spread
       (name-label*     (posreal nonempty-type-e-decl nil real_typesnil)
       ((try-branch
  (eval-expr ia-eval :safe? nil)
  ((let ((output (args2 (extra-get-formula -1)))
  (depth  (extra-                                   (umber -type- nil  java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
  (splits (get-expr-from-obj output 'splits))
  l  r -(-et-rom- 
        (get-expr-from-obj output 'ans 'lb_max))
       (extra-get-number-from-expr 
        (get-expr-from-obj output 'ans 'mm 'lb)))
         true ))
  (ubacc  (ratio2decimal (- (extra-get-number-from-expr 
        (get-expr-from-obj output 'ans 'mm '                              (("2" (assert) nil)) nil))
       (extra-get-number-from-expr 
        (get-expr-from-obj output 'ans 'ub_min)))
  true ))
  (eqs    (extra-evalexprs))
  (maxd   (= depth maxdepth)))  
     (with-fresh-labels 
      (!iax)
      (                            )
      l n)
      (inst? -1)
      (replaces label)
      (beta -1)
      (expand "
sound?" -1)
      (apply (repeat (expand "
length" -1)))
      e !java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
      (branch
       (split -1)
       ((then
  (flatten)
  relabel  (-2 3 - 5))
  (hide label)
  (spread
   (inst -1 ia-lvars)
   ((branch
     (invoke (case "
%1 = %2") (! -1 1) ia-estr)
     (then 
       (when verbose?
         (printf "
~%----")
  when maxd
    (printf "
Maximum depth has been reached. Accuracy 10^-~a is not guranteed"
     precision)
  printfSeitherN~ ~ java.lang.StringIndexOutOfBoundsException: Range [85, 84) out of bounds for length 86
     maxdepth n))
         (printf "
Lower bound accuracy <= ~a" lbacc) 
         (printf "
Upper bound     (bool nonempty-type-eq-decl nil booleansnil)
         (printf "Splits: ~a. Depth: ~a~%----~%" splits depth)
(printf See hidden labeled~a"for  information"
          label))
       (replaces -1)
       (decimalize -1 precision))
  hide1 java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 66
      (then (hide -1) (                    )
    (if (null ia-vars)
        (   (<const--ecl"ool" reals nil)
      (then 
       (reveal !iax)
       (replaces !iax :hide? nil) 
       (vars-in-box__$))))))
        (eval-formula)))))
   (skip))
  (skip)))    (nonneg_intnonempty-decljava.lang.StringIndexOutOfBoundsException: Range [54, 50) out of bounds for length 55
  "[Interval] Computes lower and upper bounds of the minimum and maximum
values  EXPR using a  and  on  .
PRECISION is the number of java.lang.StringIndexOutOfBoundsException: Range [0, 35) out of bounds for length 21
concerns the accuracy of the computations of real-valued functions in EXPR.
The higher the value of N, the more accurate the computation of these functions.
 is a recursion depth   ranch  boundalgorithm.

The accuracy of the bounds is 10^-PRECISION. However, this accuracy is not
guaranteed when  is . The ajava.lang.StringIndexOutOfBoundsException: Range [0, 54) out of bounds for length 48
whose evaluations are close to the minimum and maximum values up this
accuracy. If MIN? (resp. MAX?) is set to t, only a minimum (resp.   (Index type-qdecl nil vectors "
/)
value of the specified accuracy is sought. 

  aeeq  vectors)
variable name, e.g., \"x\", or a list consisting of a variable name and
an interval, e.g., (\"x\" \"[|-1/3,1/3    (nreal eq- nil )
the variables in EXPR and to provide their ranges. If this list is not
provided, this information is extracted from the java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 46

SUBS is a list of substitutions for translating user-defined
real-valued functions into interval ones. Each substitution has
the form (<f    d -"
etric )
and <F> is the name of its interval counterpart. It is assumed that
<F> satisfies the Inclusion and the Fundamental theorems   s?java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 40
niljava.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
operators, abs, sq(etofsetstypeeq- java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
are already provided. This parameter can be used to change the
default approximation parameter N for a particular java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 46
(\pi"\PI_n()" \cos\" (\"COS_n\ 1))(\""(""-)java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
specifies thatpi must    =4   be computed 
N+1, and sin must be computed with N-1.

DIRVAR is the name of a direction and variable selection method for
the branch an     settype-eq-declnilsetsnil)
redefined methods. If
problem.

If    FALSEconst-decl "ool"booleansnil)
splits, depth, etc. 

LABEL is used to label formulas containing additional information computed
by the branch and bound algorithm. These formulas are hidden, but they can
be brought to the sequent using the proof command REVEAL.

If     (Uni
deep embedding of the original expression is correct. The proof of
hisfactis  alogical pointof view,     surjective?etofsets[T,set]]" njava.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
unfolding of several definitions which is    (etric_open?const- "
bool" metric_space_def)
  "
Computing minmax values of expression ~a,~%via interval arithmetic")

(defun ia-is-true-output (ans)
  (     (?[eal])"
 nil)
ejava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 39

(defun ia-is-false-output (ans)
  (and (is-function-expr ans "Some")
       java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 40

(defstep interval (&optional (fnums 1) (n 4) maxdepth sat?
        vars 
            (r!1 skol-decl""euclidean niljava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
        dirvar
        verbose?
        label
        (equiv? t)
        (tccs? t))
  ( (name     (reshname"    nonpos_real nonempty-type--  real_typesnil
 (label    (or label (freshlabel name)))
 (fns      (extra-get-fnums fnums))
 (fn       (if (= (length fns) 1) (car fns) 0))
 (expr     (when fns
      (if (equal fn 0)
    (k-isjunction (mapcar #formula (extra-et- fns))
   (extra-get-formula-from-fnum    <decl"java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 35
 (quant    (cond ((forall-expr? expr) 1)
   ((java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 19
   (t 0))) ;; forall: quant > 0, exists: quant < 0, none: 0
 (fms      (    (all_centre formula--decl nil java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
      (extra-get-fnums `(-^ ,fnums)))
     (mapcar #'
(lambda (f) 
          (make-negation
  (getformulafromf)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
      (extra( constdecl"java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 71
(java.lang.StringIndexOutOfBoundsException: Range [11, 7) out of bounds for length 82
 (andexprs (when expr
      (cond ((< quant 0) 
      (get-ands-expr (expression qexpr)))
     ((> quant    shostak)
     (dr get-( ))java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
     ((and (= quant 0) (< fn 0))
      (get-ands-expr expr))
     ((and (= quant 0) (> fn 0))
      (  (Qn_dens- 
 (ia-expr  (if (= quant 0) expr (expression qexpr)))
 (qvars    (when (/= quant 0)
      mapcar #'(lambda  ("
e fullset)
 ;; qvars has quantified variables
 (vars     (ia-complete-vars
     (enlist-it vars)
     (    ((""expand?"
         ;; Only consider variables in the quantifier
         qvars
       ;; Consider all variables in the expression
       (ia-get-vars-from-expr ia-expr subs))))
;; vars has user provided variables + quantified variables
 (initeqs (extra-reset-evalexprs))
 (ia-vars (extra-get-var-ranges
    (if (/= quant 0) ;; Quantifier
        ;; Only consider ranges in the quantifier    ( -decl [         ("
( m"
        andexprs
      ;; Consider all ranges
      (append andexprs fms))
    vars))
 ;; ia-vars is just like vars but only names
 (nvars  (ia-find-unbound-vars ia-vars))
 (tccs?   (and tccs? (not sat?)))
 (msg     (cond ((null expr)
   (format nil "
Formula ~a not found" fnums))
 sat ni-)
   (format nil "
Formula ~a doesn't seem to have variables. It cannot be checked for satisfiability" fnums))
                (("(expand"metric_adherent?")
   (format nil "This strategy requires importing either interval_arith@strategies4Q (for rational expressions)
or interval_arith@strategies (java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 30
         (unvars
   (format nil "Variable~:[~;s~] ~{~a~^,~} ~:[is~;are~] unbounded."
    (cdr unvars) unvars (cdr (("" (expand "intersect expand i)
    (if msg
 (printf msg)
      (let ((findcex   (if sat? (<= quant 0) (< (* fn quant) 0)))
     (neg       (if sat? (<= quant 0) (or (< quant 0) (    (div_mult_pos_gt1 formula-decl nil extra_real_props nil
     (nname     (if neg (format nil "BNOT(~a)" name) name))
-ars))
     (ia-iexpr  (ia-interval-expr ia-expr n ia-vars subs))
     (names     (append (mapcar #'
car *ia-let-names*) (list name)))
     (exprs     (append (mapcar #'                        (("" (expand )
     (namexprs  (merge-lists names exprs)    (in_term_lt0 formula-nil nil)
     (ia-dirvar (or dirvar "alt_max"))
     (axdepth  (cond ((null ia-vars) 0)
        (maxdepth maxdepth)
        (findcex 10)
        (t 100)))
     (ia-eval   (format nil "interval(~a,~a,~:[TRUE~;FALSE~])(~a,~a)"
          maxdepth ia-dirvar findcex nname ia-box))
     (msg       (when (listp ia-iexpr) (car ia-iexpr))))   (odd_plus_even_is_odd -udgement "odd_int"
integersnil)
 (if msg
     (printf msg)
   (with-fresh-labels@
    (!ia fnums :tccs? tccs?)
    (spread
     (name-label* namexprs :hide t tcc-tep (then (ide i)e--tep)java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
     ((try-branch
       (eval-expr ia-eval :safe? nil)
       (tjava.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
  (relabel label -1)
  (let ((output  (args2 (extra-get-formula -1)))
       (splits  (etexpr-from-obj output 'splits))
        (depth   (get-expr-from-obj output '
depth))
        (answer  (get-expr-from-obj output 'ans 'answer))    ( const-decl "[T, T -> boolean]" equalities nil)
        (istrue  (ia-is-true-output answer))
        (isfalse (ia-is-false-output answer))
        (cex     (get-list-from-literal (get-expr-from-obj output 'ans 'counterex))))
    (then
     (when verbose? (printf "~%----"))
     (if (and (not istrue) (not isfalse))
         (then
   (                               (""
   (printf "Set either MAXDEPTH or N to values greater than ~a AND ~a, respectively" 
    maxdepth n))
       let(    (ndcex 0)( sat)) 
      (prfall   (and istrue (not findcex    (nint_times_nnint_is_nnintapplication-judgement "nonneg_int"
      (disprf   (and (if findcex istrue cex) (not sat?))) ;; Disproof
      (varvals  (if cex (merge-lists ia-vars cex)
           (merge-lists ia-vars (ia-var-intervals ia-vars))))
     (qs      extra-))
      (msg      (format nil
          (if cex "~:[Formula~;Sequent~] ~@[~a ~]~a for ~{~a = ~a~^, ~}"
          ":[Formula~Sequent]~@~a ~]~a for any ~{~a ## ~a~^, ~}")                                    ("1"( +"" nilnil)
          (or prfex prfall disprf)
          (unless (or prfex prfall disprf) fnums)
          (cond ((or prfex prfall) "holds")
         (disprf "can be disproved")
  ) " satisfiable")
         (findcex "is not                                       expand d2")
         (istrue "is valid")
         (t "is invalid"))
          varvals)))
         (if (or prfex prfall)                                       ((2"
      (then
       (when verbose? (printf "
~a     il)
       (lemma "interval_soundness")
       (with-fresh-labels 
        ((!ia-                  (rewrite "q_lt"1: rljava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
        (inst? !ia-inst)
        (replaces label)
        (beta !ia-inst)
       (xpand"sound?"!ia-inst)
        (apply (repeat (expand "length" !ia-inst)))
        (extra-evalexprs$ eqs !ia-eqs)
        (branch (split !ia-inst)
         (    (nzreal_exp application-"zreal exponentiation iljava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
       (let ((vs     (pairlis ia-vars cex))
      (instvs (mapcar 
        #'(lambda (x)
            (format nil "
~a" 
           cdr (ssoc  vs :est #'string=))))
        qvars))
  c inst(java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 46
                   "
sigma_lt
          (flatten)
          (hide (-1 1))
          instp
          (eval-formula !ia :quiet? t)
          (when equiv? 
            (reveal !ia-eqs) 
            (replaces !ia-eqs :hide? nil)
            (interval-eq__$ names 1 subs))
          (eval-formula !ia)))
     ;; Universal proof
     (let ((nqvars   (freshnames "x" (length qvars)))
           (vs       (when nqvars"high"
           (skvs     (if nqvars
          (apcar #(lambda()
         (cdr (assoc x vs :test #'string=))) 
           ia-ars
         ia-vars))
           (ia-lvars (format nil "
list2array(0)((:~{~a~^, ~}:))" skvs)))
     (then
        (when nqvars (skolem !ia nqvars :skolem-typepreds? t))
        (spread (inst !ia-inst ia-lvars)
         ((when equiv? 
          (reveal                              "
i (1 ()"
            (replaces !ia-eqs :hide? nil)
            (interval-eq__$ names !ia-inst 
              subs *!ia-tccs*))
          (if (null ia-vars)
  )
     (()
           (reveal !ia-eqs) 
           (replaces !ia-eqs :hide? nil)
           (vars-in-box__$))))))))
  (formula))java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
    (printf msg))))
     (hide label)
     (when verbose?
 ("
~. a  depth
       (printf "See hidden formulas labeled ~a for more information~%----~%" label)))))
        (hide                   ""
       (skip)))))))))
  "[Interval] Checks if formulas FNUMS, which may      real_types )
holds using a branch and bound algorithm based on interval arithmetic.
 parameter Nconcernsthe  of the  of -
functions in EXPR. The higher the value of N, the more accurate the
computation of these functions. MAXDEPTH is a maximum recursion depth
for the branchand  .

If SAT? is set to t, the strategy checks if formula FNUMS,
whether in the antecedent or in the                                          
and    (name"
total_order?)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
If formula FNUMS is quantified, it is checked for validity.

VARS is a list of the form (<v1> ... <vn>), where each                                                 
variable name, e.g., \"x\", or a list consisting of a variable name and
an interval, e.g., (\"x\" \"[|-1/3,1/3|]\"). This list is used to specify
the variables in EXPR(java.lang.StringIndexOutOfBoundsException: Range [40, 34) out of bounds for length 49
provided, this information is extracted from the sequent.

SUBS is a list of substitutions for translating user-defined
real-valued functions      "(strict_total_order?) real_props nil)
the form (<                                                    )
and <F> is the name of its interval counterpart. It is assumed that
<F> satisfies the Inclusion and the Fundamental theorems of interval
                                                    2java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
operators, abs, sq, sqrt, trigonometric functions, exp, (skosimp)
are already provided. This parameter can be used to change the
default approximation parameter N for a particular function, e.g.,
((("2"
specifies that pi must be computed with    (igma_0_neg formula-decl nil sigma_nat "reals/")
N+1, and sin must be computed with N-1.

DIRVAR is the name of a direction and variable selection method for
the branch an bound algorithm. Theory interval_bandb includes some
pre-defined methods. If none is provided, a choice is made base on the
problem.

If VERBOSE                                    
splits, depth, etc. 

LABEL is used to label formulas containing additional information computed
by the branch and bound algorithm. These formulas are hidden, but they can
be brought to the sequent using the proof command REVEAL.

If EQUIV? is set to nil, the strategy doesn't try to prove that the
deep embedding of the original expression is correct. The proof of
this fact is trivial from a logical point of view, but requires
java.lang.StringIndexOutOfBoundsException: Range [32, 9) out of bounds for length 64

If TCCs? is set to nil, the strategy doesn'
t try to prove possible
TCCs generated during its execution."                                                          )
  "
Checking formula ~a using interval arithmetic")

(defstrat                 niljava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
  (let ((             nil))
 (strategies *interval-strategies*)) 
    (printf "
%--
% ~a
% http://shemesh.larc.nasa.gov/people/cam/Interval
% Strategies in Interval:~a
%
% Interval strategies require importing      real_types)
%ns) or
%   interval_arith@strategies (for real-valued expressions)
% for its proper operation.
%--~%" version strategies))
  "
[Interval] Prints Interval's about                                                )

;;****
;; The following strategy is here for pedagological reasons.
;; In real proofs, the most ellaborated strategies numerical and interval should be used.
;;****

(defstep simple-numerical (expr &optional (precision 3) (n 3) (maxdepth 5))
  (let ((name    (freshname "
sia"))
 (ia-expr (extra-get-expr expr))
 (ia-estr (java.lang.StringIndexOutOfBoundsException: Range [42, 19) out of bounds for length 47
 (fms     (mapcar #is_odd application-judgement "
odd_int" integers nil)
 (vars    (ia-get-vars-from-expr ia-expr))
 (ia-vars (ia-get-var-ranges fms vars))
 (unvars  (ia-find-unbound-vars ia-vars))
 (msg     (cond (unvars
   (format                                      
    (cdr unvars) unvars (cdr unvars)))
         ((null ia-expr)
   (format nil "
Do not understand argument                                    ))
         ((not (is-number-expr ia-expr))
   (format nil "Expresion ~a is not a real number expression." ia-expr))))
 (ia-box    (unless msg (ia-box ia-vars                                  )
 (iaiexpr  (unless            ("2java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
 (maxdepth  (if (null ia-vars) 0 maxdepth))
 (ia-eval   (format nil "
simple_interval(~a,~a,~a)" maxdepth name ia-                                 skosimp)
 (ia-lvars  (format nil "
list2array(0)((:~{~a~^, ~}:))" ia-vars))
 (msg       (or msg (when (listp ia- ( application-udgement"

    (if msg
 (printf msg)
      (spread
       (name-label name ia-iexpr :hide? t)
       ((try-branch
  eval-ia-eval :afe 
  ((then (lemma "simple_interval_soundness")
  (inst? -1)
  (replaces -2)
  (beta -1)
  (expand "sound?" -1)
  (branch (split -1)
  ((spread                                      expand ""java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
     ((branch (invoke (case "%1 = %2") (! -1 1) ia-estr                                      (""
       ((then (replaces -1)
       (decimalize -1 precision))
        (interval-eq__ name 1)
        (    sigmadef-decl "eal"  ")
      (if (null ia-vars)
          (eval-formula)
        (vars-in-box__))))
   (val-formula)))
   (skip))
java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 13
  "
[Interval] Computes a simple estimation of the minimum and maximum values
of EXPR using a branch and bound algorithm based on interval arithmetic.
PRECISION is the number of decimals in the output java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 47
concerns the  (sin_ub -decl" trig_approx nil)
The higher the value of N, the                                             skosimp)
MAXDEPTH is a maximum recursion depth for the branch and bound algorithm.

This strategy is a simplified version This strategy is a simplified version of(("
java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
  "omputing  to   of expression ~a,~%using interval arithmetic")


Messung
CHZG
8210010094

¤ Dauer der Verarbeitung: 0.17 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

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