spechub / Hets

The Heterogeneous Tool Set
http://hets.eu
GNU General Public License v2.0
57 stars 19 forks source link

signatures versus theories #172

Open sternk opened 10 years ago

sternk commented 10 years ago

Reported by till and assigned to mcodescu Migrated from http://trac.informatik.uni-bremen.de:8080/hets/ticket/172


Implement a clean treatment of signatures versus theories. (Currently, often signatures also store some theory information. Some comorphisms are non-simple theoroidal, which is currently not backed by the general theory of heterogeneous specs.) some notions:

sternk commented 10 years ago

Comment by maeder Migrated from http://trac.informatik.uni-bremen.de:8080/hets/ticket/172#comment:5


'CASL2SubCFOL` has been extended to allow sentence independent signature translations

tillmo commented 8 years ago

I think we need non-simple theoroidal comorphisms, and Hets comorphism interface supports this already, because it provides a function for mapping theories to theories. Moreover, this is backed up by the general theory, see: Mihai Codescu, Generalized Theoroidal Institution Comorphisms, http://link.springer.com/chapter/10.1007%2F978-3-642-03429-9_7 We should check whether adpoting this theory needs changes in Hets, though.

tillmo commented 8 years ago

@mcodescu has pointed out the following problem. Consider:

logic OWL
ontology O1 = 
  Individual: John
  Types: hasFamilyName value "Smith"^^xsd:string
  DataProperty: hasFamilyName
end
ontology O2 = 
 Individual: Tim
 DataProperty: hasFamilyName
end
interpretation V : O1 to O2 = 
  John |-> Tim
end

his is a valid OWL view, but we can disprove it easily. However, the source ontology makes use of xsd:string, while the target ontology does not. If we translate the entire development graph to CASL via a translation that adds xsd:string in the translated theory only if it appears in the sentences of the ontology, we will get a signature morphism between the translated theories that cannot map xsd:string to a sort in the target theory.

In a sense, in such a case, Hets should be able to disprove the view by the inability to translate the signature morphism. Of course, this will require some new mechanism in Hets.

mcodescu commented 8 years ago

If not all OWL theory morphisms can be mapped along OWL22CASL(with datatypes added by-need), then we need to identify the sublogic of OWL that is the source sublogic of this comorphism - otherwise we don't have a comorphism.

tillmo commented 8 years ago

Indeed, all theory morphisms can be mapped. In the example, we have a signature morphism, which also can be mapped to a signature morphism between the translations of the signatures. However, we cannot extend it to a morphism between the translations of the theories, showing that it is not a theory morphism (theory morphisms can be mapped).