Repository navigation
chore: remove all transparency set_options in SimpleGraph - #45430
Parcly-Taxel wants to merge 14 commits into
Conversation
A typo in `ofBoxProdRight_boxProdRight` was fixed
PR summary 31e1418276Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Current number | Change | Type (strong) |
|---|---|---|
| 1769 | -2 | backward.defeqAttrib.useBackward |
| 3535 | -36 | backward.isDefEq.respectTransparency |
| 1939 | -39 | backward.isDefEq.respectTransparency.types |
Current commit 31e1418276
Reference commit da6f8cef9e
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).
There was a problem hiding this comment.
What's the issue here? Could you instead fix simp rather than changing the proofs?
There was a problem hiding this comment.
It is impossible to fix simp to get the original proofs working.
There was a problem hiding this comment.
Even adding the following lemmas doesn't allow restoring the original proofs:
@[simp high] lemma transfer_nil (hp) : nil (G := G) (u := u).transfer H hp = .nil := rfl
@[simp high] lemma transfer_cons
(h : G.Adj u v) (p : G.Walk v w) (hp : ∀ e ∈ (cons h p).edges, e ∈ H.edgeSet) :
(cons h p).transfer H hp =
cons (hp s(u, v) (by simp)) (p.transfer H fun e he => hp e (by simp [he])) := rflThere was a problem hiding this comment.
I don't know why, but simp should not be made an all-powerful tool. We should just accept this change.
| | cons _ w => by | ||
| rw [mapToSubgraph, Walk.map, map_map] | ||
| exact congrArg₂ _ rfl w.map_mapToSubgraph_hom | ||
| | cons h w => (map_cons ..).trans (congrArg (cons h) ((map_map ..).trans w.map_mapToSubgraph_hom)) |
There was a problem hiding this comment.
Could you use rw or simp instead?
| mul_zero, sum_ite_eq, mem_univ, ↓reduceIte] | ||
| rfl | ||
| mul_zero] | ||
| exact Fintype.sum_ite_eq .. |
There was a problem hiding this comment.
This is the wrong fix; the issue is the Quot.lift above unfolding ConnectedComponent, instead of using ConnectedComponent.lift.
Since lapMatrix_mulVec_eq_zero_iff_forall_reachable expects Reachable but ConnectedComponent.lift does something different, the correct solution here is to create another version of ConnectedComponent.lift that uses a hypothesis with Reachable (just a wrapper for Quot.lift).
Then everything after ext could be just simp [lapMatrix_ker_basis_aux].
|
Some of these seem right and some of these seem very wrong; could you please go over them slowly and try to find the right fix? |
|
This PR/issue depends on: |
GPT-6.1 Sol was used to fix most but not all of these proofs, which I have reviewed. Declaration changes:
Walk.{take,drop}_{nil,zero,cons_succ}.Walk.ofBoxProdRight_boxProdRight, which has been corrected.toFinset_commonNeighbors, the finite version ofcommonNeighbors_eq.set_options inSimpleGraph, part 1 #45451set_options inSimpleGraph, part 2 #45453