I help people and businesses turn technology into real value.
About me
I love technology and have been building software for most of my life. What drives me has never been technology for its own sake but what it makes possible: better decisions, more efficient ways of working, and solutions that make a real difference for the people using them.
Today I am SVP of Technology at InRule, where I shape how we use technology across our decision intelligence and process automation platforms. Before that I was CTO at Barium, the process automation company that is now part of InRule.
The last couple of years my focus has been on AI, especially generative AI, and finding out how and where it can create real value for our customers and not just be an impressive demo. AI opens up many possibilities but also comes with uncertainty and new challenges. I enjoy helping people navigate this and finding ways together to develop and improve their business.
Explaining complex things and making them understandable is something that I care deeply about. I have taught university courses, spoken at international conferences and spent much of my career as the bridge between technology and the people who run the business.
I have a strong technical background. I designed my first programming language as a teenager while working part-time at SAAB, and later earned a PhD in Computer Science at Chalmers University of Technology, researching program analysis and verification. As Vice President in the Quantitative Strategies group at Credit Suisse in London (which merged with UBS in 2023), I was one of the lead architects behind the platforms used to price the bank's financial products. I then worked on property-based and specification-driven testing at the research company QuviQ, and helped modernize SpeedLedger's cloud accounting platform. You can find my PhD thesis and other publications below.
I have a strong technical background and designed my first programming language as a teenager while working part-time at SAAB, and later earned a PhD in Computer Science at Chalmers University of Technology, researching program analysis and verification. As Vice President in the Quantitative Strategies group at Credit Suisse in London (which merged with UBS in 2023), I was one of the lead architects behind platforms used to price the bank's financial products. I then worked on property-based and specification-driven testing at the research company QuviQ, and helped modernize SpeedLedger's cloud accounting platform. You can find my PhD thesis and other publications below.
I live in the Gothenburg area in Sweden, and outside work I love to dance Balboa. If you visit Gothenburg, come dance at West Coast Jitterbugs!
Selected Talks
I love teaching and speaking! Here are some of the conference talks I have given.
Publications
Papers
Plugins for Structural Weakening and Strong Updates
Department of Computer Science and Engineering
Chalmers University of Technology
Abstract
We present a general way of making use of may- and must-alias information to achieve flow-sensitive type systems that allow for flow-sensitivity on the heap. In particular, we show how may-alias information can be used for a limited form of flow-sensitivity - structural weakening - that allows type changes on the heap that are compatible with the subtype hierarchy.
Further, we show how the combination of may- and must-alias information can be used to achieve strong updates, i.e., type changes on the heap that are not compatible with the subtype hierarchy, resembling the typical type rule for updates of variables in flow sensitive type systems.
This work has been enabled by the use of our plugin framework - a framework for parameterizing type systems over the results of abstract interpretations - that allows us to abstract away from the computation of the alias information. In addition, our successful use of the plugin mechanism to extract both may- and must-alias information shows its strength.
Abstract Interpretation Plugins for Type Systems
Springer-Verlag, LNCS 5140, 2008
Abstract
The precision of many type based analyses can be significantly increased given additional information about the programs' execution. For this reason it is not uncommon for such analyses to integrate supporting analyses computing, for instance, nil-pointer or alias information. Such integration is problematic for a number of reasons: 1) it obscures the original intention of the type system especially if multiple additional analyses are added, 2) it makes use of already available analyses difficult, since they have to be rephrased as type systems, and 3) it is non-modular: changing the supporting analyses implies changing the entire type system.
Using ideas from abstract interpretation we present a method for parameterizing type systems over the results of abstract analyses in such a way that one modular correctness proof can be obtained. This is achieved by defining a general format for information transferal and use of the information provided by the abstract analyses. The key gain from this method is a clear separation between the correctness of the analyses and the type system, both in the implementation and correctness proof, which leads to a comparatively easy way of changing the parameterized analysis, and making use of precise, and hence complicated analyses.
In addition, we exemplify the use of the framework by presenting a parameterized type system that uses additional information to improve the precision of exception types in a small imperative language with arrays.
Verification by Parallelization of Parametric Code
in honour of Professor Daniele Mundici on occasion of his 60th birthday
Springer-Verlag, LNCS 4460, 2007
Abstract
Loops and other unbound control structures constitute a major bottleneck in formal software verification, because correctness proofs over such control structures generally require user interaction: typically, induction hypotheses or invariants must be found or modified by hand. Such interaction involves expert knowledge of the underlying calculus and proof engine.
We show that one can replace interactive proof techniques, such as induction, with automated first-order reasoning in order to deal with parallelizable loops. A loop can be parallelized, whenever the execution of a generic iteration of its body depends only on the step parameter and not on other iterations.
We use a symbolic dependence analysis that ensures parallelizability. This guarantees soundness of a proof rule that transforms a loop into a universally quantified update of the state change information effected by the loop body. This rule makes it possible to employ automatic first-order reasoning techniques to deal with loops.
The method has been implemented in the KeY verification tool. We evaluated its applicability with representative case studies from the JavaCard domain.
Polymorphism, Subtyping, Whole Program Analysis and Accurate Data Types in Usage Analysis
Springer-Verlag, LNCS 4279, 2006
Abstract
There are a number of choices to be made in the design of a type based usage analysis. Some of these are:
- Should the analysis be monomorphic or have some degree of polymorphism?
- What about subtyping?
- How should the analysis deal with user defined algebraic data types?
- Should it be a whole program analysis?
Several researchers have speculated that these features are important but there has been a lack of empirical evidence.
In this paper we present a systematic evaluation of each of these features in the context of a full scale implementation of a usage analysis for Haskell. Our measurements show that all features increase the precision. It is, however, not necessary to have them all to obtain an acceptable precision.
Automating Verification of Loops by Parallelization
Springer-Verlag, LNCS 4246, 2006
Abstract
Loops are a major bottleneck in formal software verification, because they generally require user interaction: typically, induction hypotheses or invariants must be found or modified by hand. This involves expert knowledge of the underlying calculus and proof engine.
We show that one can replace interactive proof techniques, such as induction, with automated first-order reasoning in order to deal with parallelizable loops, where a loop can be parallelized whenever it avoids dependence of the loop iterations from each other.
We develop a dependence analysis that ensures parallelizability. It guarantees soundness of a proof rule that transforms a loop into a universally quantified update of the state change information represented by the loop body. This makes it possible to use automatic first order reasoning techniques to deal with loops.
The method has been implemented in the KeY verification tool. We evaluated it with representative case studies from the JavaCard domain.
Embedding Static Analysis into Tableaux and Sequent based Frameworks
Springer-Verlag, LNCS 3702, 2005
Abstract
In this paper we present a method for embedding static analysis into tableaux and sequent based frameworks. In these frameworks, the information flows from the root node to the leaf nodes. We show that the existence of free variables in such frameworks introduces a bi-directional flow, which can be used to collect and synthesize arbitrary information.
We use free variables to embed a static program analysis in a sequent style theorem prover used for verification of Java programs. The analysis we embed is a reaching definitions analysis, which is a common and well-known analysis that shows the potential of our method.
The achieved results are promising and open up for new areas of application of tableaux and sequent based theorem provers.
Theses
Combining and Strengthening Program Analysis and Verification
Technical Report 42D, ISSN 0346-718X
Department of Computer Science and Engineering
Chalmers University of Technology, 2008
Abstract
This thesis is about methods for establishing semantic properties of programs and how those methods can be strengthened. Finding (semi-)algorithms for deciding semantic properties is a non-trivial task and such algorithms will, by necessity, give approximate answers. This means that for any property of interest, there is a spectrum of algorithms computing answers to various degrees of precision, ranging from computationally cheap, low-precision algorithms to expensive, potentially non-terminating algorithms with very high precision. Finding approximations precise enough to be useful, and that at the same time make the algorithms cheap enough, is a real challenge.
In this thesis we consider program analysis and program verification, which are two approaches for establishing program properties with contrasting requirements regarding precision and cost. Program analysis consists of automatic and computationally cheap algorithms that terminate for all programs and whose prime usage is in situations where runtime is a major factor or where only limited resources are available. Program verification by deduction based on logic and theorem proving gives higher precision but is expensive and have no termination guarantee. It is often used in situations where it is more costly to modify the program than allowing the verification process more time and resources.
Common to these two approaches is the desire to move closer to the middle of the spectrum of algorithms. For algorithms formulated as program analyses, this means increasing their precision, and for algorithms formulated as program verifiers, it means making them terminate without user interaction for a larger set of programs.
The work presented in this thesis can be divided into three parts. The first part investigates the impact a number of features have on the precision of a type-based program analysis for Haskell. The results presented, make it easier for a designer of a type-based program analysis to choose what features to add to the analysis in order to get sufficiently high precision.
The second part concerns how program verification can be integrated with program analysis in order to make the verification cheaper and more automatic. We show how a program analysis can be embedded in the tactic language of a theorem prover to allow for a close integration of program analysis and verification. We also show, in particular, how a dependence analysis can be used in a theorem prover for Java to make the handling of loops more automatic.
The third part concerns how type-based program analysis can be strengthened by plugging in additional, externally computed information. We do this by presenting a modular method for parameterizing type-based program analyses over information about the analyzed program's execution. The parameterization is done in such a way that a modular proof of correctness is obtained, removing the need to prove correctness of each instantiation separately. We also show how our method of parameterization can be used to allow for flow-sensitive heap types by plugging in alias information.
Static Analysis and Deductive Verification of Programs
Department of Computer Science and Engineering
Chalmers University of Technology, 2006
Abstract
This thesis is concerned with analysis of programs. Analysis of programs can be divided into two camps: static analysis and formal verification.
Static program analyses compute a result and terminate for all programs. Since virtually all interesting semantic properties are undecidable, a static program analysis needs to be approximative to ensure termination. When designing such an analysis it can be hard to know which features that have the largest impact on the precision and should be added. This is the subject of the first paper in this thesis in which we investigate the impact a number of features have on the precision of usage analysis.
Formal verification often refers to deductive verification based on logic and theorem proving. When verifying a property, the program and the property are both translated into logical formulas and a theorem prover is used to show that the property holds for the program. Formal verification is a much more precise and general purpose technique than static analysis. This does, however, not come for free. It is extremely hard to find good heuristics for guiding the automatic construction of proofs. Therefore, user interaction is often required which makes the verification very time consuming and expensive.
Static program analysis is limited by its approximative nature and program verification by its high cost. It is, therefore, interesting to try to combine the strengths of the two techniques. This can be done in both directions: by letting a static program analysis use a theorem prover designed for program verification or letting a program verifier use a static program analysis. The latter combination is the subject of the second and third paper in this thesis.
We make the following contributions:
- We investigate the impact of a number of features on the precision of usage analysis.
- We show how a static program analysis can be embedded into a theorem prover.
- We show how interactive techniques for handling loops can sometimes be made automatic by using a dependence analysis.
A Case Study on the Scalability of a Constraint Solving Algorithm: Polymorphic Usage Analysis with Subtyping
Chalmers University of Technology, 2003
Abstract
It is commonly believed that polymorphic program analyses with subtyping are too computationally expensive to be feasible. Recent work has shown that a class of analyses having polymorphism and subtyping can be implemented in worst case cubic time. It is however unclear how often the worst case behaviour is exhibited in practice and it might be the case that they in practice are cheap enough to be feasible.
The aim of this thesis is to evaluate how a recently proposed constraint solving algorithm behaves in practice on real world programs. In order to do so a type based polymorphic usage analysis with subtyping is designed for a real world functional language. Previous usage analyses have either been designed for toy languages or have not been equipped with both subtyping and full-blown polymorphism. The analysis handles the complete language Core which is the intermediate language of the Glasgow Haskell Compiler.
The analysis has been implemented and used to analyse a number of programs taken from the "nofib" suite which is a standard test suite consisting of real world programs. The constraints generated from these programs have been used to measure the scalability of the constraint solving algorithm. The results of the measurements are promising but not conclusive, the constraint solving algorithm is shown to scale up for all but two tested programs.