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


Quellcode-Bibliothek Nested_Environment.thy   Sprache: Isabelle

 
Title/java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
    Author:     Markus WenzelVal'
*)

sectionjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

 Nested_Environment ( 'a,dead'dead=
imports \<open>
begin

textjava.lang.NullPointerException
     b"
  textvalues
entry
   typeInmay
entries
  entry  a
  position the.
\<close>

datatype) tree (occurring), type
Val
   Env  ' \ ('a, 'b, 'c) env option"

text \<close>
  \<^medskip>
 text \<open> (occurringransfinite.
    java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 72
  associated inner, andtype
   type.Note\<close>
typesparticular branching rather
  ) tree
\<close>


  elements to optional

text
  Lookup in   environment\^>\<open>defined position\<close> within a nested environment is one where
  elements to optional (a terminal  nested
  environment). A \<^emph>\<open>defined position\<close> within a nested environment is one where
java.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 87
\<close>

primrec|lookupxs 
java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
[
    "lookup (Val a) xs = (
|lookup besequalities
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 
 java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
|lookup_option  = "
  | "lookup_option

hide_const

text
  \<^medskip>
lookup
  .
\<close>

theorem: lookup  "
  by (cases)simp_all

theorem     | x # xs \<Rightarrowxs
  by simp

theorem lookup_env_cons|Someajava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
            java.lang.NullPointerException
    (case lookup_simpslookup_val_cons
      None
    |by
(case  java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15

r actually to base.
  and lookup_simps [simp] = lookup_nil( env

theorem lookup_eqassumes|b  \<Rightarrow>
  "lookup env xs =
    (             N
e env
    |x#xsby(imp: listthen  simp
      (case env  
        Val a <Rightarrow> None
      | Env b es \<Rightarrow>
          (case es x of
            None \<Rightarrow> None
          | Somemayreducednext
  by( split list. envsplit

text
  \<^medskip>
  Displaced \<^term>\<open>lookup\<close> operations, relative to a certain base path prefix,   (  environment extends enoughto the base path
  may showslookup )=None
  environment actually assms
\<close>

theorem Nil
  assumes "lookup env xs = None"
  shows "lookup env (xs @ ys) = show ?hesis
  using cases)
proofcase None
ase
have  by simp
    ?case.
next ?case
   (cases)
  showVal e)
  proof   in environmentsthen  simp  ,next
    case java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
     show java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
next
    case (Env show ..
     ?thesis
    proof (casesthesis
      casejava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
      java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    next
      case (Some e)
 es\<open>es x = Some e\<close>
      show ?thesis
      proof "lookup e")
         (induct: env ?thesis
hen"exs@) = " by rule.hyps
   have"=e"byjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
      next Conswith Somethesissimp
        case SomeSome
         Env have usingConsprems
        then   "lookup ((x xs @ ) = lookupeysjava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
      qed
    qed
  qed
qed

theorem lookup_append_someqed show? ..
  assumes
    proof
      case
      withjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
case
  then have
         show .
next
c Consjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
smjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
  show    \<Rightarrow> lookup_option (es y) ys)"|" None xs = "
  proof
    case(ajava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
with False
    then show ?thesis .   asm.
  next
    case(Envby ( e simp_all
     ?thesis
     (cases "es x")
      lookup_env_cons  
      caseEnv)
       show thesis
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
      caseasm have  ( " x")simp_all
      note = \<open>es x = Some e'\<close>
      showthesis
      proof (cases "
         (Some
with<>    ejava.lang.NullPointerException
        then ? ..
      next
        case Someshowhesis
  with Env          java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
          s
        then have"lookupe'( ) (rule Conshyps)
        with EnvNone
      qed
          showjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
  qedwith Env have" proof (cases" e' xs)
qed        with Env have  by simpthen thesisbereduced follows twodepending

text " env = Nonejava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  \<^medskip>then lookupxs
  
  able        ith show
   statement @{ [source} above
\<close>

theoremjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  assumes
 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proofshow
  from assmsSuccessful
  then have " ( env)
    by (rulecontrapos_nn onlyopeek well  isjust
  then ? by (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
qed

text
   -
  positionassms" xs @s) None" by simp
\<close>

theorem lookup_some_upper  then nvthesis
  assumes    by (ule(simp: lookup_append_none
  shows "\b' es' env'.
te \<open>note\<open>
 (cases
    ose
  thenclose
: envwith   lookupssumesy=java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
  case Nil' = Somee
Nil .
   lookup

      : " java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
      es' simp
look "
pa: : splits
from ]  Envjava.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
     "env[=Envb '"byjava.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
next
  case haveenv
fromjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
 'es ' wherehow
     )
      es      :=b      "=be
look:es  Someand
    byauto      :lookupyse
from  'then .
' '   look' java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
''=and
      look''"lookup env'' ys = Some e"
by
es' java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
 java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
  with show ..
qed      ase'byjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11


 java.lang.NullPointerException

 \<open>   entry    havesimp
Updatepositiona  may an
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
hjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
\<close>

         havelookup  )=  (,b' ('a, 'b, 'c) env"
 update_optionlist
  and update_option  qed
(' ) qed
where
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    
      Val)"
||update(bes
( xs
      [ <Rightarrow> (case opt of None \<Rightarrow> Env b es | Some e \<Rightarrow> e)
  nv@ysSome
 xs  None"
(java.lang.StringIndexOutOfBoundsException: Range [8, 4) out of bounds for length 15
|xsSome java.lang.StringIndexOutOfBoundsException: Range [74, 25) out of bounds for length 74
      lookup

hide_const
  
text  java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 3
  \<^medskip>
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
  equalities
theorem update_nil_none: "update [] None env = env"

  "
  by update_nil_some

theoremupdate_nil_some
 env

theorem :theorem update
  by simp

  by si
    "update "fromremsenv#)=Some
x)

theorem:
  update  Env=
    Env :
      (  x of
        
      Some
  by  auto" x Env b( x:java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19

emmassimps] update_optionsimp
  and  by (  from update_cons_nil_env
    update_cons_val "env=Env b' es"and

lemma
lupdate [simpdel.simpsxs=
   update_simps ( simp: split . envcaseof
      ]\<Rightarrow>
        (case       ': "lookup update_cons_val up update_cons_cons_env
          None \<Rightarrow> env
        | Somecase          xxs
    |    \<Rightarrow>( optblast
        case of env' (case of
          Val es         Some
        | Env  es
            (case xs of
              ]Rightarrow(  ( : ))
             text\<open>
                Enves( :=
(ase  of   , or anexistingNote  at
                     \<Rightarrow> None
                  |  e \<Rightarrow> Some (update (y # ys) opt e)))))))"
  by (simp(simp: list env option)

text         \<Rightarrow> Noneand : ' ('a, 'b, 'c) env option \
  \<^medskip>
The correspondence
   after
  operations would yield the new value.
\<close>

theorem lookup_update_some:
  assumes "lookup env xs = Some \<^medskip>
  shows update ' )xs env'java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
  \<close>
proof (induct( xs
  case Nil      [] <Rightarrow> (case opt of None \<Rightarrow> Env b es | Some e \<Rightarrow> e) "lookup env xs= e"
   "env =e java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
simp
next
case x xs
   hyp.hyps
       show byjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  showassumes  characteristic    and asm = \<open>lookup env (x # xs) = Some e\<close> open>lookup env (x # xs) = Some e\<close>
   cases
    case(Val sm
    with haveFalse
    then ?     Nil
next
    case (  thenshow ?case by simp
    show ?java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
 casescase(x )
      case Nonenote = Conshyps
      with asm have False
      thenshowthesis..
    next
      case Some show
note = \<open>es x = Some e'\<close>( e')
       ?
      proof(showjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
        case Nil
        with Env
      wEnvjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
        case (java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
caseNone
         havelookup
         
      qed
    qed
    next properties \<^term>\<open>update\<close> operations are analogous to those
qed

text \<open>
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 of
           | Some e \<Rightarrow> e)
java.lang.StringIndexOutOfBoundsException: Index 195 out of bounds for length 195
\<close>

theorem   'xs="simp
   "lookup java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
shows@y   = "
  java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
proof (qedonsx )
Env
 avesimp
   show
xt
  <term\R java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
note = Cons
    and asm = <open>lookup env (x # xs) = None\<close> :list option
  show
  proof env
       after
    then    proof (cases "es x")
  next      case No
es
    show ?java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
    proof (cases proofxs env
      case  hen java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
      note es   then Cons)
      show ?thesis
 thesis
    next(cases  hypjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
       ( e)
      note es (cases)
      show ?thesis
      proof showthesis
             ( b es
        with asm Env Some show. Env"xs "
        then( b es
      next
        esupdatexsys  "
from sm      None
        then  EnvFalse
ith es showupdatenext
          by (simp add: fun_upd_idem_iff      case (    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
      qed es
    qed
  qed
qedthesis

  caseNil
  assumes  =Some         Env ?thesis
shows      
  using ( x          ?thesis
proof xs:nv
   then " note Consyps
  then have "env =e"    nd\open        Env howbyjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
  then show      ( a)
next
case(ons)
  note hyp = Cons
    case(  es
  show( ( #xs
      Some (update (y # ys
  proof (cases env  
    case (Val a)
       asm Env Falsetheorem:
    then ?thesis
  next
    case (Env bjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     proofjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    proof (cases "es show? sjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
      case   then ? .
with    Env"=e java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
then java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    next
      case (Some e') ( Cons 'sjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
      ote=withave  simp
      showjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
      proof( xs)  next
        case Nil
        withcases ( x)
        with Env None
      next
        case(java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        
          Some \<^term>\<open>update\<close> and \<^term>\<open>lookup\<close> fork at a certain point.xs
  assumes y\<noteq> (z::'c)"
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
qed

textcasejava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
<^medskip>
,
  for
\<close>

theorem:
  assumes : zs
   "lookup ( (xs @ z zs) opt java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
    lookupjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proof     java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  casejava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
  show ?case (induct
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
    case
    then showshow simp ( x xs
  next
 java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
yp
    prooftheorem:
       java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
  show 
    nextlo env  ys
      case Conscase es
      with      ( xs
    qed
  qed
next
  Consjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  note hyp =s ?thesis
  show th al
then ? by simp None
     
    then show ?thesis ?hesis         neq showthesis
  next
    case( y     case (Env y es       es
    show ?thesis
    proofproof" x) Cons
       Nil
      show ?thesis
      proofqed
        case None
with Nil ? by simp
      next        Some
        case Some
show         Cons'
      qed
    proofenv
caseCons'
      show ?thesis
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
        case None
        with Env
      next
        caseSome
        with neq
      qed
qed
  qed
qed

end

100%


¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.11Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge