Repository navigation
Conversation
Introduce HyperGraphLike and its general incidence API, including source and target roles, links and adjacency, incidence fibers, incident support sets, degree and order, counting identities, uniformity, and regularity. Add the module to Mathlib.lean. Keep graph specialization classes and concrete representations for later PRs. Co-authored-by: OpenAI Codex <[email protected]>
Co-authored-by: OpenAI Codex <[email protected]>
|
This PR/issue depends on:
|
PR summary 7ab944b174Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Current number | Change | Type (weak) |
|---|---|---|
| exposed public sections | 5064 | 3 |
Current commit 7ab944b174
Reference commit 38f65a093a
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).
Introduces
HyperGraphLike.GraphLikeclass that certifies that the object is a normal graph not hypergraph.GraphLike class is a bit different than the naive implementation of asserting it IsUniform 2. Uniformity is kept by involutive function
other'that exchanges the two incidences of an edge. Then, each edge must have at least one source incidence and at least one target incidence, to maintain the expected behaviour for directed graphs and undirected graphs. For example, if an edge e has two incidences that are only source and not target, any hypergraph with e is not graphLike.Codex assisted with implementation and review; the code was subsequently reviewed and revised by the me.
Co-authored-by: OpenAI Codex [email protected]