dsh-math-rigor: A Locally Auditable Mathematical Proving Toolchain

DeepSeek Harness (DSH) adopts a pluggable architecture. In model inference tasks, particularly in mathematical proof scenarios, verifying AI-generated derivation processes often relies on manual inspection. The dsh-math-rigor plugin integrates formal proof tools into DSH via a local MCP server, providing auditable proof workflows and automated verification capabilities.

Plugin Positioning

This is a Cordis host plugin running on DSH 0.2.x. It contains a local stdio MCP server (providing 23 tools), a built-in math-rigor skill, and two slash commands (/prove and /audit-proof). Its core value lies in introducing formal proof workflows into agent operations, ensuring the credibility of mathematical derivations.

Core Functionality

The plugin primarily includes the following capabilities:

  • Local MCP Server: Communicates with DSH via the stdio protocol, providing 23 tools for handling proofs, symbolic computation, and logical checks.
  • Built-in Skill: The math-rigor skill handles tasks such as proofs, derivations, identity verification, induction, and counterexample searching.
  • Slash Commands:
    • /prove <proposition>: Automatically executes a six-phase workflow: formalization, strategy formulation, lemma decomposition, step-by-step machine checking, machine auditing, and final reporting.
    • /audit-proof <text or session ID>: Audits proof texts or sessions by deconstructing the step DAG, reading judgment results, performing structural checks, and generating an issue list.

Installation and Activation

Install the plugin using the CLI (profile specification is required):

dsh plugin --profile web add bauerelizabeth07139/dsh-math-rigor

If git is not installed on the machine, a tarball URL can be used:

dsh plugin --profile web add https://codeload.github.com/bauerelizabeth07139/dsh-math-rigor/tar.gz/main

Prerequisites and Configuration

The plugin depends on Python 3.10+ and mcp, sympy, z3-solver, and mpmath.

On first load, setup: true must be configured or tools/setup_dsh.py must be run to establish the virtual environment and install dependencies. MCP tools will be unavailable until the environment is ready. The proof process is entirely offline (network is used only during installation).

Configuration Example (in the profile’s loader row):

- id: dsh-math-rigor
  config:
    home: "D:/math-rigor-data"
    setup: true

Use Cases and Security Mechanisms

  • Use Cases: Development of DSH agents requiring high-credibility mathematical derivations, formal verification, symbolic computation, and logical reasoning.
  • Security Mechanisms: The plugin’s security design strictly limits input; it does not use eval to execute user input, does not execute shell commands, does not perform file writes (except to the plugin’s home directory), and has no network connections for inference.

Summary

dsh-math-rigor provides rigorous mathematical proof infrastructure for the DSH ecosystem. By keeping the toolchain local, it ensures transparency and auditability in the proof process. For more details, please refer to the plugin directory or the GitHub repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye