{"id":"increment-before-test-pattern","text":"The outer-parenthesis stripping algorithm increments/decrements depth *before* testing the inclusion condition, which is what makes `> 1` (for open) and `> 0` (for close) the correct thresholds — reversing the order would produce wrong results.","truth_value":"IN","source":"entries/2026/06/06/remove-outermost-parentheses-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"increment-before-test-pattern","truth_value":"IN","reason":"premise"}]}}