author | berghofe |
Wed, 30 Apr 2014 15:43:44 +0200 | |
changeset 56798 | 939e88e79724 |
parent 41561 | d1318f3c86ba |
child 69605 | a96320074298 |
permissions | -rw-r--r-- |
41561 | 1 |
(* Title: HOL/SPARK/Examples/RIPEMD-160/K_R.thy |
2 |
Author: Fabian Immler, TU Muenchen |
|
3 |
||
4 |
Verification of the RIPEMD-160 hash function |
|
5 |
*) |
|
6 |
||
7 |
theory K_R |
|
8 |
imports RMD_Specification |
|
9 |
begin |
|
10 |
||
56798
939e88e79724
Discontinued old spark_open; spark_open_siv is now spark_open
berghofe
parents:
41561
diff
changeset
|
11 |
spark_open "rmd/k_r" |
41561 | 12 |
|
13 |
spark_vc function_k_r_6 |
|
14 |
using assms by (simp add: K'_def) |
|
15 |
||
16 |
spark_vc function_k_r_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_r_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_r_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_r_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 |