# VWin from the rank n inputs

## Statement

The theorem has four hypotheses.

1. `O : OpenImageCondition`. This is [the structure OpenImageCondition](/step/open-image-condition-def/), a record with one field of type `RowT`.
2. `bc : BaseChangeIsobaricN`. This is [the statement BaseChangeIsobaricN](/step/base-change-isobaric-n-def/).
3. `gal : RowT`. The proposition `RowT` is defined as `Row0b fun h rc => IsRecT h rc`.
4. `cm : LiteratureCMHypothesis`. This is a structure with 11 fields. By their names, the fields are statements on abelian varieties and complex multiplication: `GrothendieckDeformation`, `AbelianDeRham`, `AbelianDualCrystal`, `PeriodComparison`, `GaussManinPeriods`, `SerreTateGoodReductionSt`, `EllipticMainTheoremCM`, `HilbertClassFieldJ`, `SiegelKlingenDeligneRibet`, `PartialZetaFunctionalEquation` and `HeckeTateFunctionalEquation`.

The conclusion is [the window bound VWin](/step/vwin-def/).


## Lean

```lean
theorem UpperTheory.One.Join.v_window_of_depth_zero_residual_bc_cm (O : _root_.UpperTheory.LiteratureTheorems.OpenImageCondition) (bc : _root_.PositivityTheory.Rg.BcN.BaseChangeIsobaricN) (gal : _root_.UpperTheory.V.Z.Win.RowT) (cm : _root_.GlobalTheory.Mem.LiteralAutomorphy.LiteratureCMHypothesis) : UpperTheory.Top.VWin
```

The declaration is in `Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/TopMainZj.lean`, line 55. Its [page](/code/decl/?n=UpperTheory.One.Join.v_window_of_depth_zero_residual_bc_cm) has the full list of what it uses and what uses it, and a link to the source.

## Proof

The proof builds one term of the structure `LiteratureRankNHypothesis` with the anonymous constructor and applies `v_window_of_literal_automorphy_n` to it. `LiteratureRankNHypothesis` has four fields, and the proof fills them as follows.

1. `loc : LitLocAlt` is `local_inputs_from_literature O`. By the [VWin chapter](/proof/vwin/), `LitLocAlt` has 18 local statements on $\mathrm{GL}_n$ of a local field.
2. `aut : LiteratureAutomorphyHypothesis` is `automorphic_inputs_from_literature O bc gal`. This structure has 15 global statements. Two of them, the fields `bc` and `gal`, are the hypotheses `bc` and `gal` themselves.
3. `coh : LitCoh` is `galois_cohomology_from_literature O`. By the VWin chapter, `LitCoh` has 12 statements on Galois cohomology.
4. `cm` is the hypothesis `cm`.

The theorem `v_window_of_literal_automorphy_n` then gives `VWin`.

## Notes

The hypothesis `O` goes to each of the three builder theorems. The field of `O` is a proof of `RowT`, the same proposition as `gal`. The row reaches the counting argument through the field `aut.gal`, which is the hypothesis `gal`.

## Uses

- [The statement BaseChangeIsobaricN](/step/base-change-isobaric-n-def/), the step for `PositivityTheory.Rg.BcN.BaseChangeIsobaricN`.
- [The structure OpenImageCondition](/step/open-image-condition-def/), the step for `UpperTheory.LiteratureTheorems.OpenImageCondition`.
- [The window bound VWin](/step/vwin-def/), the step for `UpperTheory.Top.VWin`.
- The named result Galois representations attached to regular algebraic polarised cuspidal automorphic representations of GL(n) over CM fields, with local-global compatibility, [`UpperTheory.LiteratureTheorems.OpenImageCondition`](/code/decl/?n=UpperTheory.LiteratureTheorems.OpenImageCondition). The page of [named results](/proof/named-results/) gives its citation.

The proof cites these declarations, but their steps are not written yet. The text above tells what each one gives: [`GlobalTheory.Mem.LiteralAutomorphy.LiteratureCMHypothesis`](/code/decl/?n=GlobalTheory.Mem.LiteralAutomorphy.LiteratureCMHypothesis), [`UpperTheory.LiteratureTheorems.galois_cohomology_from_literature`](/code/decl/?n=UpperTheory.LiteratureTheorems.galois_cohomology_from_literature), [`UpperTheory.One.Join.automorphic_inputs_from_literature`](/code/decl/?n=UpperTheory.One.Join.automorphic_inputs_from_literature), [`UpperTheory.One.Join.local_inputs_from_literature`](/code/decl/?n=UpperTheory.One.Join.local_inputs_from_literature), [`UpperTheory.V.Z.Win.RowT`](/code/decl/?n=UpperTheory.V.Z.Win.RowT), [`UpperTheory.V.v_window_of_literal_automorphy_n`](/code/decl/?n=UpperTheory.V.v_window_of_literal_automorphy_n).

## Used by

- [VWin from three inputs](/step/automorphic-window-of-inputs/)

## Status

Drafted. The text follows the Lean code, but no person has checked it against the code with the rules of spec 05.7 yet. If you check it, [tell us](https://github.com/tamnd/riemann/issues/new?template=error.yml).

A model wrote the first draft (`writer@claude-opus-5-5`). A person checks it before its status goes up.
