Sort search results in order of relevance, where relevance =
a) better if 0 premises for intro or 1 premise for elim/dest rules
b) better if substitution size wrt to current goal is smaller
Only applies to intro, dest, elim, and simp
(contributed by Rafal Kolanski, NICTA)
#
# $Id$
# Author: Markus Wenzel, TU Muenchen
#
# feeder.pl - feed isabelle session
#
# args
($head, $emitpid, $quit, $tail) = @ARGV;
# setup signal handlers
sub hangup { exit(0); }
$SIG{'HUP'} = "hangup";
$SIG{'INT'} = "IGNORE";
# main
#buffer lines
$| = 1;
$emitpid && (print $$, "\n");
$head && (print "$head", "\n");
if (!$quit) {
while (<STDIN>) {
print;
}
}
$tail && (print "$tail", "\n");
# wait forever
close STDOUT;
sleep;