Journal of King Saud University: Computer and Information Sciences (Apr 2025)
Perspectives of semantic modeling in categories
Abstract
Abstract This paper explores the domain of semantic modeling, emphasizing the thoughtful influence of category theory on imperative programming. We aim to present a formal semantics model by seamlessly integrating categorical concepts. A core focus of this study is clarifying relationships between objects representing the memory states as denotation functions. Extending our exploration, we examine categorical modeling within the context of structural operational semantics. An important aspect is the purposeful use of coalgebras to express program behavior, especially concerning memory configurations. Our methodology involves modeling denotation within categories, considering input/output values and state dynamics. This synthesis leads to a comprehensive and robust semantic framework. Notably, our research concludes with the development of a category tailored for memory configurations, effectively mirroring program transitions. Execution dynamics finds representation through a customized polynomial endofunctor, accommodating a range of transition types. Importantly, our study contributes mathematical rigor to the domain of program semantics, offering practical applications across various IT challenges, including recursive calculations, function relationships, and component program systems. Significantly, this study underscores the enduring relevance of category theory in the dynamic landscape of semantic modeling, offering insights into potential practical applications within programming and related fields.
Keywords