# R3. Modularity and automorphy lifting

## Idea

Prove the direction from Galois to automorphic by deformation theory. Show $R = \mathbb{T}$ by the patching of Taylor-Wiles-Kisin, then switch primes or use potential automorphy. Two Lean projects on Fermat's Last Theorem have done part of this route, with code under the Apache-2.0 licence.


## Key obstruction

The Galois representations of automorphic forms need Shimura varieties. The construction of Deligne alone is far more than 500,000 lines of Lean with a full proof. The route states these inputs as hypotheses of `proved-mod` nodes and proves the algebra around them. In the mathematics, no Galois representation is known for fields with a complex place that are not CM, and patching fails outside regular weight without new ideas.

