How soumalyasaha/breach works
Breach is an adversarial mathematics agent: it formalizes an informal claim, searches for a counterexample with deterministic solvers, and reports a bounded verdict or a classified unknown. Users enter claims through the CLI or Streamlit interface; the engine translates and checks them, then the interface presents the result. Additional capabilities include proof-step challenges and failure autopsies, blackboard image transcription, citations, cube-and-conquer search, and report export. Edges reflect excerpts, indexed references, or README documentation; unsampled subsystems are included where documented, without inferring unshown calls.
Main entry points: cli.py CLI · web.py Streamlit app · engine.py Claim engine · argue.py Challenges and autopsy
Components 22
User interfaces
- CLI
src/cli.py - Streamlit app
src/web.py - Drawing transcription
src/vision.py - Example gallery
src/examples.py - Clipboard support
src/clipboard.py - Math symbols
src/symbols.py - Shared UI theme
src/ui_theme.py - Banner rendering
src/banner.py
Verification workflow
- Proof state
src/state.py - Claim engine
src/engine.py - LLM providers
src/llm_client.py - Worker dispatch
src/orchestrator.py - Case search
src/cases.py - Power utilities
src/powers.py
Challenges and context
- Proof memory
src/memory.py - Challenges and autopsy
src/argue.py
Results and utilities
- Citation lookup
src/citations.py - Report export
src/export.py - Session and output paths
src/paths.py
Other components
- Mathematics user
- Z3 solver
- SymPy solver
Connections 34
- Mathematics user → CLI: submits claims
README.md - Mathematics user → Streamlit app: submits claims
README.md - CLI → Claim engine: checks claims
src/cli.py - Streamlit app → Claim engine: checks claims
src/web.py - Claim engine → LLM providers: translates claims
src/engine.py - Claim engine → Z3 solver: solves with
README.md - Claim engine → SymPy solver: solves with
README.md - Claim engine → Proof state: builds result
src/engine.py - Claim engine → Power utilities: uses utilities
src/engine.py - Worker dispatch → Claim engine: runs solver
src/orchestrator.py - Worker dispatch → Proof memory: stores worker results
src/orchestrator.py - CLI → Worker dispatch: dispatches search workers
- CLI → Case search: runs case search
src/cli.py - Challenges and autopsy → Claim engine: rechecks constraints
src/argue.py - Challenges and autopsy → LLM providers: answers challenges
src/argue.py - Challenges and autopsy → Proof state: updates steps
src/argue.py - Challenges and autopsy → Proof memory: uses shared memory
src/argue.py - Streamlit app → Challenges and autopsy: handles challenges
src/web.py - Streamlit app → Drawing transcription: transcribes drawings
src/web.py - Streamlit app → Citation lookup: looks up citations
src/web.py - CLI → Citation lookup: looks up citations
src/cli.py - CLI → Example gallery: loads examples
src/cli.py - CLI → Report export: exports reports
src/cli.py - Streamlit app → Report export: exports reports
src/web.py - CLI → Math symbols: applies shortcuts
src/cli.py - Streamlit app → Math symbols: applies shortcuts
src/web.py - CLI → Clipboard support: uses clipboard
src/cli.py - CLI → Shared UI theme: renders interface
src/cli.py - Streamlit app → Shared UI theme: renders interface
src/web.py - Banner rendering → Shared UI theme: uses styles
src/banner.py - Report export → Proof state: renders session
src/export.py - Report export → Session and output paths: writes output
src/export.py - CLI → Session and output paths: resolves sessions
src/cli.py - Streamlit app → Session and output paths: syncs session
src/web.py