summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Delete.hs20
1 files changed, 20 insertions, 0 deletions
diff --git a/Delete.hs b/Delete.hs
new file mode 100644
index 0000000..adeb5a5
--- /dev/null
+++ b/Delete.hs
@@ -0,0 +1,20 @@
+import System( getArgs )
+import Text.Printf
+import Parse
+import ProofGraph
+import WriteProof
+
+import qualified Data.Graph.Inductive.Graph as Graph
+
+
+
+main = do
+ args <- getArgs
+ list <- getLines $ head args
+ let graph = doGraphGen (map (stripReturn) list)
+ initList = filter (\x -> Graph.indeg graph x == 0) (Graph.nodes graph)
+ thmList = (map (\(_,y) -> y)) .
+ (filter (\(x,y) -> (show x) `notElem` (tail args))) .
+ (zip [1..]) $ initList
+ trace = writeAll graph thmList
+ output trace