# HG changeset patch # User webertj # Date 1350636402 -7200 # Node ID d3d2b78b1c1928331668c7733106a9d67841d6c6 # Parent 6f7985a42889c515657ad856ab3f20347c70453e Tuned. diff -r 6f7985a42889 -r d3d2b78b1c19 src/HOL/Library/ListVector.thy --- a/src/HOL/Library/ListVector.thy Thu Oct 18 20:59:46 2012 +0200 +++ b/src/HOL/Library/ListVector.thy Fri Oct 19 10:46:42 2012 +0200 @@ -94,7 +94,7 @@ apply(simp) apply(case_tac zs) apply(simp) -apply(simp add:add_assoc) +apply(simp add: add_assoc) done subsection "Inner product" @@ -103,13 +103,13 @@ "\xs,ys\ = (\(x,y) \ zip xs ys. x*y)" lemma iprod_Nil[simp]: "\[],ys\ = 0" -by(simp add:iprod_def) +by(simp add: iprod_def) lemma iprod_Nil2[simp]: "\xs,[]\ = 0" -by(simp add:iprod_def) +by(simp add: iprod_def) lemma iprod_Cons[simp]: "\x#xs,y#ys\ = x*y + \xs,ys\" -by(simp add:iprod_def) +by(simp add: iprod_def) lemma iprod0_if_coeffs0: "\c\set cs. c = 0 \ \cs,xs\ = 0" apply(induct cs arbitrary:xs) @@ -128,7 +128,7 @@ apply simp apply(case_tac zs) apply (simp) -apply(simp add:left_distrib) +apply(simp add: left_distrib) done lemma iprod_left_diff_distrib: "\xs - ys, zs\ = \xs,zs\ - \ys,zs\" @@ -138,7 +138,7 @@ apply simp apply(case_tac zs) apply (simp) -apply(simp add:left_diff_distrib) +apply(simp add: left_diff_distrib) done lemma iprod_assoc: "\x *\<^sub>s xs, ys\ = x * \xs,ys\" @@ -146,7 +146,7 @@ apply simp apply(case_tac ys) apply (simp) -apply (simp add:right_distrib mult_assoc) +apply (simp add: right_distrib mult_assoc) done -end \ No newline at end of file +end