Skip to content

feat(PerronFrobenius): core lemmas for non-negative matrices - #39918

Open
mkaratarakis wants to merge 3 commits into
leanprover-community:masterfrom
mkaratarakis:pf/port/lemmas
Open

mkaratarakis wants to merge 3 commits into
leanprover-community:masterfrom
mkaratarakis:pf/port/lemmas

Conversation

@mkaratarakis

@mkaratarakis mkaratarakis commented May 27, 2026 •

Copy link
Copy Markdown
Contributor

Add Mathlib/LinearAlgebra/Matrix/PerronFrobenius/Lemmas.lean: positivity, sub-invariance, and quiver-path consequences used throughout the Perron–Frobenius chain.

Part of the Perron–Frobenius formalization (with @or4nge19).



Open in Gitpod

Note: this file uses 15 declarations of the pre-split Mathlib.Combinatorics.Quiver.Path.PerronFrobenius, of which #39916 upstreams only Quiver.Path.replicate and Quiver.Path.length_replicate. The other 13 (vertexFinset, activeVertices, inducedQuiver, embedding, IsStrictlySimple, isStrictlySimple_of_shortest, card_vertexFinset_of_isStrictlySimple, length_le_card_minus_one_of_isSimple, exists_boundary_edge, exists_boundary_edge_from_set, mapPath_embedding_vertices_in_set, mem_vertices_to_active, path_decomposition_last_edge) are not provided by any open PR yet, so #39916 needs extending before this one can build.

cc @or4nge19 for review

@github-actions

github-actions Bot commented May 27, 2026 •

Copy link
Copy Markdown

PR summary 8874132b46

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.LinearAlgebra.Matrix.PerronFrobenius.Lemmas (new file) 894

Declarations diff (regex)

+ Irreducible.exists_edge_out
+ IsPrimitive.of_irreducible_pos_diagonal
+ exists_boundary_crossing_in_support
+ exists_connecting_edge_of_irreducible
+ exists_path_back_to_set
+ irreducible_mulVec_ne_zero
+ irreducible_of_all_entries_positive
+ irreducible_one_element_implies_diagonal_pos
+ length_bounded_by_support_size
+ mem_activeVertices_to_vertices
+ not_irreducible_of_zero_matrix
+ path_exists_in_component
+ path_exists_in_support
+ path_exists_in_support_of_irreducible
+ path_exists_of_pos_entry
+ path_in_submatrix_to_original
+ positive_mul_vec_of_nonneg_vec
+ positive_mul_vec_pos
+ reachable_in_support_closed
+ zero_block_of_mulVec_eq_zero_row

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

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

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean -- pending)

Computed after the build finishes.


No changes to strong technical debt.

Increase in weak tech debt: (relative, absolute) = (1.00, 0.00)
Current number Change Type (weak)
4949 1 exposed public sections

Current commit 8874132b46
Reference commit b78b57f204

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.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).

@mathlib-dependent-issues mathlib-dependent-issues Bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label May 27, 2026
@mkaratarakis
mkaratarakis force-pushed the pf/port/lemmas branch 5 times, most recently from 4f17464 to 504af91 Compare May 27, 2026 19:34
@mkaratarakis

Copy link
Copy Markdown
Contributor Author

@YaelDillies

@mathlib-dependent-issues mathlib-dependent-issues Bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Oct 19, 2026
@mathlib-dependent-issues

Copy link
Copy Markdown

This PR/issue depends on:

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant