GtkDisprove.hs revision e9458b1a7a19a63aa4c179f9ab20f4d50681c168
e9458b1a7a19a63aa4c179f9ab20f4d50681c168Jens ElknerDescription : Gtk Module to enable disproving Theorems
f0cb315452faea6fee8144489629e63e9bd7b303Christian MaederCopyright : (c) Simon Ulbricht, Uni Bremen 2010
f0cb315452faea6fee8144489629e63e9bd7b303Christian MaederLicense : GPLv2 or higher, see LICENSE.txt
f0cb315452faea6fee8144489629e63e9bd7b303Christian MaederMaintainer : tekknix@informatik.uni-bremen.de
f0cb315452faea6fee8144489629e63e9bd7b303Christian MaederStability : provisional
f0cb315452faea6fee8144489629e63e9bd7b303Christian MaederPortability : portable
f0cb315452faea6fee8144489629e63e9bd7b303Christian MaederThis module provides a disproving module that checks consistency of inverted
f0cb315452faea6fee8144489629e63e9bd7b303Christian Maedermodule GUI.GtkDisprove (disproveAtNode) where
f0cb315452faea6fee8144489629e63e9bd7b303Christian Maederimport qualified GUI.Glade.NodeChecker as ConsistencyChecker
f0cb315452faea6fee8144489629e63e9bd7b303Christian Maederimport GUI.GraphLogic hiding (openProofStatus)
4a6032790570e790438ad99706beff11509184eaChristian Maederimport Interfaces.GenericATPState (guiDefaultTimeLimit)
4a6032790570e790438ad99706beff11509184eaChristian Maederimport Interfaces.Utils (updateNodeProof)
f0cb315452faea6fee8144489629e63e9bd7b303Christian Maederimport qualified Common.OrderedMap as OMap
f0cb315452faea6fee8144489629e63e9bd7b303Christian Maederimport Control.Concurrent (forkIO, killThread)
f0cb315452faea6fee8144489629e63e9bd7b303Christian Maederimport qualified Data.Map as Map
import Data.Maybe
FNode datatype from GUI.GtkConsistencyChecker. The goals are being negated
Nothing -> error "GtkDisprove.showDisproveGUI(no global theory found)"
stat = case OMap.lookup g sens of
case OMap.lookup goal sens of
xml <- getGladeXML ConsistencyChecker.get
{- call the check function from GUI.GtkConsistencyChecker.
es = Map.findWithDefault (error
"GtkDisprove.showDisproveWindow") n' t
s = OMap.ele es