Connected component

On this page
  1. Mathematical statement
  2. Representative formula (exact TeX)
  3. Assumptions
  4. Symbol scope
  5. Intuition, definition, and misconceptions
  6. Adopted derivation guide
  7. Prerequisites
  8. Verification boundary
  9. Next obligation
  10. Same-source structured data

This English edition is an AI candidate and does not yet have an OCME Atlas (GPT-6) Twin closure receipt.

In a finite undirected simple graph, connected components are exactly the vertex equivalence classes defined by the existence of a path.

mko-connected-component · definition · v0.10.0

Mathematical statement

In a finite undirected loop-free simple graph, u and v are connected if a path joins them; length-zero paths ensure reflexivity. The equivalence classes are the maximal connected components, mutually disjoint and covering every vertex. Isolated vertices form singleton components.

Representative formula (exact TeX)

Q(G)

Assumptions

  • Vertex labels 0 through n−1 and the complete undirected simple edge set are explicit.
  • Reachability is checked by complete BFS or DFS, not switched to directed weak or strong connectivity.

Symbol scope

  • Q — connected-component partition
  • G — finite undirected simple graph

Intuition, definition, and misconceptions

Every vertex is connected to itself by a length-zero path.

Complete BFS or DFS from a start vertex finds its exact component.

Components are disjoint and cover all vertices; isolated vertices must not be omitted.

Ignoring isolated vertices, treating one visit order as a component certificate, or mixing directed strong and weak connectivity is invalid.

Adopted derivation guide

Connected components: finding every component of a finite simple graph by complete BFS

The original MKO is retained. The guide has its own append-only revision and verification boundaries, not a new Lean proof.

Prerequisites

Verification boundary

Only complete finite undirected simple graphs are handled; directed, infinite and dynamic graphs are not inferred.

not_formalized

This does not mean the content is false; it means no replayable computational or formal evidence is registered yet.

Next obligation

Add component contraction and graph-algorithm complexity.

Same-source structured data

This page and the interactive view use the same object and existing language edition; this adds no proof or human review.

Canonical MKO JSON · Plain Markdown