APNOutputs/OEIS/oeis_271591_conjecture_0.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: Google DeepMind published the AlphaProof Nexus proof artifacts. The pinned repository identifies the mathematical sources and collaborators, including OEIS, Erdős Problems, Gergely Bérczi, and Mario Krenn; those source records remain the authority for individual credit.
Project sources: Pinned AlphaProof Nexus results documentation, AlphaProof Nexus paper, Pinned human-written natural-language proof companions
31 declarations, 0 contain sorry, 0 declared as axioms
Imports (1)
FormalConjectures.Util.ProblemImports
- def
tribonacciThe Tribonacci numbers $T_n$ (A000073) line 46 sourceSource documentation
The Tribonacci numbers $T_n$ (A000073). $T_0=0, T_1=0, T_2=1$, and $T_n = T_{n-1} + T_{n-2} + T_{n-3}$ for $n \ge 3$.
no axioms what this means
Statement uses:
NatProof uses:
tribonacci.match_1,Unit,OfNat.ofNat,Nat.succ,HAdd.hAdd5 instances, coercions and auxiliary constants left out.
def tribonacci (n : ℕ) : ℕ := …
- def
aA271591: Second most significant bit of the tribonacci number A000073(n) line 57 sourceSource documentation
A271591: Second most significant bit of the tribonacci number A000073(n). This is formalized by extracting the bit at position $\lfloor \log_2 T_n \rfloor - 1$.
standard axioms: propext what this means
Statement uses:
NatProof uses: tribonacci,
dite,LE.le,OfNat.ofNat,Not,HSub.hSub,Nat.log2,ite,Eq,Bool,Nat.testBit,Bool.true6 instances, coercions and auxiliary constants left out.
Distinct definitions of this name: APNOutputs/OEIS/A309132_conjecture_carmichael.lean:45 (different declaration text), APNOutputs/OEIS/a091669_conjecture_primitive_root.lean:46 (different declaration text), APNOutputs/OEIS/a325046_odd_terms_at_k_times_k_plus_1.lean:52 (different declaration text), APNOutputs/OEIS/oeis_103311_conjecture_0.lean:47 (different declaration text), APNOutputs/OEIS/oeis_108_conjecture_2.lean:45 (same statement text; different proof or body), APNOutputs/OEIS/oeis_113254_conjecture_0.lean:48 (different declaration text), APNOutputs/OEIS/oeis_175386_conjecture_0.lean:46 (same statement text; different proof or body), APNOutputs/OEIS/oeis_194806_conjecture_0.lean:50 (different declaration text), APNOutputs/OEIS/oeis_227582_conjecture_0.lean:60 (different declaration text), APNOutputs/OEIS/oeis_228143_conjecture_1.lean:54 (different declaration text), APNOutputs/OEIS/oeis_243106_conjecture_0.lean:47 (different declaration text), APNOutputs/OEIS/oeis_248802_conjecture_0.lean:43 (same statement text; different proof or body), APNOutputs/OEIS/oeis_248802_conjecture_4.lean:43 (same statement text; different proof or body), APNOutputs/OEIS/oeis_267581_conjecture_0.lean:71 (different declaration text), APNOutputs/OEIS/oeis_2897_conjecture_0.lean:46 (same statement text; different proof or body), APNOutputs/OEIS/oeis_306424_conjecture_0.lean:52 (different declaration text), APNOutputs/OEIS/oeis_307865_conjecture_0.lean:46 (same statement text; different proof or body), APNOutputs/OEIS/oeis_323557_conjecture_0.lean:48 (different declaration text), APNOutputs/OEIS/oeis_341254_conjecture_0.lean:52 (different declaration text), APNOutputs/OEIS/oeis_372761_conjecture_2.lean:83 (different declaration text), APNOutputs/OEIS/oeis_62567_conjecture_0.lean:49 (different declaration text), APNOutputs/OEIS/oeis_A028859_conjecture_1.lean:43 (same statement text; different proof or body), APNOutputs/OEIS/oeis_a211417_conjecture_specific.lean:44 (same statement text; different proof or body), APNOutputs/OEIS/oeis_a237271_conjecture_2.lean:49 (same statement text; different proof or body), APNOutputs/OEIS/oeis_a300997_finite_difference_is_one_or_two.lean:46 (different declaration text), APNOutputs/OEIS/oeis_a363102_conjecture_1.lean:56 (same statement text; different proof or body), APNOutputs/OEIS/oeis_a368692_conjecture_integrality.lean:47 (same statement text; different proof or body). Qualify references as a@path.
def a (n : ℕ) : ℕ := …
- def
is_maximal_runline 66 sourcestandard axioms: propext what this means
Statement uses:
NatProof uses:
And,GE.ge,OfNat.ofNat,LT.lt,Eq,a,HAdd.hAdd,Ne,HSub.hSub7 instances, coercions and auxiliary constants left out.
- def
valid_boundsline 110 sourceno axioms what this means
Statement uses:
NatProof uses:
And,LE.le,HMul.hMul,OfNat.ofNat, tribonacci,HAdd.hAdd6 instances, coercions and auxiliary constants left out.
- lemma
k_unique_0line 114 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,HMul.hMul,OfNat.ofNat,HPow.hPow,LT.lt,Eq,HAdd.hAddProof uses:
le_antisymm,Iff.mp,Not,not_lt,Function.comp,Nat.succ,False,Nat.pow_le_pow_right,of_decide_eq_true,GT.gt,id,Bool,Decidable.decide,Bool.true,Eq.refl,Nat.pow_lt_pow_iff_right,Nat.le.refl,Decidable.byContradiction30 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- lemma
k_unique_1line 119 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,HMul.hMul,OfNat.ofNat,HPow.hPow,LT.lt,EqProof uses:
Iff.mpr,And,le_antisymm_iff,And.intro,Iff.mp,Not,not_lt,Function.comp,Nat.succ,False,Nat.pow_le_pow_right,of_decide_eq_true,GT.gt,id,Bool,Decidable.decide,Bool.true,Eq.refl27 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- lemma
k_unique_Cline 124 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,HMul.hMul,OfNat.ofNat,HPow.hPow,LT.lt,Eq,HAdd.hAddProof uses:
le_antisymm,Iff.mp,Not,not_lt,Function.comp,False,LE.le.trans',Nat.succ,Nat.pow_le_pow_right,of_decide_eq_true,GT.gt,id,Bool,Decidable.decide,Bool.true,Eq.refl,Eq.ge,pow_add,Nat.pow_lt_pow_iff_right,Nat.le.refland 1 more35 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- lemma
k_unique_C1line 129 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,HMul.hMul,OfNat.ofNat,HPow.hPow,LT.lt,Eq,HAdd.hAddProof uses:
le_antisymm,Iff.mp,Not,not_lt,Function.comp,Nat.succ,False,Nat.pow_le_pow_right,of_decide_eq_true,GT.gt,id,Bool,Decidable.decide,Bool.true,Eq.refl,Nat.pow_lt_pow_iff_right,Decidable.byContradiction31 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- lemma
a_eq_1_prop_kline 134 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,GT.gt, tribonacci,OfNat.ofNat,Eq,a,Exists,And,LE.le,HMul.hMul,HPow.hPow,LT.ltProof uses:
Exists.rec,Nat.log,HAdd.hAdd,Exists.intro,by_contra,Not,HMod.hMod,HEq,Eq.trans,HDiv.hDiv,Eq.symm,Eq.mp,HShiftRight.hShiftRight,HSub.hSub,congrArg,add_tsub_cancel_right,Nat.shiftRight_eq_div_pow,dite,Nat.log2,iteand 38 more86 instances, coercions and auxiliary constants left out.
Tactic trace: 11 steps
Open to load the checked before-and-after goal states.
- lemma
a_eq_0_prop_kline 142 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,GT.gt, tribonacci,OfNat.ofNat,Eq,a,Exists,And,LE.le,HMul.hMul,HPow.hPow,LT.ltProof uses:
id,Star.star,Decidable.rec,Decidable,Not,HSub.hSub,Nat.log2,ite,Bool,Nat.testBit,Bool.true,Eq.mpr,HAdd.hAdd,congrArg,Nat.succ,funext,congr,Eq.symm,Nat.pow_succ',mul_command 62 more94 instances, coercions and auxiliary constants left out.
Tactic trace: 12 steps
Open to load the checked before-and-after goal states.
- lemma
prop_implies_a_eq_1_kline 151 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,GT.gt, tribonacci,OfNat.ofNat,LE.le,HMul.hMul,HPow.hPow,LT.lt,Eq,aProof uses:
Eq.mpr,dite,Not,ite,Bool,Nat.testBit,HSub.hSub,Nat.log2,Bool.true,id,congrArg,dite_congr,Eq.refl,HMod.hMod,HShiftRight.hShiftRight,Nat.log,Eq.trans,ite_congr,bne,HAnd.hAndand 24 more51 instances, coercions and auxiliary constants left out.
Tactic trace: 7 steps
Open to load the checked before-and-after goal states.
- lemma
prop_implies_a_eq_0_kline 157 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,GT.gt, tribonacci,OfNat.ofNat,LE.le,HMul.hMul,HPow.hPow,LT.lt,Eq,aProof uses:
Eq.mpr,dite,Not,HSub.hSub,Nat.log2,ite,Bool,Nat.testBit,Bool.true,id,congrArg,a.eq_1,HMod.hMod,HShiftRight.hShiftRight,Eq.trans,dite_congr,Eq.refl,ite_congr,bne,HAnd.hAndand 33 more54 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
valid_bounds_stepline 163 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,And,LE.le,HMul.hMul,OfNat.ofNat,HAdd.hAdd11 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
valid_bounds_step_nline 169 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat, valid_bounds,HAdd.hAdd,OfNat.ofNatProof uses:
And,LE.le,HMul.hMul, tribonacci, valid_bounds_step,Eq,rfl9 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
valid_bounds_7line 174 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: valid_bounds,
OfNat.ofNat,NatProof uses:
Eq.mpr,And,LE.le,HMul.hMul, tribonacci,id,Eq,congr,HAdd.hAdd,congrArg,Mathlib.Meta.NormNum.IsNat.to_eq,Mathlib.Meta.NormNum.isNat_add,Eq.refl,Mathlib.Meta.NormNum.isNat_ofNat,of_eq_true,Eq.trans,True,Mathlib.Meta.NormNum.isNat_mul,eq_true,Mathlib.Meta.NormNum.isNat_le_trueand 4 more21 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
valid_bounds_8line 178 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: valid_bounds,
OfNat.ofNat,NatProof uses:
id,of_eq_true,Membership.mem,Set,setOf,And,LE.le,HMul.hMul,HAdd.hAdd,Eq.trans,True,congrArg,funext,congr,Mathlib.Meta.NormNum.IsNat.to_eq,Mathlib.Meta.NormNum.isNat_add,Eq.refl,Mathlib.Meta.NormNum.isNat_ofNat,Mathlib.Meta.NormNum.isNat_mul,eq_trueand 5 more23 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
valid_bounds_all_indline 182 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,And, valid_bounds,HAdd.hAdd,OfNat.ofNatProof uses:
Nat.recAux,Eq.mpr,LE.le,HMul.hMul, tribonacci,id,Eq,congr,congrArg,Mathlib.Meta.NormNum.IsNat.to_eq,Mathlib.Meta.NormNum.isNat_add,Eq.refl,Mathlib.Meta.NormNum.isNat_ofNat,And.intro,of_decide_eq_true,Bool,Decidable.decide,Bool.true,True,Eq.transand 4 more15 instances, coercions and auxiliary constants left out.
Tactic trace: 6 steps
Open to load the checked before-and-after goal states.
- lemma
valid_bounds_allline 192 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,GE.ge,OfNat.ofNat, valid_boundsProof uses:
id,And,LE.le,HMul.hMul, tribonacci,HAdd.hAdd,Eq.rec,HSub.hSub,Eq,tribonacci.match_1,Unit,Nat.succ,Nat.strongRec,LT.lt,valid_bounds_all.match_1,of_decide_eq_true,Bool,Decidable.decide,Bool.true,Eq.refland 15 more24 instances, coercions and auxiliary constants left out.
Tactic trace: 9 steps
Open to load the checked before-and-after goal states.
- lemma
trib_gt_1line 197 sourcestandard axioms: propext what this means
Statement uses:
Nat,GE.ge,OfNat.ofNat,GT.gt, tribonacciProof uses:
id,Nat.le.rec,tribonacci.match_1,Unit,Nat.succ,HAdd.hAdd,of_decide_eq_true,Eq,Bool,Decidable.decide,Bool.true,Eq.refl,Nat.le,trib_gt_1.match_1,Function.comp,LE.le,Nat.rec,PProd,PProd.mk,Nat.zeroand 6 more15 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
trib_eq_shiftline 201 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Nat,GE.ge,OfNat.ofNat,Eq, tribonacci,HAdd.hAdd,HSub.hSubProof uses:
Decidable.byContradiction,Not,Eq.mpr,id,congrArg,Nat.succ,tribonacci.eq_4,Eq.refl16 instances, coercions and auxiliary constants left out.
Tactic trace: 8 steps
Open to load the checked before-and-after goal states.
- lemma
trib_expandline 208 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Eq,HAdd.hAdd,And,HMul.hMul,OfNat.ofNatProof uses:
Decidable.byContradiction,Not13 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
a_dichotomyline 218 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Or,Eq,a,OfNat.ofNatProof uses:
Eq.mpr,LT.lt, tribonacci,Bool,Nat.testBit,HSub.hSub,Nat.log2,Bool.true,ite,LE.le,id,Eq.trans,dite,Not,Bool.false,congr,congrArg,dite_congr,Eq.refl,implies_congrand 12 more22 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
run_0_a_n1line 222 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,HMul.hMul,OfNat.ofNat,LT.lt,And11 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
run_1_a_n1line 230 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,HMul.hMul,OfNat.ofNat,LT.lt,AndProof uses:
Decidable.byContradiction,Not14 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
run_0_boundsline 238 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,HMul.hMul,OfNat.ofNat,LT.lt,HAdd.hAdd,And,GE.ge13 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
run_1_boundsline 254 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,HMul.hMul,OfNat.ofNat,LT.lt,HAdd.hAdd,And,GE.ge13 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
small_cases_0line 268 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Nat,LT.lt,OfNat.ofNat, is_maximal_run,FalseProof uses:
absurd,Eq,a,HAdd.hAdd,And.left,And,Not,HSub.hSub,And.right,LE.le,Eq.mp,congr,GE.ge,congrArg,small_cases_0.match_211 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
small_cases_1line 272 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LT.lt,OfNat.ofNat, is_maximal_run,Or,EqProof uses:
GE.ge,And,a,HAdd.hAdd,Ne,HSub.hSub,And.elim,ite,LE.le, tribonacci,Bool,Nat.testBit,Nat.log2,Bool.true,Not,by_contra,absurd,False,Function.comp,diteand 53 more82 instances, coercions and auxiliary constants left out.
Tactic trace: 25 steps
Open to load the checked before-and-after goal states.
- lemma
run_0_mainline 285 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,GE.ge,OfNat.ofNat, is_maximal_run,Or,EqProof uses:
And,LT.lt,a,HAdd.hAdd,Ne,HSub.hSub,GT.gt, tribonacci, trib_gt_1,Decidable.byContradiction,Not, a_dichotomy,False.elim,Exists,LE.le,HMul.hMul,HPow.hPow, a_eq_1_prop_k, valid_bounds, valid_bounds_all and 51 more82 instances, coercions and auxiliary constants left out.
Tactic trace: 178 steps
Open to load the checked before-and-after goal states.
- lemma
run_1_mainline 409 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,GE.ge,OfNat.ofNat, is_maximal_run,Or,EqProof uses:
And,LT.lt,a,HAdd.hAdd,Ne,HSub.hSub,GT.gt, tribonacci, trib_gt_1,Decidable.byContradiction,Not, a_dichotomy,False.elim,Exists,LE.le,HMul.hMul,HPow.hPow, a_eq_0_prop_k, valid_bounds, valid_bounds_all and 51 more80 instances, coercions and auxiliary constants left out.
Tactic trace: 153 steps
Open to load the checked before-and-after goal states.
- theorem
target_theorem_0line 518 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
And,Nat, is_maximal_run,OfNat.ofNat,Or,EqProof uses:
LT.lt,lt_trichotomy,False.elim, small_cases_0, run_0_main,Decidable.byContradiction,GE.ge,Not, small_cases_1, run_1_main,And.intro11 instances, coercions and auxiliary constants left out.
Distinct definitions of this name: APNOutputs/OEIS/A224515_conjecture_existence.lean:269 (different declaration text), APNOutputs/OEIS/A309132_conjecture_carmichael.lean:375 (different declaration text), APNOutputs/OEIS/A382590_conjecture_kth_prime_factor_is_eventually_periodic.lean:303 (different declaration text), APNOutputs/OEIS/a091669_conjecture_primitive_root.lean:275 (different declaration text), APNOutputs/OEIS/a325046_odd_terms_at_k_times_k_plus_1.lean:187 (different declaration text), APNOutputs/OEIS/oeis_103311_conjecture_0.lean:240 (different declaration text), APNOutputs/OEIS/oeis_108_conjecture_2.lean:281 (different declaration text), APNOutputs/OEIS/oeis_113254_conjecture_0.lean:153 (different declaration text), APNOutputs/OEIS/oeis_175386_conjecture_0.lean:326 (different declaration text), APNOutputs/OEIS/oeis_194806_conjecture_0.lean:495 (different declaration text), APNOutputs/OEIS/oeis_227582_conjecture_0.lean:306 (different declaration text), APNOutputs/OEIS/oeis_228143_conjecture_1.lean:730 (different declaration text), APNOutputs/OEIS/oeis_243106_conjecture_0.lean:164 (different declaration text), APNOutputs/OEIS/oeis_248802_conjecture_0.lean:223 (different declaration text), APNOutputs/OEIS/oeis_248802_conjecture_4.lean:841 (different declaration text), APNOutputs/OEIS/oeis_256012_conjecture_0.lean:116 (different declaration text), APNOutputs/OEIS/oeis_267581_conjecture_0.lean:212 (different declaration text), APNOutputs/OEIS/oeis_278070_conjecture_0.lean:91 (different declaration text), APNOutputs/OEIS/oeis_282779_conjecture_0.lean:141 (different declaration text), APNOutputs/OEIS/oeis_289411_conjecture_0.lean:189 (different declaration text), APNOutputs/OEIS/oeis_2897_conjecture_0.lean:427 (different declaration text), APNOutputs/OEIS/oeis_306424_conjecture_0.lean:300 (different declaration text), APNOutputs/OEIS/oeis_307865_conjecture_0.lean:212 (different declaration text), APNOutputs/OEIS/oeis_323557_conjecture_0.lean:214 (different declaration text), APNOutputs/OEIS/oeis_340737_conjecture_0.lean:456 (different declaration text), APNOutputs/OEIS/oeis_341254_conjecture_0.lean:136 (different declaration text), APNOutputs/OEIS/oeis_363347_conjecture_2.lean:848 (different declaration text), APNOutputs/OEIS/oeis_372761_conjecture_2.lean:756 (different declaration text), APNOutputs/OEIS/oeis_51293_conjecture_0.lean:517 (different declaration text), APNOutputs/OEIS/oeis_62567_conjecture_0.lean:329 (different declaration text), APNOutputs/OEIS/oeis_A028859_conjecture_1.lean:432 (different declaration text), APNOutputs/OEIS/oeis_A258667_conjecture_0.lean:446 (different declaration text), APNOutputs/OEIS/oeis_a211417_conjecture_specific.lean:264 (different declaration text), APNOutputs/OEIS/oeis_a237271_conjecture_2.lean:124 (different declaration text), APNOutputs/OEIS/oeis_a300997_finite_difference_is_one_or_two.lean:1111 (different declaration text), APNOutputs/OEIS/oeis_a363102_conjecture_1.lean:302 (different declaration text), APNOutputs/OEIS/oeis_a368692_conjecture_integrality.lean:182 (different declaration text). Qualify references as target_theorem_0@path.
Tactic trace: 24 steps
Open to load the checked before-and-after goal states.