File: mk_ascii.ml

package info (click to toggle)
hol88 2.02.19940316dfsg-8
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 65,960 kB
  • sloc: ml: 199,939; ansic: 9,666; sh: 6,913; makefile: 6,032; lisp: 2,747; yacc: 894; sed: 201; cpp: 87; awk: 5
file content (41 lines) | stat: -rw-r--r-- 1,745 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% ===================================================================== %
% FILE		: mk_ascii.ml						%
% DESCRIPTION   : Creates a theory of 8-bit ascii character codes	%
% WRITES FILES	: ascii.th						%
%									%
% AUTHOR	: (c) T. Melham 1988					%
% DATE		: 87.07.27						%
% REVISED	: 90.10.27						%
% ===================================================================== %

% --------------------------------------------------------------------- %
% Create the new theory							%
% --------------------------------------------------------------------- %
new_theory `ascii`;;

% --------------------------------------------------------------------- %
% define the type :ascii						%
% --------------------------------------------------------------------- %
let ascii_Axiom = 
    define_type `ascii_Axiom`
    		`ascii = ASCII bool bool bool bool bool bool bool bool`;;

% --------------------------------------------------------------------- %
% prove induction theorem for ascii.					%
% --------------------------------------------------------------------- %
let ascii_Induct = 
    save_thm (`ascii_Induct`, prove_induction_thm ascii_Axiom);;

% --------------------------------------------------------------------- %
% prove cases theorem for ascii.					%
% --------------------------------------------------------------------- %
let ascii_CASES = 
    save_thm (`ascii_CASES`, prove_cases_thm ascii_Induct);;

% --------------------------------------------------------------------- %
% prove that the constructor ASCII is one-to-one			%
% --------------------------------------------------------------------- %
let ASCII_11 = 
    save_thm (`ASCII_11`, prove_constructors_one_one ascii_Axiom);;

quit();;  % Needed for Common Lisp %