[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-694793-105":59,"doc-detail-694793-en":130,"doc-similar-694793":162},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","a-new-approach-to-the-semantics-of-model-diagrams-paper","A New Approach to the Semantics of Model Diagrams - Paper","","A formal semantics for model diagrams is proposed to address the common gap between diagram-based design and executable code. Model and instance (class and object) diagrams are encoded as first-level entities in expressive programming via type theory. The semantics is compositional and self-describing, enabling metacircular behavior and reflexive reasoning. Type-theoretic encoding supports proving model transformations correct and yields diagrams that become immediately usable through an implementation of the type theory.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/a-new-approach-to-the-semantics-of-model-diagrams-paper/694793/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/a-new-approach-to-the-semantics-of-model-diagrams-paper/694793.png","ImageObject",300,407,{"name":92,"@type":93},"Blitz","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-12-01","2026-11-10",true,{"@type":102,"interactionType":103,"userInteractionCount":24},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Why are model diagrams often considered less effective than code?","Question",{"text":112,"@type":113},"Most engineers abandon diagrams after the design phase, leaving real work in code and making external documentation quickly fall out of date.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does the paper relate diagrams to type theory?",{"text":117,"@type":113},"It proposes translating model diagrams into a linear notation that can be completely formalized in an expressive programming language such as intuitionistic type theory or the calculus of constructions.",{"name":119,"@type":110,"acceptedAnswer":120},"What advantages does the proposed semantics provide for engineering and transformations?",{"text":121,"@type":113},"The semantics is compositional and self-describing, and it supports proving model transformations correct in type theory, making models immediately useful when type theory is implemented.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},694793,1794347813,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":24,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":19,"preview_urls":145},24464137899374,"https://us-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","A new approach to the semantics of model diagrams  \nJohan G. Granström  \nGoogle  \nBrandschenkestrasse 110  \n8002 Zürich, Switzerland  \ngeorg.granstrom@acm.org  \nDepartment of Computer Science  \nKing’s College London  \nStrand, London, WC2R 2LS, U.K.  \n~~ Abstract ~~  \nSometimes, a diagram can say more than a thousand lines of code. But, sadly, most of the time, software engineers give up on diagrams after the design phase, and all real work is done in code. The supremacy of code over diagrams would be leveled if diagrams were code. This paper suggests that model and instance diagrams, or, which amounts to the same, class and object diagrams, become ﬁrst level entities in a suitably expressive programming language, viz., type theory.  \nThe proposed semantics of diagrams is compositional and self-describing, i.e., reﬂexive, or metacircular. Moreover, it is well suited for metamodelling and model driven engineering, as it is possible to prove model transformations correct in type theory. The encoding into type theory has the additional beneﬁt of making diagrams immediately useful, given an implementation of type theory.  \n1998 ACM Subject Classiﬁcation D.2.2 Design Tools and Techniques, F.3.2 Semantics of Programming Languages.  \nKeywords and phrases model diagram, modelling, metamodelling, semantics, compositionality, self-description, metacircularity, reﬂexivity, universal model, MOF, UML.  \nDigital Object Identiﬁer 10.4230/LIPIcs.TYPES.2011.28  \n 1  Introduction  \nmodel diagram  \ndiagrams  \n~~o ~~ttrwanos-waylation  \ntype theory  \n  two-way translation  \n\n| ~~ /~~ |\n| --- |\n| ~~ /~~\u003Cbr>i : I (m) |\n\nm : M  \n Figure 1 A modelling language (M, I) with corresponding model and instance diagrams.  \nThe semantics of visual modelling languages, such as UML class diagrams, is surrounded by much confusion [21] . On the other hand, much is gained from using diagrams, as the same diagram can be understood to diﬀerent degrees and from diﬀerent angles by collaborators. In addition, with today’s rapidly changing codebases, any documentation external to code is doomed to soon be out of date [30] . Consequently, documentation, in the form of diagrams, that is guaranteed to be in synch  \nwith code, because it is code, is worth much more than mere documentation.  \n© Johan G. Granström;  \nlicensed under Creative Commons License ND  \n18th International Workshop on Types for Proofs and Programs (TYPES 2011) .  \nEditors: Nils Anders Danielsson, Bengt Nordström; pp. 28–40  \nLeibniz International Proceedings in Informatics  \n Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany  \nJohan G. Granström 29  \nModel diagrams can be translated to linear notation (Figure 1 and Sect. 4), and this linear notation can be completely formalized (Sect. 5) in a suitably expressive programming language like intuitionistic type theory [24, 16] or the calculus of constructions [8] . A beneﬁt of translating into an expressive language is that model transformations can be proved correct [29, 14] . In addition, a direct translation into an executable language, such as type theory, has the pragmatic value of making models immediately useful when programming.  \nOne important property of the suggested translation, from diagrams to linear notation, is that the resulting semantics is compositional. That is, a small addition to the diagram cannot give rise to a large change in its meaning. For example, the notion of inheritance is diﬃcult to understand compositionally, as adding an inheritance relation between two classes (a small addition) may create an inheritance cycle (a large change in meaning) . This phenomenon is further discussed in Sect. 8, and the modelling language of Figure 9 uses generalisation instead of inheritance to preserve compositionality.  \nThe translation from diagrams to type theory will ﬁrst be applied to a simple modelling language (Figure 4) with only three notions, and then to a less simple language (Figure 9) . Both of these ","cbCaieF8JUqY52o4","https://ap.wps.com/l/cbCaieF8JUqY52o4","pdf",450025,13,"English","# Introduction\n# Self-describing modelling languages","[{\"question\":\"Why are model diagrams often considered less effective than code?\",\"answer\":\"Most engineers abandon diagrams after the design phase, leaving real work in code and making external documentation quickly fall out of date.\"},{\"question\":\"How does the paper relate diagrams to type theory?\",\"answer\":\"It proposes translating model diagrams into a linear notation that can be completely formalized in an expressive programming language such as intuitionistic type theory or the calculus of constructions.\"},{\"question\":\"What advantages does the proposed semantics provide for engineering and transformations?\",\"answer\":\"The semantics is compositional and self-describing, and it supports proving model transformations correct in type theory, making models immediately useful when type theory is implemented.\"}]","A New Approach to the Semantics of Model Diagrams - Paper | PDF",33,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/6c4ed00b77b68464d1706f7824a4588c.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/c50bf265781c69c807589e8e0594e3ce.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/97e41235c751c008644f72aedfaf119a.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/4356b7b4ec0bc9add91e6a9124ed5661.webp",980,1268,{"list":163,"token":66},[164,171,178,184,190,197,203,209,216,222],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":169,"category_name":40,"create_tm":170},657263,"Compositional System Dynamics: The Higher Mathematics Underlying System Dynamics Diagrams & Practice","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975400948/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796233259&Signature=Z2itACYclT%2BtrhDUtTB2WetxWYU%3D","compositional-system-dynamics-the-higher-mathematics-underlying-system-dynamics-diagrams-practice",11,1792976466,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":40,"create_tm":177},86209,"Cover Semantics for Intuitionistic Modalities","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809389356/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796233259&Signature=O4U8eIwtLW90DP6OpvFOMxX6Wu4%3D","cover-semantics-for-intuitionistic-modalities",25,1784209487,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":29,"category_name":40,"create_tm":183},657258,"Compositional Modeling with Stock and Flow Diagrams - Authoring and Functorial Semantics Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975400904/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796233259&Signature=9UPgA9Sc0bQFZPwCyhyJn1z61Uc%3D","compositional-modeling-with-stock-and-flow-diagrams-authoring-and-functorial-semantics-overview",1792976457,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":52,"category_name":40,"create_tm":189},655739,"UML 2 Activity and Action Models - Part 5 - Partitions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975288585/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796233259&Signature=5nhyy72gJ0daTtaIR53xlS1cRI0%3D","uml-2-activity-and-action-models-part-5-partitions",1792963529,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":40,"create_tm":196},273459,"Executable Code Knowledge - Code as a Native, Validation-Carrying Knowledge Representation for AI Coding Agents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899938806/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796233259&Signature=DE5BsFRJO%2FoseMXwJk3chdkkdow%3D","executable-code-knowledge-code-as-a-native-validation-carrying-knowledge-representation-for-ai-coding-agents",18,1789471518,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":44,"category_name":40,"create_tm":202},505054,"Properties of Stable Model Semantics Extensions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229932021442/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796233259&Signature=9Yw7TvdmGGczt0I5zJeuYilBsWA%3D","properties-of-stable-model-semantics-extensions",1791087566,{"doc_id":204,"doc_title":205,"file_type":137,"home_preview_img_url":206,"slug":207,"view_count":39,"category_name":40,"create_tm":208},655681,"A Critical Analysis and Treatment of Important UML Diagrams Enhancing Modeling Power","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975287243/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796233259&Signature=2Hvu2P5fIHzZ0u%2FgzRuyyESYmfk%3D","a-critical-analysis-and-treatment-of-important-uml-diagrams-enhancing-modeling-power",1792963185,{"doc_id":210,"doc_title":211,"file_type":137,"home_preview_img_url":212,"slug":213,"view_count":214,"category_name":40,"create_tm":215},85941,"K-ESBMC: An Executable Formal Semantics of IEC 61131-3 Ladder Diagram for Validating Verifier Translations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809492640/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796233259&Signature=N%2BdVOUwuv77FKgK8casMKF385iA%3D","k-esbmc-an-executable-formal-semantics-of-iec-61131-3-ladder-diagram-for-validating-verifier-translations",26,1784207280,{"doc_id":217,"doc_title":218,"file_type":137,"home_preview_img_url":219,"slug":220,"view_count":139,"category_name":40,"create_tm":221},397837,"Belief Propagation in Monoidal Categories - Jason Morton - June 5, 2014","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229918995376/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796233259&Signature=NLEwHI156s4FQYTC1gehNxXKnHQ%3D","belief-propagation-in-monoidal-categories-jason-morton-june-5-2014",1790467214,{"doc_id":223,"doc_title":224,"file_type":137,"home_preview_img_url":225,"slug":226,"view_count":39,"category_name":40,"create_tm":227},655916,"UML 2.0 Sequence Diagrams' Semantics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975293992/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796233259&Signature=q2OGhLQjuGVf2Mwp7YIdzwWvhjs%3D","uml-20-sequence-diagrams-semantics",1792964803]