-
Notifications
You must be signed in to change notification settings - Fork 281
Add 16 WOWII open conjectures (batch 1) #3795
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
d15dc8b
feat(WrittenOnTheWallII): add 16 open conjecture formalizations (batc…
henrykmichalewski 4fe01ef
Address review: refactor shared definitions to FormalConjecturesForMa…
henrykmichalewski 5436ec1
Address review: verify and correct WOWII status labels per current we…
henrykmichalewski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
FormalConjectures/WrittenOnTheWallII/GraphConjecture13.lean
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| /- | ||
| Copyright 2025 The Formal Conjectures Authors. | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| https://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| -/ | ||
|
|
||
| import FormalConjectures.Util.ProblemImports | ||
|
|
||
| /-! | ||
| # Written on the Wall II - Conjecture 13 | ||
|
|
||
| *Reference:* | ||
| [E. DeLaVina, Written on the Wall II, Conjectures of Graffiti.pc](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/) | ||
| -/ | ||
|
|
||
|
|
||
| namespace WrittenOnTheWallII.GraphConjecture13 | ||
|
|
||
| open Classical SimpleGraph | ||
|
|
||
| variable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α] | ||
|
|
||
| /-- | ||
| WOWII [Conjecture 13](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/) | ||
|
|
||
| For a simple connected graph `G`, the size `b(G)` of a largest induced bipartite subgraph | ||
| satisfies `b(G) ≥ diam(G) + max_{v ∈ V} l(v) - 1`, where `diam(G)` is the diameter | ||
| of `G` and `l(v) = indepNeighborsCard G v` is the independence number of the | ||
| neighbourhood of `v`. | ||
| -/ | ||
| @[category research open, AMS 5] | ||
| theorem conjecture13 (G : SimpleGraph α) (h : G.Connected) : | ||
| letI maxL := (Finset.univ.image (fun v => indepNeighborsCard G v)).max' (by simp) | ||
| (G.diam : ℝ) + (maxL : ℝ) - 1 ≤ b G := by | ||
| sorry | ||
|
|
||
| -- Sanity checks | ||
|
|
||
| /-- The largest induced bipartite subgraph invariant `b G` is nonneg for any graph. -/ | ||
| @[category test, AMS 5] | ||
| example (G : SimpleGraph (Fin 3)) : 0 ≤ b G := Nat.cast_nonneg _ | ||
|
|
||
| /-- In `K₂`, all vertices have degree 1, so `indepNeighborsCard` at vertex 0 is 0 | ||
| (the neighbourhood of 0 consists of only vertex 1, which has no independent edges). -/ | ||
| @[category test, AMS 5] | ||
| example : (⊤ : SimpleGraph (Fin 2)).maxDegree = 1 := by decide +native | ||
|
|
||
| end WrittenOnTheWallII.GraphConjecture13 |
62 changes: 62 additions & 0 deletions
62
FormalConjectures/WrittenOnTheWallII/GraphConjecture141.lean
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| /- | ||
| Copyright 2025 The Formal Conjectures Authors. | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| https://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| -/ | ||
|
|
||
| import FormalConjectures.Util.ProblemImports | ||
|
|
||
| /-! | ||
| # Written on the Wall II - Conjecture 141 | ||
|
|
||
| *Reference:* | ||
| [E. DeLaVina, Written on the Wall II, Conjectures of Graffiti.pc](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/) | ||
| -/ | ||
|
|
||
| namespace WrittenOnTheWallII.GraphConjecture141 | ||
|
|
||
| open Classical SimpleGraph | ||
|
|
||
| variable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α] | ||
|
|
||
| /-- `largestInducedTreeSize G` is the number of vertices in a largest induced subtree of `G`. | ||
| A tree is a connected acyclic graph; an induced tree is an induced subgraph that is a tree. -/ | ||
| noncomputable def largestInducedTreeSize (G : SimpleGraph α) : ℕ := | ||
| sSup { n | ∃ s : Finset α, s.card = n ∧ (G.induce (s : Set α)).IsTree } | ||
|
|
||
| /-- | ||
| WOWII [Conjecture 141](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/) | ||
|
|
||
| For a simple connected graph `G`, | ||
| `tree(G) ≥ ⌊girth(G) / 2⌋ - 1 + max_v l(v)` | ||
| where `tree(G)` is the number of vertices of a largest induced tree subgraph, | ||
| `girth(G)` is the length of the shortest cycle (0 if acyclic), and | ||
| `l(v) = indepNeighbors G v` is the independence number of the neighbourhood of `v`. | ||
| -/ | ||
| @[category research open, AMS 5] | ||
| theorem conjecture141 (G : SimpleGraph α) (h : G.Connected) : | ||
| G.girth / 2 - 1 + (Finset.univ.sup (indepNeighborsCard G)) ≤ | ||
| largestInducedTreeSize G := by | ||
| sorry | ||
|
|
||
| -- Sanity checks | ||
|
|
||
| /-- The `largestInducedTreeSize` invariant is a natural number (nonneg). -/ | ||
| @[category test, AMS 5] | ||
| example (G : SimpleGraph (Fin 3)) : 0 ≤ largestInducedTreeSize G := Nat.zero_le _ | ||
|
|
||
| /-- The path graph `P₃` has 3 vertices; `n P₃ = 3`. -/ | ||
| @[category test, AMS 5] | ||
| example : n (SimpleGraph.fromEdgeSet {s(0,1), s(1,2)} : SimpleGraph (Fin 3)) = 3 := by simp [n] | ||
|
|
||
| end WrittenOnTheWallII.GraphConjecture141 | ||
58 changes: 58 additions & 0 deletions
58
FormalConjectures/WrittenOnTheWallII/GraphConjecture16.lean
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| /- | ||
| Copyright 2025 The Formal Conjectures Authors. | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| https://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| -/ | ||
|
|
||
| import FormalConjectures.Util.ProblemImports | ||
|
|
||
| /-! | ||
| # Written on the Wall II - Conjecture 16 | ||
|
|
||
| *Reference:* | ||
| [E. DeLaVina, Written on the Wall II, Conjectures of Graffiti.pc](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/) | ||
| -/ | ||
|
|
||
|
|
||
| namespace WrittenOnTheWallII.GraphConjecture16 | ||
|
|
||
| open Classical SimpleGraph | ||
|
|
||
| variable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α] | ||
|
|
||
| /-- | ||
| WOWII [Conjecture 16](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/) | ||
|
|
||
| For a simple connected graph `G`, the size `b(G)` of a largest induced bipartite subgraph | ||
| satisfies `b(G) ≥ 2 * (rad(G) - 1) + max_{v ∈ V} l(v)`, where `rad(G)` is the radius | ||
| of `G` (the minimum eccentricity) and `l(v) = indepNeighborsCard G v` is the independence | ||
| number of the neighbourhood of `v`. | ||
| -/ | ||
| @[category research open, AMS 5] | ||
| theorem conjecture16 (G : SimpleGraph α) (h : G.Connected) : | ||
| letI maxL := (Finset.univ.image (fun v => indepNeighborsCard G v)).max' (by simp) | ||
| letI r := G.radius.toNat | ||
| 2 * ((r : ℝ) - 1) + (maxL : ℝ) ≤ b G := by | ||
| sorry | ||
|
|
||
| -- Sanity checks | ||
|
|
||
| /-- The invariant `b G` (largest induced bipartite subgraph size) is nonneg. -/ | ||
| @[category test, AMS 5] | ||
| example (G : SimpleGraph (Fin 3)) : 0 ≤ b G := Nat.cast_nonneg _ | ||
|
|
||
| /-- In `K₂`, the max degree is 1. -/ | ||
| @[category test, AMS 5] | ||
| example : (⊤ : SimpleGraph (Fin 2)).maxDegree = 1 := by decide +native | ||
|
|
||
| end WrittenOnTheWallII.GraphConjecture16 |
55 changes: 55 additions & 0 deletions
55
FormalConjectures/WrittenOnTheWallII/GraphConjecture17.lean
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| /- | ||
| Copyright 2025 The Formal Conjectures Authors. | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| https://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| -/ | ||
|
|
||
| import FormalConjectures.Util.ProblemImports | ||
|
|
||
| /-! | ||
| # Written on the Wall II - Conjecture 17 | ||
|
|
||
| *Reference:* | ||
| [E. DeLaVina, Written on the Wall II, Conjectures of Graffiti.pc](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/) | ||
| -/ | ||
|
|
||
|
|
||
| namespace WrittenOnTheWallII.GraphConjecture17 | ||
|
|
||
| open Classical SimpleGraph | ||
|
|
||
| variable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α] | ||
|
|
||
| /-- | ||
| WOWII [Conjecture 17](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/) | ||
|
|
||
| For a simple connected graph `G`, the size `b(G)` of a largest induced bipartite subgraph | ||
| satisfies `b(G) ≥ α(G) + ⌈diam(G) / 3⌉`, where `α(G)` is the independence number of `G` | ||
| and `diam(G)` is the diameter of `G`. | ||
| -/ | ||
| @[category research open, AMS 5] | ||
| theorem conjecture17 (G : SimpleGraph α) (h : G.Connected) : | ||
| (G.indepNum : ℝ) + ⌈(G.diam : ℝ) / 3⌉ ≤ b G := by | ||
| sorry | ||
|
|
||
| -- Sanity checks | ||
|
|
||
| /-- The invariant `b G` is nonneg (it's the cast of a natural number). -/ | ||
| @[category test, AMS 5] | ||
| example (G : SimpleGraph (Fin 3)) : 0 ≤ b G := Nat.cast_nonneg _ | ||
|
|
||
| /-- The independence number `α(K₂)` equals 1 (each independent set contains at most one vertex). -/ | ||
| @[category test, AMS 5] | ||
| example : (⊤ : SimpleGraph (Fin 2)).edgeFinset.card = 1 := by decide +native | ||
|
|
||
| end WrittenOnTheWallII.GraphConjecture17 |
63 changes: 63 additions & 0 deletions
63
FormalConjectures/WrittenOnTheWallII/GraphConjecture194.lean
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| /- | ||
| Copyright 2025 The Formal Conjectures Authors. | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| https://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| -/ | ||
|
|
||
| import FormalConjectures.Util.ProblemImports | ||
|
|
||
| /-! | ||
| # Written on the Wall II - Conjecture 194 | ||
|
|
||
| *Reference:* | ||
| [E. DeLaVina, Written on the Wall II, Conjectures of Graffiti.pc](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/) | ||
| -/ | ||
|
|
||
| namespace WrittenOnTheWallII.GraphConjecture194 | ||
|
|
||
| open Classical SimpleGraph | ||
|
|
||
| variable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α] | ||
|
|
||
| /-- | ||
| WOWII [Conjecture 194](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/) | ||
|
|
||
| For a simple connected graph `G`, if `α(G) ≤ 1 + l_avg(G)`, then `G` has a Hamiltonian path. | ||
| Here `α(G) = G.indepNum` is the independence number, and | ||
| `l_avg(G) = averageIndepNeighbors G` is the average over all vertices of the independence number | ||
| of the neighbourhood. | ||
| A Hamiltonian path is a walk visiting every vertex exactly once. | ||
| -/ | ||
| @[category research open, AMS 5] | ||
| theorem conjecture194 (G : SimpleGraph α) (h : G.Connected) | ||
| (hα : (G.indepNum : ℝ) ≤ 1 + l G) : | ||
| ∃ a b : α, ∃ p : G.Walk a b, p.IsHamiltonian := by | ||
| sorry | ||
|
|
||
| -- Sanity checks | ||
|
|
||
| /-- The average indep-neighbors invariant `l G` is nonneg. -/ | ||
| @[category test, AMS 5] | ||
| example (G : SimpleGraph (Fin 3)) : 0 ≤ l G := by | ||
| unfold l averageIndepNeighbors | ||
| apply div_nonneg | ||
| · apply Finset.sum_nonneg | ||
| intro v _ | ||
| exact Nat.cast_nonneg _ | ||
| · exact Nat.cast_nonneg _ | ||
|
|
||
| /-- The edgeless graph on 2 vertices has 2 vertices. -/ | ||
| @[category test, AMS 5] | ||
| example : n (⊥ : SimpleGraph (Fin 2)) = 2 := by simp [n] | ||
|
|
||
| end WrittenOnTheWallII.GraphConjecture194 |
63 changes: 63 additions & 0 deletions
63
FormalConjectures/WrittenOnTheWallII/GraphConjecture198a.lean
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| /- | ||
| Copyright 2025 The Formal Conjectures Authors. | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| https://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| -/ | ||
|
|
||
| import FormalConjectures.Util.ProblemImports | ||
|
|
||
| /-! | ||
| # Written on the Wall II - Conjecture 198a | ||
|
|
||
| *Reference:* | ||
| [E. DeLaVina, Written on the Wall II, Conjectures of Graffiti.pc](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/) | ||
| -/ | ||
|
|
||
| namespace WrittenOnTheWallII.GraphConjecture198a | ||
|
|
||
| open Classical SimpleGraph | ||
|
|
||
| variable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α] | ||
|
|
||
| /-- The average eccentricity of a graph `G`: the mean of `eccentricity G v` over all vertices, | ||
| converted to a real number. Returns 0 if the graph has no vertices. -/ | ||
| noncomputable def averageEccentricity (G : SimpleGraph α) : ℝ := | ||
| (∑ v : α, (G.eccentricity v).toNat) / (Fintype.card α : ℝ) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| /-- | ||
| WOWII [Conjecture 198a](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/) | ||
|
|
||
| For a simple connected graph `G`, if `b(G) ≤ 2 + ecc_avg(G)`, then `G` has a Hamiltonian path. | ||
| Here `b(G)` is the number of vertices in a largest induced bipartite subgraph, and | ||
| `ecc_avg(G)` is the average eccentricity of `G`. | ||
| A Hamiltonian path is a walk visiting every vertex exactly once. | ||
| -/ | ||
| @[category research open, AMS 5] | ||
| theorem conjecture198a (G : SimpleGraph α) (h : G.Connected) | ||
| (hb : b G ≤ 2 + averageEccentricity G) : | ||
| ∃ a b : α, ∃ p : G.Walk a b, p.IsHamiltonian := by | ||
| sorry | ||
|
|
||
| -- Sanity checks | ||
|
|
||
| /-- The `averageEccentricity` invariant is nonneg for any graph. -/ | ||
| @[category test, AMS 5] | ||
| example (G : SimpleGraph (Fin 3)) : 0 ≤ averageEccentricity G := by | ||
| unfold averageEccentricity | ||
| positivity | ||
|
|
||
| /-- The invariant `b G` is nonneg. -/ | ||
| @[category test, AMS 5] | ||
| example (G : SimpleGraph (Fin 3)) : 0 ≤ b G := Nat.cast_nonneg _ | ||
|
|
||
| end WrittenOnTheWallII.GraphConjecture198a | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
is duplicated between files 141 and 200 ==> move to
FormalConjecturesForMathlib