Software & mathematics

Kamil Braun

I'm a software engineer specializing in distributed systems, database internals, and correctness.

I work at AiFi. Previously at ScyllaDB and poolside, I've worked on consensus protocols, database control planes, and infrastructure for training programming models. I'm also interested in programming languages, formal verification in Lean, and the connections between mathematics and software, including AI-assisted mathematical research.

Projects

Noemesis

Research framework · Python · Lean 4 · AI agents

A framework for autonomous mathematical research: it runs an AI agent (Codex CLI or Claude Code) on an open problem for weeks at a time and keeps the result inspectable. Every claim has a status in a structured registry, every argument is reviewed by a second, fresh-context agent, selected results are verified in Lean, and the rules the agent works under are enforced by programs rather than by its good intentions.

The research record is an append-only notebook in Git, published automatically through GitHub Actions; computations run under resource limits with their output and timing saved as evidence. Work in Noemesis produced a proof-complexity lower bound whose main results are formalized in Lean 4.

LattiStore & LPaxos

Research prototype · Rust · Distributed systems

A distributed key-value store with strictly serializable transactions, built on LPaxos: my replication algorithm for building fault-tolerant, linearizable services without replicated logs.

I developed the algorithm and implementation as part of my master's work in computer science. LattiStore includes a small transaction language and a runnable multi-node setup. It is a proof of concept; persistent storage is not implemented.

Kotlean

Framework · Lean 4 · Kotlin · Android

Android apps, proven: write an app's state, behavior and UI in Lean, prove properties of that code, and compile it into the app, so the code you prove is the code that runs. A small Kotlin host renders native Android Views and Canvas drawing and performs platform effects.

The architecture follows Elm's model/update/view loop and Roc's separation of application logic from platform effects. Examples include SnackNet, a maze-chase game written entirely in Lean.

Motions

Collaborative bachelor’s project · Haskell · C++

I contributed to Motions as part of my bachelor’s project: a Markov Chain Monte Carlo simulation of chromatin movements within a cell nucleus, modelling DNA–protein interactions with a variation of the Strings and Binders Switch model. The project brings together mathematical modelling, scientific computing, and functional programming.

HardDoom2

University project · C · Linux kernel

A Linux driver for the HardDoom II PCI device, implemented as a university operating-systems project. It handles asynchronous command submission, DMA buffers, interrupts, and device resource management.

concat-cpp

Compiler experiment · Haskell · C++

An experiment in translating Haskell to C++ using Conal Elliott's “Compiling to Categories” approach. It explores the connection between functional programming, category theory, and code generation.

Writing & research

An exponential lower bound for the bit pigeonhole principle in resolution over parities

Preprint · arXiv:2609.23015 · Proof complexity · 2026

Superpolynomial size lower bounds for resolution over parities, Res(⊕), were previously known only for restricted refutations: tree-like, regular, or of bounded depth. The paper proves that every DAG-like Res(⊕) refutation of the bit pigeonhole principle has 2Ω(n/log² n) clauses, with no restriction on regularity or depth.

The main theorem and all its dependencies are formalized in Lean 4. The proof was developed with substantial AI assistance in Noemesis.

LPaxos: replication without replicated logs

Master's thesis · Computer science

My thesis develops LPaxos, the distributed algorithm behind LattiStore. I wrote the thesis and developed the accompanying software; my advisor, Janina Mincer-Daszkiewicz, reviewed the thesis.

Introduction to persistent homology

Bachelor’s thesis · Mathematics · 2018

Co-authored with Krzysztof Pszeniczny, this thesis introduces persistent homology for computer scientists and data analysts: a way to study the shape of data by tracking topological features across scales.

Assuming only basic linear algebra, it develops the necessary topology and algebra, then explains persistence modules, barcodes, and an algorithm for computing persistent homology of a filtered simplicial complex.

Professional background

AiFi

Senior Software Engineer · Aug 2026 – present

I designed the rollout framework that keeps AiFi’s fleet of autonomous stores on the current release with no one driving it, together with a Lean model of its admission rules and an AI advisor for its rollout policy.

ScyllaDB

Core Database · Jan 2019 – Jun 2025

I led a five-person engineering team responsible for much of the core database’s control plane, particularly schema and topology management. As a core maintainer with merge authority, I reviewed and gated contributions across multiple subsystems.

poolside

Software Engineer · Feb 2025 – Nov 2025

I worked on the containerization system used to train and evaluate foundation models for programming with reinforcement learning.

Selected engineering work

At AiFi, the rollout controller works like the thermostat in your home: it compares what each store should run with what it runs, writes per-store version pins to Git, syncs the store through Argo CD and verifies the result, opening a release to lab stores, then canaries, then the rest of the fleet. The Lean model proves that a pre-release never reaches a store, that canaries open only after labs of both store kinds pass, and that the fleet never exceeds its limits on changes in flight. The AI advisor proposes canary sets and policy overrides built from evidence read by deterministic queries; a check refuses any summary stating a number the evidence doesn’t hold, and only a person’s acceptance changes the policy.

At ScyllaDB, I worked on the core of a distributed database: moving cluster management to Raft consensus, improving query performance, and supporting topology changes in Change Data Capture. I also built testing tools to find correctness bugs in distributed algorithms and used TLA+ to specify parts of the control plane.

Education

I hold an M.Sc. in Computer Science (2020), a B.Sc. in Mathematics (2018), and a B.Sc. in Computer Science (2016), all from the University of Warsaw. I also studied mathematics at the University of Copenhagen on an Erasmus exchange in 2017–2018.

Get in touch

Based in Warsaw, Poland.