FormalConjectures/ErdosProblems/595.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: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1
8 declarations, 2 contain sorry, 0 declared as axioms
Erdős Problem 595
References:
- erdosproblems.com/595
- [Er87] Erdős, Paul, Problems and results on set systems and hypergraphs. Extremal problems for finite sets (Visegrád, 1991), Bolyai Soc. Math. Stud. (1994), 217-227.
- [Fo70] Folkman, Jon, Graphs with monochromatic complete subgraphs in every edge coloring. SIAM J. Appl. Math. (1970), 19:340-345.
- [NeRo75] Nešetřil, Jaroslav and Rödl, Vojtěch, Type theory of partition problems of graphs. Recent advances in graph theory (Proc. Second Czechoslovak Sympos., Prague, 1974), Academia, Prague (1975), 405-412.
Imports (1)
- def
Erdos595.IsCountableUnionOfTriangleFreeline 40 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
SimpleGraphProof uses:
Exists,Nat,And,SimpleGraph.CliqueFree,OfNat.ofNat,Eq,iSup2 instances, coercions and auxiliary constants left out.
- theorem
Erdos595.erdos_595Erdős Problem 595 ($250): Is there an infinite graph $G$ which contains no $K_4$ and is not the union of countably many triangle-free graphs? sorry line 54 sourceSource documentation
Erdős Problem 595 ($250): Is there an infinite graph $G$ which contains no $K_4$ and is not the union of countably many triangle-free graphs?
A problem of Erdős and Hajnal [Er87].
depends on sorry what this means
Statement uses:
Iff,True,Exists,Infinite,SimpleGraph,And,SimpleGraph.CliqueFree,OfNat.ofNat,Nat,Not, Erdos595.IsCountableUnionOfTriangleFreeProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous2 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_595 : answer(sorry) ↔ ∃ (V : Type*) (_ : Infinite V) (G : SimpleGraph V), G.CliqueFree 4 ∧ ¬IsCountableUnionOfTriangleFree G := by …Mentions: Erdos595.IsCountableUnionOfTriangleFree
- theorem
Erdos595.erdos_595.variants.folkman_finiteFolkman–Nešetřil–Rödl (finite version) [Fo70, NeRo75]: For everyn ≥ 1, there exists a graphG(on a finite vertex set) that contains no sorry line 77 sourceSource documentation
Folkman–Nešetřil–Rödl (finite version) [Fo70, NeRo75]: For every
n ≥ 1, there exists a graphG(on a finite vertex set) that contains no $K_4$ and whose edges cannot be covered byntriangle-free graphs.More precisely: for every
n : ℕwith1 ≤ n, there exist a finite typeVand a graphG : SimpleGraph Vwith:G.CliqueFree 4(no $K_4$), and- For every family
H : Fin n → SimpleGraph Vof triangle-free graphs,G ≠ ⨆ i, H i.
This is the finite analogue of Problem 595. The proofs of Folkman [Fo70] and Nešetřil–Rödl [NeRo75] give different explicit constructions.
depends on sorry what this means
Statement uses:
Iff,True,Nat,LE.le,OfNat.ofNat,Exists,Fintype,SimpleGraph,And,SimpleGraph.CliqueFree,Fin,Ne,iSupProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous6 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_595.variants.folkman_finite : answer(True) ↔ ∀ n : ℕ, 1 ≤ n → ∃ (V : Type*) (_ : Fintype V) (G : SimpleGraph V), G.CliqueFree 4 ∧ ∀ (H : Fin n → SimpleGraph V), (∀ i, (H i).CliqueFree 3) → G ≠ ⨆ i, H i := by … - theorem
Erdos595.erdos_595.variants.subgraph_of_countable_unionMonotonicity: IfGis a countable union of triangle-free graphs andH ≤ G(i.e.,His a subgraph ofG), thenHis also a countable union of triangle-free graphs line 93 sourceSource documentation
Monotonicity: If
Gis a countable union of triangle-free graphs andH ≤ G(i.e.,His a subgraph ofG), thenHis also a countable union of triangle-free graphs.Proof: If
G = ⨆ i, G_iwith eachG_itriangle-free, thenH = ⨆ i, H ⊓ G_i. EachH ⊓ G_iis triangle-free because it is a subgraph ofG_i.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
SimpleGraph,LE.le, Erdos595.IsCountableUnionOfTriangleFreeProof uses:
Nat,And,SimpleGraph.CliqueFree,OfNat.ofNat,Eq,iSup,Exists.intro,Min.min,And.intro,SimpleGraph.CliqueFree.anti,inf_le_right,SimpleGraph.ext,funext,SimpleGraph.Adj,propext,Eq.mpr,Iff,Exists,id,congrArgand 4 more15 instances, coercions and auxiliary constants left out.
Tactic trace: 14 steps
Open to load the checked before-and-after goal states.
theorem erdos_595.variants.subgraph_of_countable_union {V : Type*} {G H : SimpleGraph V} (hH : H ≤ G) (hG : IsCountableUnionOfTriangleFree G) : IsCountableUnionOfTriangleFree H := by …Mentions: Erdos595.IsCountableUnionOfTriangleFree
- theorem
Erdos595.erdos_595.variants.triangle_free_is_unionTriangle-free graphs are trivially countable unions of triangle-free graphs: ifGis already triangle-free, thenG = ⨆ i : ℕ, G_iwhereG_0 = GandG_i = ⊥fori ≥ 1line 115 sourceSource documentation
Triangle-free graphs are trivially countable unions of triangle-free graphs: if
Gis already triangle-free, thenG = ⨆ i : ℕ, G_iwhereG_0 = GandG_i = ⊥fori ≥ 1.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
SimpleGraph,SimpleGraph.CliqueFree,OfNat.ofNat,Nat, Erdos595.IsCountableUnionOfTriangleFreeProof uses:
Exists.intro,And,Eq,iSup,ite,Bot.bot,And.intro,dite,of_eq_true,Eq.trans,True,congrFun',congrArg,ite_cond_eq_true,eq_self,eq_true,Not,ite_cond_eq_false,eq_false,SimpleGraph.cliqueFree_botand 17 more18 instances, coercions and auxiliary constants left out.
Tactic trace: 24 steps
Open to load the checked before-and-after goal states.
theorem erdos_595.variants.triangle_free_is_union {V : Type*} (G : SimpleGraph V) (hG : G.CliqueFree 3) : IsCountableUnionOfTriangleFree G := by …Mentions: Erdos595.IsCountableUnionOfTriangleFree
- theorem
Erdos595.erdos_595.variants.complete_nat_is_unionDocumented declaration: complete_nat_is_union line 144 sourceSource documentation
The complete graph
⊤onℕis a countable union of triangle-free graphs: we decompose it into the family of star graphs{H_m}_{m : ℕ}, whereH_mis the graph with edges{m, n}for alln ≠ m. Each star is triangle-free (any two non-center vertices share no edge within the star), and their union covers all edges of⊤.Proof sketch (star triangle-free): If
{a, b, c}were a triangle inH_m, then each of the three edges{a, b},{a, c},{b, c}would pass throughm. In particular, from{a, b}we geta = morb = m; from{b, c}we getb = morc = m. Case analysis shows that two vertices must equalm, contradicting the triangle having three distinct vertices.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Erdos595.IsCountableUnionOfTriangleFree,
Nat,Top.top,SimpleGraphProof uses:
Exists.intro,And,SimpleGraph.CliqueFree,OfNat.ofNat,Eq,iSup,SimpleGraph.fromRel,Or,And.intro,Eq.mpr,Finset,Not,SimpleGraph.IsNClique,id,congrArg,SimpleGraph.CliqueFree.eq_1,SimpleGraph.IsClique,Finset.card,False,Eq.mpand 31 more25 instances, coercions and auxiliary constants left out.
Tactic trace: 35 steps
Open to load the checked before-and-after goal states.
theorem erdos_595.variants.complete_nat_is_union : IsCountableUnionOfTriangleFree (⊤ : SimpleGraph ℕ) := by …Mentions: Erdos595.IsCountableUnionOfTriangleFree
- theorem
Erdos595.erdos_595.variants.K4_not_cliqueFreeThe complete graph⊤onFin 4is not $K_4$-free:⊤onFin 4equals the complete graph $K_4$, so it contains $K_4$ as a subgraph and is not $K_4$-free line 198 sourceSource documentation
The complete graph
⊤onFin 4is not $K_4$-free:⊤onFin 4equals the complete graph $K_4$, so it contains $K_4$ as a subgraph and is not $K_4$-free.This sanity check confirms the $K_4$-free hypothesis of Problem 595 is non-trivial.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Not,SimpleGraph.CliqueFree,Fin,OfNat.ofNat,Nat,Top.top,SimpleGraphProof uses:
Eq.mpr,SimpleGraph.IsContained,SimpleGraph.completeGraph,id,Eq,congrArg,propext,SimpleGraph.not_cliqueFree_iff_top_isContained,SimpleGraph.IsContained.of_le,SimpleGraph.Adj10 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
theorem erdos_595.variants.K4_not_cliqueFree : ¬ (⊤ : SimpleGraph (Fin 4)).CliqueFree 4 := by … - theorem
Erdos595.erdos_595.variants.reformulation_edge_colouringDocumented declaration: reformulation_edge_colouring line 212 sourceSource documentation
Reformulation via edge colourings: A graph
Gis a countable union of triangle-free graphs if and only if there is a colouring of the edges ofGbyℕsuch that no monochromatic triangle exists.More precisely:
IsCountableUnionOfTriangleFree Gis equivalent to the existence of a mapc : G.edgeSet → ℕsuch that for eachn : ℕ, the subgraph of edges colourednis triangle-free.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
SimpleGraph,Iff, Erdos595.IsCountableUnionOfTriangleFree,Exists,Sym2,SimpleGraph.edgeSet,Nat,SimpleGraph.CliqueFree,SimpleGraph.fromEdgeSet,Set.ofPred,Membership.mem,Set,Eq,Subtype.mk,OfNat.ofNatProof uses:
Iff.intro,And,iSup,Sym2.ind,Sym2.mk,Exists.imp,Eq.mp,SimpleGraph.Adj,congrArg,propext,SimpleGraph.iSup_adj,SimpleGraph.mem_edgeSet,Exists.intro,Exists.choose,LE.le,SimpleGraph.CliqueFree.anti,Ne,SimpleGraph.fromEdgeSet_adj,Exists.choose_spec,congrFun'and 4 more12 instances, coercions and auxiliary constants left out.
Tactic trace: 18 steps
Open to load the checked before-and-after goal states.
theorem erdos_595.variants.reformulation_edge_colouring {V : Type*} (G : SimpleGraph V) : IsCountableUnionOfTriangleFree G ↔ ∃ c : G.edgeSet → ℕ, ∀ n : ℕ, (SimpleGraph.fromEdgeSet {e | ∃ h : e ∈ G.edgeSet, c ⟨e, h⟩ = n}).CliqueFree 3 := by …Mentions: Erdos595.IsCountableUnionOfTriangleFree, c