hi, i'm shiv

me

shiv smiling outdoors

i’m an undergraduate studying mathematical sciences, with a concentration in discrete mathematics and logic, at carnegie mellon university. my research asks how multi-agent systems can be efficiently designed and coordinated to solve reasoning problems beyond any individual agent. i study this in formally verifiable domains, such as mathematics and software, where tools like lean provide machine-checkable correctness guarantees and reliable feedback for scaling automated reasoning in a faithful and trustworthy manner.

my primary project currently is unity, a multi-agent framework for automated reasoning and autoformalization in lean 4. unity outperforms existing state-of-the-art autoformalization and theorem-proving systems on several classes of long-horizon mathematical reasoning tasks. i also contributed extensively to agora, studying mechanism design and market-based coordination for multi-agent theorem proving and mathematical discovery. my early-stage computational and experimental mathematics research includes verifying basis exchange in randomly generated matroids, generating costas arrays, and automating path coupling for markov chains.

more broadly, i am interested in logical foundations of mathematics, reverse mathematics, programming languages, type theory, model theory, categorical logic, systems design, continual learning, and ai consciousness and alignment. my long-term goal is to carry insights from formally verifiable domains into reliable ai for science where correctness cannot be mechanically verified and trustworthy reasoning is harder.

Education

Carnegie Mellon University

Expected 2028 · Pittsburgh, PA

B.S. in Mathematical Sciences, Concentration in Discrete Mathematics & Logic

coursework:
  • 21-128 Mathematical Concepts and Proofs (Fall 2024)
  • 21-241 Matrices and Linear Transformations (Fall 2024)
  • 21-295 Putnam Seminar (Fall 2024)
  • 21-228 Discrete Mathematics (Spring 2025)
  • 21-268 Multidimensional Calculus (Spring 2025)
  • 21-373 Algebraic Structures (Summer 2025)
  • 80-713 Category Theory (Fall 2025)
  • 21-355 Principles of Real Analysis I (Spring 2026)
  • 21-603 Model Theory I (Fall 2026)
  • 21-651 General Topology (Fall 2026)
  • 21-720 Measure and Integration (Fall 2026)

cmu-pitt directed reading program

2026

studied model theory under jeremy beard

gave talk on the proof of the ax-grothendieck theorem

Moonshot Alignment Program

2025

AI Plans. Selected for an AI alignment research program with project funding.

Research

Unity: A Multi-Agent Autoformalization Harness for Lean 4

Shivansh Gour, Riyaz Ahuja, Jeremy Avigad, Sean Welleck · GitHub

leanmulti-agentautoformalizationtheorem provingformal methods

  • Developing a multi-agent autoformalization harness for Lean 4 designed to scale ensembles of smaller, less expensive models to frontier-level performance and use frontier models to push performance further.
  • Designed a proof-orchestration architecture that mechanically extracts unresolved declarations and kernel dependencies into a dependency DAG, coordinates heterogeneous LLM agents in isolated Git worktrees, and automatically validates and merges candidate proofs.
  • Built Lean-integrated agent infrastructure with LSP tooling, shared proof-search communication, concurrent strategy exploration, iterative critic loops, and persistent cross-run knowledge.
  • Currently benchmarking Unity on FormalQualBench, where it has achieved state-of-the-art performance by solving 9 of the first 10 problems; on all 8 shared solves with the previous state of the art, reduced both cost and wall-clock time using cheaper, open-source models.
  • presented at the hoskinson center for formal mathematics and at the l3 lab
  • part of carnegie mellon university’s summer undergraduate research grant (surg)

Union: Efficient Decentralized Multi-Agent Coordination

Shivansh Gour

multi-agent

  • Developing a general-purpose multi-agent harness that allows agents to self-organize around diverse problems and communicate efficiently while collaborating on large projects.
  • Developing an online learning algorithm that adapts how agents are organized for each task using their trajectories over time, capabilities, and the evolving decomposition of the task.
  • Built an end-to-end prototype supporting agent definition, spawning, execution, and inter-agent communication, with adapters for heterogeneous model providers and coding-agent harnesses.

Agora: Market-Based Multi-Agent Automated Mathematical Discovery

Riyaz Ahuja, Alexander Heckett, Shivansh Gour, Alexander Willoughby, Tate Rowney, Ishin Shah, Chris Su

leanmulti-agenttheorem provinggame theory

  • Developing a multi-agent framework for automated mathematical discovery in which agents prove, conjecture, query, and exchange mathematical results through explicit economic mechanisms.
  • Built experimental environments representing mathematics as dependency graphs, together with graph-transformer agents trained using reinforcement learning and infrastructure for automated search over collaboration mechanisms.
  • Evaluating the framework on formal mathematics in Lean.

Market-Mediated Multi-Agent Theorem Proving in Lean 4

Riyaz Ahuja, Shivansh Gour · Advised by Fei Fang · report

leanmulti-agenttheorem provinggame theory

we model multi-agent theorem proving as an allocation problem over interdependent proof obligations. credit-only rewards can produce unbounded inefficiency; fully collateralized markets for proof-resolution events recover a bounded price of anarchy under sufficient liquidity, resolvability, and positive gains from trade. combining population-based reinforcement learning with these markets improves target resolution in synthetic games and raises proof completion from 34% to 52% on a lean 4 prime number theorem benchmark, while reducing duplicated work from 21% to 8%.

PraLean: Probabilistic Programming in Lean 4

Shivansh Gour, Riyaz Ahuja · Advised by Jan Hoffmann and Feras Saad

leanformal methods

  • Developing a probabilistic programming library for Lean that supports executing arbitrary probabilistic programs while simultaneously proving their distributional correctness.
  • Built a library of common probability distributions and a tactic that automatically proves distributional correctness for user-defined inference algorithms.
  • Formalizes and verifies nontrivial sampling algorithms, including rejection sampling and Vitter’s reservoir sampling, proving that their operational implementations induce the intended distributions.

HoTTLean: Autoformalization for Homotopy Type Theory

HoTTLean Organization · Advised by Steve Awodey · GitHub

leanmulti-agentautoformalizationtheorem proving

  • Developing autoformalization methods for HoTTLean, a Lean formalization of the groupoid model of homotopy type theory and the categorical semantics of Martin-Löf type theories.
  • Applying multi-agent proof search to translate informal mathematical results into kernel-checked Lean formalizations and expand the project’s formal library.

Teaching

Teaching Assistant, 21-321: Interactive Theorem Proving

Fall 2026

Carnegie Mellon University · Instructor: Pavel Kovalev

  • Contributing to the development and testing of the course’s Lean autograding infrastructure.
  • Grading homework and exams, and supporting students by holding office hours.

Writing

Synthetic Scalable Oversight · Alexander Heckett, Shivansh Gour, Riyaz Ahuja, Tate Rowney, Ishin Shah. [lesswrong]

reading

things i [
  • scythe
  • thunderhead
  • the toll
  • crime and punishment
  • lotr
  • book of nothing
  • purple hibiscus
  • born a crime
  • autoformalization with large language models (neurips 2022)
  • process-driven autoformalization in lean4 (iclr 2025)
  • proofnet
  • rethinking and improving autoformalization: towards a faithful metric and dependency retrieval
  • alphafold2
  • the boxer
  • toaster dude
  • the handmaid's tale
  • dummit and foote (up to and including rings)
  • the bitter lesson
  • merlean prover
  • the great gatsby
  • darius the great is not ok
  • the crucible
  • dear martin
  • the contender
  • monster (myers)

watchlist

things i [
  • yugioh
  • paprika
  • 3 body problem
  • severance
  • code geass r1
  • code geass r2
  • suits
  • never have i ever
  • naruto
  • naruto: shippuden
  • kuroko's basketball
  • hoops
  • ninjago
  • spiderman: homecoming
  • young sheldon
  • the office
  • mr iglesias
  • top gun: maverick
  • spiderman bnd
  • spiderman itsv
  • spiderman atsv
  • chakde india
  • omg
  • 3 idiots
  • the flash
  • cobra kai
  • saiki k
  • inside job
  • best of the best
  • love is blind
  • the odyssey
  • darwin's game
  • death note
  • stranger things
  • percy jackson the lightning thief
  • kpop demon hunters
  • dr brain
  • swagger
  • trollhunters