Changeset 12741

Show
Ignore:
Timestamp:
27.10.2009 15:36:41 (4 weeks ago)
Author:
mcodescu
Message:

removed node M'

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/CASL/Freeness.hs

    r12724 r12741  
    3737                    -> [Named CASLFORMULA] -- Th(M) 
    3838                    -> Result (CASLSign, -- SigmaK 
    39                                CASLMor, -- iota : SigmaM' -> SigmaK 
     39                               -- CASLMor, -- iota : SigmaM' -> SigmaK 
    4040                               [Named CASLFORMULA] -- Ax(K) 
    4141                              ) 
     
    4646                    ss_0 = sortSet sigma_0 
    4747                    sigma_m = mtarget sigma 
    48                     iota_mor = create_iota_mor ss_0 sigma_m 
    49                     sigma_k = mtarget iota_mor 
     48                    sigma_k = create_sigma_k ss_0 sigma_m 
    5049                    axs = create_axs ss_0 sigma_m sigma_k sens 
    51                   in return (sigma_k, iota_mor, axs) 
     50                  in return (sigma_k, axs) 
    5251 
    5352horn_clauses :: [Named CASLFORMULA] -> Bool 
     
    496495                       showSepList (showString "_") showId sortList "") f 
    497496 
    498 -- | given the signature in M the function computes the morphism from M' to K 
    499 create_iota_mor :: Set.Set SORT -> CASLSign -> CASLMor 
    500 create_iota_mor ss sg_m = Morphism iota_sg usg' sm om pm () 
     497-- | given the signature in M the function computes the signature K 
     498create_sigma_k :: Set.Set SORT -> CASLSign -> CASLSign 
     499create_sigma_k ss sg_m = usg' 
    501500      where iota_sg = totalSignCopy sg_m 
    502501            usg = addSig const sg_m iota_sg 
    503             sm = iota_sort_map_mor $ sortSet sg_m 
    504             om = iota_op_map_mor $ opMap sg_m 
    505             pm = iota_pred_map_mor $ predMap sg_m 
    506502            om' = homomorphism_ops (sortSet sg_m) (opMap usg) 
    507503            om'' = make_ops ss om' 
  • trunk/Logic/Logic.hs

    r12681 r12741  
    361361             -> Result 
    362362                 (sign, -- SigmaK 
    363                   morphism, -- iota : SigmaM' -> SigmaK 
    364363                  [Named sentence] -- Ax(K) 
    365364                 ) 
  • trunk/Proofs/NormalForm.hs

    r12611 r12741  
    265265          let res = quotient_term_algebra lid mor $ toNamedList sen 
    266266          case maybeResult res of 
    267            Just (sigK, iota, axK) -> do 
     267           Just (sigK, axK) -> do 
    268268               -- success in logic lid 
    269269            let thK = G_theory lid (makeExtSign lid sigK) 
    270270                             startSigId (toThSens axK) startThId 
    271             let thM' = noSensGTheory lid sig startSigId 
    272                 iotaM' = gEmbed $ mkG_morphism lid iota 
    273271            incl <- subsig_inclusion lid (plainSign sig) sigK 
    274272            let inclM = gEmbed $ mkG_morphism lid incl 
    275       -- m' with signature = sig, no sentences 
    276273      -- remove x 
    277274      -- add nodes 
    278275      -- k  with signature = sigK, sentences axK 
    279       -- global def links from m and m' to k, mapped with incl, resp iota 
     276      -- global def link from m to k, labeled with inclusion 
    280277      -- hiding def link from k to n, labeled with inclusion 
    281                 m' = getNewNodeDG dg -- new node 
     278              --   m' = getNewNodeDG dg -- new node 
    282279                nodelab = labDG dg m 
    283280                info = nodeInfo nodelab 
    284281                ConsStatus c _ _ = node_cons_status info 
    285                 labelM' = newInfoNodeLab 
    286                   (extName "NormalForm" $ dgn_name nodelab) 
    287                   info 
    288                   { node_origin = DGNormalForm m 
    289                   , node_cons_status = mkConsStatus c } 
    290                   thM' 
    291             -- insert the new node and add edges from the predecessors 
    292                 insM' = InsertNode (m', labelM') 
    293                 k = (getNewNodeDG dg) + 1 
     282                k = (getNewNodeDG dg) 
    294283                labelK = newInfoNodeLab 
    295284                   (extName "NormalForm" $ dgn_name nodelab) 
     
    304293                                               , dgl_id = defaultEdgeId 
    305294                                               }), 
    306                        InsertEdge (m',k,DGLink { dgl_morphism = iotaM' 
    307                                               , dgl_type = globalDef 
    308                                               , dgl_origin = DGLinkProof 
    309                                               , dgl_id = defaultEdgeId 
    310                                               }), 
    311295                       InsertEdge (k, n,DGLink { dgl_morphism = inclM 
    312296                                              , dgl_type = HidingDefLink 
     
    315299                                              })] 
    316300                del = DeleteEdge edge 
    317                 allChanges = del:insM' : insK : insE 
     301                allChanges = del: insK : insE 
    318302            return $ changesDGH dg allChanges 
    319303           _ -> do 
     
    327311                (m', dgM) <- translateFree dg edge com 
    328312                foldM handleEdge dgM $ out (dgBody dgM) m' 
    329                 --return dgM 
    330313     _ -> return dg 
    331314