{
  "gap": "L-gct-228",
  "base_commit": "605dc84be40929b8c04c6b206c363d69dc369d12",
  "path": "lean/PEqualNP/Outside/L_gct_228.lean",
  "status": "partial",
  "source": {
    "python": "#!/usr/bin/env python3\n\"\"\"Exhaust the row-0-plane family over F_5. Python 3.8+, standard library only.\"\"\"\nfrom collections import Counter\nfrom itertools import combinations, permutations, product\nfrom json import dumps\nfrom math import prod\n\nF = range(5)\nPERMS = tuple(permutations(range(3)))\nZERO = (0,) * 6\n\n\ndef permanent(t):\n    return sum(prod(1 + t[3 * i + p[i]] for i in range(3)) for p in PERMS) % 5\n\n\ndef lift(q, u=0, v=0):\n    # 3^(-1) = 2. Entries are row-major.\n    a = -2 * sum(q)\n    return ((a + u) % 5, (a + v) % 5, (a - u - v) % 5) + q\n\n\ndef combination(s, x, t, y):\n    return tuple((s * a + t * b) % 5 for a, b in zip(x, y))\n\n\ndef projective(q):\n    inv = pow(next(x for x in q if x), -1, 5)\n    return tuple(inv * x % 5 for x in q)\n\n\ndef good_line(q):\n    # Test the span of the lifted direction together with the fixed plane.\n    for tested, (s, u, v) in enumerate(product(F, repeat=3), start=1):\n        if permanent(lift(combination(s, q, 0, ZERO), u, v)) != 1:\n            return False, tested\n    return True, tested\n\n\ndef rref_planes(n):\n    for i, j in combinations(range(n), 2):\n        # Each row has zeros left of its pivot. Pivot columns are unit columns.\n        free = [(0, k) for k in range(i + 1, n) if k != j]\n        free += [(1, k) for k in range(j + 1, n)]\n        for entries in product(F, repeat=len(free)):\n            rows = [[0] * n, [0] * n]\n            rows[0][i] = rows[1][j] = 1\n            for (r, k), value in zip(free, entries):\n                rows[r][k] = value\n            yield (i, j), tuple(rows[0]), tuple(rows[1])\n\n\ndef main():\n    directions = [q for q in product(F, repeat=6) if q != ZERO and projective(q) == q]\n    good = set()\n    line_evaluations = 0\n    for q in directions:\n        passed, tested = good_line(q)\n        line_evaluations += tested\n        if passed:\n            good.add(q)\n    assert len(directions) == (5**6 - 1) // 4\n    totals = Counter()\n    pivot_totals = Counter()\n    surviving_rows = []\n    for pivots, x, y in rref_planes(6):\n        totals[\"rref_planes\"] += 1\n        pivot_totals[pivots] += 1\n        if x not in good or y not in good:\n            totals[\"pruned_pivot_direction\"] += 1\n            continue\n        slopes = [projective(combination(1, x, k, y)) for k in range(1, 5)]\n        all_directions_good = all(q in good for q in slopes)\n        if not all_directions_good:\n            totals[\"pruned_nonpivot_direction\"] += 1\n        # Independently check all 625 combinations for every plane with good\n        # pivots, even when the line test already rejects it.\n        bad = sum(permanent(lift(combination(s, x, t, y), u, v)) != 1\n                  for s, t, u, v in product(F, repeat=4))\n        assert (bad == 0) == all_directions_good\n        surviving_rows.append({\"x\": x, \"y\": y, \"bad_combinations_of_625\": bad})\n        totals[\"planes_checked_on_all_625\"] += 1\n        totals[\"witnesses\"] += int(bad == 0)\n    assert totals[\"rref_planes\"] == (5**6 - 1) * (5**6 - 5) // ((25 - 1) * (25 - 5))\n    assert totals[\"rref_planes\"] == (totals[\"pruned_pivot_direction\"]\n                                     + totals[\"pruned_nonpivot_direction\"]\n                                     + totals[\"witnesses\"])\n    assert totals[\"planes_checked_on_all_625\"] == len(surviving_rows)\n    print(dumps({\"directions_tested\": len(directions), \"good_directions\": sorted(good),\n                 \"permanent_evaluations_in_direction_tests\": line_evaluations,\n                 \"permanent_evaluations_in_full_plane_tests\": 625 * len(surviving_rows),\n                 \"counts\": dict(totals), \"good_pivot_planes\": surviving_rows,\n                 \"pivot_counts\": {str(k): v for k, v in sorted(pivot_totals.items())}},\n                indent=2, sort_keys=True))\n\n\nif __name__ == \"__main__\":\n    main()\n",
    "lean": "import Mathlib\nimport PEqualNP.Defs\n\nnamespace PEqualNP.Outside.L_gct_228\n\nabbrev V := Fin 3 × Fin 3 → (ZMod 5)\n\ndef swap01 : Equiv.Perm (Fin 3) := Equiv.swap 0 1\ndef swap02 : Equiv.Perm (Fin 3) := Equiv.swap 0 2\ndef swap12 : Equiv.Perm (Fin 3) := Equiv.swap 1 2\n\nlemma permanent_entries (M : Matrix (Fin 3) (Fin 3) (ZMod 5)) :\n    M.permanent =\n      M 0 0 * (M 1 1 * M 2 2 + M 1 2 * M 2 1) +\n      M 0 1 * (M 1 0 * M 2 2 + M 1 2 * M 2 0) +\n      M 0 2 * (M 1 0 * M 2 1 + M 1 1 * M 2 0) := by\n  have hu : (Finset.univ : Finset (Equiv.Perm (Fin 3))) =\n      {1, swap01, swap02, swap12, swap01 * swap12, swap12 * swap01} := by decide\n  have h1 : (1 : Equiv.Perm (Fin 3)) ∉\n      ({swap01, swap02, swap12, swap01 * swap12, swap12 * swap01} : Finset _) := by decide\n  have h2 : swap01 ∉ ({swap02, swap12, swap01 * swap12, swap12 * swap01} : Finset _) :=\n    by decide\n  have h3 : swap02 ∉ ({swap12, swap01 * swap12, swap12 * swap01} : Finset _) := by decide\n  have h4 : swap12 ∉ ({swap01 * swap12, swap12 * swap01} : Finset _) := by decide\n  have h5 : swap01 * swap12 ∉ ({swap12 * swap01} : Finset _) := by decide\n  rw [Matrix.permanent, hu]\n  simp only [Finset.sum_insert h1, Finset.sum_insert h2, Finset.sum_insert h3,\n    Finset.sum_insert h4, Finset.sum_insert h5, Finset.sum_singleton, Fin.prod_univ_three]\n  change\n    M 0 0 * M 1 1 * M 2 2 + (M 1 0 * M 0 1 * M 2 2 + (M 2 0 * M 1 1 * M 0 2 +\n      (M 0 0 * M 2 1 * M 1 2 + (M 1 0 * M 2 1 * M 0 2 + M 2 0 * M 0 1 * M 1 2)))) = _\n  ring\n\ndef p (t : V) : ZMod 5 :=\n  (Matrix.of fun (i j : Fin 3) => (1 : ZMod 5) + t (i, j)).permanent\n\nlemma sum_entries_zero (t : V) (h : ∀ s : ZMod 5, p (s • t) = 6) :\n    t (0, 0) + t (0, 1) + t (0, 2) + t (1, 0) + t (1, 1) + t (1, 2) +\n      t (2, 0) + t (2, 1) + t (2, 2) = 0 := by\n  let : Fact (Nat.Prime 5) := ⟨by decide⟩\n  have h1 := h 1\n  have hn1 := h (-1)\n  have h2 := h 2\n  have hn2 := h (-2)\n  simp only [p, permanent_entries, Matrix.of_apply, Pi.smul_apply, smul_eq_mul] at h1 hn1 h2 hn2\n  have hh : (24 : ZMod 5) *\n      (t (0, 0) + t (0, 1) + t (0, 2) + t (1, 0) + t (1, 1) + t (1, 2) +\n        t (2, 0) + t (2, 1) + t (2, 2)) = 0 := by\n    linear_combination 8 * h1 - 8 * hn1 - h2 + hn2\n  exact (mul_eq_zero.mp hh).resolve_left (by decide)\n\ndef rowShift (u v : ZMod 5) : V :=\n  fun ij => if ij.1 = 0 then ![u, v, -u - v] ij.2 else 0\n\nlemma rowShift_zero : rowShift 0 0 = 0 := by\n  funext ij\n  obtain ⟨i, j⟩ := ij\n  fin_cases i <;> fin_cases j <;> rfl\n\ndef coeff0 (s : ZMod 5) (t : V) : ZMod 5 :=\n  (1 + s * t (1, 1)) * (1 + s * t (2, 2)) +\n    (1 + s * t (1, 2)) * (1 + s * t (2, 1))\n\ndef coeff1 (s : ZMod 5) (t : V) : ZMod 5 :=\n  (1 + s * t (1, 0)) * (1 + s * t (2, 2)) +\n    (1 + s * t (1, 2)) * (1 + s * t (2, 0))\n\ndef coeff2 (s : ZMod 5) (t : V) : ZMod 5 :=\n  (1 + s * t (1, 0)) * (1 + s * t (2, 1)) +\n    (1 + s * t (1, 1)) * (1 + s * t (2, 0))\n\nlemma shifted_formula (s u v : ZMod 5) (t : V) :\n    p (s • t + rowShift u v) =\n      (1 + (s * t (0, 0) + u)) * coeff0 s t +\n      (1 + (s * t (0, 1) + v)) * coeff1 s t +\n      (1 + (s * t (0, 2) + (-u - v))) * coeff2 s t := by\n  rw [p, permanent_entries]\n  simp [rowShift, coeff0, coeff1, coeff2, Pi.smul_apply, smul_eq_mul]\n\nlemma coeff_eq (t : V) (h : ∀ s u v : ZMod 5, p (s • t + rowShift u v) = 6) (s : ZMod 5) :\n    coeff0 s t = coeff2 s t ∧ coeff1 s t = coeff2 s t := by\n  have h00 := h s 0 0\n  have h10 := h s 1 0\n  have h01 := h s 0 1\n  rw [shifted_formula] at h00 h10 h01\n  constructor\n  · linear_combination h10 - h00\n  · linear_combination h01 - h00\n\nlemma column_totals (t : V) (h : ∀ s u v : ZMod 5, p (s • t + rowShift u v) = 6) :\n    t (1, 1) + t (2, 1) = t (1, 2) + t (2, 2) ∧\n    t (1, 0) + t (2, 0) = t (1, 2) + t (2, 2) := by\n  let : Fact (Nat.Prime 5) := ⟨by decide⟩\n  obtain ⟨hp0, hp1⟩ := coeff_eq t h 1\n  obtain ⟨hn0, hn1⟩ := coeff_eq t h (-1)\n  simp only [coeff0, coeff1, coeff2] at hp0 hp1 hn0 hn1\n  have ha : (2 : ZMod 5) * ((t (1, 2) + t (2, 2)) - (t (1, 0) + t (2, 0))) = 0 := by\n    linear_combination hp0 - hn0\n  have hb : (2 : ZMod 5) * ((t (1, 2) + t (2, 2)) - (t (1, 1) + t (2, 1))) = 0 := by\n    linear_combination hp1 - hn1\n  exact ⟨(sub_eq_zero.mp ((mul_eq_zero.mp hb).resolve_left (by decide))).symm,\n    (sub_eq_zero.mp ((mul_eq_zero.mp ha).resolve_left (by decide))).symm⟩\n\n\ndef rowTotal (t : V) : ZMod 5 := t (0, 0) + t (0, 1) + t (0, 2)\n\nlemma scalar_formula (t : V) (h : ∀ s u v : ZMod 5, p (s • t + rowShift u v) = 6)\n    (s : ZMod 5) : (3 + s * rowTotal t) * coeff2 s t = 6 := by\n  have hs := h s 0 0\n  rw [shifted_formula] at hs\n  obtain ⟨h0, h1⟩ := coeff_eq t h s\n  rw [h0, h1] at hs\n  unfold rowTotal\n  linear_combination hs\n\nlemma row_total_zero (t : V) (h : ∀ s u v : ZMod 5, p (s • t + rowShift u v) = 6) :\n    rowTotal t = 0 := by\n  let : Fact (Nat.Prime 5) := ⟨by decide⟩\n  by_contra hn\n  have hs := scalar_formula t h ((-3 : ZMod 5) / rowTotal t)\n  rw [div_mul_cancel₀ _ hn, add_neg_cancel, zero_mul] at hs\n  exact (by decide : (0 : ZMod 5) ≠ 6) hs\n\nlemma shape (t : V) (h : ∀ s u v : ZMod 5, p (s • t + rowShift u v) = 6) :\n    rowTotal t = 0 ∧ (∀ j, t (2, j) = -t (1, j)) ∧\n      ∀ j k : Fin 3, j ≠ k → t (1, j) * t (1, k) = 0 := by\n  let : Fact (Nat.Prime 5) := ⟨by decide⟩\n  have hr := row_total_zero t h\n  have ht := sum_entries_zero t (fun s => by simpa only [rowShift_zero, add_zero] using h s 0 0)\n  obtain ⟨hc1, hc0⟩ := column_totals t h\n  have hlast : (3 : ZMod 5) * (t (1, 2) + t (2, 2)) = 0 := by\n    unfold rowTotal at hr\n    linear_combination ht - hr - hc0 - hc1\n  have hk := (mul_eq_zero.mp hlast).resolve_left (by decide)\n  have hneg : ∀ j : Fin 3, t (2, j) = -t (1, j) := by\n    intro j\n    fin_cases j\n    · change t (2, 0) = -t (1, 0)\n      linear_combination hc0 + hk\n    · change t (2, 1) = -t (1, 1)\n      linear_combination hc1 + hk\n    · change t (2, 2) = -t (1, 2)\n      linear_combination hk\n  have hs := scalar_formula t h 1\n  rw [hr, mul_zero, add_zero] at hs\n  have hd : (3 : ZMod 5) * (coeff2 1 t - 2) = 0 := by linear_combination hs\n  have h2 := sub_eq_zero.mp ((mul_eq_zero.mp hd).resolve_left (by decide))\n  obtain ⟨h0, h1⟩ := coeff_eq t h 1\n  rw [h2] at h0 h1\n  have h12 : (-2 : ZMod 5) * (t (1, 1) * t (1, 2)) = 0 := by\n    unfold coeff0 at h0\n    rw [hneg 1, hneg 2] at h0\n    linear_combination h0\n  have h02 : (-2 : ZMod 5) * (t (1, 0) * t (1, 2)) = 0 := by\n    unfold coeff1 at h1\n    rw [hneg 0, hneg 2] at h1\n    linear_combination h1\n  have h01 : (-2 : ZMod 5) * (t (1, 0) * t (1, 1)) = 0 := by\n    unfold coeff2 at h2\n    rw [hneg 0, hneg 1] at h2\n    linear_combination h2\n  have hp12 := (mul_eq_zero.mp h12).resolve_left (by decide)\n  have hp02 := (mul_eq_zero.mp h02).resolve_left (by decide)\n  have hp01 := (mul_eq_zero.mp h01).resolve_left (by decide)\n  refine ⟨hr, hneg, ?_⟩\n  intro j k hjk\n  fin_cases j <;> fin_cases k <;> first\n  | exact (hjk rfl).elim\n  | exact hp12\n  | exact hp02\n  | exact hp01\n  | exact (mul_comm _ _).trans hp12\n  | exact (mul_comm _ _).trans hp02\n  | exact (mul_comm _ _).trans hp01\n\nlemma restricted_finrank_le_three (L : Submodule (ZMod 5) V)\n    (hplane : ∀ u v, rowShift u v ∈ L)\n    (hperm : ∀ t ∈ L, p t = 6) :\n    Module.finrank (ZMod 5) L ≤ 3 := by\n  let : Fact (Nat.Prime 5) := ⟨by decide⟩\n  have hshape (t : L) := shape t.val (fun s u v =>\n    hperm _ (L.add_mem (L.smul_mem s t.property) (hplane u v)))\n  have hsupp : ∃ k : Fin 3, ∀ (t : L) (j : Fin 3), j ≠ k → t.val (1, j) = 0 := by\n    by_cases hex : ∃ (t : L) (k : Fin 3), t.val (1, k) ≠ 0\n    · obtain ⟨v, k, hv⟩ := hex\n      refine ⟨k, fun t j hj => ?_⟩\n      by_contra ht\n      have hvj := (mul_eq_zero.mp ((hshape v).2.2 k j (Ne.symm hj))).resolve_left hv\n      have htk := (mul_eq_zero.mp ((hshape t).2.2 j k hj)).resolve_left ht\n      have h := (hshape (v + t)).2.2 k j (Ne.symm hj)\n      change (v.val (1, k) + t.val (1, k)) * (v.val (1, j) + t.val (1, j)) = 0 at h\n      rw [hvj, htk, add_zero, zero_add] at h\n      exact ht ((mul_eq_zero.mp h).resolve_left hv)\n    · refine ⟨0, fun t j _ => ?_⟩\n      by_contra h\n      exact hex ⟨t, j, h⟩\n  obtain ⟨k, hk⟩ := hsupp\n  let f : L →ₗ[ZMod 5] (Fin 3 → (ZMod 5)) :=\n    { toFun := fun t => ![t.val (0, 0), t.val (0, 1), t.val (1, k)]\n      map_add' := by\n        intro x y\n        funext i\n        fin_cases i <;> rfl\n      map_smul' := by\n        intro c x\n        funext i\n        fin_cases i <;> rfl }\n  have hf : Function.Injective f := by\n    apply (LinearMap.ker_eq_bot).1\n    rw [Submodule.eq_bot_iff]\n    intro t hmem\n    have hz : f t = 0 := LinearMap.mem_ker.mp hmem\n    have h00 : t.val (0, 0) = 0 := congrFun hz 0\n    have h01 : t.val (0, 1) = 0 := congrFun hz 1\n    have h1k : t.val (1, k) = 0 := congrFun hz 2\n    have h02 := (hshape t).1\n    unfold rowTotal at h02\n    rw [h00, h01, add_zero, zero_add] at h02\n    have h1 (j : Fin 3) : t.val (1, j) = 0 := by\n      by_cases hj : j = k\n      · exact hj.symm ▸ h1k\n      · exact hk t j hj\n    have h2 (j : Fin 3) : t.val (2, j) = 0 := by\n      rw [(hshape t).2.1 j, h1 j, neg_zero]\n    apply Subtype.ext\n    funext ij\n    obtain ⟨i, j⟩ := ij\n    fin_cases i\n    · fin_cases j\n      · exact h00\n      · exact h01\n      · exact h02\n    · exact h1 j\n    · exact h2 j\n  simpa using (LinearMap.finrank_le_finrank_of_injective (f := f) hf)\n\nlemma no_four_dimensional_extension :\n    ¬ ∃ L : Submodule (ZMod 5) (Fin 3 × Fin 3 → ZMod 5),\n      (∀ u v, rowShift u v ∈ L) ∧ Module.finrank (ZMod 5) L = 4 ∧\n        ∀ t ∈ L, Matrix.permanent (Matrix.of fun (i j : Fin 3) =>\n          (1 : ZMod 5) + t (i, j)) = 6 := by\n  rintro ⟨L, hplane, hdim, hperm⟩\n  have h := restricted_finrank_le_three L hplane hperm\n  change Module.finrank (ZMod 5) L ≤ 3 at h\n  omega\n\nend PEqualNP.Outside.L_gct_228\n",
    "lean_audit": "import PEqualNP.Outside.L_gct_228\n\n#check PEqualNP.Outside.L_gct_228.sum_entries_zero\n#print axioms PEqualNP.Outside.L_gct_228.sum_entries_zero\n#check PEqualNP.Outside.L_gct_228.restricted_finrank_le_three\n#print axioms PEqualNP.Outside.L_gct_228.restricted_finrank_le_three\n#check PEqualNP.Outside.L_gct_228.no_four_dimensional_extension\n#print axioms PEqualNP.Outside.L_gct_228.no_four_dimensional_extension\n\nexample : ¬ ∃ L : Submodule (ZMod 5) (Fin 3 × Fin 3 → ZMod 5),\n    (∀ u v, PEqualNP.Outside.L_gct_228.rowShift u v ∈ L) ∧\n      Module.finrank (ZMod 5) L = 4 ∧\n      ∀ t ∈ L, Matrix.permanent (Matrix.of fun (i j : Fin 3) =>\n        (1 : ZMod 5) + t (i, j)) = 6 :=\n  PEqualNP.Outside.L_gct_228.no_four_dimensional_extension\n"
  },
  "evidence": {
    "statement": "∃ L : Submodule (ZMod 5) (Fin 3 × Fin 3 → ZMod 5), Module.finrank (ZMod 5) L = 4 ∧ ∀ t ∈ L, Matrix.permanent (Matrix.of fun (i j : Fin 3) => (1 : ZMod 5) + t (i, j)) = 6",
    "family": "Let P consist of the matrices with row 0 equal to (u,v,-u-v) and rows 1 and 2 zero. The search proves that no qualifying four-dimensional subspace contains P. The maximum dimension in this family is 3.",
    "field_conventions": "Use the representatives 0,1,2,3,4 for F_5 with arithmetic modulo 5. Rows and columns are numbered 0,1,2. Coordinates are row-major. The target 6 is the residue 1. The checker sums the six column-index permutation products, which equals the row-index convention in Mathlib by replacing each permutation by its inverse.",
    "scalar_restriction": "For each t in a qualifying L, f(s)=per(J+s t)-6 vanishes at all five scalars by closure under scalar multiplication. Its degree is at most 3, so it is identically zero. Every entry of t occurs as the degree-one factor in two permutation products, so the coefficient of s is 2 times the sum of all entries, forcing that sum to vanish. The Lean argument uses 8*(f(1)-f(-1))-(f(2)-f(-2)), which cancels the constant, quadratic and cubic terms and leaves 24 times the entry sum. The scalar 24 is invertible in F_5.",
    "quotient": "On the sum-zero hyperplane H, projection to rows 1 and 2 is surjective onto F_5^6 with kernel P. A linear section of H/P takes q to lower rows q and row 0=(a,a,a), where a=-sum(q)/3=-2 sum(q). Every dimension-four L containing P is the full preimage in H of a unique two-plane in F_5^6. Its canonical four basis vectors comprise row shifts (u,v)=(1,0),(0,1) and the section lifts of the two RREF rows. Independence follows by projecting first to the two RREF pivots, then to the first two row-0 entries.",
    "enumeration_and_pruning": "Normalize a nonzero direction by making its first nonzero coordinate 1. Test each projective direction for constancy on the entire preimage of the line, using (s,u,v) in F_5^3, stopping on its first failure. A plane containing any failed direction contains the failing preimage vector, so it can be rejected. Generate each rank-two RREF row space once, using all increasing pivot pairs and all assignments to the free entries to the right of each pivot, with the pivot columns fixed to the identity. For pivot rows x,y, the remaining four projective directions of the plane are the normalized x+k*y, k=1,2,3,4. Independently evaluate all 625 coefficient tuples on each plane whose two pivot directions pass.",
    "algebraic_certificate": [
      "For any t in L and scalar s, put C_i(s) equal to the 2-by-2 permanent on rows 1 and 2 with column i removed, evaluated in J+s*t. Expanding along row 0 and adding either fixed plane generator shows C_0(s)=C_1(s)=C_2(s), since the differences of the permanent are C_0-C_2 and C_1-C_2.",
      "Writing r for the row-0 sum of t, the permanent is then (3+s*r)*C_2(s). If r is nonzero, s=-3/r makes the permanent zero, contradicting 6. Thus r=0.",
      "Each C_i is quadratic in s. Subtract its value at -1 from its value at 1 to obtain twice the sum of the entries of t in its two retained columns of the bottom two rows. The equalities of C_i imply the bottom-two-row column sums are all equal. The total sum constraint and r=0 make their sum zero, so they each vanish. Hence the bottom rows are b and -b.",
      "At s=1 the common C_i is 2, since (3+1*r)*C_i=6. On columns j,k of the bottom two rows the minor is (1+b_j)(1-b_k)+(1+b_k)(1-b_j)=2-2*b_j*b_k. Thus all pairwise products b_j*b_k for j≠k vanish and b has at most one nonzero coordinate.",
      "Any linear space of such b vectors is contained in a fixed coordinate axis. Two vectors supported on different axes would have a sum supported on both. Consequently the kernel P and the at-most-one-dimensional lower-row image bound dim L by 3. Conversely, P plus the line having bottom rows s*e_j and -s*e_j and zero top row attains dimension 3, since all three minors then equal 2 for every scalar and the first row of J+t always sums to 3."
    ],
    "search_output": {
      "counts": {
        "planes_checked_on_all_625": 3,
        "pruned_nonpivot_direction": 3,
        "pruned_pivot_direction": 508428,
        "rref_planes": 508431,
        "witnesses": 0
      },
      "directions_tested": 3906,
      "good_directions": [
        [
          0,
          0,
          1,
          0,
          0,
          4
        ],
        [
          0,
          1,
          0,
          0,
          4,
          0
        ],
        [
          1,
          0,
          0,
          4,
          0,
          0
        ]
      ],
      "good_pivot_planes": [
        {
          "bad_combinations_of_625": 320,
          "x": [
            1,
            0,
            0,
            4,
            0,
            0
          ],
          "y": [
            0,
            1,
            0,
            0,
            4,
            0
          ]
        },
        {
          "bad_combinations_of_625": 320,
          "x": [
            1,
            0,
            0,
            4,
            0,
            0
          ],
          "y": [
            0,
            0,
            1,
            0,
            0,
            4
          ]
        },
        {
          "bad_combinations_of_625": 320,
          "x": [
            0,
            1,
            0,
            0,
            4,
            0
          ],
          "y": [
            0,
            0,
            1,
            0,
            0,
            4
          ]
        }
      ],
      "permanent_evaluations_in_direction_tests": 103965,
      "permanent_evaluations_in_full_plane_tests": 1875,
      "pivot_counts": {
        "(0, 1)": 390625,
        "(0, 2)": 78125,
        "(0, 3)": 15625,
        "(0, 4)": 3125,
        "(0, 5)": 625,
        "(1, 2)": 15625,
        "(1, 3)": 3125,
        "(1, 4)": 625,
        "(1, 5)": 125,
        "(2, 3)": 625,
        "(2, 4)": 125,
        "(2, 5)": 25,
        "(3, 4)": 25,
        "(3, 5)": 5,
        "(4, 5)": 1
      }
    }
  },
  "checks": [
    {
      "command": "git -C test/scratch/upstream rev-parse HEAD",
      "outcome": "605dc84be40929b8c04c6b206c363d69dc369d12"
    },
    {
      "command": "python3 test/scratch/search.py > test/scratch/search-output.json",
      "outcome": "Exit 0. 3906 projective directions, 508431 RREF planes, 0 witnesses. The three good-pivot planes each failed 320 of 625 checks."
    },
    {
      "command": "lake --version",
      "outcome": "Lake version 5.0.0-src+611c117 (Lean version 4.36.0)"
    },
    {
      "command": "lake exe cache get Mathlib",
      "cwd": "test/scratch/upstream/lean",
      "outcome": "Exit 0. Decompressed 9117 cache files in scratch."
    },
    {
      "command": "lake build PEqualNP.Defs",
      "cwd": "test/scratch/upstream/lean",
      "outcome": "Exit 0. Build completed successfully (5107 jobs)."
    },
    {
      "command": "lake build PEqualNP.Outside.L_gct_228",
      "cwd": "test/scratch/upstream/lean",
      "outcome": "Final exit 0. Build completed successfully (18383 jobs). Lean emitted module-system warnings for imports as expected with the plain-file format. An earlier overlapping dependency build reported a missing temporary file, and the subsequent build succeeded."
    },
    {
      "command": "lake env lean ../../Audit.lean",
      "cwd": "test/scratch/upstream/lean",
      "outcome": "Exit 0. Checked the three declaration types and an explicit annotation of the restricted negation. Each declaration depends on exactly propext, Classical.choice and Quot.sound.",
      "stdout": "PEqualNP.Outside.L_gct_228.sum_entries_zero (t : PEqualNP.Outside.L_gct_228.V)\n  (h : ∀ (s : ZMod 5), PEqualNP.Outside.L_gct_228.p (s • t) = 6) :\n  t (0, 0) + t (0, 1) + t (0, 2) + t (1, 0) + t (1, 1) + t (1, 2) + t (2, 0) + t (2, 1) + t (2, 2) = 0\n'PEqualNP.Outside.L_gct_228.sum_entries_zero' depends on axioms: [propext, Classical.choice, Quot.sound]\nPEqualNP.Outside.L_gct_228.restricted_finrank_le_three (L : Submodule (ZMod 5) PEqualNP.Outside.L_gct_228.V)\n  (hplane : ∀ (u v : ZMod 5), PEqualNP.Outside.L_gct_228.rowShift u v ∈ L)\n  (hperm : ∀ t ∈ L, PEqualNP.Outside.L_gct_228.p t = 6) : Module.finrank (ZMod 5) ↥L ≤ 3\n'PEqualNP.Outside.L_gct_228.restricted_finrank_le_three' depends on axioms: [propext, Classical.choice, Quot.sound]\nPEqualNP.Outside.L_gct_228.no_four_dimensional_extension :\n  ¬∃ L,\n      (∀ (u v : ZMod 5), PEqualNP.Outside.L_gct_228.rowShift u v ∈ L) ∧\n        Module.finrank (ZMod 5) ↥L = 4 ∧ ∀ t ∈ L, (Matrix.of fun i j => 1 + t (i, j)).permanent = 6\n'PEqualNP.Outside.L_gct_228.no_four_dimensional_extension' depends on axioms: [propext, Classical.choice, Quot.sound]\n"
    },
    {
      "command": "python3 test/scratch/make_result.py",
      "outcome": "Exit 0. Checked all six quotations against the downloaded public URL contents."
    }
  ],
  "sources": [
    "https://pequalnp.com/join.txt",
    "https://data.pequalnp.com/data/desk/gaps.json",
    "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/605dc84be40929b8c04c6b206c363d69dc369d12/CONTRIBUTING.md",
    "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/605dc84be40929b8c04c6b206c363d69dc369d12/lean/lean-toolchain",
    "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/605dc84be40929b8c04c6b206c363d69dc369d12/lean/lakefile.toml",
    "https://raw.githubusercontent.com/leanprover-community/mathlib4/fc4f59e577feb1a4956671bc04ac18aaaf8cd842/Mathlib/LinearAlgebra/Matrix/Permanent.lean"
  ],
  "remaining": "The quotient family containing P is exhausted. Four-dimensional subspaces that do not contain P are outside this search, and the posted existential statement imposes no containment condition. No witness for the unrestricted statement was established."
}
