Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Barker sequences · isBarkerSequence_length_thirteen

Source:Problems from arXiv papers
Sanity test Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Variant of:Barker sequences
Statement:

The known sequence (1,1,1,1,1,−1,−1,1,1,−1,1,−1,1)(1,1,1,1,1,-1,-1,1,1,-1,1,-1,1) of length 1313 is a Barker sequence.

Subjects:Combinatorics (math.CO); Number Theory (math.NT); Information Theory (math.IT)
MSC classes:05, 11, 94
Cite as:NS.00101 [math.CO] · NS.00101v1 for this version
Declaration:Arxiv.«2104.00502».isBarkerSequence_length_thirteen
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
Statement hash:b461185d220969981b3d9c4f1c7aca2f999976ba2590d28e24ddaff7e1728cbc
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Arxiv/2104.00502/BarkerSequence.lean

Formal statement

theorem isBarkerSequence_length_thirteen :
    IsBarkerSequence [1, 1, 1, 1, 1, -1, -1, 1, 1, -1, 1, -1, 1]
Show the full Challenge.lean (84 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Barker sequences

A Barker sequence is a finite sequence of $\pm 1$ values whose nontrivial aperiodic
autocorrelations all have magnitude at most one. The Barker conjecture says that no such sequence
has length greater than $13$.

*References:*
* J. Willms, [A note on Barker sequences of even length](https://arxiv.org/abs/2104.00502)
* [Barker code](https://en.wikipedia.org/wiki/Barker_code)
* [OEIS A091704](https://oeis.org/A091704)
-/

@[expose] public section

namespace Arxiv.«2104.00502»

/-- The aperiodic autocorrelation $C_k(a)=\sum_i a_i a_{i+k}$. -/
def aperiodicAutocorrelation (a : List ℤ) (k : ℕ) : ℤ :=
  (List.zipWith (· * ·) a (a.drop k)).sum

/--
A Barker sequence has $\pm 1$ entries and nontrivial autocorrelations of magnitude at most one.
-/
def IsBarkerSequence (a : List ℤ) : Prop :=
  (∀ x ∈ a, x = 1 ∨ x = -1) ∧
    ∀ k : ℕ, 0 < k → k < a.length → |aperiodicAutocorrelation a k| ≤ 1

/-- Every Barker sequence has length at most $13$. -/
@[category research open, AMS 5 11 94]
theorem barker_conjecture (a : List ℤ) (ha : IsBarkerSequence a) : a.length ≤ 13 := by
  sorry

/--
The known sequence $(1,1,1,1,1,-1,-1,1,1,-1,1,-1,1)$ of length $13$ is a Barker sequence.
-/
@[category test, AMS 5 11 94]
theorem isBarkerSequence_length_thirteen :
    IsBarkerSequence [1, 1, 1, 1, 1, -1, -1, 1, 1, -1, 1, -1, 1] := by
  constructor
  · simp
  · intro k hkpos hklen
    norm_num at hklen
    interval_cases k <;>
      norm_num [aperiodicAutocorrelation] at hkpos ⊢

/-- The sequence $(1,1,1,-1)$ is a Barker sequence. -/
@[category test, AMS 5 11 94]
theorem isBarkerSequence_length_four : IsBarkerSequence [1, 1, 1, -1] := by
  constructor
  · simp
  · intro k hkpos hklen
    norm_num at hklen
    interval_cases k <;>
      norm_num [aperiodicAutocorrelation] at hkpos ⊢

/-- The constant sequence $(1,1,1,1)$ is not a Barker sequence. -/
@[category test, AMS 5 11 94]
theorem not_isBarkerSequence_constant_four : ¬ IsBarkerSequence [1, 1, 1, 1] := by
  intro ha
  have h := ha.2 1 (by norm_num) (by norm_num)
  norm_num [aperiodicAutocorrelation] at h

end Arxiv.«2104.00502»

To prove it: keep every definition of Challenge.lean unchanged and prove Arxiv.«2104.00502».isBarkerSequence_length_thirteen with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_isBarkerSequence_length_thirteen : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk arxiv-2104-00502-barkersequence--isbarkersequence-length-thirteen      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch arxiv-2104-00502-barkersequence--isbarkersequence-length-thirteen
nosorry submit arxiv-2104-00502-barkersequence--isbarkersequence-length-thirteen nosorry/arxiv-2104-00502-barkersequence--isbarkersequence-length-thirteen/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.