You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure about the BondyChvatalRel spelling, but it seems more faithful to the "Bondy-Chvátal closure" spelling (on Wikipedia and other places). We could also modify the def to remove self loops (by adding G ≠ G' ∧ ..., or more explicitly u ≠ v ∧ ¬G.Adj u v), prove it has no directed cycles and that it satisfies Church-Rosser, then define the closure of G as the (unique) normal form of it under this relation.
Wikipedia also mentions this theorem about Hamiltonian paths:
/-- **Rahman-Kaykobad theorem**: If for every pair of non-adjacent vertices the sum of their degreesand the distance between them is greater than the number of vertices, then there exists aHamiltonian path. -/theoremexists_isHamiltonian_of_pairwise_not_adj_imp_card_lt_degree_add_dist {V : Type*}
[DecidableEq V] [Nonempty V] [Fintype V] {G : SimpleGraph V} [G.LocallyFinite]
(h : Pairwise fun u v ↦ ¬G.Adj u v → Fintype.card V < G.degree u + G.degree v + G.dist u v) :
∃ (u v : V) (p : G.Walk u v), p.IsHamiltonian := bysorry
I'm not sure if it's a corollary of Bondy-Chvátal, but I think the proof is similar, so it's a good next target.
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>
The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.
Declarations diff (Lean)
✅ Lean-aware diff — post-build, computed from the Lean environment (commit a5a2cad).
The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
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
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.
Proves the Bondy-Chvátal theorem and its corollaries, Ore's theorem and Dirac's theorem.
Wikipedia
The proof is detailed on the wiki page of Ore's theorem, with a nice illustration.
The wikidata item in
1000.yamlpoints to Hamiltonian path, but I found one specifically about the theorem.I'm not sure about the
BondyChvatalRelspelling, but it seems more faithful to the "Bondy-Chvátal closure" spelling (on Wikipedia and other places). We could also modify the def to remove self loops (by addingG ≠ G' ∧ ..., or more explicitlyu ≠ v ∧ ¬G.Adj u v), prove it has no directed cycles and that it satisfies Church-Rosser, then define the closure ofGas the (unique) normal form of it under this relation.Wikipedia also mentions this theorem about Hamiltonian paths:
I'm not sure if it's a corollary of Bondy-Chvátal, but I think the proof is similar, so it's a good next target.
(G ⊔ edge u v).IsHamiltonianiff #41721