{"id":"valid-parentheses-no-index-error","text":"Short-circuit evaluation of `not stack or stack.pop() != match[ch]` guarantees `pop` is never called on an empty list; a lone closer like `\")\"` returns `False` without raising `IndexError`.","truth_value":"IN","source":"entries/2026/06/06/valid-parentheses-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"valid-parentheses-no-index-error","truth_value":"IN","reason":"premise"}]}}