Documentation

MathlibNt.AnalyticNumberTheory.LargeSieve.LiLiuPrereqFouvryCoprimePartition

The coprimality partition of Fouvry #

The binary separation argument underlying F84, Lemma 6 (pp. 226–227), and F87, Lemma 7 (p. 624). The exponent is the square of the bound on the number of distinct prime factors, as in F84's proof and F87's statement.

@[reducible, inline]

A separating bit and its value on the first coordinate.

Equations
Instances For
    Inspect dependencies

    LiLiuPrereqFouvry.CoprimePartition.BitColor · compiled type and proof/definition references.

    theorem LiLiuPrereqFouvry.CoprimePartition.exists_separating_bit {T a b : ℕ} (ha : a ≤ T) (hb : b ≤ T) (hab : a ≠ b) :
    ∃ (i : Fin (T.log2 + 1)), a.testBit ↑i ≠ b.testBit ↑i
    Inspect dependencies

    LiLiuPrereqFouvry.CoprimePartition.exists_separating_bit · compiled type and proof/definition references.

    Choose a differing bit when there is one; the fallback is only used off domain.

    Equations
    Instances For
      Inspect dependencies

      LiLiuPrereqFouvry.CoprimePartition.bitColor · compiled type and proof/definition references.

      theorem LiLiuPrereqFouvry.CoprimePartition.bitColor_spec {T a b : ℕ} (ha : a ≤ T) (hb : b ≤ T) (hab : a ≠ b) :
      a.testBit ↑(bitColor T a b).1 = (bitColor T a b).2 ∧ b.testBit ↑(bitColor T a b).1 ≠ (bitColor T a b).2
      Inspect dependencies

      LiLiuPrereqFouvry.CoprimePartition.bitColor_spec · compiled type and proof/definition references.

      theorem LiLiuPrereqFouvry.CoprimePartition.bitColor_cross_ne {T a b c d : ℕ} (ha : a ≤ T) (hb : b ≤ T) (hc : c ≤ T) (hd : d ≤ T) (hab : a ≠ b) (hcd : c ≠ d) (hcolor : bitColor T a b = bitColor T c d) :
      a ≠ d

      Equal binary colors prohibit cross equality, not merely equality within a pair.

      Inspect dependencies

      LiLiuPrereqFouvry.CoprimePartition.bitColor_cross_ne · compiled type and proof/definition references.

      Inspect dependencies

      LiLiuPrereqFouvry.CoprimePartition.card_bitColor · compiled type and proof/definition references.

      noncomputable def LiLiuPrereqFouvry.CoprimePartition.paddedFactor (ω n pad : ℕ) (i : Fin ω) :

      Enumerate the distinct prime factors increasingly and pad to the requested length.

      Equations
      Instances For
        Inspect dependencies

        LiLiuPrereqFouvry.CoprimePartition.paddedFactor · compiled type and proof/definition references.

        Inspect dependencies

        LiLiuPrereqFouvry.CoprimePartition.paddedFactor_mem_or_eq · compiled type and proof/definition references.

        theorem LiLiuPrereqFouvry.CoprimePartition.exists_paddedFactor {ω n p : ℕ} (hω : n.primeFactors.card ≤ ω) (hp : p ∈ n.primeFactors) (pad : ℕ) :
        ∃ (i : Fin ω), paddedFactor ω n pad i = p
        Inspect dependencies

        LiLiuPrereqFouvry.CoprimePartition.exists_paddedFactor · compiled type and proof/definition references.

        theorem LiLiuPrereqFouvry.CoprimePartition.paddedFactor_le {T ω n pad : ℕ} (hn : n ≤ T) (hpad : pad ≤ T) (i : Fin ω) :
        paddedFactor ω n pad i ≤ T
        Inspect dependencies

        LiLiuPrereqFouvry.CoprimePartition.paddedFactor_le · compiled type and proof/definition references.

        theorem LiLiuPrereqFouvry.CoprimePartition.paddedFactor_ne {ω a b : ℕ} (hab : a.Coprime b) (i j : Fin ω) :
        paddedFactor ω a 0 i ≠ paddedFactor ω b 1 j

        Asymmetric padding by 0 and 1 never creates a common prime factor.

        Inspect dependencies

        LiLiuPrereqFouvry.CoprimePartition.paddedFactor_ne · compiled type and proof/definition references.

        @[reducible, inline]

        One binary color for every pair of prime-factor slots.

        Equations
        Instances For
          Inspect dependencies

          LiLiuPrereqFouvry.CoprimePartition.MatrixColor · compiled type and proof/definition references.

          Inspect dependencies

          LiLiuPrereqFouvry.CoprimePartition.matrixColor · compiled type and proof/definition references.

          Inspect dependencies

          LiLiuPrereqFouvry.CoprimePartition.card_matrixColor · compiled type and proof/definition references.

          theorem LiLiuPrereqFouvry.CoprimePartition.matrixColor_cross_coprime {T ω a b c d : ℕ} (hT : 1 ≤ T) (ha₀ : a ≠ 0) (hd₀ : d ≠ 0) (ha : a ≤ T) (hb : b ≤ T) (hc : c ≤ T) (hd : d ≤ T) (haω : a.primeFactors.card ≤ ω) (hdω : d.primeFactors.card ≤ ω) (hab : a.Coprime b) (hcd : c.Coprime d) (hcolor : matrixColor T ω (a, b) = matrixColor T ω (c, d)) :

          Equality of the full matrix forces coprimality across two different pairs.

          Inspect dependencies

          LiLiuPrereqFouvry.CoprimePartition.matrixColor_cross_coprime · compiled type and proof/definition references.

          The finite set in F87, Lemma 7; the prime factors are counted without multiplicity.

          Equations
          Instances For
            Inspect dependencies

            LiLiuPrereqFouvry.CoprimePartition.admissiblePairs · compiled type and proof/definition references.

            Inspect dependencies

            LiLiuPrereqFouvry.CoprimePartition.mem_admissiblePairs · compiled type and proof/definition references.

            noncomputable def LiLiuPrereqFouvry.CoprimePartition.cell (T ω : ℕ) (κ : MatrixColor T ω) :

            The fiber of a prime-pair color matrix.

            Equations
            Instances For
              Inspect dependencies

              LiLiuPrereqFouvry.CoprimePartition.cell · compiled type and proof/definition references.

              theorem LiLiuPrereqFouvry.CoprimePartition.mem_cell {T ω : ℕ} {κ : MatrixColor T ω} {a : ℕ × ℕ} :
              a ∈ cell T ω κ ↔ a ∈ admissiblePairs T ω ∧ matrixColor T ω a = κ
              Inspect dependencies

              LiLiuPrereqFouvry.CoprimePartition.mem_cell · compiled type and proof/definition references.

              theorem LiLiuPrereqFouvry.CoprimePartition.cell_cross_coprime {T ω : ℕ} {κ : MatrixColor T ω} {a b : ℕ × ℕ} (ha : a ∈ cell T ω κ) (hb : b ∈ cell T ω κ) :
              a.1.Coprime b.2
              Inspect dependencies

              LiLiuPrereqFouvry.CoprimePartition.cell_cross_coprime · compiled type and proof/definition references.

              theorem LiLiuPrereqFouvry.CoprimePartition.disjoint_cells {T ω : ℕ} {κ η : MatrixColor T ω} (h : κ ≠ η) :
              Disjoint (cell T ω κ) (cell T ω η)
              Inspect dependencies

              LiLiuPrereqFouvry.CoprimePartition.disjoint_cells · compiled type and proof/definition references.

              Inspect dependencies

              LiLiuPrereqFouvry.CoprimePartition.partition · compiled type and proof/definition references.

              Inspect dependencies

              LiLiuPrereqFouvry.CoprimePartition.mem_partition · compiled type and proof/definition references.

              Inspect dependencies

              LiLiuPrereqFouvry.CoprimePartition.partition_nonempty · compiled type and proof/definition references.

              Inspect dependencies

              LiLiuPrereqFouvry.CoprimePartition.partition_pairwise_disjoint · compiled type and proof/definition references.

              Inspect dependencies

              LiLiuPrereqFouvry.CoprimePartition.partition_cover · compiled type and proof/definition references.

              theorem LiLiuPrereqFouvry.CoprimePartition.partition_cross_coprime {T ω : ℕ} {s : Finset (ℕ × ℕ)} (hs : s ∈ partition T ω) {a b : ℕ × ℕ} (ha : a ∈ s) (hb : b ∈ s) :
              a.1.Coprime b.2
              Inspect dependencies

              LiLiuPrereqFouvry.CoprimePartition.partition_cross_coprime · compiled type and proof/definition references.

              The exact finite bound, including ω = 0 and T = 0,1.

              Inspect dependencies

              LiLiuPrereqFouvry.CoprimePartition.card_partition_le · compiled type and proof/definition references.

              theorem LiLiuPrereqFouvry.CoprimePartition.sum_partition {M : Type u_1} [AddCommMonoid M] (T ω : ℕ) (f : ℕ × ℕ → M) :
              ∑ s ∈ partition T ω, ∑ a ∈ s, f a = ∑ a ∈ admissiblePairs T ω, f a

              Arbitrary signed or complex weights decompose without a triangle inequality.

              Inspect dependencies

              LiLiuPrereqFouvry.CoprimePartition.sum_partition · compiled type and proof/definition references.