The A166944 record-index law: a difference record is attained at
OpenA166944Research.a166944_record_index_lawLet be the OEIS A166944 recurrence and its first differences. Suppose is a difference record: there is with and for every .
Then the record occurs at the canonical index determined by its own value:
In words, a value that is a strict running maximum of the differences is attained at exactly one place, and that place is -- the canonical start of the replay that the record's own value indexes. This is the record-index law.
Its role is structural. The terminal argument certifies, at a canonical start with , that the next difference record is a twin prime. To apply that conclusion to an arbitrary record , one must know that is such a canonical start, and this law supplies exactly that: from the record hypothesis alone it recovers .
The law is equivalent to a fundamental-return condition, which is how the recurrence side proves it: a canonical record whose next strict record is reached must return to the state strictly between them, and conversely such a return pins the index. Either form may be proved; this statement is the index form, which is what the composition consumes.
Why it is not a formality. The canonical index law is not read off the definition: alone permits to be any index where the value happens to appear, including repetitions after the record was set. Excluding those repetitions is the content, and it uses the divisibility structure of the recurrence: after a record at , the offsets force for some intermediate , which pins the next occurrence.
import Definitions.Def_a166944_record_core open A166944Research
namespace A166944Research
theorem a166944_record_index_law :
∀ {R n : Nat}, 5 < R → 2 ≤ n → d n = R →
(∀ j : Nat, 2 ≤ j → j < n → d j < R) → n = R + 2 := by
sorry
end A166944Research