AFTD Auto-Formalizing Theoretical Domains

edge_max_clique_order_le_card

theoremverified

For every edge e ∈ G.edgeSet of a finite simple graph G on vertex type V, the maximum order of a clique containing e is at most the cardinality of V (Fintype.card V).

Statement

theorem edge_max_clique_order_le_card {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) (e : Sym2 V) (he : e ∈ G.edgeSet) :
    edge_max_clique_order G e ≤ Fintype.card V
Source
scout/2611-30029-an-exact-vertex-localization-of-zykov-s-theorem.md:211
Verified
25 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • edge_max_clique_orderFor a finite simple graph G and an edge e represented as an unordered pair in Sym2 V, edge_max_clique_order G e is the maximum cardinality…

Read back from the Lean

For any finite type $V$ with decidable equality, any simple graph $G$ on $V$, and any unordered pair of vertices $e \in \mathrm{Sym2}(V)$ that is an edge of $G$ ($e \in G.\mathrm{edgeSet}$), the maximum cardinality of a clique in $G$ containing the endpoints of $e$ (edge_max_clique_order G e) is at most the number of vertices in $V$ (Fintype.card V).

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

The proof, explained

By definition, the maximum clique order containing an edge $e$ is the supremum of the cardinalities of all cliques that include $e$. By `Finset.sup_le`, bounding this supremum by the number of vertices $|V|$ reduces to showing that every such clique has at most $|V|$ vertices. This holds immediately because the cardinality of any subset of a finite type $V$ cannot exceed $|V|$.

  1. To bound the maximum clique order containing $e$ by $|V|$, it suffices to show that every such clique has cardinality at most $|V|$.

    By definition, `edge_max_clique_order G e` is the supremum of the cardinalities of all vertex subsets $s \\subseteq V$ that form cliques in $G$ containing the edge $e$. Applying `Finset.sup_le` reduces bounding this supremum by $|V|$ to showing that each individual candidate clique $s$ has $|s| \\le |V|$. Line 5 formally references the hypothesis `he` without affecting the goal.

    lines 5–7

    uses Finset.sup_le

      have _ := he
      unfold edge_max_clique_order
      apply Finset.sup_le
  2. Every clique $s$ containing $e$ has cardinality at most $|V|$.

    Let $s$ be any subset belonging to the family of cliques containing $e$. Regardless of the clique condition, the cardinality of any subset $s$ of a finite type $V$ is bounded above by $|V|$ (`Fintype.card V`) by `s.card_le_univ`.

    lines 8–9

    uses s.card_le_univ

      intro s _
      exact s.card_le_univ
Finset.sup_le
The supremum of a function over a finite set is at most $a$ if each value on that set is at most $a$.
s.card_le_univ
The cardinality of any finite subset $s$ of a finite type $V$ is at most the cardinality of $V$ (the size of the universal set).

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

/-- The maximum order of a clique containing an edge is at most the number of vertices. -/theorem edge_max_clique_order_le_card {V : Type*} [Fintype V] [DecidableEq V]    (G : SimpleGraph V) (e : Sym2 V) (he : e ∈ G.edgeSet) :    edge_max_clique_order G e ≤ Fintype.card V := by  have _ := he  unfold edge_max_clique_order  apply Finset.sup_le  intro s _  exact s.card_le_univ
See it in the graphDiscuss this resultChallenge it