8000 GitHub - iwis19/Triviality: hack the north 2026; agent swarms for novel mathematical discoveries · GitHub
[go: up one dir, main page]

Skip to content

About

hack the north 2026; agent swarms for novel mathematical discoveries

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Triviality 🧠

Combining autonomous research agents, mathematical search, and formal verification into a single research workspace to solve the unsolved!


Repository Note

Built at Hack the North 2026 on 4h of sleep:

  • Best Use of Vultr
  • 2nd Best Use of Devin

Checkout the Devpost submission: click


Key Features

  1. Multi-Agent Mathematical Research

    • openJiuwen WorkSwarm supports separate research agent branches in parallel during exploration
    • Coordinates 3 researchers, 1 challenger, 1 coordinator, and 1 proof-writer agent
    • Supports fresh research directions after getting stuck or realizing failure
  2. Formal Proof Verification

    • Candidate proofs are checked using Lean rather than accepted directly from challenger outputs
    • Lean feedback is returned to the research workflow for further refinement
    • A sandboxed service checks Lean proofs and runs bounded exact-arithmetic searches, so agents do not have to compute in their heads
    • Lean runs on the server, so users install nothing
  3. Literature

    • Each run retrieves papers from OpenAlex before and during research
    • Papers are deduplicated and kept with the run that found them, and how it found them
  4. Persistent Research Infrastructure

    • MongoDB stores runs, attempts, proofs, papers and the research graph
    • A Redis queue hands new runs to the worker
    • The API creates and tracks runs; the worker runs the agents, retrieval, experiments and verification

Tech Stack

  • TypeScript
  • React / Next.js
  • Node.js
  • Python
  • openJiuwen SwarmFlow
  • MongoDB
  • Redis
  • Lean 4
  • OpenAlex
  • Vercel + DigitalOcean
  • Docker

Try It Out

The full local setup requires an unusual amount of API keys, external services, and remote compute infrastructure, so a setup instruction won't be provided...

But check out the complete platform through our hosted deployment! Try Triviality →


Project Structure

Triviality/
├── apps/
│   ├── web/          # Next.js site (Vercel)
│   ├── api/          # HTTP API for runs (droplet)
│   ├── worker/       # Runs queued research (droplet)
│   ├── agents/       # Python agent runner
│   │   └── skill/    # Agent roles, workflow, Lean checker
│   └── sandbox/      # Isolated Lean checker + experiments (droplet)
├── packages/
│   └── database/     # MongoDB client, types, indexes
├── config/
│   └── models.json   # Model catalogue and agent roles
├── deploy/
│   └── vm/           # Backend Dockerfile, Compose, Caddy
├── docs/
│   └── deploy.md     # How it runs and how to deploy it
├── scripts/
├── pnpm-workspace.yaml
└── package.json

Research Workflow

Supported by integrating Huawei openJiuwen's WorkSwarm, our research workflow looks like:

Researchers
    ▼
Challenger / Iteration
    ▼
Reviewed Complete Argument
    ▼
Proof Writer
    ▼
Mathematical Proof + Lean Formalization
    ▼
Lean Checker
   ╱     ╲
 Fail    Pass
  ▼       ▼
Research  Verified Proof
Loop          ▼
        Research Worker
              ▼
        proofDocument(...)
              ▼
         LaTeX Output

Each run keeps its intermediate attempts in a per-run knowledge pool, and failed verifications are returned to the workflow so agents can revise or abandon the candidate.


Lessons Learned

  • Designing multi-agent workflows for open-ended mathematical research
  • Connecting LLM-generated reasoning with deterministic computational evidence
  • Integrating Lean formal verification into an autonomous research loop
  • Running remote experiment and verification workloads on cloud compute

About

hack the north 2026; agent swarms for novel mathematical discoveries

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0