Changeset 12811

Show
Ignore:
Timestamp:
09.11.2009 18:34:06 (4 months ago)
Author:
csliam
Message:

fixed bug with sort name, and axiom name conversion to Isabelle where
the special characters like square brackets were not encoded properly.

Location:
trunk/CspCASLProver
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/CspCASLProver/Consts.hs

    r12792 r12811  
    6868import Isabelle.IsaConsts (binVNameAppl, conDouble, mkFunType, termAppl) 
    6969import Isabelle.IsaSign (BaseSig(..), Term, Typ(..), VName(..)) 
    70 import Isabelle.Translate(showIsaTypeT) 
     70import Isabelle.Translate(showIsaTypeT, transString) 
    7171 
    7272-- | Name for the CspCASLProver's Alphabet 
     
    110110-- | Convert a SORT to a string 
    111111convertSort2String :: SORT -> String 
    112 convertSort2String s = showIsaTypeT s Main_thy 
     112convertSort2String s = transString $ showIsaTypeT s Main_thy 
    113113 
    114114-- | Convert a process name to a string 
  • trunk/CspCASLProver/Utils.hs

    r12792 r12811  
    6060import Isabelle.IsaConsts 
    6161import Isabelle.IsaSign 
     62import Isabelle.Translate(transString) 
    6263 
    6364------------------------------------------------------------------------- 
     
    784785getCollectionEmbInjAx :: [(SORT,SORT)] -> [String] 
    785786getCollectionEmbInjAx sortRel = 
    786     let mkName (s,s') = mkEmbInjName s s' 
     787    let mkName (s,s') = transString $ mkEmbInjName s s' 
    787788    in map mkName sortRel 
    788789 
    789790-- | Return the list of strings of all ga_notDefBottom axioms. 
    790791getCollectionNotDefBotAx :: [SORT] -> [String] 
    791 getCollectionNotDefBotAx = map mkNotDefBotAxiomName 
     792getCollectionNotDefBotAx = map $ transString . mkNotDefBotAxiomName 
    792793 
    793794-- | Return the list of string of all decomposition theorem names that we 
     
    825826            (Set.member s' $ CASLSign.supersortsOf s caslSign) && 
    826827            (Set.member s'' $ CASLSign.supersortsOf s' caslSign) && (s /= s'') 
    827     in [mkTransAxiomName s s' s'' 
     828    in [transString $ mkTransAxiomName s s' s'' 
    828829            | s <- sorts, s' <- sorts, s'' <- sorts, allSupers s s' s''] 
    829830 
     
    835836        isomorphic s s' = (Set.member s $ CASLSign.supersortsOf s' caslSign) && 
    836837                          (Set.member s' $ CASLSign.supersortsOf s caslSign) 
    837     in [mkIdAxiomName s s' | s <- sorts, s' <- sorts, isomorphic s s'] 
     838    in [transString $ mkIdAxiomName s s' 
     839            | s <- sorts, s' <- sorts, isomorphic s s']