Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

23.5 Discrete Ricci Curvature: Why Are Problems Hard?

Article Guide

In the previous two articles, we proved:

  • Bounded-degree graphs → polynomial growth
  • Exponential growth → infinite dimension

But these are just “results”, haven’t answered “why”: Why do some configuration graphs lead to polynomial growth, while others lead to exponential growth?

This article introduces discrete Ricci curvature , which characterizes “divergence or contraction of paths in local regions”. We will prove:

  1. Non-Negative Curvature → Polynomial Growth (Theorem 4.1): If , then ;
  2. Negative Curvature → Exponential Growth (Theorem 4.2): If , then .

This establishes quantitative connection between “curvature–problem difficulty”: Positive curvature corresponds to path convergence (easy to find optimal solution), negative curvature corresponds to path divergence (hard to exhaust).

Key Insight: Problem’s “difficulty” is not an attribute of algorithms, but a geometric attribute (curvature) of configuration space. P-class problems correspond to “non-negative curvature space”, NP-hard problems correspond to “negative curvature space”.


1. Why Do We Need Curvature? Deep Reasons from Degree to Geometry

1.1 Remaining Questions from Previous Article

In the previous article, we proved:

  • Theorem: If graph’s degree is bounded and edge weights are bounded, then (polynomial);
  • Theorem: If , then (infinite dimension).

Remaining Questions:

  1. “Bounded degree” is only a sufficient condition, not necessary—some graphs with unbounded degree still have polynomial growth;
  2. “Unbounded degree” also cannot directly imply exponential growth—need finer geometric characterization;
  3. Core Question: What is the essential geometric property determining volume growth?

1.2 Everyday Analogy: From “Number of Intersections” to “Road Curvature”

Imagine exploring in a city:

  • Degree corresponds to “number of roads connected at each intersection”:

    • If each intersection connects at most 4 roads (bounded degree), then exploration range is limited;
    • But this doesn’t tell you “whether roads are straight or curved”.
  • Curvature corresponds to “degree of road curvature”:

    • Positive Curvature (like sphere): Roads curve inward, different paths converge together;
    • Zero Curvature (like plane): Roads are straight, parallel lines remain parallel;
    • Negative Curvature (like saddle surface): Roads curve outward, different paths diverge.

Key Insight:

  • In positive curvature space, even if degree is large, volume growth is still controlled (because paths converge);
  • In negative curvature space, even if degree is bounded, volume grows exponentially (because paths diverge).

Therefore, curvature more essentially determines volume growth than degree.

1.3 From Continuous to Discrete: Generalization of Ricci Curvature

In continuous Riemann geometry, Ricci curvature characterizes “average contraction or divergence of geodesics”:

  • Positive Ricci Curvature: Geodesics converge inward (e.g., sphere);
  • Negative Ricci Curvature: Geodesics diverge outward (e.g., hyperboloid).

Bishop-Gromov Comparison Theorem (continuous case):

  • If , then volume growth controlled by polynomial: ;
  • If , then volume grows exponentially: .

In discrete complexity graphs, we need a discrete version of Ricci curvature, which can:

  1. Be defined on discrete graphs (not depending on differential structure);
  2. Characterize “divergence or contraction of local paths”;
  3. Control volume growth (discrete version of Bishop-Gromov theorem).

2. Local Transition Distribution: From Edges to Probability Measures

2.1 Definition: Local One-Step Transition Distribution

On complexity graph , we want to characterize “distribution reached after random walk one step from vertex ”.

Definition 2.1 (Local One-Step Transition Distribution, from euler-gls-info/02-discrete-complexity-geometry.md Definition 4.1)

On complexity graph , define local one-step transition distribution from as:

where: is fixed scale parameter.

Explanation:

  • has preference for “low-cost edges”: smaller edge weight , larger ;
  • is normalized probability distribution: ;
  • controls “preference strength”:
    • When is large, only choose lowest-cost edges;
    • When is small, uniformly choose all edges.

Everyday Analogy:

  • Imagine you’re at intersection, need choose a road to continue:
    • Each road has a “travel time” (edge weight);
    • You prefer choosing “short travel time” roads, but also have certain probability to choose other roads;
    • is “probability of choosing road ”.

2.2 Example: Transition Distribution of Two-Dimensional Lattice Graph

Example 2.2 (Two-Dimensional Lattice Graph)

Consider two-dimensional integer lattice , each vertex has 4 neighbors (up, down, left, right), all edge weights are 1.

Transition distribution from vertex :

Normalization:

Observation: Since all edge weights are same, transition distribution is uniform distribution (each neighbor probability 1/4).

2.3 Diagram: Visualization of Transition Distribution

graph TD
    x["Vertex x"]
    y1["Neighbor y_1<br/>w=1"]
    y2["Neighbor y_2<br/>w=2"]
    y3["Neighbor y_3<br/>w=3"]

    x -->|"Probability m_x(y_1)"| y1
    x -->|"Probability m_x(y_2)"| y2
    x -->|"Probability m_x(y_3)"| y3

    style x fill:#e1f5ff
    style y1 fill:#e1ffe1
    style y2 fill:#fff4e1
    style y3 fill:#ffe1e1

Explanation:

  • Vertex has 3 neighbors;
  • Edge weights are 1, 2, 3 respectively;
  • Transition probabilities:

3. Wasserstein Distance: “Transport Cost” Between Measures

3.1 Definition: First-Order Wasserstein Distance

How to measure “distance” between two probability distributions and ?

Definition 3.1 (First-Order Wasserstein Distance)

For two probability measures on , define first-order Wasserstein distance as:

where infimum is over all couplings (coupling) , i.e., satisfying:

Intuitive Understanding:

  • can be understood as “mass at position ”;
  • We want to “transport” mass of to positions of ;
  • represents “mass transported from position to position ”;
  • is cost of transporting unit mass;
  • is total cost of “optimal transport scheme”.

Everyday Analogy:

  • Imagine you have sand distributed at positions , need rearrange into distribution ;
  • Cost of moving unit sand distance is ;
  • Wasserstein distance is total cost of “most economical sand stacking scheme”.

3.2 Kantorovich Dual Form

Wasserstein distance has an equivalent dual form, very useful in theoretical proofs:

Proposition 3.2 (Kantorovich Dual, from euler-gls-info/02-discrete-complexity-geometry.md Appendix B.1)

where is set of all 1-Lipschitz functions, i.e., satisfying:

Intuitive Understanding:

  • Dual form says: Wasserstein distance = “largest Lipschitz functional difference”;
  • This is very useful in proofs, because can avoid directly handling complex couplings.

3.3 Example: Wasserstein Distance of Two-Point Distribution

Example 3.3 (Two-Point Distribution)

Consider two Dirac distributions:

  • (all mass concentrated at point );
  • (all mass concentrated at point ).

Then:

Proof: Only transport scheme is “transport all mass from point to point ”, cost is . □


4. Definition of Discrete Ricci Curvature: From Wasserstein to Curvature

4.1 Definition: Ricci Curvature on Complexity Graph

Now we can define discrete Ricci curvature.

Definition 4.1 (Discrete Ricci Curvature, from euler-gls-info/02-discrete-complexity-geometry.md Definition 4.2)

For , define discrete Ricci curvature from to as:

Intuitive Understanding:

  • : Complexity distance between vertices and (shortest path cost);
  • : Wasserstein distance between two distributions after random walk one step from and ;
  • If , then : Path convergence (positive curvature);
  • If , then : Path divergence (negative curvature).

Symbol Interpretation:

  • : Non-negative curvature, paths converge, volume growth controlled;
  • : Zero curvature, paths parallel, linear growth;
  • : Negative curvature, paths diverge, exponential growth.

Everyday Analogy:

  • Positive Curvature (sphere): Two people start from different points on equator, walk north, will meet at north pole (paths converge);
  • Zero Curvature (plane): Two people walk along parallel lines, always maintain same distance (paths parallel);
  • Negative Curvature (saddle surface): Two people start from different points at center, will walk farther apart (paths diverge).

4.2 Example: Curvature of Two-Dimensional Lattice Graph

Example 4.2 (Curvature of Two-Dimensional Lattice Graph)

Consider two-dimensional integer lattice , all edge weights are 1. Calculate curvature between adjacent vertices and .

  1. Complexity Distance: (one step reachable).

  2. Transition Distributions:

    • uniformly distributed on 4 neighbors , each probability 1/4;
    • uniformly distributed on 4 neighbors , each probability 1/4.
  3. Wasserstein Distance:

    • Two distributions have 1 common support point: (0,0) and (1,0);
    • Mass to “transport”: 3/4 (from 3 neighbors on one side to 3 neighbors on other side);
    • Average transport distance: approximately 1 (adjacent lattice sites);
    • .
  4. Curvature:

Conclusion: Two-dimensional lattice graph’s curvature is approximately 0 (zero curvature), corresponding to plane geometry.

4.3 Diagram: Comparison of Positive, Zero, and Negative Curvature

graph TD
    subgraph "Positive Curvature: Path Convergence"
        x1["x"] -->|"One Step"| a1["a"]
        x1 --> b1["b"]
        y1["y"] -->|"One Step"| a1
        y1 --> c1["c"]
        a1 -.->|"Closer"| a1
        style a1 fill:#e1ffe1
    end

    subgraph "Zero Curvature: Paths Parallel"
        x2["x"] -->|"One Step"| a2["a"]
        x2 --> b2["b"]
        y2["y"] -->|"One Step"| c2["c"]
        y2 --> d2["d"]
        style a2 fill:#fff4e1
        style c2 fill:#fff4e1
    end

    subgraph "Negative Curvature: Path Divergence"
        x3["x"] -->|"One Step"| a3["a"]
        x3 --> b3["b"]
        y3["y"] -->|"One Step"| c3["c"]
        y3 --> d3["d"]
        a3 -.->|"Farther"| c3
        style a3 fill:#ffe1e1
        style c3 fill:#ffe1e1
    end

    style x1 fill:#e1f5ff
    style y1 fill:#e1f5ff
    style x2 fill:#e1f5ff
    style y2 fill:#e1f5ff
    style x3 fill:#e1f5ff
    style y3 fill:#e1f5ff

Explanation:

  • Positive Curvature: From and walk one step, Wasserstein distance between two distributions less than (paths converge);
  • Zero Curvature: Wasserstein distance equals (paths parallel);
  • Negative Curvature: Wasserstein distance greater than (paths diverge).

5. Curvature and Volume Growth: Core Theorems

5.1 Theorem: Non-Negative Curvature → Polynomial Growth

Theorem 5.1 (Polynomial Growth Under Non-Negative Curvature, from euler-gls-info/02-discrete-complexity-geometry.md Theorem 4.4)

Assume complexity graph is locally finite directed graph, its symmetric version has bounded degree, and there exists , such that for all adjacent :

Then there exist constants and , such that for all :

In particular, .

Proof Strategy (from euler-gls-info/02-discrete-complexity-geometry.md Appendix B.2):

  1. Meaning of Curvature Lower Bound:

    • If , then ;
    • This means “from and random walk one step, distance between two distributions shrinks to at most times original”.
  2. Contraction Property of Random Walk:

    • Let be transition operator (defined by );
    • For any two distributions , we have:
    • This shows random walk contracts distributions each step.
  3. Control of Volume Growth:

    • Contraction property means “random walk from starting point doesn’t spread quickly”;
    • Use discrete version of Bishop-Gromov comparison theorem (similar to continuous case);
    • Can prove complexity ball volume grows at most polynomially: .

QED. □

Everyday Analogy:

  • In positive curvature space (e.g., sphere), even if you can walk in any direction, but because “space curves inward”, range you can reach is limited (polynomial growth).

5.2 Theorem: Negative Curvature → Exponential Growth

Theorem 5.2 (Exponential Growth Under Strict Negative Curvature, from euler-gls-info/02-discrete-complexity-geometry.md Theorem 4.5)

Assume there exist and , such that for all point pairs satisfying :

Then there exist constants and , such that for all :

Proof Strategy (from euler-gls-info/02-discrete-complexity-geometry.md Appendix B.3):

  1. Meaning of Curvature Upper Bound:

    • If , then ;
    • This means “from and random walk one step, distance between two distributions expands to at least times original”.
  2. Divergence Property of Random Walk:

    • For any two distributions , we have:
    • This shows random walk diverges distributions each step.
  3. Construction of Tree-Like Expanding Subgraph:

    • Using divergence property, can find a “tree-like expansion” subgraph in complexity graph;
    • In this subgraph, from , each fixed budget increase , reachable points multiply by constant factor ;
    • Therefore (exponential growth).

QED. □

Everyday Analogy:

  • In negative curvature space (e.g., saddle surface), because “space curves outward”, different paths diverge quickly, range you can reach grows exponentially.

5.3 Comparison Table: Curvature and Volume Growth

Curvature Wasserstein DistanceRandom Walk BehaviorVolume Growth Complexity DimensionTypical Space
Contraction (Convergence)Sphere, Positive Curvature Manifold
ParallelPlane, Euclidean Space
DivergenceHyperboloid, Negative Curvature Manifold

6. Calculation Methods of Curvature: How to Calculate in Practical Problems

6.1 Step 1: Calculate Transition Distribution

Given complexity graph and vertex :

  1. Find all neighbors of : ;
  2. Calculate weights ;
  3. Normalize: .

6.2 Step 2: Calculate Wasserstein Distance

For two discrete distributions and :

  1. Simplified Case (non-overlapping support):

    • If supports of and completely non-overlapping, then:
  2. General Case:

    • Need solve optimal transport problem (linear programming);
    • On small-scale graphs can use simplex method or network flow algorithms.

6.3 Step 3: Calculate Curvature

6.4 Example: Curvature of Complete Binary Tree

Example 6.1 (Negative Curvature of Complete Binary Tree)

Consider complete binary tree, each node has 2 child nodes, all edge weights are 1.

  1. Choose Two Adjacent Vertices: Root node and its left child ;
  2. Complexity Distance: ;
  3. Transition Distributions:
    • uniformly distributed on left child and right child : ;
    • uniformly distributed on root and its two child nodes : .
  4. Wasserstein Distance:
    • Common support: Only overlap between (root) and (left child);
    • Mass to transport: From ’s to ’s ;
    • Transport distance: (two steps);
    • (simplified estimate).
  5. Curvature:

Observation: Complete binary tree’s curvature is close to 0 or slightly negative, which explains why it has exponential growth.


7. Correspondence Between Curvature and Problem Difficulty: Analysis of Practical Problems

7.1 Sorting Problem: Positive Curvature → P-Class

Problem: Given numbers, sort them.

Configuration Space: All possible permutations, size .

Algorithm: Merge sort (divide and conquer)

  • Each step operation: Compare and merge;
  • Configuration graph: Each configuration (partially ordered) has successors (positions can merge);
  • Curvature Analysis:
    • Near “nearly ordered” configurations, different paths converge to “completely ordered” state;
    • Curvature (non-negative);
    • Volume growth (polynomial).

Conclusion: Sorting problem corresponds to non-negative curvature space, belongs to P-class.

7.2 Traveling Salesman Problem: Negative Curvature → NP-Hard

Problem: Given cities, find shortest path visiting all cities.

Configuration Space: All possible visit orders, size .

Algorithm: Brute force search (exhaustive)

  • Each step operation: Swap order of two cities;
  • Configuration graph: Each configuration has successors (can swap any two cities);
  • Curvature Analysis:
    • In configuration space, different paths diverge quickly (no obvious “convergence point”);
    • Curvature (negative);
    • Volume growth (exponential).

Conclusion: Traveling salesman problem corresponds to negative curvature space, belongs to NP-hard.

7.3 3-SAT Problem: Negative Curvature → NP-Complete

Problem: Given Boolean formula (conjunctive normal form), determine if satisfiable.

Configuration Space: All possible variable assignments, size .

Algorithm: Backtracking search (exhaustive)

  • Each step operation: Assign value to one variable (True or False);
  • Configuration graph: Tree structure, each node splits into 2 child nodes;
  • Curvature Analysis:
    • Tree structure naturally has negative curvature (splits each layer);
    • Curvature (strongly negative);
    • Volume growth (exponential).

Conclusion: 3-SAT problem corresponds to strongly negative curvature space, belongs to NP-complete.


8. Summary and Key Formula Review

8.1 Core Definitions

ConceptDefinitionSource
Transition DistributionDefinition 2.1
Wasserstein DistanceDefinition 3.1
Discrete Ricci CurvatureDefinition 4.1

8.2 Core Theorems

TheoremConditionConclusionNumber
Non-Negative Curvature → Polynomial, Theorem 5.1
Negative Curvature → Exponential, Theorem 5.2
Curvature and ContractionTheorem 4.3

8.3 Key Formulas

FormulaMeaningSource
Positive curvature, paths converge, polynomial growthDefinition 4.1
Zero curvature, paths parallel, linear/polynomial growthDefinition 4.1
Negative curvature, paths diverge, exponential growthDefinition 4.1
Wasserstein distance of Dirac distributionsExample 3.3

8.4 Everyday Analogy Summary

Geometric ConceptEveryday Analogy
Positive CurvatureSphere: Walking north will meet at north pole (paths converge)
Zero CurvaturePlane: Parallel lines remain parallel (paths parallel)
Negative CurvatureSaddle Surface: Walking from center will go farther apart (paths diverge)
Wasserstein DistanceTotal cost of optimal sand stacking transport scheme
Transition DistributionProbability distribution of choosing roads at intersection

8.5 Interface with Previous Articles

  • 23.3: Defined complexity graph, complexity distance, complexity ball;
  • 23.4: Proved bounded degree → polynomial, exponential → infinite dimension;
  • This Article (23.5): Introduced discrete Ricci curvature, proved curvature ↔ volume growth, established quantitative connection between “curvature–problem difficulty”;
  • Next Article (23.6): Will introduce information geometry, study relationship between “task-perceived information distance” and complexity.

8.6 Key Insights

  1. Curvature More Essential Than Degree:

    • Bounded degree is only sufficient condition, non-negative curvature is essential reason;
    • Negative curvature leads to exponential growth even in graphs with bounded degree.
  2. Curvature Characterizes Geometric Behavior of Paths:

    • Positive curvature: Paths converge, easy to find optimal solution (P-class);
    • Negative curvature: Paths diverge, hard to exhaust all possibilities (NP-hard).
  3. Contraction and Divergence of Random Walk:

    • Positive curvature → Wasserstein distance contracts each step → volume growth controlled;
    • Negative curvature → Wasserstein distance diverges each step → volume exponential explosion.
  4. Problem Difficulty Is Geometric Attribute:

    • P/NP is not just “algorithm attribute”, but “geometric attribute of configuration space”;
    • Curvature is geometric invariant, doesn’t depend on specific algorithm choice.

9. Open Problems and Outlook

  1. Precise Calculation of Curvature:

    • For given complexity graph, how to efficiently calculate curvature for all edges?
    • Does there exist method of “local curvature sampling” to estimate global curvature distribution?
  2. Curvature and Algorithm Design:

    • Can we use curvature information to guide search algorithms? (e.g., prioritize exploring “high curvature regions”)
    • Can we design “curvature-adaptive” heuristic algorithms?
  3. Curvature Interpretation of Quantum Algorithms:

    • What curvature do Shor’s algorithm, Grover search correspond to in classical configuration space?
    • How does quantum interference change effective curvature?
  4. Higher-Order Curvature:

    • Ricci curvature is “average of sectional curvature”, can we define “sectional curvature” on discrete graphs?
    • What is meaning of higher-order curvature (Riemann curvature tensor) in complexity geometry?

These questions will be partially explored in subsequent chapters.


Preview of Next Article: 23.6 Task-Perceived Information Geometry: From Complexity to Information

In next article, we will introduce information geometry, studying:

  1. Observation Operator Family : How to measure “information” of configuration?
  2. Task Relative Entropy : Information difference between different configurations under specific task;
  3. Jensen-Shannon Distance : Task-perceived information distance;
  4. Fisher Information Matrix : Metric tensor of information geometry;
  5. Relationship Between Information Dimension and Complexity Dimension: (theorem).

Through these techniques, we will see: Complexity geometry (Articles 23.3-23.5) and information geometry (Articles 23.6-23.7) are two complementary perspectives of configuration space—former characterizes “path cost”, latter characterizes “information quality”.

Source Theory: euler-gls-info/02-discrete-complexity-geometry.md, euler-gls-info/03-discrete-information-geometry.md