Repository navigation
[Merged by Bors] - chore(Combinatorics/SimpleGraph/Trails): golf and cleanup - #41447
SnirBroshi wants to merge 7 commits into
Conversation
SnirBroshi
commented
Jul 7, 2026
PR summary d593dec6ecImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Current number | Change | Type (strong) |
|---|---|---|
| backward.isDefEq.respectTransparency.types | 2427 | -2 |
Current commit d593dec6ec
Reference commit 710c215f98
This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
…o chore/simple-graph/trails-cleanup-and-golf
|
This pull request has conflicts, please merge |
…o chore/simple-graph/trails-cleanup-and-golf
JovanGerb
left a comment
There was a problem hiding this comment.
Thanks, looks good to me
| @[simp] | ||
| lemma mem_edgeSet {u v : V} {p : G.Walk u v} {e : Sym2 V} : e ∈ p.edgeSet ↔ e ∈ p.edges := Iff.rfl | ||
|
|
||
| theorem edgeSet_subset_edgeSet (p : G.Walk u v) : p.edgeSet ⊆ G.edgeSet := |
There was a problem hiding this comment.
This one could use a @[gcongr] attribute maybe? (optional)
There was a problem hiding this comment.
It gives this error:
@[gcongr] attribute only applies to lemmas proving f x₁ ... xₙ ∼ f x₁' ... xₙ'.
LHS and RHS do not have the same head function. in p.edgeSet ⊆ G.edgeSet
There was a problem hiding this comment.
Oh, my bad. I didn't realize that the two .edgeSet were different constants! So it is indeed not suitable for @[gcongr].
Should something in the lemma name make this clear?
There was a problem hiding this comment.
It's under the SimpleGraph.Walk namespace so we could do edgeSet_subset_simpleGraphEdgeSet, but I think the current name is clear and the alternative is strange
| · simp [List.count_eq_zero_of_not_mem he] | ||
| theorem IsEulerian.isTrail (h : p.IsEulerian) : p.IsTrail := by | ||
| rw [isTrail_def, List.nodup_iff_count_eq_one] | ||
| exact (h · <| p.edges_subset_edgeSet ·) |
There was a problem hiding this comment.
I looked at edges_subset_edgeSet, and its name seems to be a bit misleading... (no action needed in this PR)
There was a problem hiding this comment.
I agree, although its docstring does explain a bit better
|
|
||
| theorem IsEulerian.card_odd_degree [Fintype V] [DecidableRel G.Adj] {u v : V} {p : G.Walk u v} | ||
| (ht : p.IsEulerian) : | ||
| · grind [Finset.card_pair hn, congrArg Finset.card] |
There was a problem hiding this comment.
Passing congrArg Finset.card to grind is a bit strange. I would have hoped that grind could do without. (no action needed)
|
maintainer merge |
|
🚀 Pull request has been placed on the maintainer queue by JovanGerb. |
|
Thanks! bors merge |
|
Build failed (retrying...): |
|
Build failed (retrying...): |
|
Pull request successfully merged into master. Build succeeded: |
* origin/master: (958 commits) chore(Combinatorics/SimpleGraph/Trails): golf and cleanup (leanprover-community#41447) refactor(Probability/Kernel): remove redundant case split in Invariant.comp (leanprover-community#43805) chore: bump toolchain to v4.34.0 (leanprover-community#43798) feat(Data/List/SignVariations): add List.signVariations (leanprover-community#43783) feat(LinearAlgebra/Span/Basic): add Submodule.prodEquiv (leanprover-community#43664) feat(cache): put with native Azure and S3 backends (leanprover-community#43378) feat(Combinatorics/SimpleGraph/Walk): more `transfer` API (leanprover-community#41717) feat(SimpleGraph): girth-diameter inequality (leanprover-community#25834) feat: make `simps?` and `to_dual?`/`to_additive?` more concise (leanprover-community#43775) feat(Basic/IsEmpty/Defs): add Fin.isEmpty_iff (leanprover-community#43763) feat(Data/ENNReal/Inv): add ENNReal.div_mul_div_cancel (leanprover-community#37954) chore(Tactic/Simproc/ExistsAndEq): fix two typos (leanprover-community#43797) feat(LinearAlgebra/Matrix/GeneralLinearGroup/Defs): add the proof of the range of toGL to be the ker of the determinant and the induced equivalence (leanprover-community#41786) chore(Data/Num/Lemmas): golf `transfer` tactic (leanprover-community#41167) refactor(Data/Nat/Choose/Central): move and rename `four_pow_le_two_mul_add_one_mul_central_binom` (leanprover-community#42606) feat(Combinatorics/Graph): edge cut of `Graph` (leanprover-community#37865) feat(Algebra/QuadraticAlgebra): classify quadratic algebras by their discriminant (leanprover-community#42708) fix: use the PR number in the deprecation reminder message (leanprover-community#43786) feat(Data/Fintype/Defs): add DecidableLE (∀ a, β a) (leanprover-community#43425) chore: redefine `Finsupp.indicator` using `Finsupp.onFinset` (leanprover-community#33434) ... # Conflicts: # Mathlib/Tactic/Linter/DirectoryDependency.lean