APNOutputs/ErdosProblems/erdos_741.parts.ii.lean

GitHub source file

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

39 declarations, 0 contain sorry, 0 declared as axioms

Imports (1)
  1. lemma Erdos741.basis_of_order_two_iff line 79 source

    standard axioms: propext what this means

    Statement uses: Set, Nat, Iff, Set.IsAddBasisOfOrder, Union.union, Singleton.singleton, OfNat.ofNat, Membership.mem, HSMul.hSMul

    Proof uses: Iff.rfl

    14 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

    Open to load the checked before-and-after goal states.

  2. lemma Erdos741.answer_true_iff line 82 source

    no axioms what this means

    Statement uses: Iff, True

    Proof uses: Iff.rfl

    Tactic trace: 1 steps

    Open to load the checked before-and-after goal states.

  3. lemma Erdos741.miss_gap line 85 source

    no axioms what this means

    Statement uses: Set, Nat, HasSubset.Subset, SDiff.sdiff, HAdd.hAdd, Compl.compl

    Proof uses: Membership.mem, And.right, Not

    12 instances, coercions and auxiliary constants left out.

    Tactic trace: 3 steps

    Open to load the checked before-and-after goal states.

  4. lemma Erdos741.not_syndetic_of_large_gaps line 90 source

    no axioms what this means

    Statement uses: Set, Nat, Exists, HasSubset.Subset, Set.Icc, HAdd.hAdd, Compl.compl, Not, IsSyndetic

    Proof uses: Set.Nonempty, Inter.inter, False, Membership.mem, And.left, And.right

    13 instances, coercions and auxiliary constants left out.

    Tactic trace: 11 steps

    Open to load the checked before-and-after goal states.

  5. def Erdos741.GoodCasselsProperty line 104 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Set, Nat

    Proof uses: And, Set.IsAddBasisOfOrder, Union.union, Singleton.singleton, OfNat.ofNat, Eq, Disjoint, Or, Exists, HasSubset.Subset, Set.Icc, HAdd.hAdd, Compl.compl

    19 instances, coercions and auxiliary constants left out.

  6. def Erdos741.BlockSeq line 110 source

    no axioms what this means

    Proof uses: Nat, Set

  7. def Erdos741.UnionBlocks line 112 source

    no axioms what this means

    Statement uses: Erdos741.BlockSeq, Set, Nat

    Proof uses: Set.iUnion

  8. lemma Erdos741.subset_union_blocks line 114 source

    standard axioms: propext what this means

    Statement uses: Erdos741.BlockSeq, Nat, HasSubset.Subset, Set, Erdos741.UnionBlocks

    Proof uses: Membership.mem, Eq.mpr, Exists, id, Eq, Exists.intro

    3 instances, coercions and auxiliary constants left out.

    Tactic trace: 3 steps

    Open to load the checked before-and-after goal states.

  9. lemma Erdos741.sum_subset_union_sum line 119 source

    standard axioms: propext what this means

    Statement uses: Erdos741.BlockSeq, Nat, HasSubset.Subset, Set, HAdd.hAdd, Erdos741.UnionBlocks

    Proof uses: Membership.mem, And, Exists, Eq, Exists.intro, And.intro, Erdos741.subset_union_blocks

    10 instances, coercions and auxiliary constants left out.

    Tactic trace: 13 steps

    Open to load the checked before-and-after goal states.

  10. lemma Erdos741.add_zero_subset line 130 source

    no axioms what this means

    Statement uses: Set, Nat, HasSubset.Subset, HAdd.hAdd, Union.union, Singleton.singleton, OfNat.ofNat

    Proof uses: Membership.mem, And, Exists, Eq, Exists.intro, And.intro, Or.inl

    16 instances, coercions and auxiliary constants left out.

    Tactic trace: 15 steps

    Open to load the checked before-and-after goal states.

  11. lemma Erdos741.icc_nonempty_custom line 141 source

    no axioms what this means

    Statement uses: Nat, Set.Nonempty, Set.Icc, HAdd.hAdd

    Proof uses: Exists.intro, Membership.mem, Set, And.intro, LE.le, le_rfl, Nat.le_add_right

    8 instances, coercions and auxiliary constants left out.

    Tactic trace: 2 steps

    Open to load the checked before-and-after goal states.

  12. lemma Erdos741.icc_subset_complement line 145 source

    no axioms what this means

    Statement uses: Set, Nat, Membership.mem, Set.Icc, HAdd.hAdd, Not, HasSubset.Subset, Compl.compl

    10 instances, coercions and auxiliary constants left out.

    Tactic trace: 2 steps

    Open to load the checked before-and-after goal states.

  13. def Erdos741.HasLargeGaps line 149 source

    no axioms what this means

    Statement uses: Set, Nat

    Proof uses: Exists, LE.le, HAdd.hAdd, Not, Membership.mem

    4 instances, coercions and auxiliary constants left out.

  14. lemma Erdos741.syndetic_not_large_gaps line 152 source

    no axioms what this means

    Statement uses: Set, Nat, IsSyndetic, Not, Erdos741.HasLargeGaps

    Proof uses: Set.Nonempty, Inter.inter, Set.Icc, HAdd.hAdd, Exists, False, LE.le, Membership.mem, And.left, And.right

    8 instances, coercions and auxiliary constants left out.

    Tactic trace: 11 steps

    Open to load the checked before-and-after goal states.

  15. lemma Erdos741.has_gaps_mono line 165 source

    no axioms what this means

    Statement uses: Set, Nat, LE.le, Exists, HAdd.hAdd, Not, Membership.mem

    Proof uses: Exists.intro, LE.le.trans, Nat.add_le_add_left

    10 instances, coercions and auxiliary constants left out.

    Tactic trace: 4 steps

    Open to load the checked before-and-after goal states.

  16. lemma Erdos741.infinite_or line 173 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Nat, LE.le, Or

    Proof uses: dite, Or.inl, Not, Or.inr, Exists, Eq.mp, Mathlib.Tactic.Push.not_forall_eq, Eq, False.elim, Eq.refl, le_of_lt, LT.lt

    12 instances, coercions and auxiliary constants left out.

    Tactic trace: 23 steps

    Open to load the checked before-and-after goal states.

  17. def Erdos741.IsGreedyBasis line 198 source

    no axioms what this means

    Statement uses: Nat, Set

    Proof uses: Exists, And, Membership.mem, Union.union, Singleton.singleton, OfNat.ofNat, Eq, HAdd.hAdd

    6 instances, coercions and auxiliary constants left out.

  18. def Erdos741.GreedySpaced line 201 source

    no axioms what this means

    Statement uses: Nat, Set

    Proof uses: And, HasSubset.Subset, HAdd.hAdd, OfNat.ofNat, LE.le, Membership.mem, SDiff.sdiff, GT.gt

    8 instances, coercions and auxiliary constants left out.

  19. def Erdos741.GreedyGaps line 206 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Nat, Set

    Proof uses: Exists, And, LE.le, HAdd.hAdd, Eq, Union.union, Disjoint, Or, Not, Membership.mem

    15 instances, coercions and auxiliary constants left out.

  20. def Erdos741.State line 211 source

    no axioms what this means

    Proof uses: Subtype, Prod, Set, Nat, Membership.mem, Prod.fst, LE.le, Prod.snd

    2 instances, coercions and auxiliary constants left out.

  21. def Erdos741.step_prop line 213 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Erdos741.State, Nat

    Proof uses: And, HasSubset.Subset, Set, Prod.fst, Prod, Membership.mem, LE.le, Prod.snd, SDiff.sdiff, GT.gt, Exists, HAdd.hAdd, Eq, Union.union, Disjoint, Or, Not, Singleton.singleton, OfNat.ofNat

    21 instances, coercions and auxiliary constants left out.

  22. lemma Erdos741.valid_ext_exists line 222 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Erdos741.State, Nat, Exists, Erdos741.step_prop

    Proof uses: Prod.snd, Set, Prod, Membership.mem, Prod.fst, LE.le, HAdd.hAdd, HMul.hMul, OfNat.ofNat, Union.union, Set.Icc, Singleton.singleton, Or, And, Eq, Eq.mp, Eq.trans, congr, congrArg, Subtype.property and 29 more

    73 instances, coercions and auxiliary constants left out.

    Tactic trace: 270 steps (first 200 of 270)

    Open to load the checked before-and-after goal states.

  23. def Erdos741.seq_step line 392 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Nat, Erdos741.State

    Proof uses: Erdos741.seq_step.match_1, Unit, OfNat.ofNat, Subtype.mk, Prod, Set, Membership.mem, Prod.fst, LE.le, Prod.snd, Prod.mk, EmptyCollection.emptyCollection, Nat.succ, Classical.choose, Erdos741.step_prop

    8 instances, coercions and auxiliary constants left out.

    Tactic trace: 2 steps

    Open to load the checked before-and-after goal states.

  24. def Erdos741.f_seq line 396 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Nat, Set

    Proof uses: Prod.fst, Prod, Membership.mem, LE.le, Prod.snd, Erdos741.seq_step

    3 instances, coercions and auxiliary constants left out.

  25. def Erdos741.gap_seq line 397 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Nat

    Proof uses: Prod.snd, Set, Prod, Membership.mem, Prod.fst, LE.le, Erdos741.seq_step

    3 instances, coercions and auxiliary constants left out.

  26. lemma Erdos741.seq_step_prop line 399 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Nat, Erdos741.step_prop, Erdos741.seq_step, HAdd.hAdd, OfNat.ofNat

    Proof uses: Classical.choose_spec, Erdos741.State, Erdos741.valid_ext_exists

    3 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

    Open to load the checked before-and-after goal states.

  27. lemma Erdos741.f_seq_covers line 402 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Nat, LE.le, Erdos741.gap_seq, Exists, And, Membership.mem, Set, Union.union, Erdos741.f_seq, Singleton.singleton, OfNat.ofNat, Eq, HAdd.hAdd

    Proof uses: Nat.recAux, Nat.eq_zero_of_le_zero, Exists.intro, Or.inr, Set.mem_singleton, And.intro, Eq.mpr, id, congrArg, Eq.refl, Erdos741.step_prop, Erdos741.seq_step, Erdos741.seq_step_prop, HasSubset.Subset, Prod.fst, Prod, Prod.snd, SDiff.sdiff, GT.gt, Disjoint and 2 more

    29 instances, coercions and auxiliary constants left out.

    Tactic trace: 11 steps

    Open to load the checked before-and-after goal states.

  28. lemma Erdos741.f_seq_basis line 416 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Erdos741.IsGreedyBasis, Erdos741.f_seq

    Proof uses: Nat, Erdos741.step_prop, Erdos741.seq_step, HAdd.hAdd, OfNat.ofNat, Erdos741.seq_step_prop, HasSubset.Subset, Set, Prod.fst, Prod, Membership.mem, LE.le, Prod.snd, And, SDiff.sdiff, GT.gt, Exists, Eq, Union.union, Disjoint and 60 more

    91 instances, coercions and auxiliary constants left out.

    Tactic trace: 10 steps

    Open to load the checked before-and-after goal states.

  29. lemma Erdos741.f_seq_spaced line 428 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Erdos741.GreedySpaced, Erdos741.f_seq, Erdos741.gap_seq

    Proof uses: And.intro, Nat, HasSubset.Subset, Set, HAdd.hAdd, OfNat.ofNat, And, LE.le, Membership.mem, SDiff.sdiff, GT.gt, Erdos741.step_prop, Erdos741.seq_step, Erdos741.seq_step_prop, And.left, Prod.fst, Prod, Prod.snd, Exists, Eq and 6 more

    21 instances, coercions and auxiliary constants left out.

    Tactic trace: 15 steps

    Open to load the checked before-and-after goal states.

  30. lemma Erdos741.f_seq_gaps line 441 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Erdos741.GreedyGaps, Erdos741.f_seq, Erdos741.gap_seq

    Proof uses: Nat, Exists.intro, Exists, And, LE.le, HAdd.hAdd, Set, Eq, Union.union, Disjoint, Or, Not, Membership.mem, OfNat.ofNat, Erdos741.step_prop, Erdos741.seq_step, Erdos741.seq_step_prop, And.left, Prod.snd, Prod and 6 more

    21 instances, coercions and auxiliary constants left out.

    Tactic trace: 4 steps

    Open to load the checked before-and-after goal states.

  31. lemma Erdos741.greedy_seq_exists line 447 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Exists, Nat, Set, And, Erdos741.IsGreedyBasis, Erdos741.GreedySpaced, Erdos741.GreedyGaps

    Proof uses: Exists.intro, Erdos741.f_seq, Erdos741.gap_seq, And.intro, Erdos741.f_seq_basis, Erdos741.f_seq_spaced, Erdos741.f_seq_gaps

    Tactic trace: 2 steps

    Open to load the checked before-and-after goal states.

  32. lemma Erdos741.f_mono line 452 source

    standard axioms: Quot.sound, propext what this means

    Statement uses: Nat, Set, Erdos741.GreedySpaced, LE.le, HasSubset.Subset

    Proof uses: Nat.le.rec, subset_refl, Nat.le, HasSubset.Subset.trans, Nat.succ, And.left, HAdd.hAdd, OfNat.ofNat, And, Membership.mem, SDiff.sdiff, GT.gt

    12 instances, coercions and auxiliary constants left out.

    Tactic trace: 3 steps

    Open to load the checked before-and-after goal states.

  33. lemma Erdos741.gap_mono line 457 source

    no axioms what this means

    Statement uses: Nat, Set, Erdos741.GreedySpaced, LE.le

    Proof uses: Nat.le.rec, le_rfl, Nat.le, LE.le.trans, Nat.succ, And.left, HAdd.hAdd, OfNat.ofNat, Membership.mem, SDiff.sdiff, GT.gt, And.right, HasSubset.Subset, And

    10 instances, coercions and auxiliary constants left out.

    Tactic trace: 3 steps

    Open to load the checked before-and-after goal states.

  34. lemma Erdos741.subset_f_k_of_le line 462 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Nat, Set, Erdos741.GreedySpaced, Membership.mem, Set.iUnion, LE.le

    Proof uses: Exists, Iff.mp, Set.mem_iUnion, dite, Not, False.elim, And, LT.lt, Exists.intro, Nat.find, And.intro, Nat.find_spec, Nat.find_min, False, GT.gt, Decidable.byContradiction, le_of_not_gt, Mathlib.Tactic.Linarith.lt_irrefl, Int, OfNat.ofNat and 61 more

    92 instances, coercions and auxiliary constants left out.

    Tactic trace: 39 steps

    Open to load the checked before-and-after goal states.

  35. lemma Erdos741.erdos_gap_set_exists line 496 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Exists, Set, Nat, And, Set.IsAddBasisOfOrder, Union.union, Singleton.singleton, OfNat.ofNat, Eq, Disjoint, Or, Erdos741.HasLargeGaps, HAdd.hAdd

    Proof uses: Erdos741.IsGreedyBasis, Erdos741.GreedySpaced, Erdos741.GreedyGaps, Erdos741.greedy_seq_exists, Set.iUnion, Exists.intro, And.intro, Eq.mpr, Membership.mem, HSMul.hSMul, id, congrArg, propext, Erdos741.basis_of_order_two_iff, Or.inl, Erdos741.subset_union_blocks, Or.inr, Eq.refl, Eq.symm, two_nsmul and 69 more

    129 instances, coercions and auxiliary constants left out.

    Tactic trace: 125 steps

    Open to load the checked before-and-after goal states.

  36. lemma Erdos741.exists_good_cassels_set line 593 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Exists, Set, Nat, Erdos741.GoodCasselsProperty

    Proof uses: And, Set.IsAddBasisOfOrder, Union.union, Singleton.singleton, OfNat.ofNat, Eq, Disjoint, Or, Erdos741.HasLargeGaps, HAdd.hAdd, Erdos741.erdos_gap_set_exists, Exists.intro, And.intro, HasSubset.Subset, Set.Icc, Compl.compl, Or.inl, LE.le, Not, Membership.mem and 5 more

    25 instances, coercions and auxiliary constants left out.

    Tactic trace: 30 steps

    Open to load the checked before-and-after goal states.

  37. def Erdos741.cassels_set line 625 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Set, Nat

    Proof uses: Classical.choose, Erdos741.GoodCasselsProperty, Erdos741.exists_good_cassels_set

  38. lemma Erdos741.cassels_set_is_good line 628 source

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Erdos741.GoodCasselsProperty, Erdos741.cassels_set

    Proof uses: Classical.choose_spec, Set, Nat, Erdos741.exists_good_cassels_set

  39. theorem Erdos741.target_theorem_0 Erdős problem 741(ii): an order-two basis with no syndetic two-part split line 634 source

    L4DEL explanation

    We show that the answer is yes by constructing a pathological basis A with “forbidden zones”

    There exists an additive basis A ∪ {0} of order two such that every disjoint partition A=A₁∪A₂ leaves at least one of A₁+A₁ and A₂+A₂ with arbitrarily large gaps.

    1. Build A from dense clumps separated by rapidly growing forbidden zones, retaining one specially placed oasis in each zone.
    2. Every natural number is still a sum of two elements of A ∪ {0}, either directly, by halving, or by using the oasis.
    3. In any two-colouring of A, the oasis has one colour; a long interval of sums then becomes unavailable to the other colour, destroying syndeticity.

    Sources and attribution: Pinned Lean source (0647711a7118), Human-written proof companion for Erdős 741(ii), Erdős Problems 741 source record

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Iff, True, Exists, Set, Nat, And, Set.IsAddBasisOfOrder, Union.union, Singleton.singleton, OfNat.ofNat, Eq, Disjoint, Not, IsSyndetic, HAdd.hAdd

    Proof uses: Eq.mpr, id, congrArg, propext, Erdos741.answer_true_iff, Iff.intro, Exists.intro, Erdos741.cassels_set, Erdos741.GoodCasselsProperty, Erdos741.cassels_set_is_good, Or, HasSubset.Subset, Set.Icc, Compl.compl, And.intro, False, Or.inl, Erdos741.not_syndetic_of_large_gaps, False.elim, Or.inr and 2 more

    37 instances, coercions and auxiliary constants left out.

    Distinct definitions of this name: APNOutputs/ErdosProblems/erdos_741.parts.i.lean:1486 (different declaration text). Qualify references as Erdos741.target_theorem_0@path.

    Tactic trace: 20 steps

    Open to load the checked before-and-after goal states.

    theorem target_theorem_0
      : answer(True) ↔ ∃ A : Set ℕ, IsAddBasisOfOrder (A ∪ {0}) 2 ∧ ∀ A₁ A₂, A = A₁ ∪ A₂ → Disjoint A₁ A₂ → ¬(IsSyndetic (A₁ + A₁) ∧ IsSyndetic (A₂ + A₂)) := by
    …