math_verify
Verifies mathematical answers by checking symbolic and random-point equivalence, substituting solutions into equations, and validating derivatives, antiderivatives, numeric results, or inequalities.
Instructions
Check an answer before giving it: symbolic and random-point equivalence of two expressions, substitution of a solution into equations, derivative and antiderivative checks, numeric comparison with tolerance, counterexample search for inequalities.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operation": "<operation>",
"expr": "<expr>"
},
"name": "math_verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expr | Yes | Expression, ';'-separated equations, or inequality to check. | |
| domain | No | real | |
| samples | No | ||
| expected | No | Claimed result to compare with. | |
| solution | No | Claimed solution e.g. {'x': '2', 'y': '-1/3'}. | |
| operation | Yes | ||
| tolerance | No | ||
| variables | No |