-
Notifications
You must be signed in to change notification settings - Fork 193
feat(ErdosProblems/1105): anti-Ramsey numbers for cycles and paths #1583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Why did you close #1578? |
| /-- 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 → α |
There was a problem hiding this comment.
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?
| /-- 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 |
There was a problem hiding this comment.
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?
| /-- 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| SimpleGraph.fromRel fun i j => i.val + 1 = j.val | |
| hasse (Fin k) |
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.