Skip to content

Multi-agent AI for theorists

Derive it, check it,
write it into your paper.

You direct an orchestrator. It delegates to specialist agents that search real databases, compute in Wolfram, prove in Lean 4 — and hand back every change as a diff you approve. In VS Code, its forks, and the terminal.

or run it anywhere from your terminal
$ npm install -g @texra-ai/cli
spectral-gap — texra-paper

2  Preliminaries

Definition 1.An Erdös-RényiErdős–Rényi random graph G(n, p) is a graph on n vertices where each posible edgepossible edge {u, v} is included with probability pindependent, independently of all other edges.

Let A be the adjacency matrix of a graph G be a graph on n vertices. Its adjacency matrix A = A(G) is an n × n matrix where Auv = 1 if {u, v} is an edge in G. The eigenvalues of, and Auv = 0 otherwise. Since Aare denotedis symmetric, its eigenvalues are real and are denoted by λ₁ ≥ λ₂ ≥ ⋯ ≥ λₙ.

3  Spectral Gap in Random Regular Graphs

For a d-regular graph G (where every vertex has degree d), it is well-known that the largest eigenvalue of its adjacency matrix is λ₁ = d. The spectral gap, defined as d − λ₂, plays a crucial role in the expansion properties of the graph.

Theorem 2 (Alon–Boppana).For a d-regular graph on n vertices, λ₂ is largeλ₂ ≥ 2√(d−1) − o(1) as n → ∞. A d-regular graph meeting this bound with equality is called a good expanderRamanujan graph.

Proof. It follows from counting walks.Count closed walks of length 2k rooted at a fixed vertex. The number of such walks in the d-regular tree is the Catalan-weighted moment Ck (d−1)k, and comparing with tr(A2k) = Σi λi2kas n → ∞ forces λ₂ ≥ 2√(d−1) − o(1).

🔬

Grounded, not generated

Every citation comes from a real database. Every figure is compiled. Every edit lands as a diff you can read line by line.

🧑‍🔬

A team, not a chatbot

One orchestrator decomposes the task and delegates to researchers, numericists, reviewers, and formalizers — each with its own tools and model.

🛡️

Three levels of verification

LLM prose, Wolfram algebra, and Lean 4 formal proof — connected in one environment for work where correctness is non-negotiable.

One orchestrator, a team of specialists

You describe the task. The orchestrator breaks it into sub-tasks, delegates to specialist agents in parallel, and returns proposals you approve before they touch your files.

Explore
search
arXiv, Crossref
Derive
research · numerics
Wolfram, bash
Verify
review · lean
Wolfram checks, Lean proofs
Write
polish · correct · research
LaTeX, figures, diffs
Present
paper2slide
Beamer, poster
Workflow Agents
Read projectPlanDraft
ReflectOutput
.tex in → improved .tex + latexdiff
Orchestrator
Breaks work into sub-tasks, delegates to specialized agents, coordinates results
Tool-Use Agents
Your questionTool callsReason
Answer
Conversational · persistent across sessions
wolframleanarxivbashwebzoteroreadwritegrep25+ built-in tools

How researchers use TeXRA

Derive

Steady-state entanglement in a driven spin chain

The research agent builds the Lindblad superoperator, solves for the steady state in Wolfram, computes the concurrence analytically, and cross-checks with exact diagonalization in Julia at N=8.

Write

Finalizing a 40-page paper on spectral graph theory

The correct agent unifies notation — \lambda_2 vs \mu for the same eigenvalue across sections — fixes label conflicts, and outputs a diff you review line by line.

Verify

Formalizing subadditivity of entropy in Lean 4

The lean agent searches Loogle for the right Mathlib lemma, reads the proof state, adds a missing hypothesis, and produces a proof that compiles with zero errors.

Start in under two minutes

Install from the VS Code Marketplace, sign in for free researcher access or add your own API key, and run your first agent.

Common questions

What models does it support?

OpenAI, Anthropic Claude, Google Gemini, DeepSeek, xAI Grok, Moonshot Kimi, Qwen, GLM, and more via OpenRouter. Bring your own API key, or sign in for free researcher access — each agent on a team can run a different model.

Does it work with Overleaf?

Yes — via git sync. See the Overleaf guide.

Does it work with Lean 4?

Yes — Loogle search, proof state inspection, diagnostics, build and cache management. Requires the Lean 4 extension.

Can I use it without VS Code?

Yes — the @texra-ai/cli terminal client runs the same agents and sign-in on your .tex projects, for scripts, CI, and remote machines. See the CLI guide.

Is my data private?

With your own keys, API calls go directly from your machine to the model provider. Researcher Access Program traffic is relayed through TeXRA's hosted orchestrator.

Can I build custom agents?

Yes — agents are YAML files you can modify or create from scratch. See Custom Agents.

Where do I get help?

Email contact@texra.ai or open an issue on GitHub.