logoalt Hacker News

juanre • today at 6:42 PM • 0 replies • view on HN

My product requires very careful thought about security, and I would love to be able to formally verify it. I cannot write it in Lean, though; what I have done instead is to write the trust model in Lean, around 4k lines of code that allows me (well, the agents) to reason about security, experiment with changes, prove outcomes.

We have now 144 proven theorems, like “an agent never passes as a person, and never approves where a person is required”. And then we link it to the actual code by using the Lean model to generate the tests.