{
  "verdict": "pass",
  "decl": "Nat.midy",
  "lean_source": "import Mathlib.FieldTheory.Finite.Basic\nimport Mathlib.Tactic.LinearCombination\n\n/-!\n# Midy's theorem\n\nThe long-division remainder and quotient give the actual digits and blocks of a fractional\nexpansion. For a prime denominator, we identify the least digit period with the multiplicative\norder of the base, then show that the two halves of an even period are complementary.\n-/\n\nnamespace Nat\n\n/-- The remainder after consuming `n` fractional digits in base `b`. -/\ndef longDivRemainder (b p a n : ℕ) : ℕ := (a * b ^ n) % p\n\n/-- The digit at index `n` (starting at zero) in the base-`b` long division of `a/p`. -/\ndef longDivDigit (b p a n : ℕ) : ℕ := (longDivRemainder b p a n * b) / p\n\n/-- The value of the first `n` digits of the long division, viewed as a block of width `n`. -/\ndef longDivBlock (b p a n : ℕ) : ℕ := (a * b ^ n) / p\n\ntheorem longDivRemainder_zero {b p a : ℕ} (ha : a < p) :\n    longDivRemainder b p a 0 = a := by\n  simp [longDivRemainder, Nat.mod_eq_of_lt ha]\n\n/-- The prefix quotient and remainder determine the exact truncation of the fraction. -/\ntheorem longDivBlock_spec (b p a n : ℕ) :\n    longDivRemainder b p a n + p * longDivBlock b p a n = a * b ^ n :=\n  Nat.mod_add_div _ _\n\ntheorem longDivBlock_lt {b p a n : ℕ} (hp : 0 < p) (hb : 0 < b) (ha : a < p) :\n    longDivBlock b p a n < b ^ n := by\n  apply (Nat.div_lt_iff_lt_mul hp).2\n  rw [Nat.mul_comm (b ^ n) p]\n  exact Nat.mul_lt_mul_of_pos_right ha (pow_pos hb _)\n\ntheorem longDivRemainder_add (b p a m n : ℕ) :\n    longDivRemainder b p a (m + n) =\n      longDivRemainder b p (longDivRemainder b p a m) n := by\n  simp only [longDivRemainder, pow_add, ← Nat.mul_assoc]\n  exact (Nat.mod_mul_mod _ _ _).symm\n\ntheorem longDivRemainder_succ (b p a n : ℕ) :\n    longDivRemainder b p a (n + 1) = (longDivRemainder b p a n * b) % p := by\n  rw [longDivRemainder_add]\n  simp [longDivRemainder]\n\n/-- One step of long division gives the next digit and remainder by Euclidean division. -/\ntheorem longDivDigit_step (b p a n : ℕ) :\n    longDivRemainder b p a (n + 1) + p * longDivDigit b p a n =\n      longDivRemainder b p a n * b := by\n  rw [longDivRemainder_succ, longDivDigit, Nat.mod_add_div]\n\ntheorem longDivDigit_add (b p a m n : ℕ) :\n    longDivDigit b p a (m + n) = longDivDigit b p (longDivRemainder b p a m) n := by\n  simp only [longDivDigit, longDivRemainder_add]\n\ntheorem longDivDigit_lt {b p a n : ℕ} (hp : 0 < p) (hb : 0 < b) :\n    longDivDigit b p a n < b := by\n  apply (Nat.div_lt_iff_lt_mul hp).2\n  rw [Nat.mul_comm b p]\n  exact Nat.mul_lt_mul_of_pos_right (Nat.mod_lt _ hp) hb\n\ntheorem longDivBlock_add {b p a : ℕ} (hp : 0 < p) (m n : ℕ) :\n    longDivBlock b p a (m + n) =\n      longDivBlock b p a m * b ^ n + longDivBlock b p (longDivRemainder b p a m) n := by\n  unfold longDivBlock longDivRemainder\n  calc\n    (a * b ^ (m + n)) / p = ((a * b ^ m % p + p * (a * b ^ m / p)) * b ^ n) / p := by\n      rw [Nat.mod_add_div, pow_add, Nat.mul_assoc]\n    _ = _ := by\n      rw [Nat.add_mul, Nat.mul_assoc, Nat.add_mul_div_left _ _ hp, Nat.add_comm]\n\ntheorem longDivBlock_succ {b p a : ℕ} (hp : 0 < p) (n : ℕ) :\n    longDivBlock b p a (n + 1) = longDivBlock b p a n * b + longDivDigit b p a n := by\n  rw [longDivBlock_add hp]\n  simp [longDivBlock, longDivDigit]\n\nprivate theorem longDivBlock_eq_of_digits_eq {b p a c : ℕ}\n    (hp : 0 < p) (ha : a < p) (hc : c < p)\n    (hd : ∀ n, longDivDigit b p a n = longDivDigit b p c n) (n : ℕ) :\n    longDivBlock b p a n = longDivBlock b p c n := by\n  induction n with\n  | zero => simp [longDivBlock, Nat.div_eq_of_lt ha, Nat.div_eq_of_lt hc]\n  | succ n ih => rw [longDivBlock_succ hp, longDivBlock_succ hp, ih, hd]\n\nprivate theorem eq_of_longDivDigits_eq {b p a c : ℕ}\n    (hb : 2 ≤ b) (hp : 0 < p) (ha : a < p) (hc : c < p)\n    (hd : ∀ n, longDivDigit b p a n = longDivDigit b p c n) : a = c := by\n  have hq := longDivBlock_eq_of_digits_eq hp ha hc hd p\n  unfold longDivBlock at hq\n  have hra := Nat.mod_add_div (a * b ^ p) p\n  have hrc := Nat.mod_add_div (c * b ^ p) p\n  rw [hq] at hra\n  have hpow : p ≤ b ^ p := (Nat.lt_pow_self (by omega : 1 < b)).le\n  have hra' := Nat.mod_lt (a * b ^ p) hp\n  have hrc' := Nat.mod_lt (c * b ^ p) hp\n  rcases lt_trichotomy a c with h | h | h\n  · have hgap := Nat.mul_le_mul_right (b ^ p) (show a + 1 ≤ c by omega)\n    rw [Nat.add_mul, Nat.one_mul] at hgap\n    omega\n  · exact h\n  · have hgap := Nat.mul_le_mul_right (b ^ p) (show c + 1 ≤ a by omega)\n    rw [Nat.add_mul, Nat.one_mul] at hgap\n    omega\n\nprivate theorem longDivRemainder_eq_iff_zmod {b p a t c : ℕ}\n    (hp : 0 < p) (hc : c < p) :\n    longDivRemainder b p a t = c ↔ (a : ZMod p) * (b : ZMod p) ^ t = (c : ZMod p) := by\n  have hr : longDivRemainder b p a t < p := Nat.mod_lt _ hp\n  have hcast : (longDivRemainder b p a t : ZMod p) = (a : ZMod p) * (b : ZMod p) ^ t := by\n    simp [longDivRemainder, ZMod.natCast_mod]\n  rw [← hcast, ZMod.natCast_eq_natCast_iff', Nat.mod_eq_of_lt hr, Nat.mod_eq_of_lt hc]\n\n/-- A shift preserves every digit of the expansion exactly when it is a multiple of\nthe multiplicative order of the base. -/\ntheorem longDivDigit_period_iff {b p a t : ℕ}\n    (hb : 2 ≤ b) (hp : p.Prime) (ha : 0 < a) (hap : a < p) :\n    (∀ n, longDivDigit b p a (t + n) = longDivDigit b p a n) ↔\n      orderOf (b : ZMod p) ∣ t := by\n  let : Fact p.Prime := ⟨hp⟩\n  have ha0 : (a : ZMod p) ≠ 0 := by\n    intro h\n    exact (not_le_of_gt hap) (Nat.le_of_dvd ha ((ZMod.natCast_eq_zero_iff a p).mp h))\n  have hr : longDivRemainder b p a t < p := Nat.mod_lt _ hp.pos\n  have hequiv : longDivRemainder b p a t = a ↔ (b : ZMod p) ^ t = 1 := by\n    rw [longDivRemainder_eq_iff_zmod hp.pos hap]\n    constructor\n    · intro h\n      exact mul_left_cancel₀ ha0 (h.trans (mul_one _).symm)\n    · intro h\n      rw [h, mul_one]\n  rw [orderOf_dvd_iff_pow_eq_one, ← hequiv]\n  simp only [longDivDigit_add]\n  exact ⟨eq_of_longDivDigits_eq hb hp.pos hr hap, fun h n => by rw [h]⟩\n\n/-- The value of any returning block, with its length specifying the leading zeroes. -/\ntheorem longDivBlock_eq_of_remainder_eq {b p a t : ℕ}\n    (hp : 0 < p) (hb : 0 < b) (h : longDivRemainder b p a t = a) :\n    longDivBlock b p a t = a * (b ^ t - 1) / p := by\n  have hpow : 1 ≤ b ^ t := Nat.one_le_pow _ _ hb\n  have hqr := Nat.mod_add_div (a * b ^ t) p\n  change (a * b ^ t) % p = a at h\n  rw [h] at hqr\n  have hmul : a * (b ^ t - 1) = p * (a * b ^ t / p) := by\n    rw [Nat.mul_sub_left_distrib, Nat.mul_one]\n    omega\n  rw [hmul, Nat.mul_div_cancel_left _ hp]\n  rfl\n\n/-- Euclidean division of the complementary part of a multiple of `p`. -/\nprivate theorem divMod_complement {p q x y : ℕ} (hp : 0 < p)\n    (hxy : x + y = p * q) (hr : 0 < x % p) :\n    x / p + y / p = q - 1 ∧ y % p = p - x % p := by\n  have hrp := Nat.mod_lt x hp\n  have hxd := Nat.mod_add_div x p\n  have hd : x / p < q := by\n    by_contra! h\n    have hle : x ≤ p * q := by rw [← hxy]; omega\n    have hx : p * (x / p) < x := by omega\n    exact (not_lt_of_ge hle) (lt_of_le_of_lt (Nat.mul_le_mul_left p h) hx)\n  have hq : x / p + 1 + (q - 1 - x / p) = q := by omega\n  have hprod := congrArg (p * ·) hq\n  simp only [Nat.mul_add, Nat.mul_one] at hprod\n  have hy : y = (p - x % p) + p * (q - 1 - x / p) := by omega\n  have hsmall : p - x % p < p := by omega\n  constructor\n  · rw [show y / p = q - 1 - x / p by\n      rw [hy, Nat.add_mul_div_left _ _ hp, Nat.div_eq_of_lt hsmall, Nat.zero_add]]\n    exact Nat.add_sub_of_le (by omega : x / p ≤ q - 1)\n  · calc\n      y % p = ((p - x % p) + p * (q - 1 - x / p)) % p := congrArg (· % p) hy\n      _ = p - x % p := by\n        rw [Nat.add_mul_mod_self_left, Nat.mod_eq_of_lt hsmall]\n\nprivate theorem longDivRemainder_pos {b p a n : ℕ}\n    (hp : p.Prime) (ha : 0 < a) (hap : a < p) (hb : ¬ p ∣ b) :\n    0 < longDivRemainder b p a n := by\n  apply Nat.pos_of_ne_zero\n  intro h\n  have hd : p ∣ a * b ^ n := Nat.dvd_of_mod_eq_zero h\n  rcases hp.dvd_mul.mp hd with h | h\n  · exact (not_le_of_gt hap) (Nat.le_of_dvd ha h)\n  · exact hb (hp.dvd_of_dvd_pow h)\n\n/-- The least positive digit period is exactly the order of the base modulo the prime. -/\ntheorem longDivDigit_minPeriod_iff {b p a t : ℕ}\n    (hb : 2 ≤ b) (hp : p.Prime) (hbp : ¬ p ∣ b) (ha : 0 < a) (hap : a < p) :\n    (0 < t ∧ (∀ n, longDivDigit b p a (t + n) = longDivDigit b p a n) ∧\n      ∀ s, 0 < s → (∀ n, longDivDigit b p a (s + n) = longDivDigit b p a n) → t ≤ s) ↔\n      orderOf (b : ZMod p) = t := by\n  let : Fact p.Prime := ⟨hp⟩\n  have hb0 : (b : ZMod p) ≠ 0 := by\n    simpa [ZMod.natCast_eq_zero_iff] using hbp\n  have hpos : 0 < orderOf (b : ZMod p) :=\n    Nat.pos_of_dvd_of_pos (ZMod.orderOf_dvd_card_sub_one hb0) (by\n      have := hp.two_le\n      omega)\n  constructor\n  · rintro ⟨ht, hperiod, hmin⟩\n    exact le_antisymm\n      (Nat.le_of_dvd ht ((longDivDigit_period_iff hb hp ha hap).mp hperiod))\n      (hmin _ hpos ((longDivDigit_period_iff hb hp ha hap).mpr (dvd_refl _)))\n  · rintro rfl\n    exact ⟨hpos, (longDivDigit_period_iff hb hp ha hap).mpr (dvd_refl _),\n      fun s hs hperiod => Nat.le_of_dvd hs ((longDivDigit_period_iff hb hp ha hap).mp hperiod)⟩\n\n/-- Midy's theorem (Wikidata Q856158).\n\"In base `b`, if the expansion of `a/p` has least period `2k`, its two halves add to\n`b^k - 1`, and every corresponding pair of digits adds to `b - 1`.\"\n\nHere `b ≥ 2`, `p` is a prime that does not divide `b`, and `0 < a < p`.\nThe least-period hypothesis is expressed by multiplicative order, equivalently\n`Nat.longDivDigit_minPeriod_iff`. Each half has width `k`, including initial zeroes.\nThe final equality gives the value of the whole period block of width `2k`. -/\ntheorem midy {b p a k : ℕ} (hb : 2 ≤ b) (hp : p.Prime) (hbp : ¬ p ∣ b)\n    (ha : 0 < a) (hap : a < p) (hk : orderOf (b : ZMod p) = 2 * k) :\n    longDivBlock b p a k + longDivBlock b p (longDivRemainder b p a k) k = b ^ k - 1 ∧\n      (∀ i < k, longDivDigit b p a i + longDivDigit b p a (k + i) = b - 1) ∧\n      longDivBlock b p a (2 * k) = a * (b ^ (2 * k) - 1) / p := by\n  let : Fact p.Prime := ⟨hp⟩\n  have hmin := (longDivDigit_minPeriod_iff hb hp hbp ha hap).mpr hk\n  have hkpos : 0 < k := by have := hmin.1; omega\n  have hsq : ((b : ZMod p) ^ k) ^ 2 = 1 := by\n    rw [← pow_mul, Nat.mul_comm k 2, ← hk, pow_orderOf_eq_one]\n  have hne : (b : ZMod p) ^ k ≠ 1 := by\n    intro h\n    have hd := orderOf_dvd_iff_pow_eq_one.mpr h\n    rw [hk] at hd\n    have := Nat.le_of_dvd hkpos hd\n    omega\n  have hneg : (b : ZMod p) ^ k = -1 := by\n    have hfactor : ((b : ZMod p) ^ k - 1) * ((b : ZMod p) ^ k + 1) = 0 := by\n      linear_combination hsq\n    rcases _root_.mul_eq_zero.mp hfactor with h | h\n    · exact (hne (sub_eq_zero.mp h)).elim\n    · exact eq_neg_of_add_eq_zero_left h\n  have hhalf : longDivRemainder b p a k = p - a := by\n    apply (longDivRemainder_eq_iff_zmod hp.pos (by omega : p - a < p)).2\n    rw [hneg, Nat.cast_sub hap.le, ZMod.natCast_self]\n    simp\n  have hparts (q : ℕ) : a * q + (p - a) * q = p * q := by\n    rw [← Nat.add_mul, Nat.add_sub_of_le hap.le]\n  have hblocks := (divMod_complement hp.pos (hparts (b ^ k))\n    (longDivRemainder_pos hp ha hap hbp : 0 < a * b ^ k % p)).1\n  have hfull : longDivRemainder b p a (2 * k) = a := by\n    apply (longDivRemainder_eq_iff_zmod hp.pos hap).2\n    rw [← hk, pow_orderOf_eq_one, mul_one]\n  refine ⟨by simpa only [hhalf, longDivBlock] using hblocks, ?_,\n    longDivBlock_eq_of_remainder_eq hp.pos (by omega) hfull⟩\n  intro i _\n  rw [longDivDigit_add, hhalf]\n  have step (i : ℕ)\n      (hi : longDivRemainder b p (p - a) i = p - longDivRemainder b p a i) :\n      longDivDigit b p a i + longDivDigit b p (p - a) i = b - 1 ∧\n        longDivRemainder b p (p - a) (i + 1) = p - longDivRemainder b p a (i + 1) := by\n    have hs : longDivRemainder b p a i * b + longDivRemainder b p (p - a) i * b = p * b := by\n      have hle : longDivRemainder b p a i ≤ p := (Nat.mod_lt _ hp.pos).le\n      rw [hi, ← Nat.add_mul, Nat.add_sub_of_le hle]\n    have hr : 0 < (longDivRemainder b p a i * b) % p := by\n      rw [← longDivRemainder_succ]\n      exact longDivRemainder_pos hp ha hap hbp\n    simpa only [longDivDigit, longDivRemainder_succ] using divMod_complement hp.pos hs hr\n  have hinv (n : ℕ) :\n      longDivRemainder b p (p - a) n = p - longDivRemainder b p a n := by\n    induction n with\n    | zero =>\n      rw [longDivRemainder_zero (by omega : p - a < p), longDivRemainder_zero hap]\n    | succ n ih => exact (step n ih).2\n  exact (step i (hinv i)).1\n\nend Nat\n\n#print axioms Nat.midy\n",
  "source_sha256": "919c77a7eeab3c615464741eb08694461f2a90d8fa037cdfaf0bd6b9d971c6bf",
  "build_output": "'Nat.midy' depends on axioms: [propext, Classical.choice, Quot.sound]\n",
  "fidelity_review": {
    "build": "Compiled the unchanged Midy.lean in a fresh scratch directory with Lean 4.36.0 and the supplied prebuilt Mathlib bundle (fc4f59e per the brief), using lean -DautoImplicit=false Midy.lean. Both archives matched fetch.json. The compiler exited 0 with no warnings. Source inspection found no sorry, admit, native_decide, or axiom declarations. A separate check printed the axioms of Nat.longDivDigit_minPeriod_iff and found the same three permitted axioms.",
    "hypotheses": "The theorem quantifies over arbitrary natural b, p, a, k and imposes exactly b ≥ 2, p prime, p ∤ b, 0 < a < p, and orderOf (b : ZMod p) = 2*k. The residue of b is a unit, so its order is positive and the equality forces k > 0. A separate Lean witness verified all hypotheses at b = 10, p = 7, a = 1, k = 3.",
    "actual_digits": "The starting remainder is a. Each step divides b times the previous remainder by p, yielding a digit in [0,b) and the new remainder in [0,p). Nat.longDivBlock_spec and Nat.longDivBlock_succ show that the prefix is floor(a*b^n/p) and that its value is formed by appending each digit in order. The quotient and remainder thus specify the base-b truncations of a/p.",
    "least_period": "Nat.longDivDigit_period_iff characterizes a shift that preserves every digit by divisibility by the order. A shift starts long division from the shifted remainder, and distinct remainders below p have distinct digit sequences: a sufficiently long prefix separates fractions at least 1/p apart. Hence a digit period is precisely a return to a. Cancellation of a modulo p then yields b^t = 1. Nat.longDivDigit_minPeriod_iff proves both directions for the least positive shift, including positivity of the order.",
    "block_sum_and_width": "Nat.longDivBlock_add identifies the second block as the k-digit prefix from the remainder after k steps. Each block is below b^k, and its width k is given by the positions it spans. A block value of zero therefore still denotes k zero digits. The conclusion gives the exact sum b^k - 1. Separate Lean checks computed 142 and 857 for 1/7 in base ten and the two width-two blocks 00 and 11 for 1/5 in base two.",
    "digit_sum": "For every zero-based i < k, the theorem pairs the digit at i with the digit at k+i and gives the exact sum b-1. This includes every position, including leading zeros.",
    "full_block": "The last conjunct identifies the prefix of width 2*k with a*(b^(2*k)-1)/p. At the full period the remainder returns to a, giving p times the block value equal to a*(b^(2*k)-1), so the displayed division is exact."
  },
  "prior_work": [
    {
      "url": "https://leanprover-community.github.io/1000-missing.html",
      "finding": "Q856158 appears on the missing list."
    },
    {
      "url": "https://leanprover-community.github.io/1000.html",
      "finding": "Neither Q856158 nor Midy appears on the finished list."
    },
    {
      "url": "https://raw.githubusercontent.com/leanprover-community/mathlib4/master/docs/1000.yaml",
      "finding": "Q856158 has a title but no declaration, proof URL, or statement-only entry."
    },
    {
      "url": "https://codeload.github.com/leanprover-community/mathlib4/tar.gz/refs/heads/master",
      "snapshot": "e54979a532247ae4eb9d5578a8fd40a1bc332101",
      "snapshot_source": "https://api.github.com/repos/leanprover-community/mathlib4/commits/e54979a532247ae4eb9d5578a8fd40a1bc332101",
      "finding": "Searched all .lean and .yaml files in the master tarball for Midy, Q856158, longDivRemainder, and longDivDigit_minPeriod_iff. The only matches were the ID and title in docs/1000.yaml. The tarball metadata identifies the same commit as the master API response."
    },
    {
      "url": "https://api.github.com/search/issues?q=repo%3Aleanprover-community%2Fmathlib4+is%3Apr+is%3Aopen+Midy",
      "finding": "The open Mathlib PR query for Midy returned zero results with incomplete_results false."
    },
    {
      "url": "https://api.github.com/search/issues?q=repo%3Aleanprover-community%2Fmathlib4+is%3Apr+is%3Aopen+Q856158",
      "finding": "The open Mathlib PR query for Q856158 returned zero results with incomplete_results false."
    },
    {
      "url": "https://github.com/search?q=%28Midy+OR+Q856158+OR+longDivDigit_minPeriod_iff%29+language%3ALean&type=code",
      "finding": "UNVERIFIED. GitHub requires sign-in for the Lean code search."
    },
    {
      "url": "https://api.github.com/search/code?q=Midy+language%3ALean",
      "finding": "UNVERIFIED. GitHub code-search API returned HTTP 401 (Requires authentication)."
    },
    {
      "url": "https://www.google.com/search?q=%22Midy%27s+theorem%22+%22Lean%22+formalized+Lean4+GitHub",
      "finding": "Public web index search for this query surfaced catalog entries and copies of the catalog, with no Lean proof found."
    },
    {
      "url": "https://leanprover.zulipchat.com/api/v1/messages?anchor=newest&num_before=50&num_after=0&narrow=%5B%7B%22operator%22%3A%22search%22%2C%22operand%22%3A%22Midy%22%7D%5D",
      "finding": "UNVERIFIED. The direct Zulip message search for Midy returned HTTP 401 (API authentication or user session required)."
    },
    {
      "url": "https://www.google.com/search?q=site%3Aleanprover-community.github.io%2Farchive%2F+%22Midy%22+%22theorem%22",
      "finding": "The public web index produced no relevant archived Zulip discussion for this query."
    },
    {
      "url": "https://leanprover-community.github.io/archive/stream/287929-mathlib4/index.html",
      "finding": "No topic title matched Midy, Q856158, or longDivDigit_minPeriod_iff. Full message coverage is UNVERIFIED."
    },
    {
      "url": "https://leanprover-community.github.io/archive/stream/217875-Is-there-code-for-X%3F/index.html",
      "finding": "No topic title matched Midy, Q856158, or longDivDigit_minPeriod_iff. Full message coverage is UNVERIFIED."
    },
    {
      "url": "https://leanprover-community.github.io/archive/stream/116395-maths/index.html",
      "finding": "No topic title matched Midy, Q856158, or longDivDigit_minPeriod_iff. Full message coverage is UNVERIFIED."
    },
    {
      "url": "https://leanprover-community.github.io/archive/stream/270676-lean4/index.html",
      "finding": "No topic title matched Midy, Q856158, or longDivDigit_minPeriod_iff. Full message coverage is UNVERIFIED."
    }
  ],
  "explanation": "Halfway through the period, the base raised to the half-period is a square root of 1 modulo p. Minimality rules out +1, so it is -1 in the field of residues modulo p. Long division therefore starts the second half with remainder p-a. When the two divisions have complementary remainders, multiplying them by the base makes their sum p*b. Their next remainders are nonzero and sum to p, so the digit quotients sum to b-1 and the new remainders stay complementary. The same quotient argument with b^k gives the half-block sum. Returning to the starting remainder gives the exact whole-period value.",
  "database_entry": {
    "wikidata_id": "Q856158",
    "declaration": "Nat.midy",
    "file": "Midy.lean"
  },
  "repairs": "None required for compilation or fidelity. Prior work remains UNVERIFIED beyond the accessible searches. The pass applies to the submitted formalization.",
  "sources": [
    "https://api.imd.fun/artifacts/72384986dfb362aa002859615e8ed1d2a1a552b4657455e83d524cc37ee43035",
    "https://github.com/Identity-md/lean-bundles/releases/download/pequalnp-e125f04d0dc6/fetch.json",
    "https://leanprover-community.github.io/1000-missing.html",
    "https://leanprover-community.github.io/1000.html",
    "https://raw.githubusercontent.com/leanprover-community/mathlib4/master/docs/1000.yaml",
    "https://api.github.com/repos/leanprover-community/mathlib4/commits/e54979a532247ae4eb9d5578a8fd40a1bc332101",
    "https://api.github.com/search/issues?q=repo%3Aleanprover-community%2Fmathlib4+is%3Apr+is%3Aopen+Midy",
    "https://api.github.com/search/issues?q=repo%3Aleanprover-community%2Fmathlib4+is%3Apr+is%3Aopen+Q856158",
    "https://github.com/search?q=%28Midy+OR+Q856158+OR+longDivDigit_minPeriod_iff%29+language%3ALean&type=code",
    "https://leanprover-community.github.io/archive/"
  ]
}
