Repository navigation
feat(Combinatorics/Quiver): induced quivers - #45032
mkaratarakis wants to merge 2 commits into
Conversation
PR summary 47ce438a37Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Current number | Change | Type (weak) |
|---|---|---|
| 5102 | 1 | exposed public sections |
Current commit 47ce438a37
Reference commit bdece672cb
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).
7af6005 to
0785d37
Compare
YaelDillies
left a comment
There was a problem hiding this comment.
Can you provide motivation for this in the PR description?
|
Added the motivation to the description. |
|
-awaiting-author |
| induction p with | ||
| | nil => simp | ||
| | cons p e ih => simp [ih] |
There was a problem hiding this comment.
| induction p with | |
| | nil => simp | |
| | cons p e ih => simp [ih] | |
| induction p <;> simp [*] |
| /-- A path in `V` whose vertices stay in `S` induces a path in the induced quiver on `S`. -/ | ||
| def induce {i j : V} (p : Path i j) (hp : ∀ k, k ∈ p.vertices → k ∈ S) : | ||
| letI : Quiver S := Quiver.induce S | ||
| Path (⟨i, hp i (start_mem_vertices p)⟩ : S) (⟨j, hp j (end_mem_vertices p)⟩ : S) := by |
There was a problem hiding this comment.
| Path (⟨i, hp i (start_mem_vertices p)⟩ : S) (⟨j, hp j (end_mem_vertices p)⟩ : S) := by | |
| Path (⟨i, hp i (start_mem_vertices p)⟩ : S) (⟨j, hp j (end_mem_vertices p)⟩ : S) := by |
| Path (⟨i, hp i (start_mem_vertices p)⟩ : S) (⟨j, hp j (end_mem_vertices p)⟩ : S) := by | |
| Path (V := S) ⟨i, hp i (start_mem_vertices p)⟩ ⟨j, hp j (end_mem_vertices p)⟩ := by |
probably more readable
|
|
||
| /-- The vertices of `mapPath` on the inclusion are those of the path, viewed in `V`. -/ | ||
| lemma vertices_mapPath_inducePrefunctor (p : Path i j) : | ||
| ((inducePrefunctor S).mapPath p).vertices = p.vertices.map Subtype.val := | ||
| vertices_mapPath _ p |
There was a problem hiding this comment.
This lemma isn't in simp normal form. Once you normalise it, it becomes tautological, so I would drop it
| /-- Vertices of `mapPath` on the inclusion lie in `S`. -/ | ||
| lemma mapPath_inducePrefunctor_mem_vertices {v : V} (p : Path i j) | ||
| (hv : v ∈ ((inducePrefunctor S).mapPath p).vertices) : v ∈ S := by |
Quiver.induce, the quiver induced on a set of vertices (cf.SimpleGraph.induce), andQuiver.Path.induce, which turns a path staying inside the set into a path in the induced quiver. AlsoQuiver.Path.vertices_mapPath, the vertices of a path mapped along a prefunctor.Motivation: the quiver of the submatrix of a matrix on a set of indices
Sis the quiver induced onS. The Perron–Frobenius work (#39918) uses this to turn paths insideSinto paths of the whole quiver that stay inS.Split from #39916.