SynQ: Synchronous System Design with Quantitative Types: A Type Driven Approach for Synchronous System Design
2026 (English)Doctoral thesis, monograph (Other academic)
Abstract [en]
Embedded systems increasingly underpin a safer, more efficient, and more connected modern life. Consequently, the number of embedded systems is growing, and so is the functionality they provide. This situation challenges the design and verification of embedded systems, especially the safety-critical ones, such as those in automotive, aerospace, and healthcare domains. It thus requires a system design process to be more automated and formally accountable/rigorous. The former allows the process to be more efficient and applicable to increasingly complex systems, while the latter allows the process to be more transparent and trustworthy for safety-critical systems. These two requirements for a design process are consistently satisfied in a modern, type-theory-based language/proof assistant that is increasingly accommodating general-purpose programming. Such a language allows computations and formal logic to be harmoniously combined in the type theory it implements. The computational aspect enables both executable models and applicable design steps to be defined in the language, which facilitates the design automation. Meanwhile, the logical aspect allows desired properties of the system and design steps to be formally specified and verified in the language, which promotes the accountability of a design process. Taken together, such a language and type theory can serve as an ideal meta-theory for such an aforementioned design process.
Motivated by the above, this monograph explores how Idris2, a quantitative type theory-based (QTT-based) language, can support formally accountable design processes for synchronous systems, a class of embedded systems commonly used in safety-critical signal-processing and control applications. Specifically, this monograph presents a component-based design framework, centred on the embedded domain-specific language SynQ (Synchronous System Design with Quantitative Types), in Idris2 for synchronous systems. By leveraging the tagless final embedding and the expressiveness of Idris2, especially its quantitative type system, the design framework: (1) allows stateful, black-box components to be safely used in a design process and be reasoned about in QTT; (2) allows systems to be modelled as function-like terms while being mapped to their implementations on different platforms by Idris2 functions; and (3) allows design transformations on system models to be defined as Idris2 functions. The first point guarantees that the design framework is compatible with common design practices. Meanwhile, the second and third points allow the entire design framework, including both system models and design steps (transformation and implementation-steps), to be defined in Idris2 and verified in QTT. With all these features, the design framework allows both the computational and logical aspects of Idris2 to be leveraged to deliver a formally accountable design process for synchronous systems. This monograph thus demonstrates how a modern type theory-based language can be leveraged for synchronous system design, and forms a step towards system design automation in general.
Abstract [sv]
Inbyggda system utgör i allt högre grad grunden för ett säkrare, effektivare och mer uppkopplat modernt liv. Följaktligen ökar antalet inbyggda system, liksom den funktionalitet de tillhandahåller. Denna situation ställer krav på utformningen och verifieringen av inbyggda system, särskilt de säkerhetskritiska, såsom de som används inom fordons-, flyg- och rymdindustrin samt inom hälso- och sjukvården. Det kräver därför att systemutformningsprocessen blir mer automatiserad och formellt redovisningsbar/rigorös. Det förstnämnda gör att processen kan bli mer effektiv och tillämplig på allt mer komplexa system, medan det sistnämnda gör att processen kan bli mer transparent och tillförlitlig för säkerhetskritiska system. Dessa två krav på en designprocess uppfylls konsekvent i ett modernt, typteoribaserat språk/bevisassistent som i allt högre grad anpassar sig till allmän programmering. Ett sådant språk gör det möjligt att harmoniskt kombinera beräkningar och formell logik i den typteori som det implementerar. Den beräkningsmässiga aspekten gör det möjligt att definiera både exekverbara modeller och tillämpliga designsteg i språket, vilket underlättar designautomatiseringen. Samtidigt gör den logiska aspekten det möjligt att formella specificera och verifiera önskade egenskaper hos systemet och designstegen i språket, vilket främjar ansvarsskyldigheten i en designprocess. Sammantaget kan ett sådant språk och en sådan typteori fungera som en idealisk metateori för en sådan ovannämnd designprocess.
Motiverat av ovanstående undersöker denna monografi hur Idris2, ett kvantitativt typteoribaserat (QTT-baserat) språk, kan stödja formellt ansvarsfulla designprocesser för synkrona system, en klass av inbyggda system som vanligtvis används i säkerhetskritiska signalbehandlings- och styrapplikationer. Mer specifikt presenterar denna monografi ett komponentbaserat designramverk, centrerat kring det inbäddade domänspecifika språket SynQ (synkron systemdesign med kvantitativa typer), i Idris2 för synkrona system.Genom att utnyttja den tagglösa slutliga inbäddningen och uttrycksfullheten i Idris2, särskilt dess kvantitativa typsystem, gör designramverket att: (1) tillståndsbaserade black-box-komponenter säkert kan användas i en designprocess och analyseras i QTT; (2) gör det möjligt att modellera system som funktionsliknande termer samtidigt som de mappas till sina implementationer på olika plattformar genom Idris2-funktioner; och (3) gör det möjligt att definiera designtransformationer på systemmodeller som Idris2-funktioner. Den första punkten garanterar att designramverket är kompatibelt med vanliga designmetoder. Samtidigt gör den andra och tredje punkten det möjligt att definiera hela designramverket, inklusive både systemmodeller och designsteg (transformations- och implementeringssteg), i Idris2 och verifiera det i QTT. Med alla dessa funktioner gör designramverket det möjligt att utnyttja både de beräkningsmässiga och logiska aspekterna av Idris2 för att leverera en formella redovisningsbar designprocess för synkrona system. Denna monografi visar således hur ett modernt typteoribaserat språk kan utnyttjas för design av synkrona system och utgör ett steg mot automatisering av systemdesign i allmänhet.
Place, publisher, year, edition, pages
Stockholm: KTH Royal Institute of Technology, 2026. , p. xxii, 175
Series
TRITA-EECS-AVL ; 2026:73
Keywords [en]
Embedded System Design, Embedded Domain-Specific Language, Synchronous Systems, Idris2, Quantitative Type Theory
Keywords [sv]
Design av inbyggda system, Inbyggt domänspecifikt språk, Synkrona system, Idris2, Kvantitativ typteori
National Category
Embedded Systems
Research subject
Information and Communication Technology
Identifiers
URN: urn:nbn:se:kth:diva-390731ISBN: 978-91-8106-687-6 (print)OAI: oai:DiVA.org:kth-390731DiVA, id: diva2:2110198
Public defence
2026-11-09, https://kth-se.zoom.us/j/62859759618, F3 (Flodis), Lindstedtsvägen 26 & 28, Stockholm, 13:00 (English)
Opponent
Supervisors
Note
QC 20261014
2026-10-142026-10-142026-10-19Bibliographically approved