(* Title: HOL/Examples/Records.thy Author:Wolfgangn java.lang.StringIndexOutOfBoundsException: Range [13, 10) out of bounds for length 45 Author:NorbertSchirmer,22 java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 42
*)
sectionUsing extensibleLd›
theory imports Main beginsubsubsection‹Introducing concrete records and record schemes›
subsection\java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
record definitionjava.lang.StringIndexOutOfBoundsException: Range [17, 15) out of bounds for length 53 ypos::nat
text\<open> Apartmanyotherjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 25 followingms \<close>
thmpoint.simps thmpointjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 thmpoint.defs
lemma"r\<lparr>xpos:=n\<rparr>\<lparr>ypos:=m\<rparr>=r\<lparr>ypos:=m\<rparr>\<lparr>xpos:=n\<rparr>" proof(casesr) fixxposyposmore assume"r=\<lparr>xpos=xpos,ypos=ypos,\<dots>=more\<rparr>" thenshow?thesisbysimp qed
lemma"r\<lparr>xpos:=n\<rparr>\<lparr>ypos:=m\<rparr>=r\<lparr>ypos:=m\<rparr>\<lparr>xpos:=n\<rparr>" proof(inductr) fixxposyposmore show"\<lparr>xpos=xpos,ypos=ypos,\<dots>=more\<rparr>\<lparr>xpos:=n,ypos:=m\<rparr>= \<lparr>xpos=xpos,ypos=ypos,\<dots>=more\<rparr>\<lparr>ypos:=m,xpos:=n\<rparr>" bysimp qed
lemma"r\<lparr>xpos:=n\<rparr>\<lparr>xpos:=m\<rparr>=r\<lparr>xpos:=m\<rparr>" proof(casesr) fixxposyposmore assume"r=\<lparr>xpos=xpos,ypos=ypos,\<dots>=more\<rparr>" java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0 qed
lemma"r\<lparr>xpos:=n\<rparr>\<lparr>xpos:=m\<rparr>=r\<lparr>xpos:=m\<rparr>" proof(bysimp casefields thenjava.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 0 qed
lemma"r\<lparr>xpos by(casesr)simp
text\<open>\<qjava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
definitiono5::at whereo5<parr>posy\rparr>java.lang.StringIndexOutOfBoundsException: Range [56, 57) out of bounds for length 56
text\<open>\<^medskip>java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 84
notepad begin have"\<exists>x.Px" if"P(xposr)"forPr apply(insertthat) apply(tactic\<open>Record.split_simp_tac\<^context>[](K~1)1\<close>) applyauto done end
text\<open> Thesimprocsthatareactivatedbydefaultare: \<^item>@{ML[source]Record.simproc}:fieldselectionof(nested)recordupdates. \<^item>@{ML[source]Record.upd_simproc}:nestedrecordupdates. \<^java.lang.StringIndexOutOfBoundsException: Range [82, 11) out of bounds for length 82 \<close>
schematic_goal"r\<lparr>f:=x1,e:=x2,d:=x3,c:=java.lang.StringIndexOutOfBoundsException: Range [80, 55) out of bounds for length 86 supply[[record_sort_updates]] bysimp
setup\<open> let valN=300 in Record.add_record{overloaded=false}([],\<^binding>\<open>large_record\<close>)NONE (map(fni=>(Binding.make("fld_"^string_of_inti,\<^here>),@{typnat},Mixfix.NoSyn)) (1uptoN)) end \<close>
¤ 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.27Bemerkung:
¤
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 und die Messung sind noch experimentell.