APNOutputs/ErdosProblems/erdos_152.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
64 declarations, 0 contain sorry, 0 declared as axioms
Imports (1)
FormalConjectures.Util.ProblemImports
- def
Erdos152.fDefinef nto be the minimum of|{s | s - 1 ∉ A + A, s ∈ A + A, s + 1 ∉ A + A}|asAranges over all Sidon sets of sizenline 27 sourceSource documentation
Define
f nto be the minimum of|{s | s - 1 ∉ A + A, s ∈ A + A, s + 1 ∉ A + A}|asAranges over all Sidon sets of sizen.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
iInf,Set,setOf,And,Eq,Set.ncard,IsSidon,Not,Membership.mem,HAdd.hAdd,HSub.hSub,OfNat.ofNat11 instances, coercions and auxiliary constants left out.
noncomputable def f (n : ℕ) : ℕ := …
- def
Erdos152.num_isolatedline 68 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,NatProof uses:
Set.ncard,setOf,And,Not,Membership.mem,HAdd.hAdd,HSub.hSub,OfNat.ofNat7 instances, coercions and auxiliary constants left out.
- def
Erdos152.N_k_Nline 71 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,NatProof uses:
Set.ncard,setOf,And,Membership.mem,HAdd.hAdd3 instances, coercions and auxiliary constants left out.
- def
Erdos152.N_k_Zline 72 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Int,NatProof uses:
Set.ncard,setOf,And,Membership.mem,HAdd.hAdd3 instances, coercions and auxiliary constants left out.
- def
Erdos152.V_2_Nline 73 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,NatProof uses:
Set.ncard,setOf,And,Membership.mem,HSub.hSub,OfNat.ofNat,HAdd.hAdd6 instances, coercions and auxiliary constants left out.
- def
Erdos152.I_Nline 74 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,NatProof uses:
Set.ncard,setOf,And,Membership.mem,Not,HSub.hSub,OfNat.ofNat,HAdd.hAdd6 instances, coercions and auxiliary constants left out.
- def
Erdos152.D_setline 76 sourceno axioms what this means
Statement uses:
Set,Nat,IntProof uses:
setOf,Exists,And,Membership.mem,Eq,HSub.hSub5 instances, coercions and auxiliary constants left out.
- def
Erdos152.indline 79 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,IntProof uses:
ite,Membership.mem,OfNat.ofNat3 instances, coercions and auxiliary constants left out.
- lemma
Erdos152.H_valline 81 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Int, Erdos152.ind,HAdd.hAdd,OfNat.ofNat,GE.ge,HMul.hMulProof uses:
id,dite,ite,Membership.mem,Eq.mpr,Eq,congr,congrArg,if_pos,Decidable.byContradiction,Not,if_neg31 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.sum_Hline 86 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Int,Finset,GE.ge,Finset.sum,HAdd.hAdd, Erdos152.ind,OfNat.ofNat,HMul.hMulProof uses:
Finset.sum_le_sum,Membership.mem, Erdos152.H_val18 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.universal_parity_3line 93 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Int,Set.Finite,LE.le,Nat,HAdd.hAdd,HMul.hMul,OfNat.ofNat, Erdos152.N_k_Z,Set.ncardProof uses:
Eq.mpr,Finset.card,Set.Finite.toFinset,id,Eq,congrArg,Exists.elim,Real,NNReal,Eq.dvd,NNReal.coe_zero,Set.ncard_eq_toFinset_card,Trans.simple,setOf,And,Membership.mem,Nat.card,Subtype,Finset,Finset.filterand 63 more79 instances, coercions and auxiliary constants left out.
Tactic trace: 20 steps
Open to load the checked before-and-after goal states.
- def
Erdos152.Z_Sline 106 sourceno axioms what this means
Statement uses:
Set,Nat,IntProof uses:
Set.image2 instances, coercions and auxiliary constants left out.
- def
Erdos152.I_Zline 108 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Int,NatProof uses:
Set.ncard,setOf,And,Membership.mem,Not,HSub.hSub,OfNat.ofNat,HAdd.hAdd6 instances, coercions and auxiliary constants left out.
- def
Erdos152.V_2_Zline 109 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Int,NatProof uses:
Set.ncard,setOf,And,Membership.mem,HSub.hSub,OfNat.ofNat,HAdd.hAdd6 instances, coercions and auxiliary constants left out.
- def
Erdos152.C_set_Zline 110 sourceno axioms what this means
Statement uses:
Set,IntProof uses:
setOf,And,Membership.mem,Not,HAdd.hAdd,OfNat.ofNat4 instances, coercions and auxiliary constants left out.
- lemma
Erdos152.I_identity_Zline 112 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Int,Set.Finite,Eq,Nat,HAdd.hAdd, Erdos152.I_Z,HMul.hMul,OfNat.ofNat, Erdos152.N_k_Z,Set.ncard, Erdos152.V_2_ZProof uses:
Eq.mpr,id,congrArg,Eq.symm,propext,eq_comm,setOf,And,Membership.mem,Not,HSub.hSub,Erdos152.I_Z.eq_1,two_mul,Erdos152.N_k_Z.eq_1,Erdos152.V_2_Z.eq_1,Finset.card,Set.Finite.toFinset,Set.ncard_eq_toFinset_card,Finset.filter,Orand 40 more65 instances, coercions and auxiliary constants left out.
Tactic trace: 10 steps
Open to load the checked before-and-after goal states.
- def
Erdos152.C1line 120 sourceno axioms what this means
Statement uses:
Set,IntProof uses:
setOf,And,Membership.mem, Erdos152.C_set_Z,Not,HSub.hSub,OfNat.ofNat4 instances, coercions and auxiliary constants left out.
- def
Erdos152.C2line 121 sourceno axioms what this means
Statement uses:
Set,IntProof uses:
setOf,And,Membership.mem, Erdos152.C_set_Z,Not,HAdd.hAdd,OfNat.ofNat4 instances, coercions and auxiliary constants left out.
- def
Erdos152.C3line 122 sourceno axioms what this means
Statement uses:
Set,IntProof uses:
setOf,And,Membership.mem, Erdos152.C_set_Z,HSub.hSub,OfNat.ofNat4 instances, coercions and auxiliary constants left out.
- def
Erdos152.C4line 123 sourceno axioms what this means
Statement uses:
Set,IntProof uses:
setOf,And,Membership.mem, Erdos152.C_set_Z,HAdd.hAdd,OfNat.ofNat4 instances, coercions and auxiliary constants left out.
- lemma
Erdos152.C_boundline 125 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Int,Set.Finite,And,LE.le,Nat,Set.ncard, Erdos152.C_set_Z,HAdd.hAdd, Erdos152.C1, Erdos152.C3, Erdos152.C2, Erdos152.C4Proof uses:
id,And.intro,setOf,Membership.mem,Not,OfNat.ofNat,HSub.hSub,LE.le.trans_eq,Inter.inter,SDiff.sdiff,Eq.ge,Set.ncard_inter_add_ncard_diff_eq_ncard,Set.Finite.sep,add_comm17 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.C1_boundline 131 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Int,Set.Finite,LE.le,Nat,Set.ncard, Erdos152.C1, Erdos152.I_ZProof uses:
id,Nat.card_mono,setOf,And,Membership.mem, Erdos152.C_set_Z,Not,HSub.hSub,OfNat.ofNat,HAdd.hAdd,Set.Finite.sep,And.rec,Erdos152.C1_bound.match_19 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.C2_boundline 133 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Int,Set.Finite,LE.le,Nat,Set.ncard, Erdos152.C2, Erdos152.I_ZProof uses:
id,Nat.card,setOf,And,Membership.mem, Erdos152.C_set_Z,Not,HAdd.hAdd,OfNat.ofNat,HSub.hSub,LE.le.trans,Inter.inter,Set.image,Eq.ge,Nat.card_image_of_injective,add_left_injective,Nat.card_mono,Set.Finite.sep,Iff.mpr,HasSubset.Subsetand 20 more26 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.C34_boundline 136 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Int,Set.Finite,LE.le,Nat,HAdd.hAdd,Set.ncard, Erdos152.C3, Erdos152.C4, Erdos152.N_k_Z,OfNat.ofNatProof uses:
id,Eq.mpr,setOf,And,Membership.mem, Erdos152.C_set_Z,HSub.hSub,Not,Eq,congrArg,congr,funext,Eq.trans,Inter.inter,Set.sep_and,dite,Trans.simple,Finset.card,Union.union,Finsetand 42 more39 instances, coercions and auxiliary constants left out.
Tactic trace: 14 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.local_pattern_C_Zline 145 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Int,Set.Finite,LE.le,Nat,HMul.hMul,OfNat.ofNat,Set.ncard, Erdos152.C_set_Z,HAdd.hAdd, Erdos152.N_k_Z, Erdos152.I_ZProof uses:
And, Erdos152.C1, Erdos152.C3, Erdos152.C2, Erdos152.C4, Erdos152.C_bound, Erdos152.C1_bound, Erdos152.C2_bound, Erdos152.C34_bound,Decidable.byContradiction,Not16 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.local_pattern_bound_Z_hNline 153 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Int,Set.Finite,Eq,Nat, Erdos152.N_k_Z,OfNat.ofNat,HAdd.hAdd, Erdos152.V_2_Z,Set.ncard, Erdos152.C_set_ZProof uses:
id,setOf,And,Membership.mem,HSub.hSub,Not,Eq.mpr,congrArg,rfl,Set.Finite.subset,And.left,Union.union,Set.ext,Iff,Or,Iff.intro,And.intro,Erdos152.local_pattern_bound_Z_hN.match_1,dite,Or.inland 19 more48 instances, coercions and auxiliary constants left out.
Tactic trace: 77 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.local_pattern_bound_Zline 212 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Int,Set.Finite,LE.le,Nat,HMul.hMul,OfNat.ofNat, Erdos152.N_k_Z,HAdd.hAdd, Erdos152.V_2_Z, Erdos152.I_ZProof uses:
Set.ncard, Erdos152.C_set_Z, Erdos152.local_pattern_C_Z,Eq, Erdos152.local_pattern_bound_Z_hN,Decidable.byContradiction,Not16 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.num_isolated_Z_relline 218 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,LE.le, Erdos152.I_Z, Erdos152.Z_S,HAdd.hAdd, Erdos152.num_isolated,OfNat.ofNatProof uses:
Eq.mpr,Set.ncard,Int,setOf,And,Exists,Membership.mem,Eq,Not,HSub.hSub,id,congrArg,Set.image,funext,congr,Eq.trans,dite,Set.Finite,LE.le.trans,Nat.cardand 32 more35 instances, coercions and auxiliary constants left out.
Tactic trace: 12 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.N_k_Z_rel_1line 226 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Eq, Erdos152.N_k_Z, Erdos152.Z_S,HAdd.hAdd,OfNat.ofNat,Int, Erdos152.N_k_NProof uses:
id,Eq.trans,Set.ncard,setOf,And,Membership.mem,Set.image,congr_arg,Set.ext,Set.ncard_image_of_injective,Nat.cast_injective20 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.N_k_Z_rel_2line 230 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Eq, Erdos152.N_k_Z, Erdos152.Z_S,HAdd.hAdd,OfNat.ofNat,Int, Erdos152.N_k_NProof uses:
Eq.mpr,Set.ncard,setOf,And,Exists,Membership.mem,id,congrArg,Set.image,funext,congr,Eq.trans,congr_arg,Set.ext,Iff.intro,And.elim,Exists.elim,Eq.rec,cast,Eq.symmand 18 more30 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.N_k_Z_rel_3line 234 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Eq, Erdos152.N_k_Z, Erdos152.Z_S,HAdd.hAdd,OfNat.ofNat,Int, Erdos152.N_k_NProof uses:
id,Function.comp,Function.Injective,Set.ncard,Set.image,setOf,And,Membership.mem,Eq.trans,congr_arg,Set.ext,Iff.intro,Erdos152.N_k_Z_rel_3.match_1,Exists.intro,And.intro,HEq,Eq.refl,HEq.refl,Eq.symm,Erdos152.N_k_Z_rel_3.match_2and 6 more22 instances, coercions and auxiliary constants left out.
Tactic trace: 7 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.Z_S_cardline 239 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Eq,Set.ncard,Int, Erdos152.Z_S,HAdd.hAddProof uses:
id,Set.ncard_image_of_injective,Nat.cast_injective12 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- def
Erdos152.quad_k_Nline 244 sourceno axioms what this means
Statement uses:
Set,Nat,ProdProof uses:
setOf,And,Membership.mem,Prod.fst,Prod.snd,Eq,HAdd.hAdd3 instances, coercions and auxiliary constants left out.
- lemma
Erdos152.quad_upper_Q0line 247 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,IsSidon,Set.Finite,GT.gt,OfNat.ofNat,LE.le,Set.ncard,Prod,setOf,And,Membership.mem, Erdos152.quad_k_N,Eq,Int,HSub.hSub,Prod.fst,Prod.sndProof uses:
id,Eq.mpr,HAdd.hAdd,congrArg,funext,congr,add_assoc,Eq.trans,LE.le.trans,Nat.card,Set.image,Eq.ge,Nat.card_image_of_injOn,Or,And.left,And.right,And.elim,Decidable.byContradiction,Not,Or.inland 10 more50 instances, coercions and auxiliary constants left out.
Tactic trace: 11 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.quad_upper_Qk_injline 253 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,IsSidon,GT.gt,OfNat.ofNat,Set.InjOn,Prod,Prod.fst,Prod.snd,setOf,And,Membership.mem, Erdos152.quad_k_N,Eq,Int,HSub.hSub,Neg.negProof uses:
HAdd.hAdd,Iff.mpr,Prod.ext_iff,And.elim,Eq.mpr,id,congrArg,Eq.trans,True,congr,eq_self,true_and,Or,Prod.mk,Eq.mp,funext,add_right_comm,AddCommGroup,propext,Function.Injective.eq_iff'and 12 more50 instances, coercions and auxiliary constants left out.
Tactic trace: 10 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.quad_upper_Qk_imline 259 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Set,Nat,IsSidon,GT.gt,OfNat.ofNat,HasSubset.Subset,Set.image,Prod,Prod.fst,Prod.snd,setOf,And,Membership.mem, Erdos152.quad_k_N,Eq,Int,HSub.hSub,Neg.negProof uses:
Iff.mpr,Set.preimage,Set.image_subset_iff,And.elim,HAdd.hAdd,And.intro,Eq.refl23 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.quad_upper_Qkline 263 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,IsSidon,Set.Finite,GT.gt,OfNat.ofNat,LE.le,Set.ncard,Prod,setOf,And,Membership.mem, Erdos152.quad_k_N,Eq,Int,HSub.hSub,Prod.fst,Prod.snd,Neg.negProof uses:
Set.InjOn, Erdos152.quad_upper_Qk_inj,HasSubset.Subset,Set.image, Erdos152.quad_upper_Qk_im,Set.MapsTo,Set.Finite.of_injOn,Eq.mp,Set.preimage,congrArg,propext,Set.image_subset_iff,Set.ncard_image_of_injOn,Set.ncard_le_ncard,Decidable.byContradiction,Not23 instances, coercions and auxiliary constants left out.
Tactic trace: 8 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.quad_upper_other_injline 273 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,IsSidon,Set.InjOn,Prod,Int,HSub.hSub,Prod.fst,Prod.snd,setOf,And,Membership.mem, Erdos152.quad_k_N,Ne,OfNat.ofNat,Neg.negProof uses:
Eq,HAdd.hAdd,Erdos152.quad_upper_other_inj.match_2,Erdos152.quad_upper_other_inj.match_1,Eq.mpr,id,Eq.trans,congrArg,Or,eq_or_ne,Or.inl,Not,Prod.mk,Eq.mp,funext,add_assoc,True,congr,eq_true,true_andand 24 more55 instances, coercions and auxiliary constants left out.
Tactic trace: 14 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.quad_upper_other_imline 281 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Set,Nat,IsSidon,HasSubset.Subset,Int,Set.image,Prod,HSub.hSub,Prod.fst,Prod.snd,setOf,And,Membership.mem, Erdos152.quad_k_N,Ne,OfNat.ofNat,Neg.neg, Erdos152.D_set,HAdd.hAddProof uses:
id,Eq.mpr,Eq,Not,Set.preimage,Exists,Eq.trans,congrArg,funext,congr,Prod.mk,forall_congr,implies_congr,Eq.refl,And.intro,Exists.intro,rfl,Decidable.byContradiction30 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.quad_upper_otherline 287 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,IsSidon,Set.Finite,LE.le,Set.ncard,Prod,setOf,And,Membership.mem, Erdos152.quad_k_N,Ne,Int,HSub.hSub,Prod.fst,Prod.snd,OfNat.ofNat,Neg.neg, Erdos152.N_k_Z, Erdos152.D_setProof uses:
Set.InjOn, Erdos152.quad_upper_other_inj,HasSubset.Subset,Set.image,HAdd.hAdd, Erdos152.quad_upper_other_im,id,Set.Finite.sep,Exists,Eq,Set.Finite.subset,Prod.rec,SProd.sprod,Set.Finite.image,Set.Finite.prod,Erdos152.quad_upper_other.match_1,Exists.intro,Prod.mk,And.intro,Eq.symmand 4 more24 instances, coercions and auxiliary constants left out.
Tactic trace: 12 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.quad_upper_partline 298 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Set.Finite,LE.le,Set.ncard,Prod, Erdos152.quad_k_N,HAdd.hAdd,setOf,And,Membership.mem,Eq,Int,HSub.hSub,Prod.fst,Prod.snd,OfNat.ofNat,Neg.neg,NeProof uses:
Function.comp,Union.union,Eq.trans_le,congr_arg,Set.ext,LE.le.trans,Set.ncard_union_le,Nat.add_le_add_right24 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.quad_upperline 304 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,IsSidon,Set.Finite,GT.gt,OfNat.ofNat,LE.le,Set.ncard,Prod, Erdos152.quad_k_N,HAdd.hAdd, Erdos152.N_k_Z, Erdos152.D_set,Int,HMul.hMulProof uses:
setOf,And,Membership.mem,Eq,HSub.hSub,Prod.fst,Prod.snd,Neg.neg,Ne, Erdos152.quad_upper_part, Erdos152.quad_upper_Q0, Erdos152.quad_upper_Qk, Erdos152.quad_upper_other,Decidable.byContradiction,Not27 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- def
Erdos152.S_goodline 312 sourceno axioms what this means
Statement uses:
Set,NatProof uses:
setOf,And,Membership.mem,HAdd.hAdd,Not,Exists,Eq,HMul.hMul,OfNat.ofNat7 instances, coercions and auxiliary constants left out.
- def
Erdos152.quad_fiberline 314 sourceno axioms what this means
Statement uses:
Set,Nat,ProdProof uses:
setOf,And,Membership.mem,SProd.sprod,Eq,HAdd.hAdd,Prod.fst,Prod.snd4 instances, coercions and auxiliary constants left out.
- lemma
Erdos152.quad_fiber_subsetline 317 sourcestandard axioms: propext what this means
Statement uses:
Set,Nat,Set.Finite,HasSubset.Subset,Prod, Erdos152.quad_fiber, Erdos152.quad_k_NProof uses:
setOf,And,Membership.mem,SProd.sprod,Eq,HAdd.hAdd,Prod.fst,Prod.snd,Erdos152.quad_fiber_subset.match_1,Iff.mpr,Set.mem_setOf,of_eq_true,Eq.trans,True,congr,congrArg,eq_true,And.left,True.intro,And.rightand 2 more7 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.quad_fiber_cardline 321 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Set.Finite,Membership.mem, Erdos152.S_good,LE.le,OfNat.ofNat,Set.ncard,Prod, Erdos152.quad_fiberProof uses:
id,Finset,Eq,Exists,setOf,And,SProd.sprod,HAdd.hAdd,Prod.fst,Prod.snd,Set.Finite.exists_finset_coe,Eq.mpr,Inter.inter,congrArg,funext,Eq.trans,congr,Trans.simple,Finset.card,Finset.filterand 104 more121 instances, coercions and auxiliary constants left out.
Tactic trace: 21 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.quad_fiber_disjointline 332 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Set.Finite,Ne,Disjoint,Prod, Erdos152.quad_fiberProof uses:
id,Iff.mpr,setOf,And,Membership.mem,SProd.sprod,Eq,HAdd.hAdd,Prod.fst,Prod.snd,Not,Set.disjoint_left,Eq.rec,And.left,And.right30 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.quad_lower_sub_finline 336 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Set.Finite, Erdos152.S_goodProof uses:
id,Set.Finite.sep,HAdd.hAdd,Set.Finite.add,And,Membership.mem,Not,Exists,Eq,HMul.hMul,OfNat.ofNat7 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.quad_lower_subline 340 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Set.Finite,LE.le,HMul.hMul,OfNat.ofNat,Set.ncard, Erdos152.S_good,Prod, Erdos152.quad_k_NProof uses: Erdos152.quad_lower_sub_fin,
Set.iUnion,Membership.mem, Erdos152.quad_fiber,HasSubset.Subset,iSup₂_le,Erdos152.quad_lower_sub.match_1,SProd.sprod,And,Eq,HAdd.hAdd,Prod.fst,Prod.snd,Iff.mpr,setOf,Set.mem_setOf,of_eq_true,Eq.trans,True,congrand 102 more107 instances, coercions and auxiliary constants left out.
Tactic trace: 44 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.quad_lower_edgesline 365 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Set.Finite,LE.le, Erdos152.N_k_N,HAdd.hAdd,Set.ncard, Erdos152.S_good,HMul.hMul,OfNat.ofNatProof uses:
Eq.mpr,id,Eq,congrArg,two_mul,setOf,And,Membership.mem,Erdos152.N_k_N.eq_1,Not,Exists,Erdos152.S_good.eq_1,Trans.simple,Union.union,Set.image,HSub.hSub,LE.le.trans,Set.ncard_le_ncard,Iff.mpr,Orand 22 more38 instances, coercions and auxiliary constants left out.
Tactic trace: 10 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.quad_lowerline 372 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,IsSidon,Set.Finite,LE.le,HMul.hMul,OfNat.ofNat, Erdos152.N_k_N,HAdd.hAdd,Set.ncard,Prod, Erdos152.quad_k_NProof uses: Erdos152.S_good, Erdos152.quad_lower_sub, Erdos152.quad_lower_edges,
Decidable.byContradiction,Not18 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.quad_lower_2line 378 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,IsSidon,Set.Finite,LE.le, Erdos152.N_k_Z, Erdos152.D_set,Int,HAdd.hAdd,Set.ncard,Prod, Erdos152.quad_k_N,HMul.hMul,OfNat.ofNatProof uses:
id,Eq.mpr,setOf,And,Membership.mem,Eq,congrArg,two_mul,Exists,HSub.hSub,dite,Nat.card,Prod.fst,Prod.snd,SProd.sprod,Trans.simple,Subtype,Finset,Finset.image,Set.Finite.toFinsetand 30 more51 instances, coercions and auxiliary constants left out.
Tactic trace: 14 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.quad_upper_2line 389 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,IsSidon,Set.Finite,LE.le,Set.ncard,Prod, Erdos152.quad_k_N,HAdd.hAdd,HMul.hMul,OfNat.ofNat, Erdos152.N_k_NProof uses:
id,Finset,Eq,Exists,Nat.card,setOf,And,Membership.mem,Prod.fst,Prod.snd,CanLift.prf,Trans.simple,Finset.card,Finset.filter,SProd.sprod,Eq.rec,Subtype,Eq.ge,congr_arg,of_eq_trueand 76 more69 instances, coercions and auxiliary constants left out.
Tactic trace: 33 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.N_bound_upper_1line 407 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Set.Finite,IsSidon,LE.le,HMul.hMul,OfNat.ofNat, Erdos152.N_k_N,HAdd.hAdd, Erdos152.N_k_Z, Erdos152.D_set,Int,Set.ncardProof uses:
Prod, Erdos152.quad_k_N, Erdos152.quad_lower, Erdos152.quad_upper,Decidable.byContradiction,GT.gt,Not23 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.N_bound_lower_2line 413 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Set.Finite,IsSidon,LE.le, Erdos152.N_k_Z, Erdos152.D_set,OfNat.ofNat,Int,HAdd.hAdd,HMul.hMul, Erdos152.N_k_N,Set.ncardProof uses:
Prod, Erdos152.quad_k_N, Erdos152.quad_lower_2, Erdos152.quad_upper_2,Decidable.byContradiction,Not22 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.N_bound_upper_3line 420 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Set.Finite,IsSidon,LE.le,HMul.hMul,OfNat.ofNat, Erdos152.N_k_N,HAdd.hAdd, Erdos152.N_k_Z, Erdos152.D_set,Int,Set.ncardProof uses:
Prod, Erdos152.quad_k_N, Erdos152.quad_lower, Erdos152.quad_upper,Decidable.byContradiction,GT.gt,Not23 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.D_set_cardline 426 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Set.Finite,LE.le,Set.ncard,Int, Erdos152.D_set,HMul.hMulProof uses:
id,Eq.mpr,setOf,Exists,And,Membership.mem,Eq,HSub.hSub,congrArg,mul_comm,Eq.rec,Prod,SProd.sprod,LE.le.trans,Nat.card,Set.image,Prod.rec,Nat.card_mono,Set.Finite.image,Set.Finite.prodand 11 more21 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.S_cardline 431 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Set.Finite,IsSidon,GE.ge,HMul.hMul,OfNat.ofNat,Set.ncard,HAdd.hAddProof uses:
Finset,Eq,Exists,CanLift.prf,Eq.mpr,id,congr,congrArg,Eq.symm,Finset.card,Eq.trans,Set.ncard_coe_finset,LE.le,propext,ge_iff_le,two_mul,Eq.rec,Prod,SProd.sprod,LE.le.transand 36 more58 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.num_isolated_lower_boundline 438 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,GT.gt,OfNat.ofNat,Set,Eq,Set.ncard,IsSidon,GE.ge,HAdd.hAdd,HMul.hMul, Erdos152.num_isolatedProof uses:
Set.Finite,Set.finite_of_ncard_pos,Decidable.byContradiction,LT.lt,Not,Set.Finite.add,Int, Erdos152.Z_S,id,Set.Finite.image, Erdos152.D_set,Eq.mpr,setOf,Exists,And,Membership.mem,HSub.hSub,congrArg,funext,Set.Finite.subsetand 31 more30 instances, coercions and auxiliary constants left out.
Tactic trace: 26 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.exists_sidon_set_nline 462 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Exists,Set,And,Eq,Set.ncard,IsSidonProof uses:
id,Exists.intro,Membership.mem,HAdd.hAdd,Or,Set.image,HPow.hPow,OfNat.ofNat,Finset,Finset.range,And.intro,cast,Finset.card,Finset.image,Eq.symm,congrArg,Eq.trans,Set.ncard_coe_finset,of_eq_true,Trueand 94 more136 instances, coercions and auxiliary constants left out.
Tactic trace: 40 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.f_lower_bound_divline 477 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,GE.ge, Erdos152.f,HDiv.hDiv,HSub.hSub,HMul.hMul,OfNat.ofNatProof uses:
Or,Eq,GT.gt,Nat.eq_zero_or_pos,Or.inl,Decidable.byContradiction,Not,Eq.symm,Or.inr,Erdos152.f_lower_bound_div.match_1,Exists,Set,And,Set.ncard,IsSidon, Erdos152.exists_sidon_set_n,Nonempty,setOf,Nonempty.intro,Subtype.mkand 12 more32 instances, coercions and auxiliary constants left out.
Tactic trace: 13 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.tendsto_boundline 494 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Filter.Tendsto,Nat,HDiv.hDiv,HSub.hSub,HMul.hMul,OfNat.ofNat,Filter.atTopProof uses:
Iff.mpr,Filter.Eventually,LE.le,Filter.tendsto_atTop,Filter.mp_mem,setOf,HAdd.hAdd,Filter.mem_atTop,Membership.mem,Set,Filter.univ_mem',id,Function.comp,Decidable.byContradiction,Not,Nat.mul_le_mul_right23 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
Erdos152.tendsto_fline 497 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Filter.Tendsto,Nat, Erdos152.f,Filter.atTopProof uses:
Filter.Eventually,LE.le,HDiv.hDiv,HSub.hSub,HMul.hMul,OfNat.ofNat,Filter.mp_mem,setOf,Filter.eventually_ge_atTop,Filter.univ_mem',Membership.mem,Set,id, Erdos152.f_lower_bound_div,Filter.tendsto_atTop_mono', Erdos152.tendsto_bound12 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- theorem
Erdos152.target_theorem_0Erdős problem 152: Sidon sumsets have quadratically many isolated sums line 505 sourceL4DEL explanation
The proof establishes, for every Sidon set A of size n: 16 · I(A + A) + 100n + 16 ≥ n².
suppose that the sums aᵢ+aⱼ (where i≤j) are all different. Such sequences, called B₂ sequences by Sidon
If
f(n)is the minimum number of isolated elements inA+Aover Sidon setsAof sizen, thenf(n)tends to infinity. In fact the formal proof derives the quantitative lower bound(n²-100n-16)/16.- Count neighbour pairs at distances 1, 2, and 3 in the sumset and relate them to isolated and interior points.
- Use the Sidon property to control how often additive representations and short differences can coincide.
- Combining the counting inequalities yields
16·I(A+A)+100n+16 ≥ n², and the quadratic lower bound forces divergence.
Sources and attribution: Pinned Lean source (0647711a7118), Human-written proof companion for Erdős 152, Erdős Problems 152 source record, Paul Erdős and Pál Turán (1941), original paper, p. 212
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Iff,True,Filter.Tendsto,Nat, Erdos152.f,Filter.atTopProof uses:
Iff.intro, Erdos152.tendsto_f,True.intro2 instances, coercions and auxiliary constants left out.
Tactic trace: 7 steps
Open to load the checked before-and-after goal states.
theorem target_theorem_0 : answer( -- EVOLVE-VALUE-START True -- EVOLVE-VALUE-END ) ↔ Tendsto f atTop atTop := by …
Mentions: Erdos152.f