Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add convertTheory for CommonLogic #2128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CommonLogic/Analysis.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module CommonLogic.Analysis
, inducedFromMorphism
, inducedFromToMorphism
, signColimit
, convertBasicTheory
)
where

Expand Down Expand Up @@ -397,3 +398,9 @@ signColimit diag = do
}
in Map.insert x m Map.empty) $ labNodes diag
return (sig, mors)

convertBasicTheory :: (Sign.Sign, [AS_Anno.Named AS.TEXT_META]) -> AS.BASIC_SPEC
convertBasicTheory (_, l) =
AS.Basic_spec $
map AS_Anno.emptyAnno $
[AS.Axiom_items $ map (AS_Anno.emptyAnno . AS_Anno.sentence) $ l]
1 change: 1 addition & 0 deletions CommonLogic/Logic_CommonLogic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ instance StaticAnalysis CommonLogic
morphism_union CommonLogic = ()
-}
signature_colimit CommonLogic = signColimit
convertTheory CommonLogic = Just convertBasicTheory


-- | Sublogics
Expand Down