{"id":"substring-negation-pattern","text":"Multiple solutions in this repo reduce ordering/segmentation problems to checking for a forbidden 2-character substring (e.g., `\"ba\" not in s` for all-a's-before-b's).","truth_value":"IN","source":"entries/2026/06/06/check-if-all-as-appears-before-all-bs-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"substring-negation-pattern","truth_value":"IN","reason":"premise"}]}}