{"attempts":[{"claim":{"id":57,"notes":"All 24 settled (check_candidate: 24). Unit's own target 3_2 was already verified; added the six open ones. 9_1: x=(n+3)!, q | x^6+x^3+1, orderOf_eq_prime_pow (p:=3,n:=1), 9 | q-1. 9_8: copy of the 7_6 AdjoinRoot proof with x=9(n+9)!, N=x^3-3x-1≡8 (mod 9), T=-x satisfies T^3-3T+1=0; Φ9(r)=r^3 h(T)+(r^2-Tr+1)(1+rT-r^2+r^2T^2+r^3T+r^4); order 9 via orderOf_eq_prime_pow (r^3=1 forces 3=0); Frobenius gives 9 | q∓1; strong induction for a factor ≡8. 11_10: same with x=11(n+11)!, N=x^5+3x^2+3x-(x^4+4x^3+1)≡10 (mod 11), T=-x root of t^5+t^4-4t^3-3t^2+3t+1, explicit 21-term cofactor Q11 for Φ11(r)=r^5 h(T)+(r^2-Tr+1)Q11, orderOf_eq_prime (r=1 forces T=2, h(2)=11). 12_5: P=∏_{i<n}(6i+5), N=4P^2+1≡5 (mod 12); -1 square so q≡1 (mod 4), q≠3; induction mod 12; q≡5 (mod 6), q≤n ⇒ q | P. 12_7: x=6∏(2i+1), N=x^2+x+1≡7 (mod 12), order 3 gives q≡1 (mod 6), induction mod 12. 12_1: x=(n+3)!, N+x^2=x^4+1, u=-x^2 of order 3 and ((x^2-1)x⁻¹)^2=-1, so q≡1 (mod 12), no induction needed. Pitfall: nlinarith needs explicit x^k = x^(k-1)*x and Nat.mul_le_mul_left facts for the truncated-subtraction bounds.","report":{"statement":"faithful"},"status":"verified"},"entry":{"id":174,"kind":"result","title":"Cleared U6 threshold: theorems proved 24"},"finished":1791939256,"name":"rgbrgb","node":2,"outcome":"claim C57 queued for checking on other contributors' machines","started":1791938836,"status":"done","task":128,"unit":6}],"challenge":{"imports":["Mathlib.NumberTheory.LegendreSymbol.QuadraticReciprocity"],"name":"Lemma.primes_mod_3_eq_2","statement":"Set.Infinite {p : ℕ | p.Prime ∧ p % 3 = 2}"},"chat":[{"created":1791939260,"id":61,"name":"rgbrgb","node":2,"program":"euclid-primes","tags":[],"text":"Checked 24/24 and submitted (U6). 9_8 and 11_10 as copies of the 7_6 AdjoinRoot proof: $x=m(n+m)!$, $T=-x$, $h_9=T^3-3T+1$, $h_{11}=T^5+T^4-4T^3-3T^2+3T+1$, cofactors from exact division $\\Phi_m(r)-r^{k}h(T)=(r^2-Tr+1)Q$ ($Q_{11}$ has 21 terms). Order 9 via orderOf_eq_prime_pow ($r^3=1\\Rightarrow 3=0$). Tip: for the truncated-subtraction bounds nlinarith needs $x^k=x^{k-1}x$ and Nat.mul_le_mul_left facts spelled out, else linarith fails."},{"created":1791971171,"id":91,"name":"rgbrgb","node":2,"program":"euclid-primes","tags":["issue"],"text":"#issue Pattern across U6, U59, U84, U58: four units checked 24/24 but the lab best is still 18. The common factor is the submit protocol, not the math: a second submit_result in one unit is rejected as non-fast-forward (msg 89), and a late final submit misses the deadline (msg 76). Recommendation for the next consolidation: no milestone submits; one submit_result with all 24 files, at least 10 min before the deadline."}],"disproof":null,"program":{"checked_by":"nodes","id":"euclid-primes","lean":"v4.34.1","mathlib":"v4.34.1","project":null,"title":"Primes in progressions, Euclid's way"},"proof":"import Mathlib.NumberTheory.LegendreSymbol.QuadraticReciprocity\n\nnamespace Lemma.P32\n\ntheorem exists_factor (N : ℕ) (hN : N % 6 = 5) :\n    ∃ q, q.Prime ∧ q % 6 = 5 ∧ q ∣ N := by\n  induction N using Nat.strong_induction_on with\n  | _ N ih =>\n    have hN1 : N ≠ 1 := by omega\n    have hq := Nat.minFac_prime hN1\n    have hqd := Nat.minFac_dvd N\n    set q := N.minFac with hqdef\n    have hq2 : q % 2 = 1 := by\n      by_contra h\n      have h2 : 2 ∣ q := by omega\n      have : q = 2 := ((Nat.prime_dvd_prime_iff_eq Nat.prime_two hq).1 h2).symm\n      rw [this] at hqd\n      omega\n    have hq3 : q % 3 ≠ 0 := by\n      intro h\n      have h3 : 3 ∣ q := by omega\n      have : q = 3 := ((Nat.prime_dvd_prime_iff_eq Nat.prime_three hq).1 h3).symm\n      rw [this] at hqd\n      omega\n    by_cases h5 : q % 6 = 5\n    · exact ⟨q, hq, h5, hqd⟩\n    · have h1 : q % 6 = 1 := by omega\n      obtain ⟨m, hm⟩ := hqd\n      have hmod := Nat.mul_mod q m 6\n      rw [h1, ← hm, hN] at hmod\n      have hm5 : m % 6 = 5 := by omega\n      have hq2' := hq.two_le\n      have hmlt : m < N := by\n        have hm0 : 0 < m := by\n          apply Nat.pos_of_ne_zero\n          rintro rfl\n          rw [mul_zero] at hm\n          omega\n        rw [hm]\n        calc m = 1 * m := (one_mul m).symm\n          _ < q * m := Nat.mul_lt_mul_of_pos_right hq.one_lt hm0\n      obtain ⟨r, hr, hr5, hrd⟩ := ih m hmlt hm5\n      exact ⟨r, hr, hr5, hrd.trans ⟨q, by rw [hm, mul_comm]⟩⟩\n\nend Lemma.P32\n\ntheorem Lemma.primes_mod_3_eq_2 :\n    Set.Infinite {p : ℕ | p.Prime ∧ p % 3 = 2} := by\n  apply Set.infinite_of_forall_exists_gt\n  intro n\n  set x := (n + 3).factorial with hxdef\n  have hx0 : 0 < x := Nat.factorial_pos _\n  obtain ⟨q, hq, h5, hd⟩ := Lemma.P32.exists_factor (6 * x - 1) (by omega)\n  refine ⟨q, ⟨hq, by omega⟩, ?_⟩\n  by_contra hle\n  push_neg at hle\n  have hqx : q ∣ 6 * x := Dvd.dvd.mul_left (Nat.dvd_factorial hq.pos (by omega)) 6\n  have h1 : q ∣ 6 * x - (6 * x - 1) := Nat.dvd_sub hqx hd\n  have : 6 * x - (6 * x - 1) = 1 := by omega\n  rw [this] at h1\n  exact hq.one_lt.ne' (Nat.dvd_one.1 h1)\n","proposals":[],"row":{"attempts":1,"blocker":null,"either":false,"last":1792001069,"name":"Lemma.primes_mod_3_eq_2","statement":"faithful","status":"proved"}}