To use the theorem prover, SELECT |;
print qq|\n and COPY a cascade hierarchy text-image from a |;
print qq|\n NOTEPAD® or other text-file; PASTE |;
print qq|\n the text image into the text box below; |;
print qq|\n and click on the SUBMIT button. |;
###
### INPUT POST METHOD.
print qq|\n
|;
###
### ADDITIONAL INSTRUCTIONS.
print qq|\n
The sentence parser is very fussy |;
print qq|\n and error-intolerant. The upper-left |;
print qq|\n corner must contain +a, one space |;
print qq|\n right of the left-margin. Each subsequent row |;
print qq|\n must contain exactly one variable name, preceded by |;
print qq|\n + or -, up to the final row. |;
print qq|\n Indentation must be EXACTLY THREE SPACES. |;
print qq|\n
For additional information, contact: |;
print qq|\n |;
print qq|\n G. William Moore, MD, PhD. |;
###
### END JOB.
print qq|\n Last modified: 2/17/2008, G. William Moore, MD, PhD. |;
print qq|\n \n\n |; exit;
###
### Program modllive.cgi is a theorem-prover script, written
### in Perl, that serves as a companion to the manuscript:
### Moore GW, Brown LA, Burger RH, Hutchins GM, Miller RE.
### Modal Logic Theory for Pathology Inference. (Abstract).
### Arch Pathol Lab Med. 2004 Jun;128:.
### http://www.netautopsy.org/modlthry.htm
### http://apiii.upmc.edu/abstracts/posterarchive/2003/moore.html
###
### The input is a text-file, received from , which
### consists of an order logic hierarchy, as described in:
###
### Moore GW, Brown LA, Burger RH, Kao GF, Hutchins GM, Miller RE.
### Spreadsheet Order Logic for Pathology Inference. (Abstract).
### Arch Pathol Lab Med. 2005 Jun;129:.
### http://www.netautopsy.org/ordrlogc.htm
### http://apiii.upmc.edu/abstracts/display.cfm?id=262
###
### The ORIGIN of an order logic hierarchy is +0^ appearing
### in the firstline, one space right of the leftmost byte
### in the input file. All subsequent lines are indented
### in multiples of three spaces, as appropriate. Each line
### begins with + or - followed by the name of a single
### logical element (logel).
###
### There are three outcomes for a given input file:
### Theorem is vacuous.
### Theorem is inconsistent.
### Theorem has semantic content.
### A true theorem must always be vacuous....
###
### Every line in the datasource contains one logical element (=$logel).
### Every logel after $firstline=1 has exactly one parent.
### Terminal logels have no children.
### Every outcome is either vacuous, inconsistent, or has semantic content.
### A line is ACTIVE iff it has a child.
### A nandset is VACUOUS iff at least one logel is plus AND minus.
### A nandset is CONTRADICTORY iff has exactly one nonzero logel.
###
### $inputbox : primary data source, harvested from
### $outputbox : data source, after processing escape characters.
### $ndtbox : number of lines in datasource input box.
### $nline : number of lines in datasource.
### $iline, $jline, $kline : each line in datasource.
### $nname : number of named logic elements.
### $iname : each named logic element.
### $mxcol : maximum column number.
###
### $dtbox[$iline] : datasource input box, line-by-line.
### $dtsrc[$iline] : datasource, line-by-line.
### $logel[$iline] : logic element number for datasource line, $iline.
### $nmln[$iline] : logic element number for datasource line, $iline.
### $chlog[$iline] : logic element charstring for datasource line, $iline.
### $sign[$iline] : logic element sign for datasource line, $iline.
### $clmn[$iline] : column number for datasource line, $iline.
### $name[$iname] : name of logel variable $iname.
### $eman{$charstr}=$iname : $iname for char string $charstr.
### $fchld[$iline] : first child of line $iline; =0 if childless.
### $vacus[$iline] : =1 if line $iline is vacuous; =0 otherwise.
### $cardn[$iline] : cardinality for line $iline.
### $contr[$iline] : =1 if line $iline is contradictory; =0 otherwise.
### $solun[$iline] : solution for non-vacuous line $iline.
### $nands[$iline][$jline] : nandset at non-vacuous line $iline.
### $vacusw : =1 if every line is vacuous; =0 otherwise.
### $cntrsw : =1 if any line is contradictory; =0 otherwise.
###
###