APNOutputs/OEIS/A382590_conjecture_kth_prime_factor_is_eventually_periodic.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
21 declarations, 0 contain sorry, 0 declared as axioms
Imports (1)
FormalConjectures.Util.ProblemImports
- def
A382590_pairHelper function for A382590, computing the pair $(a(n), b(n))$ such that: $a(n) = a(n-1)b(n-2) + a(n-2)b(n-1)$ $b(n) = a(n-1)b(n-2) - a(n-2)b(n-1)$ line 47 sourceSource documentation
Helper function for A382590, computing the pair $(a(n), b(n))$ such that: $a(n) = a(n-1)b(n-2) + a(n-2)b(n-1)$ $b(n) = a(n-1)b(n-2) - a(n-2)b(n-1)$
no axioms what this means
Statement uses:
Nat,Prod,IntProof uses:
A382590_pair.match_2,Unit,OfNat.ofNat,Prod.mk,Nat.succ,A382590_pair.match_1,HAdd.hAdd,HMul.hMul,HSub.hSub10 instances, coercions and auxiliary constants left out.
def A382590_pair : ℕ → ℤ × ℤ | 0 => (1, 1) | 1 => (2, 1) | n + 2 => let (a_n_plus_1, b_n_plus_1) := A382590_pair (n + 1) …
- def
A382590A382590 line 61 sourceSource documentation
A382590: $a(n)$ is the sequence defined by the mutual recurrence relations: $a(n) = a(n-1)b(n-2) + a(n-2)b(n-1)$ and $b(n) = a(n-1)b(n-2) - a(n-2)b(n-1)$ starting with $a(0) = b(0) = b(1) = 1$ and a(1) = 2. The terms are in $\mathbb{Z}$ due to negative values.
no axioms what this means
Statement uses:
Nat,IntProof uses:
Prod.fst, A382590_pairdef A382590 (n : ℕ) : ℤ := (A382590_pair n).fst …
Mentions: A382590_pair
- def
kth_prime_factorThe k-th prime factor of an integer n (where k>=1), counted with multiplicity line 70 sourceSource documentation
The k-th prime factor of an integer n (where k>=1), counted with multiplicity. This is defined as the k-th element (0-indexed k-1) of
Nat.primeFactorsList n.natAbs. Returns 1 if n has fewer than k prime factors or if n is 0, 1, or -1, following the informal convention.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,IntProof uses:
dite,Eq,OfNat.ofNat,Not,Int.natAbs,List,Nat.primeFactorsList,GE.ge,HSub.hSub,List.length,GetElem.getElem,LT.lt9 instances, coercions and auxiliary constants left out.
def kth_prime_factor (k : ℕ) (n : ℤ) : ℕ := …
- def
next_stateline 114 sourceno axioms what this means
Statement uses:
Prod,IntProof uses:
Prod.mk,Prod.snd,HMod.hMod,HAdd.hAdd,HMul.hMul,Prod.fst,OfNat.ofNat,HSub.hSub9 instances, coercions and auxiliary constants left out.
Distinct definitions of this name: APNOutputs/OEIS/oeis_A028859_conjecture_1.lean:107 (different declaration text). Qualify references as next_state@path.
- def
state_seqline 117 sourceno axioms what this means
Statement uses:
Nat,Prod,IntProof uses:
state_seq.match_1,Unit,OfNat.ofNat,Prod.mk,Nat.succ,next_state4 instances, coercions and auxiliary constants left out.
- lemma
A382590_mod_15line 121 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,And,Eq,Int,HMod.hMod,Prod.fst, A382590_pair,OfNat.ofNat,Prod, state_seq,Prod.snd,HAdd.hAddProof uses:
Nat.strongRec,LT.lt,A382590_mod_15.match_1,of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl,of_eq_true,HMul.hMul,HSub.hSub,Prod.mk,Eq.trans,True,congr,congrArg,Int.add_emod,Int.mul_emod,Int.emod_emod_of_dvdand 12 more48 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- def
valid_statesline 130 sourceno axioms what this means
Statement uses:
List,Prod,IntProof uses:
List.cons,Prod.mk,OfNat.ofNat,List.nil1 instances, coercions and auxiliary constants left out.
- lemma
state_seq_in_validline 147 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Membership.mem,Prod,Int,List, valid_states, state_seqProof uses:
Eq.mpr,Or,Eq,Prod.mk,OfNat.ofNat,id,Eq.trans,List.cons,List.nil,congrArg,False,eq_false,not_false,or_false,Nat.strongRec,Nat.casesAuxOn,LT.lt,Or.inl,Eq.refl,HAdd.hAddand 47 more60 instances, coercions and auxiliary constants left out.
Tactic trace: 55 steps
Open to load the checked before-and-after goal states.
- lemma
state_seq_fst_not_zeroline 185 sourceno axioms what this means
Statement uses:
Prod,Int,Membership.mem,List, valid_states,Ne,Prod.fst,OfNat.ofNatProof uses:
of_decide_eq_true,List.cons,Prod.mk,List.nil,Eq,id,Bool,Decidable.decide,Bool.true,Eq.refl7 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
a_n_not_zeroline 189 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Ne,Int,Prod.fst, A382590_pair,OfNat.ofNatProof uses:
Eq,HMod.hMod,Prod, state_seq,And.left,And,Prod.snd,HAdd.hAdd, A382590_mod_15,rfl,Membership.mem,List, valid_states, state_seq_in_valid, state_seq_fst_not_zero,Eq.symm,Eq.mp,congrArg8 instances, coercions and auxiliary constants left out.
Tactic trace: 8 steps
Open to load the checked before-and-after goal states.
- def
u_seqline 199 sourceno axioms what this means
Statement uses:
NatProof uses:
u_seq.match_1,Unit,OfNat.ofNat,Nat.succ,HAdd.hAdd5 instances, coercions and auxiliary constants left out.
- lemma
div_by_u_seq_stepline 208 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Int,Dvd.dvd,HPow.hPow,OfNat.ofNat,And,HAdd.hAdd,HMul.hMul,HSub.hSubProof uses:
Eq.mpr,id,Eq,congrArg,pow_add,mul_dvd_mul,add_comm,And.intro,dvd_add,dvd_sub38 instances, coercions and auxiliary constants left out.
Tactic trace: 11 steps
Open to load the checked before-and-after goal states.
- lemma
div_by_u_seqline 223 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,And,Dvd.dvd,Int,HPow.hPow,OfNat.ofNat, u_seq,Prod.fst, A382590_pair,Prod.sndProof uses:
Nat.strong_induction_on,LT.lt,Nat.casesAuxOn,of_eq_true,Prod.mk,Eq.trans,True,congr,congrArg,pow_zero,Mathlib.Meta.NormNum.IsNat.to_eq,Mathlib.Meta.NormNum.isNat_ofNat,Eq.refl,eq_true,True.intro,and_self,HAdd.hAdd,IsUnit,Nat.cast_one,HMul.hMuland 26 more61 instances, coercions and auxiliary constants left out.
Tactic trace: 24 steps
Open to load the checked before-and-after goal states.
- lemma
u_seq_boundline 247 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,GE.ge,OfNat.ofNat, u_seq,HSub.hSubProof uses:
Eq.rec,HAdd.hAdd,Eq,Nat.strongRec,LT.lt,u_seq_bound.match_1,of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl,Eq.mpr,Eq.trans,LE.le,Nat.casesAuxOn,And,of_eq_true,True,congrArgand 14 more47 instances, coercions and auxiliary constants left out.
Tactic trace: 7 steps
Open to load the checked before-and-after goal states.
- lemma
a_n_div_2_powline 252 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,GE.ge,HAdd.hAdd,OfNat.ofNat,Dvd.dvd,Int,HPow.hPow,Prod.fst, A382590_pairProof uses: u_seq,
HSub.hSub, u_seq_bound,Decidable.byContradiction,Not,And,Prod.snd, div_by_u_seq,LE.le,pow_dvd_pow,dvd_trans,And.left24 instances, coercions and auxiliary constants left out.
Tactic trace: 8 steps
Open to load the checked before-and-after goal states.
- lemma
padicValNat_two_geline 259 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Ne,OfNat.ofNat,Dvd.dvd,HPow.hPow,GE.ge,padicValNatProof uses:
Iff.mp,LE.le,padicValNat_dvd_iff_le13 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
count_two_primeFactorsListline 262 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Ne,OfNat.ofNat,Eq,List.count,Nat.primeFactorsList,padicValNatProof uses:
of_eq_true,Eq.trans,True,congrArg,Finsupp,Nat.factorization,Nat.primeFactorsList_count_eq,Nat.Prime,Nat.factorization_def,Mathlib.Meta.NormNum.isNat_prime_2,Mathlib.Meta.NormNum.isNat_ofNat,Eq.refl,Bool,Bool.true,Mathlib.Meta.NormNum.isNat_minFac_2,Mathlib.Meta.NormNum.IsNat.raw_refl,eq_self,eq_true,True.intro11 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
sorted_primeFactorsList_ge_twoline 266 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Ne,OfNat.ofNat,Membership.mem,List,Nat.primeFactorsList,GE.geProof uses:
Nat.Prime,Nat.prime_of_mem_primeFactorsList,Nat.Prime.two_le5 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
get_eq_two_of_count_geline 270 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Membership.mem,List,Nat.primeFactorsList,GE.ge,OfNat.ofNat,LT.lt,List.count,List.length,Eq,GetElem.getElemProof uses:
List.SortedLE,Nat.primeFactorsList_sorted,Finset.sum,List.toFinset,List.sum_toFinset_count_eq_length,le_antisymm,Iff.mp,Not,LE.le,not_lt,LT.lt.not_ge,Trans.simple,Finset.card,Finset.filter,List.getI,Finset.range,ge_of_eq,Eq.trans,ite,Finset.card_filterand 43 more70 instances, coercions and auxiliary constants left out.
Tactic trace: 11 steps
Open to load the checked before-and-after goal states.
- lemma
kth_prime_factor_eq_2line 280 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Int,GE.ge,OfNat.ofNat,Ne,Dvd.dvd,HPow.hPow,Eq, kth_prime_factorProof uses:
Int.natAbs,Iff.mpr,Int.natAbs_ne_zero,cast,Eq.refl,Iff.mp,Int.natCast_dvd,padicValNat, padicValNat_two_ge,List.count,Nat.primeFactorsList, count_two_primeFactorsList,LE.le,Decidable.byContradiction,Not,LT.lt,HSub.hSub,List.length,List.count_le_length,idand 9 more35 instances, coercions and auxiliary constants left out.
Tactic trace: 22 steps
Open to load the checked before-and-after goal states.
- theorem
target_theorem_0line 303 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,GE.ge,OfNat.ofNat,Exists,And,GT.gt,Eq, kth_prime_factor, A382590,HAdd.hAddProof uses:
Exists.intro,And.intro,Decidable.byContradiction,Not,Dvd.dvd,Int,HPow.hPow,Prod.fst, A382590_pair, a_n_div_2_pow,Ne, a_n_not_zero, kth_prime_factor_eq_2,Eq.mpr,id,congrArg,Eq.refl19 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/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_271591_conjecture_0.lean:518 (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: 18 steps
Open to load the checked before-and-after goal states.