AFTD Auto-Formalizing Theoretical Domains

path_seven_blue_leaf_exposure_not_ulc

theoremverified

On a seven-vertex path with one endpoint fixed blue and the adjacent vertex as root, the exposure mixture at weight three quarters has normalized ranks 4, 5, 6 violating ultra-log-concavity.

Statement

theorem path_seven_blue_leaf_exposure_not_ulc : (let T := SimpleGraph.pathGraph 7; let p : Fin 7 := 1; let b : Fin 7 := 0; let a := fun k : ℕ => {S : Finset (Fin 7) | b ∉ S ∧ S.card = k ∧ is_zero_forcing_set T ((Finset.univ \ S : Finset (Fin 7)) : Set (Fin 7)) ∧ ¬ zero_forcing_root_exposed_fort T p S}.ncard; let c := fun k : ℕ => {S : Finset (Fin 7) | b ∉ S ∧ S.card = k ∧ is_zero_forcing_set T ((Finset.univ \ S : Finset (Fin 7)) : Set (Fin 7)) ∧ zero_forcing_root_exposed_fort T p S}.ncard; 4 * a 4 + 3 * c 4 = 56 ∧ 4 * a 5 + 3 * c 5 = 20 ∧ 4 * a 6 + 3 * c 6 = 3)
Source
Filed by the prover as a step towards another result
Verified
17 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 5
  • is_zero_forcing_setA set of vertices S is a zero forcing set of G if its zero forcing closure contains all vertices of G.
  • zero_forcing_root_exposed_fortA white set W contains a root-exposed fort if it contains a set F not containing r such that r has a neighbor in F and every vertex other…
  • zero_forcing_finset_iter_decidesA blue set is zero forcing exactly when the executable parallel forcing process colors every vertex after at most the number of vertices…
  • zero_forcing_finset_iterThe finite blue set obtained by iterating the executable parallel zero forcing step k times.
  • is_zero_forcing_set_monoIf S is a zero forcing set of a simple graph G and S is a subset of S', then S' is also a zero forcing set of G.
Used by 1

The proof, explained

The proof computes the values of the weight-3/4 exposure mixture for ranks 4, 5, and 6 on the path graph P_7 with leaf 0 fixed blue and root 1. First, any subset avoiding leaf 0 has a zero-forcing complement because {0} alone forces the path, and exposed forts rooted at 1 are classified by an explicit pattern. Exhaustive computation of the number of subsets satisfying or avoiding this pattern of sizes 4, 5, and 6 gives the exact counts, which linear arithmetic verifies satisfy 4 a_4 + 3 c_4 = 56, 4 a_5 + 3 c_5 = 20, and 4 a_6 + 3 c_6 = 3.

  1. Having an exposed fort rooted at 1 is a decidable predicate on subsets of Fin 7.

    Unfolding the definitions of expose and zero_forcing_root_exposed_fort expresses the condition as a bounded first-order sentence over finite sets, which is synthesized as decidable by Lean's typeclass inference.

    lines 13–14

      unfold expose zero_forcing_root_exposed_fort
      infer_instance
  2. The combinatorial condition pattern S is decidable for every subset S of Fin 7.

    Unfolding the definition of pattern reveals a quantifier-free propositional formula of membership tests in S, which typeclass inference synthesizes as decidable.

    line 20

    instance (S : Finset (Fin 7)) : Decidable (pattern S) := by unfold pattern; infer_instance
  3. The singleton set {0} is a zero-forcing set for the path graph P_7. automation

    By zero_forcing_finset_iter_decides, being zero-forcing is equivalent to the iterative propagation set reaching the full vertex set after 7 steps; decide verifies this by finite evaluation.

    lines 23–24

    uses zero_forcing_finset_iter_decides

      apply (zero_forcing_finset_iter_decides G {0}).mpr
      decide
  4. For every subset S not containing vertex 0, the complement Finset.univ \ S is a zero-forcing set for P_7.

    Because 0 is not in S, the complement Finset.univ \ S contains {0}. By monotonicity of zero forcing (is_zero_forcing_set_mono) with respect to endpoint_forces, any superset of {0} is also zero-forcing.

    lines 28–32

    uses is_zero_forcing_set_mono, endpoint_forces, Finset.coe_singleton, Set.mem_singleton_iff

      apply is_zero_forcing_set_mono G _ endpoint_forces
      intro x hx
      simp only [Finset.coe_singleton, Set.mem_singleton_iff] at hx
      subst x
      simpa using h
  5. For every subset S avoiding 0, S contains an exposed fort rooted at 1 if and only if S satisfies pattern S. automation

    Since Fin 7 has only 2^7 = 128 subsets, the equivalence expose S <-> pattern S for all subsets S avoiding 0 is proved by exhaustive finite checking via decide.

    line 35

      decide
  6. The filtered finsets have cardinalities |a(4)| = 11, |c(4)| = 4, |a(5)| = 2, |c(5)| = 4, |a(6)| = 0, and |c(6)| = 1. automation

    Each cardinality claim is verified by exhaustive enumeration of the subsets of {1, 2, 3, 4, 5, 6} of each given size via decide.

    lines 43–48

    theorem count_a4 : (a 4).card = 11 := by decide
    theorem count_c4 : (c 4).card = 4 := by decide
    theorem count_a5 : (a 5).card = 2 := by decide
    theorem count_c5 : (c 5).card = 4 := by decide
    theorem count_a6 : (a 6).card = 0 := by decide
    theorem count_c6 : (c 6).card = 1 := by decide
  7. The number of size-k subsets avoiding 0 whose complement is zero-forcing and without an exposed fort rooted at 1 equals |a(k)|.

    We convert the set cardinality to a finset cardinality using Set.ncard_eq_toFinset_card'. For subsets containing 0, both sides trivially fail. For subsets avoiding 0, the complement is automatically zero-forcing by allowed_forces, and having no exposed fort is equivalent to not satisfying pattern S by expose_class, matching the definition of a k.

    lines 56–67

    uses Set.ncard_eq_toFinset_card', Set.mem_toFinset, Set.mem_setOf_eq, Finset.mem_filter, Finset.mem_univ, true_and, allowed_forces, expose_class

      classical
      rw [Set.ncard_eq_toFinset_card']
      congr 1
      ext S
      simp only [Set.mem_toFinset, Set.mem_setOf_eq, a, Finset.mem_filter,
        Finset.mem_univ, true_and]
      by_cases h : (0 : Fin 7) ∈ S
      · simp [h]
      · have hf : is_zero_forcing_set G (Set.univ \ (S : Set (Fin 7))) := by simpa using allowed_forces S h
        have he := expose_class S h
        change zero_forcing_root_exposed_fort G 1 S ↔ pattern S at he
        simp [h, hf, he]
  8. The number of size-k subsets avoiding 0 whose complement is zero-forcing and containing an exposed fort rooted at 1 equals |c(k)|.

    Similarly, using Set.ncard_eq_toFinset_card', any subset avoiding 0 has a zero-forcing complement by allowed_forces, and contains an exposed fort rooted at 1 if and only if it satisfies pattern S by expose_class, matching the definition of c k.

    lines 73–84

    uses Set.ncard_eq_toFinset_card', Set.mem_toFinset, Set.mem_setOf_eq, Finset.mem_filter, Finset.mem_univ, true_and, allowed_forces, expose_class

      classical
      rw [Set.ncard_eq_toFinset_card']
      congr 1
      ext S
      simp only [Set.mem_toFinset, Set.mem_setOf_eq, c, Finset.mem_filter,
        Finset.mem_univ, true_and]
      by_cases h : (0 : Fin 7) ∈ S
      · simp [h]
      · have hf : is_zero_forcing_set G (Set.univ \ (S : Set (Fin 7))) := by simpa using allowed_forces S h
        have he := expose_class S h
        change zero_forcing_root_exposed_fort G 1 S ↔ pattern S at he
        simp [h, hf, he]
  9. The quantities aa(k) and cc(k) evaluate to 11 and 4 at k = 4, to 2 and 4 at k = 5, and to 0 and 1 at k = 6.

    Local functions aa and cc are defined to match the set cardinalities in the goal. Transitivity with IN919Path.count_a and IN919Path.count_c combined with the explicit counts count_a4, count_c4, count_a5, count_c5, count_a6, count_c6 establishes the exact numerical values.

    lines 90–102

    uses IN919Path.count_a, IN919Path.count_a4, IN919Path.count_c, IN919Path.count_c4, IN919Path.count_a5, IN919Path.count_c5, IN919Path.count_a6, IN919Path.count_c6

      let aa := fun k : ℕ => {S : Finset (Fin 7) | (0 : Fin 7) ∉ S ∧ S.card = k ∧
        is_zero_forcing_set IN919Path.G ((Finset.univ \ S : Finset (Fin 7)) : Set (Fin 7)) ∧
        ¬ zero_forcing_root_exposed_fort IN919Path.G 1 S}.ncard
      let cc := fun k : ℕ => {S : Finset (Fin 7) | (0 : Fin 7) ∉ S ∧ S.card = k ∧
        is_zero_forcing_set IN919Path.G ((Finset.univ \ S : Finset (Fin 7)) : Set (Fin 7)) ∧
        zero_forcing_root_exposed_fort IN919Path.G 1 S}.ncard
      change 4 * aa 4 + 3 * cc 4 = 56 ∧ 4 * aa 5 + 3 * cc 5 = 20 ∧ 4 * aa 6 + 3 * cc 6 = 3
      have ha4 : aa 4 = 11 := (IN919Path.count_a 4).trans IN919Path.count_a4
      have hc4 : cc 4 = 4 := (IN919Path.count_c 4).trans IN919Path.count_c4
      have ha5 : aa 5 = 2 := (IN919Path.count_a 5).trans IN919Path.count_a5
      have hc5 : cc 5 = 4 := (IN919Path.count_c 5).trans IN919Path.count_c5
      have ha6 : aa 6 = 0 := (IN919Path.count_a 6).trans IN919Path.count_a6
      have hc6 : cc 6 = 1 := (IN919Path.count_c 6).trans IN919Path.count_c6
  10. The linear combinations satisfy 4 * a 4 + 3 * c 4 = 56, 4 * a 5 + 3 * c 5 = 20, and 4 * a 6 + 3 * c 6 = 3. automation

    Substituting aa 4 = 11, cc 4 = 4, aa 5 = 2, cc 5 = 4, aa 6 = 0, and cc 6 = 1 yields 4(11) + 3(4) = 56, 4(2) + 3(4) = 20, and 4(0) + 3(1) = 3, which is closed by linear integer arithmetic (omega).

    line 103

      omega
zero_forcing_finset_iter_decides
A subset of vertices is a zero-forcing set if and only if deterministic zero-forcing propagation initialized at that set covers all vertices in |V| iterations.
is_zero_forcing_set_mono
If S is a zero-forcing set and S is a subset of S', then S' is also a zero-forcing set.
endpoint_forces
The singleton set {0} containing an endpoint is a zero-forcing set on the 7-vertex path graph.
Finset.coe_singleton
Coercing a singleton finset {a} to a set yields the singleton set {a}.
Set.mem_singleton_iff
An element belongs to a singleton set {b} if and only if it equals b.
Set.ncard_eq_toFinset_card'
The cardinality ncard of a finite set equals the cardinality of its finset representation toFinset.
Set.mem_toFinset
An element belongs to s.toFinset if and only if it belongs to the set s.
Set.mem_setOf_eq
Membership in a set-builder comprehension {y | p y} is equivalent to p x.
Finset.mem_filter
An element belongs to Finset.filter p s if and only if it belongs to s and satisfies p.
Finset.mem_univ
Every element of a finite type belongs to Finset.univ.
true_and
The proposition True and p is logically equivalent to p.
allowed_forces
If a subset S does not contain vertex 0, its complement in Fin 7 is a zero-forcing set for the path graph P_7.
expose_class
For any subset S not containing vertex 0, having an exposed fort rooted at 1 is equivalent to satisfying pattern S.
IN919Path.count_a
The count of subsets of size k avoiding 0 whose complement is zero-forcing and which have no exposed fort rooted at 1 equals the cardinality of a k.
IN919Path.count_a4
The cardinality of a 4 is 11.
IN919Path.count_c
The count of subsets of size k avoiding 0 whose complement is zero-forcing and which contain an exposed fort rooted at 1 equals the cardinality of c k.
IN919Path.count_c4
The cardinality of c 4 is 4.
IN919Path.count_a5
The cardinality of a 5 is 2.
IN919Path.count_c5
The cardinality of c 5 is 4.
IN919Path.count_a6
The cardinality of a 6 is 0.
IN919Path.count_c6
The cardinality of c 6 is 1.

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

set_option maxRecDepth 8192set_option maxHeartbeats 8000000namespace IN919Pathdef G := SimpleGraph.pathGraph 7instance : DecidableRel G.Adj := fun u v =>  decidable_of_iff ((u : ℕ) + 1 = v ∨ (v : ℕ) + 1 = u) (SimpleGraph.pathGraph_adj.symm)def expose (S : Finset (Fin 7)) : Prop := zero_forcing_root_exposed_fort G 1 Sinstance (S : Finset (Fin 7)) : Decidable (expose S) := by  unfold expose zero_forcing_root_exposed_fort  infer_instancedef pattern (S : Finset (Fin 7)) : Prop :=  (2 : Fin 7) ∈ S ∧ (6 : Fin 7) ∈ S ∧  ((3 : Fin 7) ∈ S ∨ (4 : Fin 7) ∈ S) ∧  ((4 : Fin 7) ∈ S ∨ (5 : Fin 7) ∈ S)instance (S : Finset (Fin 7)) : Decidable (pattern S) := by unfold pattern; infer_instancetheorem endpoint_forces : is_zero_forcing_set G (({0} : Finset (Fin 7)) : Set (Fin 7)) := by  apply (zero_forcing_finset_iter_decides G {0}).mpr  decidetheorem allowed_forces (S : Finset (Fin 7)) (h : (0 : Fin 7) ∉ S) :    is_zero_forcing_set G ((Finset.univ \ S : Finset (Fin 7)) : Set (Fin 7)) := by  apply is_zero_forcing_set_mono G _ endpoint_forces  intro x hx  simp only [Finset.coe_singleton, Set.mem_singleton_iff] at hx  subst x  simpa using htheorem expose_class : ∀ S : Finset (Fin 7), (0 : Fin 7) ∉ S → (expose S ↔ pattern S) := by  decidedef a (k : ℕ) : Finset (Finset (Fin 7)) :=  Finset.univ.filter fun S => (0 : Fin 7) ∉ S ∧ S.card = k ∧ ¬ pattern Sdef c (k : ℕ) : Finset (Finset (Fin 7)) :=  Finset.univ.filter fun S => (0 : Fin 7) ∉ S ∧ S.card = k ∧ pattern Stheorem count_a4 : (a 4).card = 11 := by decidetheorem count_c4 : (c 4).card = 4 := by decidetheorem count_a5 : (a 5).card = 2 := by decidetheorem count_c5 : (c 5).card = 4 := by decidetheorem count_a6 : (a 6).card = 0 := by decidetheorem count_c6 : (c 6).card = 1 := by decidetheorem count_a (k : ℕ) :    {S : Finset (Fin 7) | (0 : Fin 7) ∉ S ∧ S.card = k ∧      is_zero_forcing_set G ((Finset.univ \ S : Finset (Fin 7)) : Set (Fin 7)) ∧      ¬ zero_forcing_root_exposed_fort G 1 S}.ncard = (a k).card := by  classical  rw [Set.ncard_eq_toFinset_card']  congr 1  ext S  simp only [Set.mem_toFinset, Set.mem_setOf_eq, a, Finset.mem_filter,    Finset.mem_univ, true_and]  by_cases h : (0 : Fin 7) ∈ S  · simp [h]  · have hf : is_zero_forcing_set G (Set.univ \ (S : Set (Fin 7))) := by simpa using allowed_forces S h    have he := expose_class S h    change zero_forcing_root_exposed_fort G 1 S ↔ pattern S at he    simp [h, hf, he]theorem count_c (k : ℕ) :    {S : Finset (Fin 7) | (0 : Fin 7) ∉ S ∧ S.card = k ∧      is_zero_forcing_set G ((Finset.univ \ S : Finset (Fin 7)) : Set (Fin 7)) ∧      zero_forcing_root_exposed_fort G 1 S}.ncard = (c k).card := by  classical  rw [Set.ncard_eq_toFinset_card']  congr 1  ext S  simp only [Set.mem_toFinset, Set.mem_setOf_eq, c, Finset.mem_filter,    Finset.mem_univ, true_and]  by_cases h : (0 : Fin 7) ∈ S  · simp [h]  · have hf : is_zero_forcing_set G (Set.univ \ (S : Set (Fin 7))) := by simpa using allowed_forces S h    have he := expose_class S h    change zero_forcing_root_exposed_fort G 1 S ↔ pattern S at he    simp [h, hf, he]end IN919Paththeorem path_seven_blue_leaf_exposure_not_ulc : (let T := SimpleGraph.pathGraph 7; let p : Fin 7 := 1; let b : Fin 7 := 0; let a := fun k : ℕ => {S : Finset (Fin 7) | b ∉ S ∧ S.card = k ∧ is_zero_forcing_set T ((Finset.univ \ S : Finset (Fin 7)) : Set (Fin 7)) ∧ ¬ zero_forcing_root_exposed_fort T p S}.ncard; let c := fun k : ℕ => {S : Finset (Fin 7) | b ∉ S ∧ S.card = k ∧ is_zero_forcing_set T ((Finset.univ \ S : Finset (Fin 7)) : Set (Fin 7)) ∧ zero_forcing_root_exposed_fort T p S}.ncard; 4 * a 4 + 3 * c 4 = 56 ∧ 4 * a 5 + 3 * c 5 = 20 ∧ 4 * a 6 + 3 * c 6 = 3) := by  let aa := fun k : ℕ => {S : Finset (Fin 7) | (0 : Fin 7) ∉ S ∧ S.card = k ∧    is_zero_forcing_set IN919Path.G ((Finset.univ \ S : Finset (Fin 7)) : Set (Fin 7)) ∧    ¬ zero_forcing_root_exposed_fort IN919Path.G 1 S}.ncard  let cc := fun k : ℕ => {S : Finset (Fin 7) | (0 : Fin 7) ∉ S ∧ S.card = k ∧    is_zero_forcing_set IN919Path.G ((Finset.univ \ S : Finset (Fin 7)) : Set (Fin 7)) ∧    zero_forcing_root_exposed_fort IN919Path.G 1 S}.ncard  change 4 * aa 4 + 3 * cc 4 = 56 ∧ 4 * aa 5 + 3 * cc 5 = 20 ∧ 4 * aa 6 + 3 * cc 6 = 3  have ha4 : aa 4 = 11 := (IN919Path.count_a 4).trans IN919Path.count_a4  have hc4 : cc 4 = 4 := (IN919Path.count_c 4).trans IN919Path.count_c4  have ha5 : aa 5 = 2 := (IN919Path.count_a 5).trans IN919Path.count_a5  have hc5 : cc 5 = 4 := (IN919Path.count_c 5).trans IN919Path.count_c5  have ha6 : aa 6 = 0 := (IN919Path.count_a 6).trans IN919Path.count_a6  have hc6 : cc 6 = 1 := (IN919Path.count_c 6).trans IN919Path.count_c6  omega
See it in the graphDiscuss this resultChallenge it