From ad0d628b1bf333a99238bd2cefc60ec059df3f81 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Thu, 2 Aug 2012 08:32:06 +1000 Subject: Removes theorems from article, specified by number --- Delete.hs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Delete.hs 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 -- cgit