Liu's finite p₁p₂ weight #
This module formalizes the finite characteristic function in Liu (2022),
eqn-adef. The square-root cutoff is stored without rounding as
p₁ * p₂ ^ 2 ≤ N; liuSizeCondition_iff_real_sqrt identifies it with the
paper's real square-root inequality.
The exact identity below rewrites the non-coprime majorant as a finite sum over
the unique admissible pair with p₁ ∣ d. The signed non-coprime sum is only
bounded by that expression. No outer d ∣ Q weighted asymptotic estimate is
asserted here.
The arithmetic conditions on the ordered prime pair in Liu's eqn-adef.
The last condition is the lossless natural-number form of
p₂ ≤ sqrt (N / p₁).
Equations
Instances For
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.LiuPairConditions · compiled type and proof/definition references.
Equations
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.instDecidableLiuPairConditions · compiled type and proof/definition references.
Each factor in an admissible pair is at most N, so range (N + 1)
contains every representation.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuPairConditions_factors_le · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuSizeCondition_iff_real_sqrt · compiled type and proof/definition references.
The finite set of ordered prime pairs occurring in Liu's weight.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuWeightPairs N z y = {p ∈ (Finset.range (N + 1)).product (Finset.range (N + 1)) | MathlibNt.SieveTheory.LiuWeight.LiuPairConditions N z y p.1 p.2}
Instances For
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuWeightPairs · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.mem_liuWeightPairs · compiled type and proof/definition references.
A visible finite witness that a has an admissible p₁p₂ representation.
Equations
- MathlibNt.SieveTheory.LiuWeight.LiuWeightSupport N z y a = ∃ p ∈ MathlibNt.SieveTheory.LiuWeight.liuWeightPairs N z y, p.1 * p.2 = a
Instances For
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.LiuWeightSupport · compiled type and proof/definition references.
Equations
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.instDecidableLiuWeightSupport · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuWeightSupport_iff · compiled type and proof/definition references.
Admissible ordered prime representations are unique. Thus the characteristic function below never silently collapses multiplicities.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuPairConditions_unique · compiled type and proof/definition references.
Liu's transparent finite characteristic weight: one exactly when the finite
witness set contains an admissible pair whose product is a.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuWeight N z y a = if MathlibNt.SieveTheory.LiuWeight.LiuWeightSupport N z y a then 1 else 0
Instances For
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuWeight · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuWeight_eq_one_iff · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuWeight_eq_zero_iff · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuWeight_nonneg · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.abs_liuWeight · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.abs_liuWeight_le_one · compiled type and proof/definition references.
The number of Liu source pairs obtained from a strict ordered triple by pairing its medium prime with either large prime.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuOrderedTriplePairMultiplicity N z y p₁ p₂ p₃ = MathlibNt.SieveTheory.LiuWeight.liuWeight N z y (p₁ * p₂) + MathlibNt.SieveTheory.LiuWeight.liuWeight N z y (p₁ * p₃)
Instances For
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuOrderedTriplePairMultiplicity · compiled type and proof/definition references.
A strict ordered triple contributes once through its smaller large prime, and a second time exactly when the larger prime also satisfies Liu's square cutoff. Thus the source weight has multiplicity one or two, not uniformly two.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuOrderedTriplePairMultiplicity_eq_one_add_indicator · compiled type and proof/definition references.
A concrete strict ordered triple for which Liu's source multiplicity is one. This is the local obstruction to dividing the source count by two.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuOrderedTriplePairMultiplicity_one_witness · compiled type and proof/definition references.
The exact finite size consequence retained in place of an unproved
natural/real N^(2/3) floor bridge.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuWeightSupport_le · compiled type and proof/definition references.
Transport an arbitrary filtered kernel through the unique prime-pair product.
The truncation is independent of N; no sign condition is imposed on the kernel.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.sum_liuWeightSupport_filter_eq_sum_pairs · compiled type and proof/definition references.
Reindex an arbitrary sum against Liu's characteristic source by its unique admissible ordered prime pair.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.sum_liuWeight_mul_eq_sum_pairs_of_support · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.product_cube_le_sq · compiled type and proof/definition references.
Every admissible Liu pair satisfies the exact root-free support bound
(p₁p₂)^3 ≤ N^2. No floor or real-power comparison is used.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuPairConditions_product_cube_le_sq · compiled type and proof/definition references.
Product-support form of the exact root-free N^(2/3) bound.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuWeightSupport_cube_le_sq · compiled type and proof/definition references.
The root-free support inequality converts to the intended N^(2/3)
real scale. It belongs to the source weight itself and is reused by both the
Pan source-interval bridge and the deterministic Abel estimate.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.le_rpow_two_thirds_of_cube_le_sq · compiled type and proof/definition references.
Every nonzero Liu source index lies below the exact two-thirds scale.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuWeightSupport_le_rpow_two_thirds · compiled type and proof/definition references.
The actual indicator support has the two-thirds cardinality scale forced by Liu's product-cube condition.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuWeight_support_card_le_ceil_rpow_two_thirds · compiled type and proof/definition references.
Since liuWeight is an indicator, its supported source mass is the support
cardinality.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.sum_liuWeight_Icc_eq_support_card · compiled type and proof/definition references.
Explicit O(N^(2/3)) mass bound for the actual Liu indicator.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.sum_liuWeight_Icc_le_ceil_rpow_two_thirds · compiled type and proof/definition references.
A convenient real form of the source mass estimate.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.sum_liuWeight_Icc_le_three_mul_rpow_two_thirds · compiled type and proof/definition references.
If every prime divisor of d is at most w, then on an admissible pair the
only possible common prime divisor is p₁. The larger factor p₂ cannot divide
d because w ≤ y < p₂. The modulus cutoff w is independent of the lower
weight cutoff z, which does not occur in this arithmetic statement.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.not_coprime_mul_iff_p₁_dvd · compiled type and proof/definition references.
If a factor of a divides the modulus but not the residue, then the scaled
prime progression defining primesInAPBelow is empty.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.primesInAPBelow_mul_eq_zero_of_dvd_modulus · compiled type and proof/definition references.
The residue-count collapse at l = N % d.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.primesInAPBelow_mul_mod_eq_zero · compiled type and proof/definition references.
Main-term-parametric finite R₁ seam #
The source-facing scaled AP error with an arbitrary main-term model:
π(Y; a, d, l) - main(Y/a)/φ(d).
No analytic, sign, or asymptotic property of main is assumed.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuScaledAPError main Y a d l = ↑(AnalyticNumberTheory.Sieve.primesInAPBelow Y a d l) - main (↑Y / ↑a) / ↑d.totient
Instances For
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuScaledAPError · compiled type and proof/definition references.
The signed non-coprime part for an arbitrary main-term model.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuMainNoncoprimeSum main Y X d l f = ∑ a ∈ Finset.range (X + 1), if ¬a.Coprime d then f a * MathlibNt.SieveTheory.LiuWeight.liuScaledAPError main Y a d l else 0
Instances For
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuMainNoncoprimeSum · compiled type and proof/definition references.
The termwise absolute non-coprime majorant for an arbitrary main-term model.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuMainNoncoprimeMajorant main Y X d l f = ∑ a ∈ Finset.range (X + 1), if ¬a.Coprime d then |f a| * |MathlibNt.SieveTheory.LiuWeight.liuScaledAPError main Y a d l| else 0
Instances For
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuMainNoncoprimeMajorant · compiled type and proof/definition references.
ANT's historical Pan error is exactly the specialization to its
x / log x compatibility proxy.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuScaledAPError_proxy · compiled type and proof/definition references.
The legacy signed non-coprime Pan sum is exactly the proxy specialization.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuMainNoncoprimeSum_proxy · compiled type and proof/definition references.
The legacy non-coprime Pan majorant is exactly the proxy specialization.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuMainNoncoprimeMajorant_proxy · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.abs_liuMainNoncoprimeSum_le · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuScaledAPError_mul_eq_neg_main_div_totient · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.abs_liuScaledAPError_mul_eq_abs_main_div_totient · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuScaledAPError_mul_mod_eq_neg_main_div_totient · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.abs_liuScaledAPError_mul_mod_eq_abs_main_div_totient · compiled type and proof/definition references.
The paper-shaped finite pair sum for an arbitrary main-term model.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuP₁DividesMainSum main N z y Y X d l = ∑ p ∈ MathlibNt.SieveTheory.LiuWeight.liuWeightPairs N z y with p.1 * p.2 ≤ X ∧ p.1 ∣ d, |MathlibNt.SieveTheory.LiuWeight.liuScaledAPError main Y (p.1 * p.2) d l|
Instances For
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuP₁DividesMainSum · compiled type and proof/definition references.
The main-parametric majorant is exactly the supported non-coprime sum.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuMainNoncoprimeMajorant_liuWeight_eq_support_sum · compiled type and proof/definition references.
Reindex the supported non-coprime sum by the unique admissible pair.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuMainSupportNoncoprimeSum_eq_p₁DividesMainSum · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuMainNoncoprimeMajorant_liuWeight_eq_p₁DividesMainSum · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.abs_liuMainNoncoprimeSum_liuWeight_le_p₁DividesMainSum · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuP₁DividesMainSum_mod_eq_abs_main_sum · compiled type and proof/definition references.
Exact per-modulus arbitrary-model majorant after the zero-count reduction.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuMainNoncoprimeMajorant_liuWeight_mod_eq_abs_main_sum · compiled type and proof/definition references.
Signed per-modulus arbitrary-model sum bounded by the explicit main sum.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.abs_liuMainNoncoprimeSum_liuWeight_mod_le_abs_main_sum · compiled type and proof/definition references.
Compatibility-proxy specializations #
Proxy specialization. With the progression count zero, ANT's historical
Pan error is the negative x / log x main term.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.panDistributionError_mul_eq_neg_li_div_totient · compiled type and proof/definition references.
The sign-free consequence retains |li|; no positivity of the logarithmic
integral is assumed.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.abs_panDistributionError_mul_eq_abs_li_div_totient · compiled type and proof/definition references.
Specialization of the exact signed formula to the residue N % d.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.panDistributionError_mul_mod_eq_neg_li_div_totient · compiled type and proof/definition references.
Specialization of the absolute-value formula to the residue N % d.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.abs_panDistributionError_mul_mod_eq_abs_li_div_totient · compiled type and proof/definition references.
The paper-shaped finite sum after the p₂ ∤ d observation.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuP₁DividesSum N z y Y X d l = ∑ p ∈ MathlibNt.SieveTheory.LiuWeight.liuWeightPairs N z y with p.1 * p.2 ≤ X ∧ p.1 ∣ d, |AnalyticNumberTheory.Sieve.panDistributionError Y (p.1 * p.2) d l|
Instances For
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuP₁DividesSum · compiled type and proof/definition references.
The legacy finite pair sum is exactly the x / log x proxy specialization.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuP₁DividesMainSum_proxy · compiled type and proof/definition references.
The termwise non-coprime majorant is first exactly the sum over supported
products that are not coprime to d.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.panDistributionNoncoprimeMajorant_liuWeight_eq_support_sum · compiled type and proof/definition references.
Exact reindexing of the supported non-coprime sum by the unique admissible pair.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuSupportNoncoprimeSum_eq_p₁DividesSum · compiled type and proof/definition references.
Exact equality for the majorant. On moduli whose prime divisors are at
most the independent cutoff w ≤ y, Liu's weight with lower cutoff z has
non-coprime majorant precisely equal to the finite p₁ ∣ d pair sum.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.panDistributionNoncoprimeMajorant_liuWeight_eq_p₁DividesSum · compiled type and proof/definition references.
Termwise majorant, not an equality for the signed sum. This is the
finite R₁ reduction available before the still-open outer d ∣ Q weighted
asymptotic estimate.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.abs_panDistributionNoncoprimeSum_liuWeight_le_p₁DividesSum · compiled type and proof/definition references.
Termwise residue collapse through Liu's finite p₁ ∣ d sum. The explicit
hypothesis is exactly what is needed to pass from p₁ ∣ d to p₁ ∤ N; in the
corrected Chen application it follows from d ∣ correctedChenSiftingProduct N.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.liuP₁DividesSum_mod_eq_abs_li_sum · compiled type and proof/definition references.
Exact non-coprime majorant after every relevant prime divisor of d is
known not to divide N. The absolute value on li is retained.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.panDistributionNoncoprimeMajorant_liuWeight_mod_eq_abs_li_sum · compiled type and proof/definition references.
Signed non-coprime sum bounded by the same exact finite |li| expression.
No outer modulus sum, cutoff estimate, or logarithmic estimate is asserted.
Inspect dependencies
MathlibNt.SieveTheory.LiuWeight.abs_panDistributionNoncoprimeSum_liuWeight_mod_le_abs_li_sum · compiled type and proof/definition references.