verify_arithmetic
Recompute arithmetic results to validate claimed outcomes for sum, weighted average, percentage, growth, and product, with strict or tolerance-based matching.
Instructions
Verify that a claimed arithmetic result matches the actual computation. Supports: sum, weighted_average, percentage, growth, product.
REQUIRED INPUT FORMAT — copy this structure exactly: {"claim_type":"weighted_average","values":[100,80,60],"weights":[0.5,0.3,0.2],"claimed_result":84}
Claim types and required fields:
"sum": values[], claimed_result
"weighted_average": values[], weights[], claimed_result
"percentage": part, whole, claimed_result
"growth": values[] (principal), rate, periods, claimed_result
"product": values[], claimed_result
Strict by default — matches to 2 decimal places. Optional "tolerance" for relative tolerance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | Numerator for "percentage" claim type | |
| rate | No | Growth rate for "growth" claim type | |
| whole | No | Denominator for "percentage" claim type | |
| values | No | Input values (for sum: addends, for growth: [principal], etc.) | |
| periods | No | Number of periods for "growth" claim type | |
| weights | No | Weights for weighted_average (same length as values) | |
| tolerance | No | Optional relative tolerance (e.g., 0.01 for 1%). Default: strict 2-decimal match. | |
| claim_type | Yes | Type of arithmetic claim to verify | |
| claimed_result | Yes | The result being verified |