{"gap": "L-gct-194", "base_commit": "605dc84be40929b8c04c6b206c363d69dc369d12", "path": "lean/PEqualNP/Outside/L_gct_194.lean", "status": "partial", "source": "import Mathlib\nimport PEqualNP.Defs\n\nnamespace PEqualNP.Outside.L_gct_194\nnoncomputable section\nopen Finset\nabbrev aC:=Fin 4×Fin 5→ℂ\n\n\ndef aO (M:aC):ℂ:=∑e:Fin 4 ↪ Fin 5,∏r,M (r,e r)\nabbrev aHw:=Fin 5×Fin 5×Fin 5×Fin 5\ndef yH:aHw≃(Fin 4→Fin 5) where\n toFun p:= ![p.1,p.2.1,p.2.2.1,p.2.2.2]\n invFun z:=(z 0,z 1,z 2,z 3)\n left_inv _:=rfl\n right_inv z:=by ext i;fin_cases i<;>rfl\nlemma cK (M:aC):\n  aO M=∑j,∑l,∑m,∑n,\n   if j=l∨j=m∨j=n∨l=m∨l=n∨m=n then 0 else\n   M (0,j)*M (1,l)*M (2,m)*M (3,n):=by\n classical\n let u (z:Fin 4→Fin 5):=∏r,M (r,z r)\n have A:aO M=∑z:Fin 4→Fin 5,if Function.Injective z then u z else 0:=by\n  let E:=Equiv.subtypeInjectiveEquivEmbedding (Fin 4) (Fin 5)\n  change(∑e:Fin 4 ↪ Fin 5,u e)=_;rw[←E.sum_comp (fun e:Fin 4 ↪ Fin 5=>u e),←Finset.sum_filter];exact(Finset.sum_subtype _ (by simp) u).symm\n rw[A,←yH.sum_comp (fun z=>if Function.Injective z then u z else 0)];simp only[Fintype.sum_prod_type];refine sum_congr rfl fun a _=>sum_congr rfl fun b _=>sum_congr rfl fun c _=>sum_congr rfl fun d _=> ?_\n let z:=yH (a,b,c,d)\n have p:z 0=a:=rfl;have q:z 1=b:=rfl;have s:z 2=c:=rfl;have t:z 3=d:=rfl;have f:Function.Injective z↔¬(a=b∨a=c∨a=d∨b=c∨b=d∨c=d):=by\n  constructor\n  ·intro o;have h (i j:Fin 4) (g:i≠j):z i≠z j:=fun h=>g (o h)\n   exact not_or_intro (h 0 1 (by decide)) (not_or_intro (h 0 2 (by decide))\n    (not_or_intro (h 0 3 (by decide)) (not_or_intro (h 1 2 (by decide))\n      (not_or_intro (h 1 3 (by decide)) (h 2 3 (by decide))))))\n  ·intro g i j v;simp only[not_or] at g;fin_cases i<;>fin_cases j<;>first | rfl | grind\n change(if Function.Injective z then u z else 0)=_;by_cases g:a=b∨a=c∨a=d∨b=c∨b=d∨c=d\n ·have k:¬Function.Injective z:=fun h=>f.mp h g\n  rw[ite_eq_right k,ite_eq_left g]\n ·rw[ite_eq_left (f.mpr g),ite_eq_right g];change(∏r,M (r,z r))=_;simp[Fin.prod_univ_succ,p,q,s,t,mul_assoc]\n\nend\nend PEqualNP.Outside.L_gct_194\n\ntheorem PEqualNP.Outside.L_gct_194 :\n    ∀ c d : ℂ, (∑ f : Fin 4 ↪ Fin 5, ∏ j : Fin 4, (1 + (if (f j).val = 4 then d * (if j.val = 0 then (1 : ℂ) else if j.val = 1 then -1 else 0) else c * (if j.val = (f j).val then (1 : ℂ) else if j.val = ((f j).val + 1) % 4 then Complex.I else if j.val = ((f j).val + 2) % 4 then -Complex.I else -1)))) = 120 := by\n  intro c d\n  have h := PEqualNP.Outside.L_gct_194.cK (fun p => 1 + (if (p.2).val = 4 then d * (if p.1.val = 0 then (1 : ℂ) else if p.1.val = 1 then -1 else 0) else c * (if p.1.val = (p.2).val then (1 : ℂ) else if p.1.val = ((p.2).val + 1) % 4 then Complex.I else if p.1.val = ((p.2).val + 2) % 4 then -Complex.I else -1)))\n  simp only [PEqualNP.Outside.L_gct_194.aO] at h\n  rw [h]\n  simp only [Fin.sum_univ_five, Fin.isValue, Fin.val_zero, Fin.val_one, Fin.val_two]\n  norm_num\n  ring_nf\n  simp only [Complex.I_sq, Complex.I_pow_four]\n  ring_nf\n", "evidence": "Draft only, not verified. Strategy: lemma cK (adapted from pinned lean/PEqualNP/Outside/L_gct_215.lean) rewrites the sum over Fin 4 ↪ Fin 5 of ∏ M(r, e r) as a quadruple sum over Fin 5 guarded by pairwise distinctness. Then Fin.sum_univ_five expands the 625 terms, norm_num discharges the concrete if-conditions, and ring_nf with Complex.I_sq / I_pow_four should normalize to 120. No polynomial coefficient check outside Lean was run, so it is not established that every coefficient in c and d cancels.", "checks": ["lake exe cache get (Lean v4.36.0, pinned commit): Mathlib cache downloaded and decompressed (9117 files)", "lake build PEqualNP.Outside.L_gct_194: killed at the 600 s tool limit; PEqualNP.Defs.olean was not produced", "lake env lean on a scratch copy importing only Mathlib, plus #print axioms: hit the 480 s timeout with no output, so the elaboration result is unknown"], "sources": ["https://github.com/brilliant-hq/pequalnp-proofs/tree/605dc84be40929b8c04c6b206c363d69dc369d12/lean", "https://data.pequalnp.com/data/desk/gaps.json"], "remaining": "First unresolved obligation: get the final tactic block (Fin.sum_univ_five expansion of 625 terms + norm_num + ring_nf) to elaborate in reasonable time. It probably needs pruning the non-injective terms before norm_num, or a per-permutation decomposition. Then build PEqualNP.Defs and run #print axioms."}