Use this theorem
Create a project
lake +leanprover/lean4:v4.35.0 new myproject std.toml cd myprojectStandard template, not
math: themathtemplate adds its own Mathlib requirement pinned to the Lean release tag, not to the Mathlib commit this package is built and tested with, so you would get a second, different Mathlib. Mathlib comes in through this package. Skip this step in an existing project with the same Lean and Mathlib.Add the dependency to
lakefile.toml[[require]] name = "formalizations" git = "https://github.com/karlesmarin/formalizations" rev = "v0.15.0"Import the minimal module
import Formalizations.Reusable.CombinatoricsIn a file of the project, e.g.
Example.lean.Paste the example
open Formalizations.Reusable Filter Topology Classical /-- Brégman for a `2 × 2` `(0,1)`-matrix. -/ example (A : Matrix (Fin 2) (Fin 2) ℕ) (hA : ∀ i j, A i j ≤ 1) : (A.permanent : ℝ) ≤ ∏ i, (((∑ j, A i j).factorial : ℕ) : ℝ) ^ ((1 : ℝ) / (∑ j, A i j : ℕ)) := bregman_permanent_le 2 A hASteps 3 and 4 together are a complete Lean file:
FormalizationsTest/ReusableCombinatoricsExample.leanat v0.15.0, compiled by the CI.Fetch and check
lake update lake lean Example.leanlake updatefetches this package and Mathlib, and Mathlib's update hook downloads the compiled Mathlib (lake exe cache get).lake lean Example.leanbuilds the imports of the file (steps 3 and 4) and checks it. If the file belongs to alean_libof your project,lake build <lib>does the same. Avoid a barelake buildin a project from the standard template: its default target is the executable, whose link compiles every imported Mathlib module to native code. Same versions required: Leanv4.35.0, Mathlibf0b4c81.
Alternative: import Formalizations.Reusable imports the whole layer (all areas).
Brégman's theorem (Minc's conjecture): for an n × n (0,1)-matrix A with row sums r_i, per A ≤ ∏ (r_i!)^(1/r_i); zero rows allowed (factor 1).
Lean statement
theorem bregman_permanent_le (n : ℕ) (A : Matrix (Fin n) (Fin n) ℕ) (hA : ∀ i j, A i j ≤ 1) :
(A.permanent : ℝ) ≤ ∏ i, (((∑ j, A i j).factorial : ℕ) : ℝ) ^ ((1 : ℝ) / (∑ j, A i j : ℕ))Links
Lean docstring
Brégman's theorem (Minc's conjecture). For an n × n (0,1)-matrix A with row sums rᵢ = Σⱼ A i j, the permanent satisfies per A ≤ ∏ᵢ (rᵢ!)^(1/rᵢ). A zero row makes per A = 0, and with 1/0 = 0 its factor is (0!)^0 = 1, so no non-zero-row hypothesis is needed.
- Archive:
Bregman.permanent_le(Formalizations.Combinatorics.Permanent.Bregman; the logarithmic form isBregman.log_bound); the module cites no paper DOI of ours. - Classical reference: L. M. Brégman, Some properties of nonnegative matrices and their permanents, Soviet Math. Dokl. 14 (1973) 945–949; A. Schrijver, A short proof of Minc's conjecture, J. Combin. Theory Ser. A 25 (1978) 80–83.
- Example: a
2 × 2(0,1)-matrix.
Upstream
uses Mathlib's Matrix.permanent; the entropy-free fibre-counting proof is long and specific
Depends on, in this repository
None besides the archive module (repo_dependencies = []).