Skip to content

Conversation

@Vivekgupta008
Copy link

This file introduces the Erdős Problem 1105, detailing conjectures related to anti-Ramsey numbers for cycles and paths. It includes definitions for edge coloring, rainbow subgraphs, and the anti-Ramsey number, along with theorems related to these conjectures.

@github-actions github-actions bot added the erdos-problems Erdős Problems label Jan 9, 2026
@YaelDillies YaelDillies changed the title Feat(Erdos Problem): 1105 feat(ErdosProblems): 1105 Jan 10, 2026
@YaelDillies
Copy link
Collaborator

YaelDillies commented Jan 10, 2026

Why did you close #1578?

@YaelDillies YaelDillies changed the title feat(ErdosProblems): 1105 feat(ErdosProblems/1105): anti-Ramsey numbers for cycles and paths Jan 10, 2026
Comment on lines +23 to +25
/-- An edge coloring of a simple graph `G` with color type `α`.
Note: this exists in upstream Mathlib as SimpleGraph.EdgeLabeling -/
def EdgeColoring (G : SimpleGraph V) (α : Type*) := G.edgeSet → α
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you keep the mathlib name?

Comment on lines +35 to +39
/-- A graph `G` contains a rainbow copy of `H` if there is a subgraph of `G` that is isomorphic
to `H` and is rainbow under the edge coloring `c`. -/
def HasRainbowCopy {V W : Type*} {G : SimpleGraph V} {α : Type*} (c : EdgeColoring G α)
(H : SimpleGraph W) : Prop :=
∃ (S : G.Subgraph), H ⊑ S.coe ∧ IsRainbow c S
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although your definition is equivalent, it is not the one your docstring describes (containment instead of iso). Can you make them match?

Suggested change
/-- A graph `G` contains a rainbow copy of `H` if there is a subgraph of `G` that is isomorphic
to `H` and is rainbow under the edge coloring `c`. -/
def HasRainbowCopy {V W : Type*} {G : SimpleGraph V} {α : Type*} (c : EdgeColoring G α)
(H : SimpleGraph W) : Prop :=
∃ (S : G.Subgraph), H S.coe ∧ IsRainbow c S
/-- A graph `G` contains a rainbow copy of `H` if there is a subgraph of `G` that is isomorphic
to `H` and is rainbow under the edge coloring `c`. -/
def HasRainbowCopy {V W : Type*} {G : SimpleGraph V} {α : Type*} (c : EdgeColoring G α)
(H : SimpleGraph W) : Prop :=
∃ (S : G.Subgraph), H \equivg S.coe ∧ IsRainbow c S

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move your new material to a new .EdgeLabeling file?

open SimpleGraph

def pathGraph (k : ℕ) : SimpleGraph (Fin k) :=
SimpleGraph.fromRel fun i j => i.val + 1 = j.val
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
SimpleGraph.fromRel fun i j => i.val + 1 = j.val
hasse (Fin k)

@YaelDillies YaelDillies added the awaiting-author The author should answer a question or perform changes. Reply when done. label Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ams-05: Combinatorics awaiting-author The author should answer a question or perform changes. Reply when done. erdos-problems Erdős Problems

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants