14710
|
1 |
(* Title: HOL/Real/HahnBanach/RealLemmas.thy
|
|
2 |
ID: $Id$
|
|
3 |
Author: Gertrud Bauer, TU Munich
|
|
4 |
*)
|
|
5 |
|
|
6 |
header {* Auxiliary theorems *}
|
|
7 |
|
|
8 |
theory RealLemmas = Real:
|
|
9 |
|
|
10 |
lemma real_mult_diff_distrib:
|
|
11 |
"a * (- x - (y::real)) = - a * x - a * y"
|
|
12 |
proof -
|
|
13 |
have "- x - y = - x + - y" by simp
|
|
14 |
also have "a * ... = a * - x + a * - y"
|
|
15 |
by (simp only: right_distrib)
|
|
16 |
also have "... = - a * x - a * y"
|
|
17 |
by simp
|
|
18 |
finally show ?thesis .
|
|
19 |
qed
|
|
20 |
|
|
21 |
lemma real_mult_diff_distrib2:
|
|
22 |
"a * (x - (y::real)) = a * x - a * y"
|
|
23 |
proof -
|
|
24 |
have "x - y = x + - y" by simp
|
|
25 |
also have "a * ... = a * x + a * - y"
|
|
26 |
by (simp only: right_distrib)
|
|
27 |
also have "... = a * x - a * y"
|
|
28 |
by simp
|
|
29 |
finally show ?thesis .
|
|
30 |
qed
|
|
31 |
|
|
32 |
end
|