All proofs
Project-declaredLean 4.31.0 · mathlib@fabf563a7c95

Exists max index total Degree

Polynomial.Bivariate.exists_max_index_totalDegree

Plain-language statement

There exists a maximal Y-index achieving totalDegree. Above it, total-degree contributions are strictly smaller or the coefficient vanishes.

Exact Lean statement

theorem exists_max_index_totalDegree (f : F[X][Y]) (hf : f ≠ 0) :
    ∃ mm ∈ f.support,
      (f.coeff mm).natDegree + mm = totalDegree f ∧
      ∀ n, mm < n → (f.coeff n).natDegree + n < totalDegree f ∨ f.coeff n = 0

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem exists_max_index_totalDegree (f : F[X][Y]) (hf : f  0) :     mm  f.support,      (f.coeff mm).natDegree + mm = totalDegree f        n, mm < n  (f.coeff n).natDegree + n < totalDegree f  f.coeff n = 0 := by  classical  let s₁ : Finset  := f.support.filter (fun n => (f.coeff n).natDegree + n = totalDegree f)  have hs₁ : s₁.Nonempty := by    have hsupp : f.support.Nonempty := Polynomial.support_nonempty.2 hf    obtain m, hm_mem, hm_sup :=      Finset.exists_mem_eq_sup _ hsupp (fun n => (f.coeff n).natDegree + n)    have hm_deg : (f.coeff m).natDegree + m = totalDegree f := by      simpa [totalDegree] using hm_sup.symm    exact m, Finset.mem_filter.mpr hm_mem, hm_deg⟩⟩  set mm :  := s₁.max' hs₁ with hmm  have hmm_mem_s₁ : mm  s₁ := by simpa [hmm] using Finset.max'_mem s₁ hs₁  have hmm_filter : mm  f.support  (f.coeff mm).natDegree + mm = totalDegree f := by    simpa [s₁] using Finset.mem_filter.mp hmm_mem_s₁  refine mm, hmm_filter.1, hmm_filter.2, ?_  intro n hmn  by_cases hn0 : f.coeff n = 0  · exact Or.inr hn0  · have hn_support : n  f.support := Polynomial.mem_support_iff.2 hn0    have hn_le : (f.coeff n).natDegree + n  totalDegree f := coeff_totalDegree_le f hn_support    have hn_ne : (f.coeff n).natDegree + n  totalDegree f := by      intro hEq      have hn_s₁ : n  s₁ := Finset.mem_filter.mpr hn_support, hEq      have : n  mm := Finset.le_max' s₁ n hn_s₁      exact not_le_of_gt hmn this    exact Or.inl (lt_of_le_of_ne hn_le hn_ne)
Project
ArkLib
License
Apache-2.0
Commit
fad5cbf80877
Source
ArkLib/Data/Polynomial/Bivariate.lean:187-215

Reuse this declaration

Bring the exact result into your workflow

The import identifies the source module. Your project still needs the pinned package dependency shown on this page.

What this badge means

This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.

Continue in this project

Related declarations

Project-declaredLean 4.31.0

Affine gaps lifted to interleaved codes

affine_gaps_lifted_to_interleaved_codes

Project documentation

This lemma proves the final algebraic step in the DG25 Theorem 3.1 proof. It shows that if R > e + 1, then e * (R / (R - 1)) < e + 1. The intuition is that the fraction R / (R - 1) is always greater than 1, but as R gets larger, it gets closer to 1. The hypothesis R > e + 1 provides a strong enough bound to ensure the product e * (fraction) do...

cryptographyproof systemscoding theory

Source project: ArkLib

Person-level attribution pending.

View proof record
Project-declaredLean 4.31.0

Gadget Decompose coeff

ArkLib.Lattices.Ajtai.gadgetDecompose_coeff

Plain-language statement

The k-th coefficient (k < deg φ) of a gadget-decomposition block is exactly the corresponding digit of the corresponding input coefficient.

cryptographyproof systemscoding theory

Source project: ArkLib

Person-level attribution pending.

View proof record
Project-declaredLean 4.31.0

Gadget Decompose lawful

ArkLib.Lattices.Ajtai.gadgetDecompose_lawful

Plain-language statement

The base-b gadget decomposition is a lawful gadget decomposition.

cryptographyproof systemscoding theory

Source project: ArkLib

Person-level attribution pending.

View proof record