Title:Recurrence with bitwise XOR · conjecture2
Statement:Conjecture: more positive terms than negative.
As , the count of positive terms is greater than the count of negative terms.
The requirement that is large enough is needed, since the claim fails for .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.05115 [math.NT] · NS.05115v1 for this version |
| Declaration: | OeisA182510.conjecture2 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 6d70d1bca60a3dc964a760a3b356c76bcc1ca4cad4f1a301f225fb7084e19a49 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/182510.lean |
Formal statement
theorem conjecture2 :
∀ᶠ n in Filter.atTop,
((Finset.range n).filter (fun k => a k < 0)).card <
((Finset.range n).filter (fun k => 0 < a k)).cardShow the full Challenge.lean (82 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Recurrence with bitwise XOR
The sequence is defined by $a(0) = 0$, $a(1) = 1$, and for $n \ge 0$,
$$a(n+2) = (a(n+1) \mathbin{\mathrm{XOR}} (n+2)) - a(n),$$
where $\mathrm{XOR}$ is the bitwise exclusive-or operator on integers.
*References:*
- [A182510](https://oeis.org/A182510)-/
@[expose] public section
namespace OeisA182510
/-- Defining recurrence for $a(n)$. -/
def a : ℕ → ℤ
| 0 => 0
| 1 => 1
| n + 2 => Int.xor (a (n + 1)) (n + 2 : ℤ) - a n
@[category test, AMS 11]
theorem a_0 : a 0 = 0 := by rfl
@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by rfl
@[category test, AMS 11]
theorem a_2 : a 2 = 3 := by rfl
@[category test, AMS 11]
theorem a_3 : a 3 = -1 := by rfl
@[category test, AMS 11]
theorem a_4 : a 4 = -8 := by rfl
@[category test, AMS 11]
theorem a_5 : a 5 = -2 := by rfl
@[category test, AMS 11]
theorem a_6 : a 6 = 0 := by rfl
/--
Conjecture: the sequence contains 8 zeros.-/
@[category research open, AMS 11]
theorem conjecture1 : Set.ncard {n : ℕ | a n = 0} = 8 := by
sorry
/--
Conjecture: more positive terms than negative.
As $n \to \infty$, the count of positive terms is greater than the count of negative terms.
The requirement that $n$ is large enough is needed, since the claim fails for $n = 100$.
-/
@[category research open, AMS 11]
theorem conjecture2 :
∀ᶠ n in Filter.atTop,
((Finset.range n).filter (fun k => a k < 0)).card <
((Finset.range n).filter (fun k => 0 < a k)).card := by
sorry
end OeisA182510
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA182510.conjecture2 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture2 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-182510--conjecture2 nosorry submit oeis-182510--conjecture2 nosorry/oeis-182510--conjecture2/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.