{"id":"contains-pattern-bounds-safe-loop","text":"The loop bound `n - m*k + 1` in contains_pattern guarantees all slice accesses stay within array bounds without explicit bounds checking; when m*k > n the range is empty and the function returns False.","truth_value":"IN","source":"entries/2026/06/06/detect-pattern-of-length-m-repeated-k-or-more-times-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"contains-pattern-bounds-safe-loop","truth_value":"IN","reason":"premise"}]}}