APNOutputs/AICollaborator/Graphs/GraphConjecture2.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: Google DeepMind published the AlphaProof Nexus proof artifacts. The pinned repository identifies the mathematical sources and collaborators, including OEIS, Erdős Problems, Gergely Bérczi, and Mario Krenn; those source records remain the authority for individual credit.
Project sources: Pinned AlphaProof Nexus results documentation, AlphaProof Nexus paper, Pinned human-written natural-language proof companions
34 declarations, 0 contain sorry, 0 declared as axioms
Written on the Wall II - Conjecture 2
Reference: E. DeLaVina, Written on the Wall II, Conjectures of Graffiti.pc
Imports (1)
FormalConjectures.Util.ProblemImports
- lemma
WrittenOnTheWallII.GraphConjecture2.exists_max_indep_set_in_nbhdline 33 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,Exists,Finset,And,HasSubset.Subset,Set,SimpleGraph.neighborSet,IsAntichain,SimpleGraph.Adj,Eq,Nat,Finset.card,SimpleGraph.indepNeighborsCardProof uses:
Eq.mpr,Membership.mem,Set.Pairwise,Compl.compl,SimpleGraph.indepNum,SimpleGraph.induce,id,congrArg,funext,forall_congr,implies_congr,SupSet.sSup,setOf,SimpleGraph.IsNIndepSet,Not,Subtype.mk,Eq.substr,congr,Eq.refl,Eq.transand 51 more52 instances, coercions and auxiliary constants left out.
Tactic trace: 20 steps
Open to load the checked before-and-after goal states.
- def
WrittenOnTheWallII.GraphConjecture2.maxIndepSetline 51 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,FinsetProof uses:
Classical.choose,And,HasSubset.Subset,Set,SimpleGraph.neighborSet,IsAntichain,SimpleGraph.Adj,Eq,Nat,Finset.card,SimpleGraph.indepNeighborsCard, WrittenOnTheWallII.GraphConjecture2.exists_max_indep_set_in_nbhd3 instances, coercions and auxiliary constants left out.
- lemma
WrittenOnTheWallII.GraphConjecture2.sum_indepNeighbors_eqline 54 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,Eq,Real,Finset.sum,Finset.univ,SimpleGraph.indepNeighbors,Finset.card, WrittenOnTheWallII.GraphConjecture2.maxIndepSetProof uses:
id,SimpleGraph.indepNeighborsCard,Classical.choose,Finset,And,HasSubset.Subset,Set,SimpleGraph.neighborSet,IsAntichain,Nat, WrittenOnTheWallII.GraphConjecture2.exists_max_indep_set_in_nbhd,Fintype.sum_congr,SimpleGraph.indepNum,SimpleGraph.induce,Classical.indefiniteDescription,Subtype,Subtype.mk,of_eq_true,Eq.trans,Trueand 4 more13 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.sum_card_eq_sum_dinline 60 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,Eq,Real,Finset.sum,Finset.univ,Finset.card, WrittenOnTheWallII.GraphConjecture2.maxIndepSet,Finset.filter,Membership.mem,FinsetProof uses:
of_eq_true,Eq.trans,True,Nat,congr,congrArg,ite,OfNat.ofNat,DecidablePred,Fintype.sum_congr,Finset.card_filter,Finset.sum_comm,Finset.sum_congr,Eq.refl,Inter.inter,Finset.sum_ite_mem,HSMul.hSMul,Finset.univ_inter,Finset.sum_const,mul_oneand 3 more26 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.h_spanning_tree_lemmaline 64 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,SimpleGraph.Connected,Exists,SimpleGraph.Subgraph,And,SimpleGraph.Subgraph.IsSpanning,SimpleGraph.IsTree,SimpleGraph.Subgraph.verts,SimpleGraph.Subgraph.coeProof uses:
LE.le,SimpleGraph.Connected.exists_isTree_le,SimpleGraph.toSubgraph,Exists.intro,And.intro,SimpleGraph.toSubgraph.isSpanning,Eq.mpr,Set.univ,SimpleGraph.IsAcyclic,id,Eq,SimpleGraph.Reachable,SimpleGraph.Adj,SimpleGraph.IsBridge,Sym2.mk,Prod.mk,congr,congrArg,Membership.mem,Setand 49 more31 instances, coercions and auxiliary constants left out.
Tactic trace: 13 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.max_leaf_tree_existsline 77 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,SimpleGraph.Connected,Exists,SimpleGraph.Subgraph,And,SimpleGraph.Subgraph.IsSpanning,SimpleGraph.IsTree,SimpleGraph.Subgraph.verts,SimpleGraph.Subgraph.coe,Eq,Real,SimpleGraph.Ls,Finset.card,Finset.filter,Natand 7 moreProof uses:
setOf,Set.Finite,Set.Nonempty, WrittenOnTheWallII.GraphConjecture2.h_spanning_tree_lemma,Exists.intro,And.intro,Set.image,Set.Finite.image,Set.Nonempty.image,SupSet.sSup,Set.Nonempty.csSup_mem,Eq.refl,Eq.mpr,id,congrArg,Eq.symm25 instances, coercions and auxiliary constants left out.
Tactic trace: 22 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.c_edge_bound_strongline 98 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,LE.le,Real,HAdd.hAdd,Finset.card,Finset.filter,Membership.mem,Finset, WrittenOnTheWallII.GraphConjecture2.maxIndepSet,Finset.univ,Union.union,SimpleGraph.neighborFinsetProof uses:
Disjoint,Eq.mpr,Not,id,Eq,congrArg,propext,Finset.disjoint_filter,IsAntichain,And.left,Classical.choose,And,HasSubset.Subset,Set,SimpleGraph.neighborSet,Nat,SimpleGraph.indepNeighborsCard, WrittenOnTheWallII.GraphConjecture2.exists_max_indep_set_in_nbhd,And.right,Classical.choose_specand 14 more44 instances, coercions and auxiliary constants left out.
Tactic trace: 26 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.tree_leaves_ge_degreesline 125 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,SimpleGraph.Subgraph,SimpleGraph.IsTree,SimpleGraph.Subgraph.verts,SimpleGraph.Subgraph.coe,SimpleGraph.Subgraph.Adj,GE.ge,Real,Finset.card,Finset.filter,Eq,Nat,SimpleGraph.Subgraph.degree,Membership.mem,Setand 5 moreProof uses:
Finset,Ne,Union.union,Eq.mpr,id,congrArg,Not,Finset.filter_union_filter_neg_eq,Eq.refl,Disjoint,Finset.disjoint_filter_filter_neg,Finset.sum,HMul.hMul,Sym2,SimpleGraph.edgeFinset,Fintype.card,SimpleGraph.IsTree.card_edgeFinset,Finset.univ,SimpleGraph.degree,SimpleGraph.sum_degrees_eq_twice_card_edgesand 168 more157 instances, coercions and auxiliary constants left out.
Tactic trace: 62 steps
Open to load the checked before-and-after goal states.
- def
WrittenOnTheWallII.GraphConjecture2.DoubleStarline 159 sourceno axioms what this means
Statement uses:
SimpleGraph,SimpleGraph.AdjProof uses:
SimpleGraph.mk,Or,And,Eq,Ne,Not2 instances, coercions and auxiliary constants left out.
Tactic trace: 64 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.DoubleStar_leline 199 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,SimpleGraph.Adj,LE.le, WrittenOnTheWallII.GraphConjecture2.DoubleStarProof uses:
And,Eq,Or,Ne,Not,Eq.mpr,id,congrArg,And.left,And.right,SimpleGraph.symm2 instances, coercions and auxiliary constants left out.
Tactic trace: 20 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.DoubleStar_isAcyclicline 210 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,SimpleGraph.Adj,SimpleGraph.IsAcyclic, WrittenOnTheWallII.GraphConjecture2.DoubleStarProof uses:
id,SimpleGraph.Walk,SimpleGraph.mk,Or,And,Eq,Ne,Not,HEq,SimpleGraph.Walk.IsCycle,SimpleGraph.Walk.nil,False.elim,False,Eq.mp,Eq.symm,eq_of_heq,SimpleGraph.Walk.cons,SimpleGraph.Adj.ne,rfl,LE.le.not_gtand 49 more28 instances, coercions and auxiliary constants left out.
Tactic trace: 28 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.exists_maximal_acyclicline 228 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,LE.le,SimpleGraph.IsAcyclic,Exists,And,EqProof uses:
Membership.mem,Set,setOf,Nat,Set.ncard,Set.exists_max_image,Exists.intro,And.intro,le_refl,And.elim,WrittenOnTheWallII.GraphConjecture2.exists_maximal_acyclic.match_1,le_antisymm,And.right,Eq.ge,Set.eq_of_subset_of_ncard_le,Set.setOf_subset_setOf_of_imp,Mathlib.Tactic.GCongr.and_right_mono,le_imp_le_of_le_of_le,LE.le.trans,Set.toFiniteand 1 more20 instances, coercions and auxiliary constants left out.
Tactic trace: 6 steps
Open to load the checked before-and-after goal states.
- def
WrittenOnTheWallII.GraphConjecture2.AddEdgeline 232 sourceno axioms what this means
Statement uses:
SimpleGraph,NeProof uses:
SimpleGraph.mk,Or,SimpleGraph.Adj,And,Eq2 instances, coercions and auxiliary constants left out.
Tactic trace: 16 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.AddEdge_leline 247 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,Ne,LE.le,SimpleGraph.Adj, WrittenOnTheWallII.GraphConjecture2.AddEdgeProof uses:
Or,And,Eq,SimpleGraph.symm5 instances, coercions and auxiliary constants left out.
Tactic trace: 8 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.T_le_AddEdgeline 255 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,Ne,LE.le, WrittenOnTheWallII.GraphConjecture2.AddEdgeProof uses:
SimpleGraph.Adj,Or.inl,Or,And,Eq1 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.Reachable_AddEdge_walkline 260 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,Ne,SimpleGraph.Walk, WrittenOnTheWallII.GraphConjecture2.AddEdge,Or,SimpleGraph.Reachable,AndProof uses:
SimpleGraph.Walk.rec,Or.inl,SimpleGraph.Reachable.refl,SimpleGraph.Adj,Eq,SimpleGraph.Reachable.trans,SimpleGraph.Adj.reachable,Or.inr,HEq,Eq.refl,And.intro,HEq.refl4 instances, coercions and auxiliary constants left out.
Tactic trace: 55 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.Reachable_AddEdgeline 302 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,Ne,SimpleGraph.Reachable, WrittenOnTheWallII.GraphConjecture2.AddEdge,Or,AndProof uses:
SimpleGraph.Walk, WrittenOnTheWallII.GraphConjecture2.Reachable_AddEdge_walk1 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.AddEdge_isAcyclicline 307 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,Ne,SimpleGraph.IsAcyclic,Not,SimpleGraph.Reachable, WrittenOnTheWallII.GraphConjecture2.AddEdgeProof uses:
Eq.mpr,Sym2,Membership.mem,Set,SimpleGraph.edgeSet,SimpleGraph.IsBridge,id,Eq,congrArg,propext,SimpleGraph.isAcyclic_iff_forall_edge_isBridge,Sym2.ind,Sym2.mk,Prod.mk,And,SimpleGraph.Adj,SDiff.sdiff,SimpleGraph.fromEdgeSet,Singleton.singleton,SimpleGraph.isBridge_iffand 33 more13 instances, coercions and auxiliary constants left out.
Tactic trace: 195 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.walk_leaves_Cline 440 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,SimpleGraph.Reachable,Not,Exists,And,SimpleGraph.AdjProof uses:
Eq.mpr,Eq.refl,by_contra,Function.comp,False,SimpleGraph.Walk,SimpleGraph.Reachable.elim,SimpleGraph.Walk.rec,id1 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.reachable_edgeline 445 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,SimpleGraph.Connected,Not,Exists,And,SimpleGraph.Adj,SimpleGraph.ReachableProof uses:
Decidable.byContradiction,Classical.propDecidable,SimpleGraph.Connected.mk,Eq.mp,Eq.trans,binderNameHint,forall_congr,SimpleGraph.Connected.preconnected,SimpleGraph.Reachable.refl,WrittenOnTheWallII.GraphConjecture2.reachable_edge.match_1, WrittenOnTheWallII.GraphConjecture2.walk_leaves_C,Exists.intro,And.intro,SimpleGraph.Reachable.trans7 instances, coercions and auxiliary constants left out.
Tactic trace: 14 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.maximal_acyclic_is_connectedline 462 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,SimpleGraph.Connected,LE.le,SimpleGraph.IsAcyclic,EqProof uses:
Decidable.byContradiction,Classical.propDecidable,SimpleGraph.Adj,Not,WrittenOnTheWallII.GraphConjecture2.maximal_acyclic_is_connected.match_1,Exists,And,SimpleGraph.Reachable,False, WrittenOnTheWallII.GraphConjecture2.reachable_edge,Ne,SimpleGraph.Adj.ne, WrittenOnTheWallII.GraphConjecture2.AddEdge, WrittenOnTheWallII.GraphConjecture2.AddEdge_le, WrittenOnTheWallII.GraphConjecture2.AddEdge_isAcyclic, WrittenOnTheWallII.GraphConjecture2.T_le_AddEdge,Or.inr,Or,Or.inl,And.introand 4 more3 instances, coercions and auxiliary constants left out.
Tactic trace: 14 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.exists_optimal_treeline 479 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,SimpleGraph.Connected,Exists,SimpleGraph.Subgraph,And,SimpleGraph.Subgraph.IsSpanning,SimpleGraph.IsTree,SimpleGraph.Subgraph.verts,SimpleGraph.Subgraph.coe,SimpleGraph.Subgraph.Adj,Membership.mem,Finset,SimpleGraph.neighborFinset,SDiff.sdiffProof uses: WrittenOnTheWallII.GraphConjecture2.DoubleStar,
LE.le, WrittenOnTheWallII.GraphConjecture2.DoubleStar_le,SimpleGraph.IsAcyclic, WrittenOnTheWallII.GraphConjecture2.DoubleStar_isAcyclic,WrittenOnTheWallII.GraphConjecture2.exists_optimal_tree.match_1,Eq, WrittenOnTheWallII.GraphConjecture2.exists_maximal_acyclic, WrittenOnTheWallII.GraphConjecture2.maximal_acyclic_is_connected,SimpleGraph.toSubgraph,Exists.intro,Eq.mpr,id,SimpleGraph.Reachable,Subtype.mk,Set,Iff.mpr,True,Iff.of_eq,Set.univand 42 more29 instances, coercions and auxiliary constants left out.
Tactic trace: 26 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.union_neighbor_boundline 500 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,SimpleGraph.Connected,LE.le,Real,Finset.card,Union.union,Finset,SimpleGraph.neighborFinset,HAdd.hAdd,SimpleGraph.Ls,OfNat.ofNat,NatProof uses:
Exists,SimpleGraph.Subgraph,And,SimpleGraph.Subgraph.IsSpanning,SimpleGraph.IsTree,SimpleGraph.Subgraph.verts,SimpleGraph.Subgraph.coe,SimpleGraph.Subgraph.Adj,Membership.mem,SDiff.sdiff, WrittenOnTheWallII.GraphConjecture2.exists_optimal_tree,GE.ge,Finset.filter,Eq,SimpleGraph.Subgraph.degree,Set,Classical.propDecidable,Set.toFinset,HSub.hSub, WrittenOnTheWallII.GraphConjecture2.tree_leaves_ge_degrees and 97 more104 instances, coercions and auxiliary constants left out.
Tactic trace: 19 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.c_edge_Ls_boundline 514 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,SimpleGraph.Connected,LE.le,Real,HAdd.hAdd,Finset.card,Finset.filter,Membership.mem,Finset, WrittenOnTheWallII.GraphConjecture2.maxIndepSet,Finset.univ,SimpleGraph.Ls,OfNat.ofNat,NatProof uses:
Union.union,SimpleGraph.neighborFinset, WrittenOnTheWallII.GraphConjecture2.c_edge_bound_strong, WrittenOnTheWallII.GraphConjecture2.union_neighbor_bound,le_of_not_gt,LT.lt,Mathlib.Tactic.Linarith.lt_irrefl,Eq.mp,HSub.hSub,congrArg,Mathlib.Tactic.Ring.of_eq,Mathlib.Tactic.Ring.add_congr,Int.rawCast,Int.negOfNat,HMul.hMul,HPow.hPow,Nat.rawCast,Mathlib.Tactic.Ring.instCommSemiringNat,Mathlib.Tactic.Ring.sub_congr,Mathlib.Tactic.Ring.atom_pfand 30 more67 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.c_edge_boundline 520 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,LE.le,Real,HAdd.hAdd,Finset.card,Finset.filter,Membership.mem,Finset, WrittenOnTheWallII.GraphConjecture2.maxIndepSet,Finset.univ,Fintype.cardProof uses:
Disjoint,Eq.mpr,Not,id,Eq,congrArg,propext,Finset.disjoint_filter,IsAntichain,And.left,Classical.choose,And,HasSubset.Subset,Set,SimpleGraph.neighborSet,Nat,SimpleGraph.indepNeighborsCard, WrittenOnTheWallII.GraphConjecture2.exists_max_indep_set_in_nbhd,And.right,Classical.choose_specand 9 more37 instances, coercions and auxiliary constants left out.
Tactic trace: 10 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.c_deg_boundline 533 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,LE.le,Real,Finset.card,Finset.filter,Membership.mem,Finset, WrittenOnTheWallII.GraphConjecture2.maxIndepSet,Finset.univ,SimpleGraph.degreeProof uses:
HasSubset.Subset,SimpleGraph.neighborFinset,Set,Classical.choose,And,SimpleGraph.neighborSet,IsAntichain,Eq,Nat,SimpleGraph.indepNeighborsCard, WrittenOnTheWallII.GraphConjecture2.exists_max_indep_set_in_nbhd,And.left,Classical.choose_spec,And.right,Eq.mp,congrArg,propext,Finset.mem_filter,Eq.mpr,idand 5 more29 instances, coercions and auxiliary constants left out.
Tactic trace: 8 steps
Open to load the checked before-and-after goal states.
- def
WrittenOnTheWallII.GraphConjecture2.S_heavyline 544 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,FinsetProof uses:
Finset.filter,LT.lt,Real,HAdd.hAdd,HDiv.hDiv,SimpleGraph.Ls,OfNat.ofNat,Finset.card,Membership.mem, WrittenOnTheWallII.GraphConjecture2.maxIndepSet,Finset.univ15 instances, coercions and auxiliary constants left out.
- lemma
WrittenOnTheWallII.GraphConjecture2.S_heavy_is_indepline 547 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,SimpleGraph.Connected,SimpleGraph.IsIndepSet,Finset, WrittenOnTheWallII.GraphConjecture2.S_heavyProof uses:
Membership.mem,Set,Ne,Eq.mp,congrArg,propext,Finset.mem_coe,LT.lt,Real,HAdd.hAdd,HDiv.hDiv,SimpleGraph.Ls,OfNat.ofNat,Finset.card,Finset.filter, WrittenOnTheWallII.GraphConjecture2.maxIndepSet,Finset.univ,And.right,And,Finset.mem_filterand 83 more86 instances, coercions and auxiliary constants left out.
Tactic trace: 9 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.S_heavy_inter_boundline 559 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,SimpleGraph.Connected,LE.le,Real,Finset.card,Inter.inter,Finset,SimpleGraph.neighborFinset, WrittenOnTheWallII.GraphConjecture2.S_heavy,HAdd.hAdd,HDiv.hDiv,SimpleGraph.Ls,OfNat.ofNat,NatProof uses:
dite,Eq,EmptyCollection.emptyCollection,Iff.mpr,Finset.card_eq_zero,cast,Eq.symm,Eq.trans,congrArg,Nat.cast_zero,Eq.mpr,SupSet.sSup,Set.image,SimpleGraph.Subgraph,Finset.filter,SimpleGraph.Subgraph.degree,Membership.mem,Set,SimpleGraph.Subgraph.verts,Classical.propDecidableand 141 more152 instances, coercions and auxiliary constants left out.
Tactic trace: 38 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.fms_algebraic_sumline 587 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,Real,LE.le,OfNat.ofNat,SimpleGraph.degree,HAdd.hAdd,HMul.hMul,Nat,Finset,SimpleGraph.IsIndepSet,Iff,Membership.mem,LT.lt,Not,Finset.cardand 5 moreProof uses:
SDiff.sdiff,Eq,Union.union,of_eq_true,Eq.trans,HasSubset.Subset,True,congrArg,Finset.union_sdiff_self_eq_union,eq_true,True.intro,Disjoint,Eq.mpr,Eq.refl,Finset.disjoint_sdiff,forall_congr,implies_congr,And,congr,propextand 156 more172 instances, coercions and auxiliary constants left out.
Tactic trace: 55 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.fms_combinatorial_coreline 638 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,SimpleGraph.Connected,LE.le,Real,Finset.sum,Finset.univ,Finset.card,Finset.filter,Membership.mem,Finset, WrittenOnTheWallII.GraphConjecture2.maxIndepSet,HMul.hMul,Fintype.card,HAdd.hAdd,HDiv.hDivand 3 moreProof uses: WrittenOnTheWallII.GraphConjecture2.S_heavy,
SimpleGraph.degree, WrittenOnTheWallII.GraphConjecture2.c_deg_bound, WrittenOnTheWallII.GraphConjecture2.c_edge_Ls_bound,Eq,Trans.trans,mul_add,Mathlib.Tactic.Ring.of_eq,Nat.rawCast,HPow.hPow,Mathlib.Tactic.Ring.instCommSemiringNat,Mathlib.Meta.NormNum.instAddMonoidWithOne',Mathlib.Tactic.Ring.add_congr,Mathlib.Tactic.Ring.mul_congr,NNRat.rawCast,Mathlib.Tactic.Ring.cast_pos,Mathlib.Meta.NormNum.isNat_ofNat,Eq.refl,Mathlib.Meta.NormNum.instAtLeastTwo,Mathlib.Tactic.Ring.div_congrand 109 more130 instances, coercions and auxiliary constants left out.
Tactic trace: 28 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.fms_lemmaline 670 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,SimpleGraph.Connected,LE.le,Real,Finset.sum,Finset.univ,SimpleGraph.indepNeighbors,HMul.hMul,Fintype.card,HAdd.hAdd,HDiv.hDiv,SimpleGraph.Ls,OfNat.ofNat,NatProof uses:
Eq,Finset.card, WrittenOnTheWallII.GraphConjecture2.maxIndepSet, WrittenOnTheWallII.GraphConjecture2.sum_indepNeighbors_eq,Finset.filter,Membership.mem,Finset, WrittenOnTheWallII.GraphConjecture2.sum_card_eq_sum_din,Eq.mpr,id,congrArg, WrittenOnTheWallII.GraphConjecture2.fms_combinatorial_core36 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
WrittenOnTheWallII.GraphConjecture2.l_le_Ls_div_2_plus_1line 677 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,SimpleGraph.Connected,LE.le,Real,SimpleGraph.l,HAdd.hAdd,HDiv.hDiv,SimpleGraph.Ls,OfNat.ofNat,NatProof uses:
Eq,Finset.sum,Finset.univ,SimpleGraph.indepNeighbors,Fintype.card,rfl,HMul.hMul, WrittenOnTheWallII.GraphConjecture2.fms_lemma,LT.lt,Ne,Fintype.card_ne_zero,Iff.mpr,Nat.cast_pos,Nat.pos_of_ne_zero,Eq.mpr,id,congrArg,div_mul_cancel₀,ne_of_gt,Trans.transand 5 more69 instances, coercions and auxiliary constants left out.
Tactic trace: 12 steps
Open to load the checked before-and-after goal states.
- theorem
WrittenOnTheWallII.GraphConjecture2.conjecture2Graffiti.pc Conjecture 2: average local independence forces many spanning-tree leaves line 704 sourceSource documentation
WOWII Conjecture 2
For a simple connected graph
G,Ls(G) ≥ 2 · (l(G) - 1)wherel(G)is the average independence number of the neighbourhoods of the vertices ofG.L4DEL explanation
The key idea is to look at the degrees of the vertices on the right side
We prove Graffiti.pc Conjecture 2, a 1996 conjecture listed as open
In every finite connected simple graph, the maximum number
Ls(G)of leaves in a spanning tree is at least2(l(G)-1), wherel(G)is the average, over vertices, of the largest independent set inside each open neighbourhood.- Choose a maximum independent set in every vertex neighbourhood and let
c(x)count how many of those chosen sets containx; double counting identifies the average ofcwithl(G). - For every edge
xy, independence and a spanning-tree construction boundc(x)+c(y)byLs(G)+2. - Vertices with
c(x) > Ls(G)/2+1form an independent heavy set, and each light vertex has only boundedly many heavy neighbours. - A discharging inequality moves each heavy vertex's excess to light neighbours without exceeding their slack, proving
l(G) ≤ Ls(G)/2+1and hence the claimed result.
Sources and attribution: Pinned Lean source (0647711a7118), George Tsoukalas et al., AlphaProof Nexus paper (Appendix I), Independent proof by Yanmohan Wang, Tianyue Dai, and Rui Tong (2026)
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Nontrivial,SimpleGraph,SimpleGraph.Connected,LE.le,Real,HMul.hMul,OfNat.ofNat,Nat,HSub.hSub,SimpleGraph.l,SimpleGraph.Ls,Classical.propDecidable,SimpleGraph.AdjProof uses:
Eq,rfl,HAdd.hAdd,HDiv.hDiv, WrittenOnTheWallII.GraphConjecture2.l_le_Ls_div_2_plus_1,le_of_not_gt,LT.lt,Mathlib.Tactic.Linarith.lt_irrefl,Eq.mp,inferInstance,AddMonoidWithOne,Mathlib.Meta.NormNum.instAtLeastTwo,congrArg,Mathlib.Tactic.Ring.of_eq,Mathlib.Tactic.Ring.add_congr,Int.rawCast,Int.negOfNat,HPow.hPow,Nat.rawCast,Mathlib.Tactic.Ring.instCommSemiringNatand 59 more90 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
theorem conjecture2 (G : SimpleGraph α) (h : G.Connected) : 2 * (l G - 1) ≤ Ls G := by …
- Choose a maximum independent set in every vertex neighbourhood and let