SlideShare a Scribd company logo
1 of 13
Download to read offline
The OMDoc Import/Export of Hets

                                        Ewaryst Schulz

                                       DFKI Bremen, Germany
                           http://www.informatik.uni-bremen.de/~ewaryst
                                        ewaryst.schulz@dfki.de


                 Conferences on Intelligent Computer Mathematics 2010
                             Content Math Training Camp
                                      Paris, France
                                     7th July 2010




The OMDoc Import/Export of Hets                                   German Research Center
Ewaryst Schulz                                                    for Artificial Intelligence
The Hets System




The OMDoc Import/Export of Hets   German Research Center
Ewaryst Schulz                    for Artificial Intelligence
The Hets System




                                   Other Systems


                                     OMDoc


                                  OMDoc-based Services




The OMDoc Import/Export of Hets      German Research Center
Ewaryst Schulz                       for Artificial Intelligence
Hets Resources


     This Document:
     http://www.informatik.uni-bremen.de/~ewaryst/CMTC2010.pdf
     Hets:
     http://www.informatik.uni-bremen.de/agbkb/forschung/
     formal_methods/CoFI/hets/
     Hets Library:
     https://svn-agbkb.informatik.uni-bremen.de/Hets-lib/trunk/
     Hets OMDoc Content Dictionaries:
     https://svn-agbkb.informatik.uni-bremen.de/Hets-OMDoc/
     trunk/ContentDictionaries/
     CASL:
     http://www.informatik.uni-bremen.de/cofi/wiki/

The OMDoc Import/Export of Hets               German Research Center
Ewaryst Schulz                                for Artificial Intelligence
CASL Specification


  library Basic/Algebra I

  spec Monoid =
       sort Elem
       ops e : Elem;
              ∗ : Elem × Elem → Elem, assoc, unit e

  spec CommutativeMonoid = Monoid
  then op   ∗ : Elem × Elem → Elem, comm

  spec Group = Monoid
  then ∀ x : Elem • ∃ x’ : Elem • x’ ∗ x = e                                               %(inv Group)%
  ...
  Source: https://svn-agbkb.informatik.uni-bremen.de/Hets-lib/trunk/Basic/Algebra_I.casl


The OMDoc Import/Export of Hets                                                 German Research Center
Ewaryst Schulz                                                                  for Artificial Intelligence
Development Graph


     Development Graph of Algebra Library




The OMDoc Import/Export of Hets             German Research Center
Ewaryst Schulz                              for Artificial Intelligence
OMDoc Translation


 <omdoc v e r s i o n=” 1 . 6 ” name=” B a s i c / A l g e b r a I ”>
   <t h e o r y name=” Monoid ” meta=” h t t p : // c d s . omdoc . o r g / l o g i c s / c a s l / c a s l . omdoc ? c a s l ”>
     <c o n s t a n t name=” Elem ” r o l e=” t y p e ”> y p e>
                                                             <t
         <OMOBJ    >
             < OMS b a s e=” h t t p : // c d s . omdoc . o r g / l o g i c s / c a s l / c a s l . omdoc”
                     module=” c a s l ” name=” s o r t ” />
         </OMOBJ </ t y p e> c o n s t a n t>
                     >          </
     <c o n s t a n t name=” ∗ ” r o l e=” o b j e c t ”>
         <t y p e>
             <OMOBJ   >
                <OMA  >
                   < OMS b a s e=” h t t p : // c d s . omdoc . o r g / l o g i c s / c a s l / c a s l . omdoc”
                          module=” c a s l ” name=” f u n t y p e ” />
                   < OMS name=” Elem ” />
                   < OMS name=” Elem ” />
                   < OMS name=” Elem ” />
                </OMA  >
             </OMOBJ </ t y p e> c o n s t a n t>
                       >            </

        ...

    </ t h e o r y>
    <t h e o r y name=” CommutativeMonoid ” meta=” h t t p : // c d s . omdoc . o r g / l o g i c s / c a s l / c a s l . omdoc ? c a s l ”>
      <s t r u c t u r e name=” g n i m p 0 ” from=” ? Monoid ”>
          <open name=” Elem ” a s=” Elem ” />

        ...

 </omdoc>
The OMDoc Import/Export of Hets                                                                         German Research Center
Ewaryst Schulz                                                                                          for Artificial Intelligence
Same Name Same Thing Principle



  spec Monoid =
       sort Elem
       ops e : Elem;
              ∗ : Elem × Elem → Elem, assoc, unit e

  spec Commutative =
       sort Elem
       op     ∗ : Elem × Elem → Elem, comm

  spec CommutativeMonoid = Monoid and Commutative

     Elem from Monoid and from Commutative are identified!


The OMDoc Import/Export of Hets                  German Research Center
Ewaryst Schulz                                   for Artificial Intelligence
Same Name Same Thing Principle



  spec Monoid =
       sort Elem
       ops e : Elem;
              ∗ : Elem × Elem → Elem, assoc, unit e

  spec Commutative =
       sort Elem
       op     ∗ : Elem × Elem → Elem, comm

  spec CommutativeMonoid = Monoid and Commutative

     Elem from Monoid and from Commutative are identified!


The OMDoc Import/Export of Hets                  German Research Center
Ewaryst Schulz                                   for Artificial Intelligence
Same Name Same Thing Principle
   cont.

     Corresponding OMDoc fragment
 <t h e o r y name=” CommutativeMonoid ” meta=” h t t p : // c d s . omdoc . o r g / l o g i c s / c a s l / c a s l . omdoc ? c a s l ”>
   <s t r u c t u r e name=” g n i m p 0 ” from=” ? Monoid ”>
       <open name=” Elem ” a s=” Elem ” />
        ...
   </ s t r u c t u r e>
   <s t r u c t u r e name=” g n i m p 1 ” from=” ? Commutative ”>
       <c o n a s s name=” Elem ”>
           <OMOBJ    >
               <OMS name=” Elem ” />
           </OMOBJ     >
       </ c o n a s s>
        ...
   </ s t r u c t u r e>
 </ t h e o r y>



     name in open and conass interpreted in source-context of structure
     as, OMOBJ interpreted in current context



The OMDoc Import/Export of Hets                                                                     German Research Center
Ewaryst Schulz                                                                                      for Artificial Intelligence
Subsorts and Overloading


  spec Int =
       sorts Nat < Int; Elem
       ops 0 : Nat;
              + : Int × Int → Int;
              + : Nat × Nat → Nat;
              + : Elem × Elem → Elem;
              ∗ : Nat × Int → Int;
              ∗ : Int × Nat → Int
       vars x, y : Elem; n, m : Nat
       •x +y =y +x                                 %(commE)%
       •n+m=m+n                                    %(commN)%
       •n∗m=m∗n                                  %(commMult)%
  end

The OMDoc Import/Export of Hets         German Research Center
Ewaryst Schulz                          for Artificial Intelligence
Subsorts and Overloading cont.


      Corresponding OMDoc fragment
 <t h e o r y name=” I n t ” meta=” h t t p : // c d s . omdoc . o r g / l o g i c s / c a s l / c a s l . omdoc ? c a s l ”>
    ...
   <c o n s t a n t name=” + ” r o l e=” o b j e c t ”>
       <t y p e>
           <OMOBJ xmlns:om=” h t t p : //www . openmath . o r g /OpenMath”> . . .
               <OMA  >
                 <  OMS b a s e=” h t t p : // c d s . omdoc . o r g / l o g i c s / c a s l / c a s l . omdoc”
                         module=” c a s l ” name=” f u n t y p e ” />
                     <OMS name=” Elem ” />
                     <OMS name=” Elem ” />
                     <OMS name=” Elem ” />
               </OMA </OMOBJ </ t y p e> c o n s t a n t>
                      >           >             </
   <c o n s t a n t name=”%()% o v e r 1 : + ” r o l e=” o b j e c t ”>
       <t y p e> . . .</ t y p e> c o n s t a n t>
                                 </
   <n o t a t i o n f o r=”??%()% o v e r 1 : + ” r o l e=” c o n s t a n t ”>
       <t e x t v a l u e=” + ” />
   </ n o t a t i o n>
    ...
 </ t h e o r y>


      Encoding of overloaded names
      notation stores the original name
The OMDoc Import/Export of Hets                                                                             German Research Center
Ewaryst Schulz                                                                                              for Artificial Intelligence
What else?


  If you have further questions such as


     How can I use Hets for my project?
     How can I integrate my logic in Hets?
     Should I use XSLT to translate an OMDoc from logic A to logic B?
     How could I design an OMDoc interface for my tool?


  I can probably answer them...




The OMDoc Import/Export of Hets                       German Research Center
Ewaryst Schulz                                        for Artificial Intelligence

More Related Content

Viewers also liked (7)

Mobile Banking 2011: Clairmail
Mobile Banking 2011: ClairmailMobile Banking 2011: Clairmail
Mobile Banking 2011: Clairmail
 
Bab i ka ijaaaaaaaaaaaaaa
Bab i ka ijaaaaaaaaaaaaaaBab i ka ijaaaaaaaaaaaaaa
Bab i ka ijaaaaaaaaaaaaaa
 
Taller de autoestima. gestalt branden
Taller de autoestima. gestalt brandenTaller de autoestima. gestalt branden
Taller de autoestima. gestalt branden
 
Operating Systems Hardening
Operating Systems HardeningOperating Systems Hardening
Operating Systems Hardening
 
Www.raypcb.com tag-acidicetchingprocess.html
Www.raypcb.com  tag-acidicetchingprocess.htmlWww.raypcb.com  tag-acidicetchingprocess.html
Www.raypcb.com tag-acidicetchingprocess.html
 
Nordea Economic Outlook, September 2014
Nordea Economic Outlook, September 2014Nordea Economic Outlook, September 2014
Nordea Economic Outlook, September 2014
 
20110910「facebookで次の一歩」セミナー資料
20110910「facebookで次の一歩」セミナー資料20110910「facebookで次の一歩」セミナー資料
20110910「facebookで次の一歩」セミナー資料
 

Similar to The OMDoc Import/Export of Hets

Switch case and looping
Switch case and loopingSwitch case and looping
Switch case and looping
ChaAstillas
 

Similar to The OMDoc Import/Export of Hets (11)

Knee-deep in C++ s... code
Knee-deep in C++ s... codeKnee-deep in C++ s... code
Knee-deep in C++ s... code
 
An Introduction to PHP Dependency Management With Composer
An Introduction to PHP Dependency Management With ComposerAn Introduction to PHP Dependency Management With Composer
An Introduction to PHP Dependency Management With Composer
 
PyLadies Talk: Learn to love the command line!
PyLadies Talk: Learn to love the command line!PyLadies Talk: Learn to love the command line!
PyLadies Talk: Learn to love the command line!
 
Kotlin+MicroProfile: Enseñando trucos de 20 años a un nuevo lenguaje
Kotlin+MicroProfile: Enseñando trucos de 20 años a un nuevo lenguajeKotlin+MicroProfile: Enseñando trucos de 20 años a un nuevo lenguaje
Kotlin+MicroProfile: Enseñando trucos de 20 años a un nuevo lenguaje
 
RCEC Email 4.7.03 (b)
RCEC Email 4.7.03 (b)RCEC Email 4.7.03 (b)
RCEC Email 4.7.03 (b)
 
Enrich Your Models With OCL
Enrich Your Models With OCLEnrich Your Models With OCL
Enrich Your Models With OCL
 
Automated tests - facts and myths
Automated tests - facts and mythsAutomated tests - facts and myths
Automated tests - facts and myths
 
OSCON2014 : Quick Introduction to System Tools Programming with Go
OSCON2014 : Quick Introduction to System Tools Programming with GoOSCON2014 : Quick Introduction to System Tools Programming with Go
OSCON2014 : Quick Introduction to System Tools Programming with Go
 
Learning to Sample
Learning to SampleLearning to Sample
Learning to Sample
 
Switch case and looping
Switch case and loopingSwitch case and looping
Switch case and looping
 
Machine learning on Go Code
Machine learning on Go CodeMachine learning on Go Code
Machine learning on Go Code
 

Recently uploaded

Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
amitlee9823
 
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
amitlee9823
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
lizamodels9
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
dollysharma2066
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
lizamodels9
 

Recently uploaded (20)

Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
 
Business Model Canvas (BMC)- A new venture concept
Business Model Canvas (BMC)-  A new venture conceptBusiness Model Canvas (BMC)-  A new venture concept
Business Model Canvas (BMC)- A new venture concept
 
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMAN
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Uneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration PresentationUneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration Presentation
 
Falcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to ProsperityFalcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to Prosperity
 
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors Data
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 
Falcon Invoice Discounting platform in india
Falcon Invoice Discounting platform in indiaFalcon Invoice Discounting platform in india
Falcon Invoice Discounting platform in india
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Service
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
 
Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1
 
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communications
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
 
John Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdfJohn Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdf
 

The OMDoc Import/Export of Hets

  • 1. The OMDoc Import/Export of Hets Ewaryst Schulz DFKI Bremen, Germany http://www.informatik.uni-bremen.de/~ewaryst ewaryst.schulz@dfki.de Conferences on Intelligent Computer Mathematics 2010 Content Math Training Camp Paris, France 7th July 2010 The OMDoc Import/Export of Hets German Research Center Ewaryst Schulz for Artificial Intelligence
  • 2. The Hets System The OMDoc Import/Export of Hets German Research Center Ewaryst Schulz for Artificial Intelligence
  • 3. The Hets System Other Systems OMDoc OMDoc-based Services The OMDoc Import/Export of Hets German Research Center Ewaryst Schulz for Artificial Intelligence
  • 4. Hets Resources This Document: http://www.informatik.uni-bremen.de/~ewaryst/CMTC2010.pdf Hets: http://www.informatik.uni-bremen.de/agbkb/forschung/ formal_methods/CoFI/hets/ Hets Library: https://svn-agbkb.informatik.uni-bremen.de/Hets-lib/trunk/ Hets OMDoc Content Dictionaries: https://svn-agbkb.informatik.uni-bremen.de/Hets-OMDoc/ trunk/ContentDictionaries/ CASL: http://www.informatik.uni-bremen.de/cofi/wiki/ The OMDoc Import/Export of Hets German Research Center Ewaryst Schulz for Artificial Intelligence
  • 5. CASL Specification library Basic/Algebra I spec Monoid = sort Elem ops e : Elem; ∗ : Elem × Elem → Elem, assoc, unit e spec CommutativeMonoid = Monoid then op ∗ : Elem × Elem → Elem, comm spec Group = Monoid then ∀ x : Elem • ∃ x’ : Elem • x’ ∗ x = e %(inv Group)% ... Source: https://svn-agbkb.informatik.uni-bremen.de/Hets-lib/trunk/Basic/Algebra_I.casl The OMDoc Import/Export of Hets German Research Center Ewaryst Schulz for Artificial Intelligence
  • 6. Development Graph Development Graph of Algebra Library The OMDoc Import/Export of Hets German Research Center Ewaryst Schulz for Artificial Intelligence
  • 7. OMDoc Translation <omdoc v e r s i o n=” 1 . 6 ” name=” B a s i c / A l g e b r a I ”> <t h e o r y name=” Monoid ” meta=” h t t p : // c d s . omdoc . o r g / l o g i c s / c a s l / c a s l . omdoc ? c a s l ”> <c o n s t a n t name=” Elem ” r o l e=” t y p e ”> y p e> <t <OMOBJ > < OMS b a s e=” h t t p : // c d s . omdoc . o r g / l o g i c s / c a s l / c a s l . omdoc” module=” c a s l ” name=” s o r t ” /> </OMOBJ </ t y p e> c o n s t a n t> > </ <c o n s t a n t name=” ∗ ” r o l e=” o b j e c t ”> <t y p e> <OMOBJ > <OMA > < OMS b a s e=” h t t p : // c d s . omdoc . o r g / l o g i c s / c a s l / c a s l . omdoc” module=” c a s l ” name=” f u n t y p e ” /> < OMS name=” Elem ” /> < OMS name=” Elem ” /> < OMS name=” Elem ” /> </OMA > </OMOBJ </ t y p e> c o n s t a n t> > </ ... </ t h e o r y> <t h e o r y name=” CommutativeMonoid ” meta=” h t t p : // c d s . omdoc . o r g / l o g i c s / c a s l / c a s l . omdoc ? c a s l ”> <s t r u c t u r e name=” g n i m p 0 ” from=” ? Monoid ”> <open name=” Elem ” a s=” Elem ” /> ... </omdoc> The OMDoc Import/Export of Hets German Research Center Ewaryst Schulz for Artificial Intelligence
  • 8. Same Name Same Thing Principle spec Monoid = sort Elem ops e : Elem; ∗ : Elem × Elem → Elem, assoc, unit e spec Commutative = sort Elem op ∗ : Elem × Elem → Elem, comm spec CommutativeMonoid = Monoid and Commutative Elem from Monoid and from Commutative are identified! The OMDoc Import/Export of Hets German Research Center Ewaryst Schulz for Artificial Intelligence
  • 9. Same Name Same Thing Principle spec Monoid = sort Elem ops e : Elem; ∗ : Elem × Elem → Elem, assoc, unit e spec Commutative = sort Elem op ∗ : Elem × Elem → Elem, comm spec CommutativeMonoid = Monoid and Commutative Elem from Monoid and from Commutative are identified! The OMDoc Import/Export of Hets German Research Center Ewaryst Schulz for Artificial Intelligence
  • 10. Same Name Same Thing Principle cont. Corresponding OMDoc fragment <t h e o r y name=” CommutativeMonoid ” meta=” h t t p : // c d s . omdoc . o r g / l o g i c s / c a s l / c a s l . omdoc ? c a s l ”> <s t r u c t u r e name=” g n i m p 0 ” from=” ? Monoid ”> <open name=” Elem ” a s=” Elem ” /> ... </ s t r u c t u r e> <s t r u c t u r e name=” g n i m p 1 ” from=” ? Commutative ”> <c o n a s s name=” Elem ”> <OMOBJ > <OMS name=” Elem ” /> </OMOBJ > </ c o n a s s> ... </ s t r u c t u r e> </ t h e o r y> name in open and conass interpreted in source-context of structure as, OMOBJ interpreted in current context The OMDoc Import/Export of Hets German Research Center Ewaryst Schulz for Artificial Intelligence
  • 11. Subsorts and Overloading spec Int = sorts Nat < Int; Elem ops 0 : Nat; + : Int × Int → Int; + : Nat × Nat → Nat; + : Elem × Elem → Elem; ∗ : Nat × Int → Int; ∗ : Int × Nat → Int vars x, y : Elem; n, m : Nat •x +y =y +x %(commE)% •n+m=m+n %(commN)% •n∗m=m∗n %(commMult)% end The OMDoc Import/Export of Hets German Research Center Ewaryst Schulz for Artificial Intelligence
  • 12. Subsorts and Overloading cont. Corresponding OMDoc fragment <t h e o r y name=” I n t ” meta=” h t t p : // c d s . omdoc . o r g / l o g i c s / c a s l / c a s l . omdoc ? c a s l ”> ... <c o n s t a n t name=” + ” r o l e=” o b j e c t ”> <t y p e> <OMOBJ xmlns:om=” h t t p : //www . openmath . o r g /OpenMath”> . . . <OMA > < OMS b a s e=” h t t p : // c d s . omdoc . o r g / l o g i c s / c a s l / c a s l . omdoc” module=” c a s l ” name=” f u n t y p e ” /> <OMS name=” Elem ” /> <OMS name=” Elem ” /> <OMS name=” Elem ” /> </OMA </OMOBJ </ t y p e> c o n s t a n t> > > </ <c o n s t a n t name=”%()% o v e r 1 : + ” r o l e=” o b j e c t ”> <t y p e> . . .</ t y p e> c o n s t a n t> </ <n o t a t i o n f o r=”??%()% o v e r 1 : + ” r o l e=” c o n s t a n t ”> <t e x t v a l u e=” + ” /> </ n o t a t i o n> ... </ t h e o r y> Encoding of overloaded names notation stores the original name The OMDoc Import/Export of Hets German Research Center Ewaryst Schulz for Artificial Intelligence
  • 13. What else? If you have further questions such as How can I use Hets for my project? How can I integrate my logic in Hets? Should I use XSLT to translate an OMDoc from logic A to logic B? How could I design an OMDoc interface for my tool? I can probably answer them... The OMDoc Import/Export of Hets German Research Center Ewaryst Schulz for Artificial Intelligence