Skip to content

feat(Combinatorics/Graph): map on Graph#37868

Open
Jun2M wants to merge 7 commits intoleanprover-community:masterfrom
Jun2M:GraphMap
Open

feat(Combinatorics/Graph): map on Graph#37868
Jun2M wants to merge 7 commits intoleanprover-community:masterfrom
Jun2M:GraphMap

Conversation

@Jun2M
Copy link
Copy Markdown
Collaborator

@Jun2M Jun2M commented Apr 9, 2026

This PR introduces vertex map on graphs, map.

Co-authored-by: Peter Nelson apn.uni@gmail.com


Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

PR summary f369f66ea0

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.Combinatorics.Graph.Maps (new file) 493

Declarations diff

+ Adj.map
+ Inc.map
+ IsLink.map
+ IsLoopAt.map
+ IsSpanningSubgraph.map
+ IsSubgraph.map
+ map
+ map_adj
+ map_eq_of_eqOn
+ map_id
+ map_inc
+ map_isLoopAt
+ map_map

You can run this locally as follows
## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/reporting/technical-debt-metrics.sh pr_summary
  • 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).

@github-actions github-actions bot added the t-combinatorics Combinatorics label Apr 9, 2026
@Jun2M Jun2M requested a review from YaelDillies April 12, 2026 17:42
Copy link
Copy Markdown
Contributor

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

maintainer delegate

rintro e - - ⟨x, y, h, rfl, rfl⟩
exact Set.mem_image_of_mem _ h.left_mem

lemma IsLink.map (f : α → α') (h : G.IsLink e u v) : (G.map f).IsLink e (f u) (f v) :=
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
lemma IsLink.map (f : α → α') (h : G.IsLink e u v) : (G.map f).IsLink e (f u) (f v) :=
protected lemma IsLink.map (f : α → α') (h : G.IsLink e u v) : (G.map f).IsLink e (f u) (f v) :=

Same below

@YaelDillies YaelDillies changed the title feat(Combinatorics/Graph): Map on Graph feat(Combinatorics/Graph): map on Graph Apr 14, 2026
@github-actions
Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by YaelDillies.

@mathlib-triage mathlib-triage bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. t-combinatorics Combinatorics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants