java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10 begin
definition prefix_def: "xs
definitionrefixo
strict_prefix_defx_length_le genPrefix r ==>length ys"
instance.
(*Constants for the <= and >= relations, used below in translations*) (e gePeiindu, au
end
definition Le :: "(=<>xxs>(∃ r & (xs, ys) ∈ "Le
definition Ge :: "(nat*nat) set" where cons_genPrefixE [elim!]: "Ge == {(x,y) =xjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
(*As usual converting it to an elimination rule is tiresome*) lemma [!]: "[| (x#xs, zs) ∈) |] ==> P" by (drule cdlemma, simp
lemma Cons_genPrefix_Cons [iff]: "((x#xs,y#ys) ∈ r ∧ genPrefix r)" by (blast intro: genPrefix.prepend)
subsection‹ genPrefix r |] ==> (x, z) ∈
l_genPrefix"efl r ==> refl (genPrefix r)"
(unfold refl_on_def, auto)
(induct_tac "x")
2 apply (blast intro: genPrefix.prepend)
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
lemma trans_genPrefix: by (blast genPrefix_imp_nth
(** Antisymmetry **)
lemma genPrefix_antisymapplyjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13 assumes,<>genPrefix r" and 2: "antisym r" and 3: "(ys, xs) ∈ genPrefix r" ws"
(, ys <> proof
il then next case prepend thenshow ?enPrefix_iff_nth next case (append xs ys zs) thenshow ?case apply - apply (subgoal_tac "length zs = 0", force) apply (drule genPrefix_length_le)+ apply (simp del: length_0_conv) done qed
lemma antisym_genPrefix: "antisym r ==> antisym (genPrefix r)" by (blast intro: antisymI genPrefix_antisym)
subsection‹recursion equations›
lemma genPrefix_Nil [simp]: "((xs, []) ∈ genPrefix r) = (xs = [])" by (induct xs) auto
lemmaprefix_antisym:"!!xs::'java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 apply apply(blastintro:genPrefix_antisym done
(*Although the prefix ordering is not linear, the prefixes of a list are linearly ordered.*) lemma common_prefix_linear: fixes xs (unfoldrefl_on_def Ge_def, auto) shows "xs <= zslemmaantisym_Ge []: "antisym Ge" by (induct zs rule: rev_induct) auto
subsectionpfixLe, pfixGe: properties inherited from the translations›
(** pfixLe **) :fixGe "
lemma refl_Le [iff]: "refl Le" by (unfold refl_on_def Le_def, auto)
lemma antisym_Le [iff]: "antisym Le" by (unfold antisym_def Le_def, auto)
lemma trans_Le [iff]: "trans Le" by (unfold trans_def Le_def, auto)
lemma pfixLe_refl [iff]: "x pfixLe" by simp
lemma pfixLe_trans: "[| x java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 by (blast intro: genPrefix_trans)
lemma pfixLe_antisym: "[| x pfixLe y; y pfixLe x |] ==> x = y" by (blast intro: genPrefix_antisym)
¤ 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.6Bemerkung:
¤
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.