diff options
author | Jed Barber <jjbarber@y7mail.com> | 2012-08-02 08:32:06 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2012-08-02 08:32:06 +1000 |
commit | ad0d628b1bf333a99238bd2cefc60ec059df3f81 (patch) | |
tree | 686817c4c8267ee3680748f0cae43a1ee53b5af8 | |
parent | 5eeb784929c9bb3bc146aa2b5c2b1aab2e86a5ff (diff) |
Removes theorems from article, specified by number
-rw-r--r-- | Delete.hs | 20 |
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 |