41561
|
1 |
(* Title: HOL/SPARK/Examples/RIPEMD-160/K_L.thy
|
|
2 |
Author: Fabian Immler, TU Muenchen
|
|
3 |
|
|
4 |
Verification of the RIPEMD-160 hash function
|
|
5 |
*)
|
|
6 |
|
|
7 |
theory K_L
|
|
8 |
imports RMD_Specification
|
|
9 |
begin
|
|
10 |
|
|
11 |
spark_open "rmd/k_l.siv"
|
|
12 |
|
|
13 |
spark_vc function_k_l_6
|
|
14 |
using assms by (simp add: K_def)
|
|
15 |
|
|
16 |
spark_vc function_k_l_7
|
|
17 |
proof -
|
|
18 |
from H1 have "16 <= nat j" by simp
|
|
19 |
moreover from H2 have "nat j <= 31" by simp
|
|
20 |
ultimately show ?thesis by (simp add: K_def)
|
|
21 |
qed
|
|
22 |
|
|
23 |
spark_vc function_k_l_8
|
|
24 |
proof -
|
|
25 |
from H1 have "32 <= nat j" by simp
|
|
26 |
moreover from H2 have "nat j <= 47" by simp
|
|
27 |
ultimately show ?thesis by (simp add: K_def)
|
|
28 |
qed
|
|
29 |
|
|
30 |
spark_vc function_k_l_9
|
|
31 |
proof -
|
|
32 |
from H1 have "48 <= nat j" by simp
|
|
33 |
moreover from H2 have "nat j <= 63" by simp
|
|
34 |
ultimately show ?thesis by (simp add: K_def)
|
|
35 |
qed
|
|
36 |
|
|
37 |
spark_vc function_k_l_10
|
|
38 |
proof -
|
|
39 |
from H6 have "64 <= nat j" by simp
|
|
40 |
moreover from H2 have "nat j <= 79" by simp
|
|
41 |
ultimately show ?thesis by (simp add: K_def)
|
|
42 |
qed
|
|
43 |
|
|
44 |
spark_end
|
|
45 |
|
|
46 |
end
|