![]() |
Handy LK Homepage |
Handy LK (HLK shortly) is a language for writing down complex Sequent Calculus (LK) derivations comfortably. You write down your HLK proofs into a text file (ASCII or UNICODE) and convert it into an XML or LaTeX file with the hlk compiler.
2011/08/29: HLK version beta 9 has been released. It fixes compilation problems with new versions of gcc.
Download beta 9 of HLK here. In order to install HLK correctly, follow the instructions in the INSTALL file which is contained in the src directory.
simple.hlk looks like this:
define variable x of type any; define constant a of type any; define function f of type any to any; define atom predicate P of type any; define proof the-proof proves P(a), all x ( P(x) impl P(f(x)) ) :- P( f(f(a)) ); with all left P(a) impl P(f(a)) :- ; with all left P(f(a)) impl P(f(f(a))) :- ; continued auto propositional P(a), P(a) impl P(f(a)), P(f(a)) impl P(f(f(a))) :- P( f(f(a)) ); ;
hlk simple.hlk the-proof from the shell, the program will generate this XML code, which could be opened by the
Proof Tool.
It is also capable to generate LaTeX code
(which needs proof.sty);
for our example LaTeX will generate the following proof figure:
The language HLK as well as the compiler hlk are still under development, so documentation is very poor at this point.
Usage: hlk [options] <filename> <proof-name>
Options:
--version print the version of hlk.
-o <filename> output file (default /dev/stdout).
--flat output flat proof.
--ceres output ceres input.
--slk skeleton lk output.
--latex output proof(s) as LaTeX source.
--sim-undef simulate undef predicate rules.
--axioms[=<file>] will output the initial sequents to file,
default ist /dev/stderr.If you have any questions or encountered problems with hlk, feel free to contact us: hlk |@| logic |.| at