{"id":"nge-unique-elements-assumed","text":"The dict-keyed-by-value approach in `next_greater_element` is correct only because the problem guarantees all elements are unique; duplicate values would cause silent overwrites of earlier mappings.","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-unique-elements-assumed","truth_value":"IN","reason":"premise"}]}}