AFTD Auto-Formalizing Theoretical Domains

op_1239_candidate31_petrial_coefficients

theoremverified

The partial Petrial coefficients of op_1239_candidate31 in ranks 24, 25 and 26 are respectively 64, 8416 and 1274976.

Statement

theorem op_1239_candidate31_petrial_coefficients : letI : DecidableRel op_1239_candidate31.Adj := Classical.decRel _; petrial_coeff op_1239_candidate31 24 = 64 ∧ petrial_coeff op_1239_candidate31 25 = 8416 ∧ petrial_coeff op_1239_candidate31 26 = 1274976
Source
OP-1239, arXiv:2611.07503, Problem 16; candidate from experiments 28663 and 28669.
Verified
20 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 16
Used by 1

The proof, explained

The proof computes the Petrial coefficients of the 31-vertex graph `op_1239_candidate31` at ranks 24, 25, and 26 by first determining its Petrial nullity polynomial. Because the graph is a tree, its nullity polynomial is evaluated via an elimination certificate on the vertex set using recursive leaf reductions, component factorization, and base cases. The desired coefficients are then read off from the coefficients of $X^7$, $X^6$, and $X^5$ after reconciling decidability instances for the graph's adjacency relation.

  1. The certificate vertex set `Op1239Cert31.vs71` contains every vertex of the candidate graph. automation

    The universal quantifier ranges over the finite type `Fin 31`. The `decide` tactic checks membership for all 31 elements by exhaustive evaluation.

    lines 1–4

    lemma op_1239_candidate31_petrial_coefficients_mem_vs71 :
        ∀ x : Fin 31, x ∈ Op1239Cert31.vs71 := by
      decide
    
  2. The induced subgraph on the certificate set `Op1239Cert31.vs71` is isomorphic to `op_1239_candidate31`, and therefore both have identical Petrial nullity polynomials.

    Since `Op1239Cert31.vs71` contains every vertex of `Fin 31`, the canonical inclusion map is a bijection and preserves adjacency by definition. Because the Petrial nullity polynomial is invariant under graph isomorphism (`petrial_nullity_poly_iso`), the polynomial of the induced subgraph equals that of the full graph.

    lines 5–17

    uses op_1239_candidate31_petrial_coefficients_mem_vs71, op_1239_candidate31_petrial_coefficients_iso_cert, petrial_nullity_poly_iso

    def op_1239_candidate31_petrial_coefficients_iso_cert :
        (SimpleGraph.induce (Op1239Cert31.vs71 : Set (Fin 31)) op_1239_candidate31) ≃g op_1239_candidate31 where
      toFun := Subtype.val
      invFun x := ⟨x, op_1239_candidate31_petrial_coefficients_mem_vs71 x⟩
      left_inv x := Subtype.ext rfl
      right_inv x := rfl
      map_rel_iff' := by intros; rfl
    
    lemma op_1239_candidate31_petrial_coefficients_poly_eq_candidate :
        petrial_nullity_poly (SimpleGraph.induce (Op1239Cert31.vs71 : Set (Fin 31)) op_1239_candidate31) =
        petrial_nullity_poly op_1239_candidate31 :=
      petrial_nullity_poly_iso _ _ op_1239_candidate31_petrial_coefficients_iso_cert
    
  3. The Petrial nullity polynomial of `op_1239_candidate31` is $560820429 + 876263103 X + 530790732 X^2 + 156016800 X^3 + 22309128 X^4 + 1274976 X^5 + 8416 X^6 + 64 X^7$.

    Rewriting with `op_1239_candidate31_petrial_coefficients_poly_eq_candidate` replaces the goal with computing the polynomial of the induced subgraph on `vs71`. The certificate reduction theorem `op_1239_candidate31_nullity_poly_conditional` evaluates this polynomial using the recurrence rules for Petrial nullity polynomials: the empty set evaluates to 1 (`petrial_nullity_poly_empty_finset`), singletons evaluate to $1 + X$ (`petrial_nullity_poly_card_one_finset`), disconnected components multiply (`petrial_nullity_poly_disjoint_finset_union`), and leaf reductions follow $P(S) = P(S \setminus \{v\}) + 2 P(S \setminus \{v, u\})$ (`petrial_nullity_poly_leaf_finset`).

    lines 18–31

    uses op_1239_candidate31_petrial_coefficients_poly_eq_candidate, op_1239_candidate31_nullity_poly_conditional, petrial_nullity_poly_empty_finset, petrial_nullity_poly_card_one_finset, petrial_nullity_poly_disjoint_finset_union, petrial_nullity_poly_leaf_finset

    lemma op_1239_candidate31_petrial_coefficients_poly :
        petrial_nullity_poly op_1239_candidate31 =
          560820429 + 876263103 * Polynomial.X ^ 1 + 530790732 * Polynomial.X ^ 2 + 156016800 * Polynomial.X ^ 3 +
                  22309128 * Polynomial.X ^ 4 +
                1274976 * Polynomial.X ^ 5 +
              8416 * Polynomial.X ^ 6 +
            64 * Polynomial.X ^ 7 := by
      rw [← op_1239_candidate31_petrial_coefficients_poly_eq_candidate]
      exact op_1239_candidate31_nullity_poly_conditional
        (petrial_nullity_poly_empty_finset op_1239_candidate31)
        (petrial_nullity_poly_card_one_finset op_1239_candidate31)
        (petrial_nullity_poly_disjoint_finset_union op_1239_candidate31)
        (fun s v u hv hu => petrial_nullity_poly_leaf_finset op_1239_candidate31 s v u hv hu)
    
  4. The Petrial coefficients of a graph are independent of the decidability instance chosen for edge adjacency.

    The type `DecidableRel G.Adj` is a subsingleton because decidability witnesses for propositions are unique. By `Subsingleton.elim`, any two decidability instances $d_1$ and $d_2$ are equal, making the resulting coefficient terms definitionally identical (`rfl`).

    lines 32–37

    uses Subsingleton.elim

    lemma op_1239_candidate31_petrial_coefficients_congr {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V)
        (d1 d2 : DecidableRel G.Adj) (k : ℕ) :
        @petrial_coeff V _ _ G d1 k = @petrial_coeff V _ _ G d2 k := by
      cases Subsingleton.elim d1 d2
      rfl
    
  5. The goal under classical decidability reduces to evaluating the Petrial coefficients under the inferred decidability instance for ranks 24, 25, and 26.

    Using the congruence lemma `op_1239_candidate31_petrial_coefficients_congr`, we establish that the coefficients defined with `Classical.decRel` match those defined with the inferred decidability instance at ranks 24, 25, and 26. Rewriting with these equations replaces the classical instances in the goal.

    lines 38–42

    uses op_1239_candidate31_petrial_coefficients_congr, Classical.decRel

    theorem op_1239_candidate31_petrial_coefficients : letI : DecidableRel op_1239_candidate31.Adj := Classical.decRel _; petrial_coeff op_1239_candidate31 24 = 64 ∧ petrial_coeff op_1239_candidate31 25 = 8416 ∧ petrial_coeff op_1239_candidate31 26 = 1274976 := by
      have h24 := op_1239_candidate31_petrial_coefficients_congr op_1239_candidate31 (Classical.decRel _) inferInstance 24
      have h25 := op_1239_candidate31_petrial_coefficients_congr op_1239_candidate31 (Classical.decRel _) inferInstance 25
      have h26 := op_1239_candidate31_petrial_coefficients_congr op_1239_candidate31 (Classical.decRel _) inferInstance 26
      rw [h24, h25, h26]
  6. The partial Petrial coefficients of `op_1239_candidate31` at ranks 24, 25, and 26 are 64, 8416, and 1274976, respectively.

    The lemma `op_1239_candidate31_coefficients_of_poly` relates the rank $k$ Petrial coefficient to the coefficient of $X^{31 - k}$ in the Petrial nullity polynomial. Applying it to the computed polynomial `op_1239_candidate31_petrial_coefficients_poly` reads off the coefficients of $X^7$, $X^6$, and $X^5$ as 64, 8416, and 1274976, respectively.

    line 43

    uses op_1239_candidate31_coefficients_of_poly, op_1239_candidate31_petrial_coefficients_poly

      exact op_1239_candidate31_coefficients_of_poly op_1239_candidate31_petrial_coefficients_poly
Classical.decRel
Constructs a decidability instance for any binary relation using classical logic.
Subsingleton.elim
Any two elements of a subsingleton type are equal.
op_1239_candidate31_coefficients_of_poly
Extracts the Petrial coefficients at ranks 24, 25, and 26 from the degree 7, 6, and 5 coefficients of the Petrial nullity polynomial of `op_1239_candidate31`.
op_1239_candidate31_nullity_poly_conditional
The Petrial nullity polynomial of a subgraph on a certificate vertex set evaluates to an explicit polynomial given the recurrence relations for empty sets, singletons, disjoint unions, and leaf removals.
op_1239_candidate31_petrial_coefficients_congr
The Petrial coefficient of rank $k$ for a graph $G$ is independent of the choice of decidability instance for edge adjacency.
op_1239_candidate31_petrial_coefficients_iso_cert
The induced subgraph of `op_1239_candidate31` on the certificate vertex set `vs71` is isomorphic to `op_1239_candidate31`.
op_1239_candidate31_petrial_coefficients_mem_vs71
Every vertex in `Fin 31` belongs to the certificate vertex set `Op1239Cert31.vs71`.
op_1239_candidate31_petrial_coefficients_poly
The Petrial nullity polynomial of `op_1239_candidate31` is $560820429 + 876263103 X + 530790732 X^2 + 156016800 X^3 + 22309128 X^4 + 1274976 X^5 + 8416 X^6 + 64 X^7$.
op_1239_candidate31_petrial_coefficients_poly_eq_candidate
The Petrial nullity polynomial of the induced subgraph on `vs71` equals that of `op_1239_candidate31`.
petrial_nullity_poly_card_one_finset
The Petrial nullity polynomial of an induced subgraph on a single vertex is $1 + X$.
petrial_nullity_poly_disjoint_finset_union
The Petrial nullity polynomial of a disjoint union of non-adjacent vertex subsets is the product of their respective nullity polynomials.
petrial_nullity_poly_empty_finset
The Petrial nullity polynomial of the empty induced subgraph is 1.
petrial_nullity_poly_iso
Isomorphic simple graphs have equal Petrial nullity polynomials.
petrial_nullity_poly_leaf_finset
If $v$ is a leaf in the induced subgraph on $s$ with neighbor $u$, the Petrial nullity polynomial satisfies $P(s) = P(s \setminus \{v\}) + 2 P(s \setminus \{v, u\})$.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

lemma op_1239_candidate31_petrial_coefficients_mem_vs71 :    ∀ x : Fin 31, x ∈ Op1239Cert31.vs71 := by  decidedef op_1239_candidate31_petrial_coefficients_iso_cert :    (SimpleGraph.induce (Op1239Cert31.vs71 : Set (Fin 31)) op_1239_candidate31) ≃g op_1239_candidate31 where  toFun := Subtype.val  invFun x := ⟨x, op_1239_candidate31_petrial_coefficients_mem_vs71 x⟩  left_inv x := Subtype.ext rfl  right_inv x := rfl  map_rel_iff' := by intros; rfllemma op_1239_candidate31_petrial_coefficients_poly_eq_candidate :    petrial_nullity_poly (SimpleGraph.induce (Op1239Cert31.vs71 : Set (Fin 31)) op_1239_candidate31) =    petrial_nullity_poly op_1239_candidate31 :=  petrial_nullity_poly_iso _ _ op_1239_candidate31_petrial_coefficients_iso_certlemma op_1239_candidate31_petrial_coefficients_poly :    petrial_nullity_poly op_1239_candidate31 =      560820429 + 876263103 * Polynomial.X ^ 1 + 530790732 * Polynomial.X ^ 2 + 156016800 * Polynomial.X ^ 3 +              22309128 * Polynomial.X ^ 4 +            1274976 * Polynomial.X ^ 5 +          8416 * Polynomial.X ^ 6 +        64 * Polynomial.X ^ 7 := by  rw [← op_1239_candidate31_petrial_coefficients_poly_eq_candidate]  exact op_1239_candidate31_nullity_poly_conditional    (petrial_nullity_poly_empty_finset op_1239_candidate31)    (petrial_nullity_poly_card_one_finset op_1239_candidate31)    (petrial_nullity_poly_disjoint_finset_union op_1239_candidate31)    (fun s v u hv hu => petrial_nullity_poly_leaf_finset op_1239_candidate31 s v u hv hu)lemma op_1239_candidate31_petrial_coefficients_congr {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V)    (d1 d2 : DecidableRel G.Adj) (k : ℕ) :    @petrial_coeff V _ _ G d1 k = @petrial_coeff V _ _ G d2 k := by  cases Subsingleton.elim d1 d2  rfltheorem op_1239_candidate31_petrial_coefficients : letI : DecidableRel op_1239_candidate31.Adj := Classical.decRel _; petrial_coeff op_1239_candidate31 24 = 64 ∧ petrial_coeff op_1239_candidate31 25 = 8416 ∧ petrial_coeff op_1239_candidate31 26 = 1274976 := by  have h24 := op_1239_candidate31_petrial_coefficients_congr op_1239_candidate31 (Classical.decRel _) inferInstance 24  have h25 := op_1239_candidate31_petrial_coefficients_congr op_1239_candidate31 (Classical.decRel _) inferInstance 25  have h26 := op_1239_candidate31_petrial_coefficients_congr op_1239_candidate31 (Classical.decRel _) inferInstance 26  rw [h24, h25, h26]  exact op_1239_candidate31_coefficients_of_poly op_1239_candidate31_petrial_coefficients_poly
See it in the graphDiscuss this resultChallenge it