Skip to content
Formal Methods as Agent Guardrails episode artwork

May 19, 2026 48 min

Formal Methods as Agent Guardrails

from Software Engineering Daily

Formal methods are a branch of mathematics and computer science focused on proving the correctness of systems, and they have long promised a more rigorous foundation for software. However, their complexity has kept them confined to a small community of specialists. That is now changing as agentic AI systems take on increasingly autonomous roles. The question of how to define, enforce, and verify what those agents are allowed to do has become urgent, and automated reasoning is emerging as a critical part of the answer. Byron Cook is a VP and Distinguished Scientist at AWS, a professor at University College London, and a program manager at DARPA. He founded the Automated Reasoning Group at AWS over a decade ago, where his team built the foundations behind products like IAM Access Analyzer, VPC Reachability Analyzer, and Bedrock Guardrails. In this episode, Byron joins Sean Falconer to discuss how automated reasoning works and why it scales so well with AI, the rise of neurosymbolic approaches that combine formal logic with large language models, what it means to formally specify agent behavior using temporal logic, and why the convergence of agentic AI and formal methods may represent one of the most significant shifts in how software is built and verified. Sean’s been an academic, startup founder, and Googler. He has published works covering a wide range of topics from AI to quantum computing. Currently, Sean is an AI Entrepreneur in Residence at Confluent where he works on AI strategy and thought leadership. You can connect with Sean on LinkedIn. Please click here to see the transcript of this episode. Sponsorship inquiries: [email protected] The post Formal Methods as Agent Guardrails appeared first on Software Engineering Daily.

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

Formal Methods as Agent Guardrails

0:00 48:32
of matches

Transcript Auto-generated, may contain errors

Formal methods are a branch of mathematics and computer science focused on proving the correctness of systems, and they have long promised a more rigorous foundation for software. However, their complexity has kept them confined to a small community of specialists. That is now changing as agentic AI systems take on increasingly autonomous roles. The question of how to define, enforce, and verify what those agents are allowed to do has become urgent, and automated reasoning is emerging as a critical part of the answer. Byron Cook is a VP and distinguished scientist at AWS, a professor at University College London, and a program manager at DARPA.

He founded the Automated Reasoning Group at AWS over a decade ago, where his team built the foundations behind products like IM Access Analyzer, VPC Reachability Analyzer, and Bedrock Guardrails. In this episode, Byron joins Sean Falconer to discuss how automated reasoning works and why it scales so well with AI, the rise of neurosymbolic approaches that combine formal logic with large language models, what it means to formally specify agent behavior using temporal logic, and why the convergence of agentic AI and formal methods may represent one of the most significant shifts in how software is built and verified. This episode is hosted by Sean Falconer. Check the show notes for more information on Sean's work and where to find him.

Byron, welcome to the show. Thank you very much. Thanks for having me. Yeah, absolutely. Looking forward to this. So we're going to probably cover a lot of ground today. You've had a pretty rich history. But one of the things I wanted to start off with was, so you're a VP and distinguished scientist at AWS. You've been there over 11 years. You're also a professor at UCL and a PM for DARPA. So my first question, I guess, was like, how is all that possible? This is a lot of jobs to balance. How do you manage wearing those three different hats simultaneously? Cognitively, they're kind of the same job. I think in each role, I'm trying to identify.

really big things that other people can't wrap their head around that maybe they don't think are possible. I'm trying to move that seemingly impossible to the possible and then trying to de-risk that. So like either trying to establish basis for confidence or prototype stuff. And that often involves getting people in the orbit of the scientific world and the startup world and the university world to like find the right people with the right tools to like prototype something and then simultaneously write. some sort of report or some sort of PowerPoint document or something, something in the language of the institution to help them appreciate what's possible and to give your leaders a lever to pull on, to prioritize these kinds of things. And so it's all kind of the same. Like it's sort of like the difference between Spanish and Portuguese. You're using slightly different nouns and verbs, but largely they're in the Indo-European family of languages. And so you're kind of doing the same thing in these large organizations. They all kind of speak the same language. So, and then even if I'm in Amazon, I'm at any given time have three or four things going on, some sort of context switching between those things. Anyways. Was that something that you were always interested in trying to tackle these types of problems that seem impossible? I saw my father.

work between institutions and basically see the community as his stakeholders or his customers or the people he was working with and sort of cross organizational boundaries and then i like in my life i'm working on cars or doing music or these kinds of things people sort of are floating in and out of organizations and you're sort of trying to solve problems together so i've always kind of seen the organizational boundaries as relatively porous and then i got really interested in logic and it's a very small crowd of people so there's maybe 3 000 people in the world who specialize in this area and so we're always at different institutions different places meeting up with each other and then it's kind of like bands like you tend to like with three or four people realize there's something really cool to go after you go after it for two or three papers. And then kind of after that, then people often kind of drift off and do the next thing. And so to me, it's very fluid. And the particular details of the organization don't really matter. I'm just usually being the place that's sort of the best place for me to be in to help the community figure out the household problems. Yeah. And one of these things is one of the kind of seemingly impossible things that you were able to kind of show was potentially possible was around, essentially, you built a tool that could automatically prove whether certain types of programs could terminate and making a significant contribution essentially to the halting problem. I guess, like, what made you believe that something like that was solvable given that?

I say like conventional wisdom and even Alan Turing said otherwise. Yeah. So there is a theorem that the problem is undecidable. That's a very meaningful result, right? That means that you cannot build a tool that can take any program in as an input and always itself terminating with an answer and always giving a right answer. You have to cut a corner somewhere. And so you can cut the corner by saying, well, relax. The restriction always has to give an answer. We'll be okay with maybe the tool not giving an answer from time to time. And then we'll just say, well, maybe we can get that the occurrences of it not giving an answer down to some level where we're actually still getting value from the tool.

And so that's sort of reframing. The theoretical result from Gödel and Turing is fundamental and absolutely staggering. But on the other hand, there's lots of things that are unsafe that we do all the time. Driving is unsafe, but we get in the car and if we get to our destination, then we know we got there safely. And so the insight around that area is really interesting. I was actually working in the Windows kernel team and I was carpooling with a person who's a developer in the Windows kernel team. And he kept, when we're talking about things that should hold of the kernel, he kept using the word eventually, like if this happens, that eventually should happen. And I realized that was like, that is the termination question. It's like termination and the word eventually sort of happen.

there's a theoretical result that sort of connects them to saying they're essentially the same thing. And so I realized that was an important problem. And then I began thinking about what tools can we put together from existing pieces we already had to do something quite quickly for device drivers. And then that was successful. And then that turned into reasoning about biological systems and it turned into reasoning about non-blocking concurrency and so on. Yeah. And was the original focus on device drivers, was that partly motivated because at that time, like device drivers was one of the biggest culprits of assistive failures in operating systems? Yeah. So in the 1980s, if your computer crashed, you just, you know, like, well, it's sad you lost your little word processing document or whatever you're working on. But as we went to data centers, the

The difference between crashing and not crashing was sort of the difference between the customer choosing your product or not. So it became important to root out those crashes. And it turned out that in the early 2000s, 85% of crashes in the operating systems were actually due to device drivers. So it became an important problem to work on. Wow. Yeah, yeah. Talk about that. You saw that as a high ROI, I guess. And they were really neat because the device drivers were not actually that big. You know, they're like 80, 200,000 lines of code or 80,000 lines of code. You know, they'd have like 60 loops. The data structures they were operating over were actually relatively simple. They were cyclic doubly linked lists. So in many ways, it was actually a slightly...

it was an easier problem than the more general problem. So then we were able to do some really neat things that kind of were attuned to that domain, which sort of allowed us to bypass some of the, not theoretically, but we practically bypassed some of those challenges around undecidability. Yeah, so in a lot of ways, you're bounding this unbounded problem, right, to a more specific class of the problem? Yeah, you can't solve the problem in generality. So you're going to have to identify niche areas where, while it's still my timeout from time to time, it's not going to time out enough to cause sufficient pain to the person using it for their niche domain. And the only hope is to get as close as you can to the person.

with the understanding of the niche problem to kind of understand the dynamics of the problem. So that happened again with reasoning about genetic regulatory pathways, where I was like, oh, I see. So usually they have the shape and usually they're of the size. Usually they're asking this kind of question. So actually we can do something that 95% of the time is actually going to give them an answer. And maybe 5% of the time it says, sorry, I can't answer the question, but. Okay. So you founded the automated reasoning group at AWS like over a decade ago. What was that original pitch to the Amazon leadership for them to be excited and want to believe in this? Let's see. So I had kind of exhausted.

I mean, I'd written all the research papers. You know, I was like, how much more can I do in this ivory tower research environment that I was in at the time? So I was sort of looking for a place to go where I could maybe have more breathtaking impact with the work I was doing. I actually sort of, I went and talked to a bunch of potential employers and kind of figured out which one I would want to work for. And I think that AWS was pretty happy to have me because they, it was pretty risk-free, right? Like I was going to join, they're only hiring one person. I report directly to CISO. I think if it didn't work out, then I would exit. I would imagine that would be the discussion that they were having. Like how risky is this hire? And then what Amazon, I think does a really good job of.

traditionally is incrementally investing in things that are working. So they look for signs of direction of change on things that are going well. And they have a whole language around year over year change and so on. So they look for bets that are going well and then they continue to feed the bets and like double down on bets. And so it's a whole calculus of what to double down on and how to prioritize things. So once I got in the system, then Amazon just naturally went through its mechanisms of prioritization and it just grew like a weed, really. You know, given that like AWS runs critical infrastructure for millions of customers, like going back to some of your work with like the drivers and sort of proving whether they can run successfully or not, like are there a similar class of problems around IM policies and network configs and things where if you mess those up?

it can go really bad as someone operating this type of infrastructure. Is there a way to essentially apply some of your work to those areas? Yeah, so that's what we did. So when I first joined, I identified, you know, I went and chatted with a bunch of people and looked at a bunch of documentation and kind of identified the top 20 security concerns or issues or close calls and so on, and then prioritize them by what I thought the kinds of things that I had done in the past could help on. I identified four or five of them, hired a few of my friends, and then we kind of went after them. And so, yeah, you identified two of them. So that one is reasoning about the semantics of AWS policies. Another one is the...

virtual networks, because if you get those wrong, then you're going to have a really bad day. And then we also worked on low-level code, like virtualization and cryptography. And then we also worked on distributed systems protocols. So how do you, for example, maintain secrets across a distributed system such that they're highly available and durable and so on? So the thinking around protocols and distributed systems was another area. And then each one we went after with great gusto. And then the idea is that if any one of those projects were successful, then we'd be a successful one. Fortunately, but unfortunately, they were actually all successful. So then I spent two or three years really holding on to many high-voltage wires as I was trying to get each of those projects kind of, they were all quite hungry to move to the next level.

I kind of found myself to be the bottleneck on the communication around how to grow those things and how to get them into the right place. It took me a couple of years to get out of that. Yeah, how's that work? I'm assuming like your team and yourself, you know, especially when you were essentially an IC functioning in this role until you hire some of your friends and so forth. You're sort of doing this as this like research project, I assume. And then maybe you're doing the proofs. Maybe there's POC involved. How do you go from that essentially to this thing running a production and serving millions of people? So one piece of advice I got when I first started was the person was like, hey, you know, I get in the previous employers, you've gone for these moonshots, right? These crazy big things. But what you want to do here is you want to find a moonshot ladder, right? You want to find.

Every quarter, every six months, you want to deliver something that if people don't have any context on your bigger picture while you're doing it, what's possible. In fact, you probably don't even want to tell them the bigger picture. Deliver that. But then you know that each piece, each delivery sort of adds up to the bigger moonshot that you're going after. And so focus on it that way. And Amazon is a very sort of show me kind of place where people kind of believe it when they see it. So rather than talking about what you can do, deliver something maybe a lot smaller than you normally would. Build trust through that and then iterate, iterate, iterate. And so the projects that we were very successful on were those that we were able to break up the bigger moonshot into a much smaller set of steps. And for those that we weren't able to...

they languished. And it was only once we'd sort of built trust and built momentum on some of these others that we were able to come back to this bigger things and take them on again. That makes sense. Just even my experience having worked at a variety of different startups, when you kind of start a new role, a lot of times it's like, how do you build something big, but also how do you show value as soon as possible? And it's much easier to do that with a smaller, more constrained project. And then as you build trust, people kind of believe in maybe the bigger thing and the longer term of deliverable. Yeah, exactly. Is there any challenges around from an engineering perspective where when you're thinking about like formal verification, you're doing that sort of in the lab?

That doesn't necessarily need to be as fast as it might need to be when you're actually delivering this type of stuff in production. Is there ever a challenge there where the formal verification perhaps in the lab environment is slow and how do you sort of engineer it to something that can run in production at scale? There's actually another problem that's bigger. I'll answer your first question, but then I'll address the other question that's actually more on my mind. So in the lab, you're often relatively limited to the resources you have. You have maybe a couple of grad students and a few laptops or something like that, right? Like these days, maybe you have a bit of cloud, but you don't really have the sort of resources you would have. So it turns out there's not been a lot of science, but the science is really interesting and growing on how to distribute formal reasoning.

So there's a thing, for example, called Malib Mono, where they distribute propositional set of liability solving. It's really powerful. And if you have a cloud scale, like a team to operate a cloud service, and you have the sort of resources you have at AWS to run big machines, then suddenly, actually, it's much, much faster. So the performance of the reasoning isn't the big gotcha, and it's getting faster and faster, and I'm not worried about that. What is a problem, though, is scaling the... So whenever you're doing reasoning about systems, you A, have to articulate what you want to hold of the system.

Like, is it all data that rest is encrypted? Is it we never log credentials? Is it, like, what property do you want to hold of the system? And you have to do that in a way where you get the details right and you have to do it in a relatively rigid setting. You have to, like, use a temporal logic or something like that to express it. And there's a very limited number of people who can do that. And then the other piece is that you have to be tasteful about what you're not going to prove, right? You're not going to go and prove the correctness of the language runtime, the compiler, the microprocessor the program is running on. So you have to basically build assumptions that the reasoning relies on. And making those decisions and articulating those, it's a lot about how you do the encoding such as the tools.

work. And again, that's a fairly small set of people who can do that. So I'd say the big challenge. Oh, and then culturally, your average person knows about formal reasoning is not going to be very Amazonian, if you will, right? There's a big cultural gap between people who are relatively rigid logic. When they looked at a lot of opportunities in the world, they said, no, I'm going to do mathematical logic instead. So what interests them and what drives them is really different than what you're going to find with a person who would join Amazon because they're interested in the cloud or other dimensions. So culturally, they're a little bit different. So bringing all those pieces together, finding a manager who can run scientists who understands Amazon, but also understands the science community. And then another big one is finding people who can

drive the tools or do the encoding. And thankfully, the problem around the encoding is with AI tools these days actually is getting dramatically easier. So with the idea of neurosymbolic AI, where you combine formal reasoning with the neuro-inspired techniques like transformer models, suddenly you have ideas of auto-formalization. And there's a whole bunch of new building blocks that we can use to really scale this activity out. And so that's actually turned out to be tremendously helpful quite recently. Yeah, I wanted to get into the neurosymbolic AI, which you mentioned there. But I guess for the audience that's probably not necessarily super familiar with it, what is sort of the definition of that area?

Is the neural essentially just you're leveraging LLMs in this case, and that kind of is serving as the neural layer, and then you're combining that with sort of more traditional symbolic reasoning? I mean, you're probably going to pull five experts in there, and they're probably going to argue about the definition. But broadly speaking, in my mind, it's the combination of a symbolic where you're pushing symbols to represent the infinite. You're like x less than y is the set of all pairs of integers, if you will, such that the first is less than the second, right? So that's an infinite set. So when you begin talking about...

formulae with variables and you're sort of pushing symbolic formulae, you're doing symbolic reasoning. So that's the symbolic of neuro-symbolic. And then the neuro is these, yeah, these sort of, I mean, LLMs is absolutely classic. That's the big hot thing right now, right? For sure. But more statistical or Bayesian thinking. And then when you combine them, you can get, depending on how you combine them, you get different advantages and disadvantages. And so it kind of depends on, you can use formal reasoning as to synthesize training data to make your language model, for example, much more powerful. So actually a lot of model providers do that. So they use the lean theorem prover, for example, and synthesize a lot of.

true and false theorems, and then we'll train over that data. And then you'll find that the language model is actually better at recipe design and so on. And then the other extreme is you could sidecar a formal reasoning tool on the output of the language model, and then either ask the language model to express it in the formal language or do some sort of translation. That's kind of the other extreme. And then there's sort of middle grounds where you try and integrate symbolic reasoning into the inference procedure itself. And you see a lot more of the two extremes and not as much in the middle right now.

I don't know, big picture perspective, if you're trying to achieve AGI or something like that, it seems like you would need at least both sorts of approaches where LLMs are very good at a certain class of problems. And then sort of these more formal reasoning things that you can define as correct are going to be best sort of used for a different class of problems. They're kind of complementary. So if you can put them together, it feels like that would be a necessary step to reach some sort of more general intelligence across like a variety of different problem sets. I'm very much an armchair cognitive scientist. I'm not a practicing one. So I am a specialist in my sort of branch of AI, if you will. So you'll want to take what I say with a grain of salt. But I like your characterization that it's a necessary but not sufficient condition.

for whatever AGI means, like breathtaking AI that's hard to know if this is human or not. I would think you need both logical and the transformer type stuff. The thing I'll say is that for years, the propositional satisfiability solving is the classic NP-complete problem. The tools for propositional satisfiability solving have far, far, far exceeded human capability, like years and years and years ago. And they get better and better and better. So you can take the entire design of a nuclear power plant or a railway switching or whatever, and with millions of variables, millions of connectives, ands and ors, and so on, and show there are no satisfying assignments or find satisfying assignments in those spaces. And you can collect the entire humanity.

and ask them to solve it, and they wouldn't be able to solve it in that time. So it's like, in a sense, it's like far exceeded human capability long ago, but they were extremely brittle to use, right, to get the answer. required you to understand logic. And then if you go to like a satisfiability module, a theory solver, Aline, or Isabelle, these kinds of tools, you needed even more and more expertise just to ask a question. That was typically the real bottleneck for you. Yeah, so pairing that with an LLM where you can have like a natural language interface, I assume significantly sort of democratizes the access to it. There's all kinds of tricks you can pull now. Like you can call a language model multiple times to do translation from natural language to logic, and then you can use a theorem prover now to prove equivalence of the different attempts. So the more you do that, so the more confident you get, you got the translation right. And then now you can...

Once you've got that into a formula, you can walk the formula. You can use the propositional structure or the logical structure in the formula to identify interesting corner cases and then articulate them back in natural language. So you can help someone who doesn't understand logic know what the formula is saying, and then you can go from natural language to logic. And then now we've got those pieces of equipment. There's just so much you can do around. If you're agentic workflows, if you're ruling out bad behaviors from agents, and then you decide later on you don't like the formula that describes the safety range, you can then modify that formula and then go replay all the agentic actions and see what would have happened and just all kinds of stuff you can do that wasn't possible before.

Yeah. I mean, given that historically the hardest part of some of these formal methods was kind of like the human bottleneck of writing the specs. How is this transforming some of the, even the things where you found success in previously at AWS around the sort of formal verification around policies and things like that? Is it changing that kind of work as well? So one choice we made when I started the automated reasoning group, I remember it was like Ken McMillan as another scientist in my space. I was just before I joined Amazon, I told him I was going to join Amazon and I was having coffee with him. And he joked, man, I'd love to get out of program verification. And so when I actually, that idea stuck with me. So when I joined Amazon, the policy reasoning and the...

network, like VPC reachability analyzer, that's an AWS product, and IMXS analyzer, or S3 block public access, those are all based on these tools that are actually combinatorial reasoning. So they're actually, they are decidable, they're not undecidable. And so there, the real trick is to do combinatorial reasoning. And there, the tools are like propositional satisfiability or satisfiability modular theory solvers. And they're just unbelievably fast. And no LLM will ever beat them. But what the LLMs do now is they actually call those tools. And so that hasn't really changed. What has changed is reasoning about programs. Because now if you have loops,

And you're now worrying about termination of the loops, or you're worrying about finding an inductive invariant over the loop, or you're worrying about concurrency, so you're looking for rely guarantee constraints. Now, the algorithms, the procedures that existed before were pretty brittle. And now you can just ask the LLM, when the LLM's writing the code, you can just say, can you find the inductive invariant for me at the same time? And it does a pretty good job. And then what we've seen with recent advances in the models, like in the past year, is like really breathtaking.

Whereas before we had five humans who could drive these theorem provers, those humans are now really excited because they're able to let the models go and do the proof search for like agentic tools, go find the proofs for them. And they run like thousands of these jobs at the same time. So we're getting like, it's not only like 10x or 100x, it's like 1000x productivity gains from that small seat of individuals who can drive these things. And the amazing thing is because these tools like Lean Theorem Proover, they are yes or no tools, right? You can pass some very complicated things and they will say yes or no. It's like the scaling is unbelievable as opposed to, I don't know, poetry or other areas where the yes, it's not as easy to say yes or no. So it seems like there's a couple different.

or there's a spectrum of approaches where you could combine like an LLM or reasoning model with these kind of formal methods where it's like, you know, verifying AI output or even some of the stuff where the LLM can rely on the formal method and sort of trigger that to handle certain sort of logical reasoning problems or even using AI to make the formal methods easier to use and sort of democratizing. Out of that spectrum, like what part of that I think excites you the most? Like where do you see the most opportunity? Well, I mean, there's just nothing but open field for the opportunity. Actually, all of them. It's just absolutely unbelievable. I just really didn't think it would happen in my lifetime that previously, you know, I had like four or five friends of mine who I'd worked with in the past in different institutions. And I brought them to Amazon. And basically, their job was to sit at a terminal and drive these tools. And they were the neuro, right? They had read all the proofs and understand all the tools and they could run these things. And suddenly, it's just like you get kind of unbelievable capacity from them. So I just actually don't see a ceiling for that productivity. The thing that I'm...

probably most interested in intellectually is agentic safety. I think of agents as allowing us to scale things out where we only had socio-technical mechanisms before. So now you have a choice of socio-technical or these kind of agentic tools. And there's disadvantages and advantages to them, right? What do you mean by socio-technical? So a socio-technical mechanism is a mechanism where you are inserting people at certain stages as a protocol to raise the bar or make decisions, right? So like the police is a socio-technical mechanism, right?

I don't want to go to jail. And so therefore, there are certain things I won't be doing because I don't want to go to jail. And my employer can call the police, right? So whereas agents aren't afraid, they don't fear jail whatsoever. That might be the actual responsibility of the engineer at this point. If the AI is writing the code, you can't send the AI to jail, but you can send the person who sent the instruction to jail. Right. So that's where this formal stuff comes in, right? So if now what we're doing is...

If we ask the human to look at the output, if we say, hey, you're responsible for the output always, in some sense, you haven't really scaled the person. And now they're just going to hit cognitive overload. Imagine they have like a thousand agents writing code on their behalf and their entire job is just to read the output of agents. They're going to miss things for sure. So what you really want is you want to actually write down, whereas maybe we weren't before because there wasn't an advantage to doing it, actually write down what you want to hold. So what is availability? What is confidentiality? What is integrity? What is privacy? What is sovereignty? What is durability? What are these concepts? And can you write them down in a...

linear temporal logic or computational tree, you know, CTL. What is the formalism for which you would want to express these things? And then can you use these auto-formalization techniques to get them right? And then now can you, in an agentic execution environment, before allowing the commands or programs that have been synthesized by the agents LLM, allow them to go execute, can you now go statically check that those things won't violate the confidentiality, integrity, durability, you know, availability? rules and then allow it to go. And if you can get that right, then now agents just become unbelievably powerful for us. It's a very humanistic view because it's still saying it's a more declarative programming model. You get to say, we in natural language in a room can decide this is what availability is, this is what integrity is, this is what confidentiality is. And then if things happen in the future that we don't like, then we can refine that definition together.

And then one could imagine best practices where they're open source and like, oh, this is what these other enterprise organizations use for confidentiality. We should copy those. And then we can, for compliance, we can now talk to the auditor and say, well, here's our definition of confidentiality. And so then I think really sort of unlocks a lot of a scaling dimension that's just previously unheard of. So the first problem is that If everybody's running, you know, a ton of different agents, like at some points people are going to miss something because they're content switching all the time. If you're doing this for engineering, you're spending out a ton of code. There's no way you can, you know, hand review every single line of code and make sure that it's right. And even if you did, you still might make mistakes. But now you're sort of shifting some of that problem to trying to do like spec this out beforehand in terms around like what the expectations are. But are you sort of shifting that problem to, you kind of have to be able to predetermine all the situations where the agent might get itself into trouble, right? So how do you start to like formalize that? And also, I guess like bound that problem down to something that doesn't take forever to essentially define.

So the answer is yes. And there's a quote that I like this related. So Einstein apparently said, everything should be as simple as possible, but no simpler. So yeah, ultimately we are still having to decide as a society or as a leadership team or as a family, what's allowed and what's not allowed. And actually organizations at scale tend to articulate these things down, right? Amazon, we have the leadership principles and that really helps Amazon scale a lot. When I'm going through an uncertain time or something's happening and I can't just go call my boss every time I'm confused. How am I making those decisions? I rely on the leadership principles to give me guidance. And in an agentic setting where you don't have human judgment, you want to be rather more concrete, but then you can use symbolic.

formulae to describe the infinite set of things you're okay with and not okay with. And then using the formula, you can then find the interesting witnesses of what's allowed and not allowed to show them to a committee, to the society, to a leadership team, or to a family. These are the kinds of things that will be allowed or not allowed. How are you feeling about that? And kind of run those things ahead of time. I think you can't make it simpler than that. You ultimately do want humans to set the policy on kind of what is the context in which we're going to let agents just rip.

And what are the boundaries for which we don't want them to cross for like, you know, we don't want them to send money to certain countries or buy certain kinds of stocks. And I think it's an exciting opportunity. I think it is the sort of scaling that you've got glimpses of in really large, successful organizations. But it's kind of a way of thinking that a lot of people haven't thought about before, but it's an opportunity now for scaling yourself, but your family and organizations. So a lot of times in, you know, either whether you're a model provider or you're building some sort of agent system, you'll use things like the system prompt to put in certain guardrails around like, hey, like this agent should be able to answer certain types of questions.

This sounds like a more sort of formalized version of that, where it's not just about the formalization of the spec, but also when the agent does something, being able to go back to the spec and essentially check in a formal fashion whether you're allowed to do that thing or not. Is that a fair characterization? Yeah. So my mental model is definitely answers for which there are right or wrong answers, right? Like on Family Medical Leave Act or New York City Department of Buildings. There are questions for which like, no, you are not allowed to put the air conditioner there or, you know, like you in a.

to family building, you do need sprinklers. But there's all kinds of like, when you look at the codes, it's like the conjunction of codes from different years and often there's conflict between them. And so often these kind of rule systems that we have in society often conflict. And so now's a really great time to find all those things, identify the conflicts, decide on the answers in a fair and equitable way around what our answer is going to be and then allow agents to take action or humans to take action. But I definitely have in my mental model those questions for which there are right or wrong answers. Like, should we send this money to here? Does this violate your tax strategy? Those are right or wrong answers. And then there's stuff that's more like.

you know, is that a bad thing to say? Is that a bad word? Or like these things are a little more on the statistical spectrum. And I think that you could probably use some of these same mechanisms, but that's, I have a harder time wrapping my head around like, is this a good poem? I think that's the hard part is the things that are subjective. I've actually, I've written a little bit about this where I think one of the reasons why we see such success in engineering sort of really being the tip of the sphere with not only agents, but models in general is because when you code, you have a lot of built-in jarg rails in terms of

whether something works or not. Like there's deterministic ways that you could, if you generate code, you could compile it, you run it against tests. Those are some form of verification of whether there's correctness behind what you generated. But if I'm generating a poem or even, I don't know, a press release about a product launch, like the quality controls are much more subjective and it's hard to essentially put some sort of formal verification around it to determine whether it's good or not. And then the feedback loop in engineering is also very fast where you're.

You could, you know, compile it, pass the test, even run it. And then if errors happen, feed the error back into the system, self-correct and generate new code and do that in essentially a loop. But it's hard to do that in a lot of domains because by the time you know something's wrong, the space between generation and knowing it's wrong could be a really long period of time. Yeah, I agree. I think I'm fortunate to be working on the side of the spectrum I'm on because I'm just enjoying huge benefits. Whereas in music or poetry, it's harder. I will say that there is a boundary that's not 100% clear. There's probably pretty exciting work there. It'll be more statistical in nature. You'll be like, I'm relatively confident that this discussion, even if it's translated into like some like.

Vulcan or some language that's not natural, that's not English or something like the argument that would be made still ultimately roots out to chemistry. And then chemistry is a formal system. So I think in some applications, there's if there's a formalism hiding down somewhere, then there's probably something we can do. using this. But yeah, I mean, for me, it's on mathematics or reasoning about correctness of programs or reasoning about policies or security. It's like we're well on the side of the spectrum that we're happy about. Yeah. And I think a lot of probably B2B type enterprise problems fit into that class structure versus the just open-ended kind of ask anything and get any possible answer. Yeah. The addressable market for answering questions about correctness according to law and tax strategy.

across like agentic financial systems is so big that it's worth going after. Even if we can answer questions around a poem being a good poem. Yeah, healthcare probably. So with an agent, there's going to be at least sort of two big safety concerns or trust concerns with those. One is that the agent might take action or access data that shouldn't or is unexpected. And then also it could hallucinate some answer to some question or something like that that also leads to a misleading result. So is what you're talking about...

possible to kind of potentially address both of those problems? Or does it bias towards one more than the other? So in the space of like, you know, chatbots or that kind of thing, we have a product called automated reasoning checks and bedrock guardrails. It helps you formalize your domain, like, you know, family medical leave act or your vacation policy or your travel policy. And then in an inference time setting helps you remove incorrect statements.

only produce correct statements and can explain why the answers are correct. So, and that allows it not only for you to remove incorrectness due to hallucination when you're dealing kind of with your customers, but also allows you to understand your rules because there may be cases where your rules were wrong and the customers like that can't be right. And so you can use the feedback from the customers to identify actually where you, we got things wrong, which is actually fairly common when people kind of bring their policies in from the text file to now being used in an LLM based situation. On the other one around basically where like we regularly analyze using automated reasoning tools and entire AWS services, looking at where data flows to and from. So we can track, you know, we don't track the data itself, but we can track the flows using statically analyzing both code and the infrastructure of AWS to show where data flows to and from. And then that allows us to make pretty high fidelity decisions around risk, around what information we're using to make decisions. And so I think that's an area that the broader IT community can use too, right? If you're building agentic, generative AI-based solutions that plugs into databases, data lakes, you know, these kinds of things, you can analyze your service and determine where data is flowing to and from. And then if there's certain pieces of information that shouldn't be contributing to the answers, say in a medical.

domain. If you don't want the agent to leak other customers' PII, for example, then that's the sort of thing you can establish and maintain as an invariant using the automated reasoning tools. So one of the things that you said earlier was that there's only maybe 2,000 or 3,000 people that specialize in this area of automated reasoning. And it seems like in recent years, automated reasoning has kind of broken somewhat into the mainstream. I guess, why now? What has changed in particular for this to suddenly have more visibility as an area that's important for building successful software?

I'll give you the short term answer and there's actually a little bigger context. So, I mean, it's agentic AI. Like, you know, 10 years ago, if I had described what I did on a podcast like this, I think most people, very much smaller set of people would track even what we're even talking about. And I think what's really amazing about generative AI is that as a society, we're going through an extra sort of art of the possible exercise, right? There were tools that use natural language that were very easy to call. You just went to a website.

And people are like, oh, wow. And they sort of realized that computers could answer questions, very deep questions and reflect and so on. They weren't always right, but they could do it. Right. And so then it's a small delta from that to like, how do I make sure these answers are correct? Which is kind of what automated reasoning has always been. Right. Yeah. But before you were trying to talk about imagine a computer could tell you and they're like, I don't know what you're talking about. Right. So we just out of the gate, the presupposition of the work was just like lost on the vast majority of people. So it just wasn't it didn't click for people. And so it was a very small set of people whose brains were sort of like wired to be interested in that problem. And that's so then people just kind of self selected. So I think that has changed. The bigger picture is that, you know, like.

The adventures of computing were all formal methods people, right? Like Alan Turing wrote a paper called Checking a Larger Chain, which shows you how to prove the correctness of a program. And von Neumann was a proof. All these people from the 1950s and 40s were mathematicians who knew how to do proofs. And very clearly in their mind, they understood the programs mapped to Turing machines or like automata. So it was abundantly clear. It was not even worth mentioning. And it was kind of only when the IT industry, like when computers became like commercial mainframes and then mini computers and so on, that the branches of...

the mathematical view of programs and how to reason about programs. And then the IT industry kind of divided. And so you'd meet people kind of didn't like, you'd meet formal reasoning experts, particularly in Europe, who have like never written a computer program in their life. They don't know how computers work, but they understand the mathematics of sharing machines. And then on the other hand, people who write computer programs all their life, but don't even know it's possible to prove correctness of programs. So the worlds have kind of divided. And then in AI, you saw the same thing, right? So AI, like one of the first applications of, one of the first IBM commercial computers was actually to automate the reasoning from Principia Mathematica, right? So automated reasoning was one of the first non-military applications of computers.

And then AI, John McCarthy coined the term AI. He was a formal reasoning person. So in the very beginning, AI was sort of the mixture of these like Bayesian, cognitive, logical, the mix of those ideas. And people were very excited and it was very heady days. But then you had this sort of series of AI winters where government funding would dry up for these areas. The response was for people to get rather more specialized. And so what happened is automated reasoning.

folks, like the people in the logical view found very niche applications that they could solve with their kinds of tools and were successful there. And that's kind of how I grew up. And then other people went to, you know, recognizing numbers for depositing checks. And so there was another set of applications towards some of the other techniques were going to work better. And so the areas kind of grew apart. And what's happened with generative AI and now agentic AI is that the money, but also the, you know, the disruption and the opportunity has really kind of brought all the communities, the communities are kind of coming back together. And there are.

certain members of the of those crowds that are bilingual that can talk between all those communities and they're just worth their weight in gold so yeah it's interesting i think this whole area is bringing back a lot of things that have had you know periods of time where they were you know there was like a big research backing behind it i think like ontologies certainly have been something that and you know i did my phd in the knowledge engineering space with ontologies and worked on ontology mapping problems and then you know No one was talking about that for like a decade. And then now it's come back in a big way. There's a bunch of different things. And even in distributed computing as well, where if you have agents that are making all kinds of network calls, you're going to run into distributed systems problems. And that's really, I think, brought to the forefront the idea of like, you know, durable execution and durable functions and all this type of stuff that historically has been a little bit more, you know, niche. Certainly companies invested in that, but it wasn't like everybody's problem. And now suddenly it's like everybody's problem. At Amazon, it's funny because you know, like sometimes...

you know, very big names will join Amazon and they'll hear about the automated reason and be like, oh, we tried that at my, you know, like company 20 years ago, didn't work. And we're like, well, you know, maybe you should be, maybe that was 20 years ago. So like things change. And I think it's like music. You, you see ideas like old ideas, influence our fashion, right? Things come back and they get integrated in different ways.

So yeah, so pendulum swing, ideas go out of fashion, come back into fashion. And it's actually frankly good because I think it's good to get a mixture of ideas and people confused about them. And some people are advocating for some and some people advocating for other and then finding combinations. And it gives diversity of thought, which I actually think helps us solve problems in better ways. So it's pretty exciting, actually. Yeah, absolutely. I mean, I think sometimes someone with a different perspective can break through in a problem area that in a new way that no one's ever really considered before because the people who work in that area are kind of like locked into a certain way. Yeah, if you had put me on that.

speech-to-speech translation problem with mathematical logic, I would have never gotten anywhere. But I would have kept insisting I had the right way to do it, right? I would have been like, give me another year, give me another year. And I absolutely would have never solved it. Yeah, you would have just kept hammering that nail and it would eventually go ahead. For software engineers that are, you know, listening and interested in starting to apply automated reasoning or learning more about it, like where they begin, like what tools, you know, I don't know, books, practices, would you kind of recommend for them?

The ground is moving kind of under our feet. So the advice I would have given a few years ago is actually a little bit different than what I'd give right now. We've open sourced something called Strata, which is a intermediate representation for programs that allows you to represent Python and allows you to represent Java and Rust and so on. But it unifies to the logical representation, which ultimately the semantics on something called Lean. So Lean, there's a theorem prover called Lean. There's many theorem prover, you know, interactive theorem prover.

isabel hall light lean so on but lean is the one that many mathematicians have sort of clicked to so that's the becomes the lingua franco for them and because of language model training so language model providers discovered this data began training over and saw the value of this data so then they've now begun to synthesize data using lean so for example deep seek did that reinforcement learning together with lean is very powerful concept yeah lean has kind of become a relatively standard tool in that space so i would go use lean it's a mathematician's tool and it requires you to traditionally to hold its hand it's not it's automated reasoning it's sort of almost a misnomer, right? It's like very far from automated. I mean, it automates the checking of the argument you found, right? Whereas these tools like a propositional accessibility solver, like Catechol is fully, fully, fully automated, but it's only solving the combinatorial problem. Whereas lean is solving an undecided, it's trying to solve an undecidable problem with your assistance. But what's really amazing these days is, you know, like the language models are really good at running these tools. So if you have lean together with a language model,

Now you're in business. Now you can do some really interesting things. And so if you want to reason about programs, one way to do that is to translate the programs from Rust into Lean via Strata, which we've open sourced, and then to reason and Lean. And then one could imagine, you know, products are coming. There's startups and then AWS. We're all kind of building products in this space. So there will be various products. And I'd love for people to use AWS ones, but there's other startups that are building stuff too. Yeah, I mean, that's amazing. I think that's one of the things I'm most excited about in terms of like, I don't know, these days that we're living in right now is sort of the accessibility suddenly to all these different areas.

a way to get access to information that you've never had access to. It reminds me of like, you know, when I was a teenager and the internet became, you know, something suddenly did not have to go to a library to look up every information, just be able to look that up on the internet. Even those early days where there's a lot less websites and stuff like that was just amazing and really opened up the world for me at the time. And I think we're seeing that again. Totally. Yeah. When I look at like, you know, I used to work on Volkswagen motors, like air cool of 1960s. It wasn't high school. That's what I did. And.

The things I had to do to learn how to fix problems when I didn't know what I was doing were amazing, right? And then when I look at my son and how he can use online videos to learn how to use equipment, music equipment. So it's incredible. And then the language models are just like another step forward. It's pretty incredible. Is there anything else you'd like to share? People should follow me on LinkedIn. I try and post, if they're interested in stuff they're hearing here, I post, you know, try and post just a few things, but they should be of kind of interest to people who are tracking formal methods. I'm Byron Cook. Yeah, I don't know. Probably not. No, I'm just keep doing it. All right. Yeah, Byron Cook. I'm going to follow you right now. There we go. Awesome. Well, thank you so much for being here. I really enjoyed this. This was fantastic.

Yeah, pleasure. Thanks for your time. Cheers.

Frequently asked questions

How long is this episode of Software Engineering Daily?

This episode is 48 minutes long.

When was this Software Engineering Daily episode published?

This episode was published on May 19, 2026.

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this Software Engineering Daily episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.