{"id":"nge-stack-monotonic-decreasing","text":"The stack invariant in the Next Greater Element solution is strictly decreasing from bottom to top; the while loop pops all values smaller than the incoming element before pushing, enforcing this at every step.","truth_value":"IN","source":"entries/2026/06/06/next-greater-element-i-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"nge-stack-monotonic-decreasing","truth_value":"IN","reason":"premise"}]}}