RH Lean Explorer Sernau readable · Comparator passedChecked

Readable edition · 803 Lean files

Monotone paths through two square grids, and their turns

New.Determinant.AuxiliaryForms.GridPaths.lean

Open interactive viewer Raw Lean source · Pinned source

Reading

Upstream documentation written by Claude

The combinatorics of the paths along which forms are moved through the two grids of unitary groups, the grid of the Y^i_j and the grid of the Ỹ^i_j. Here only the indices occur.

A path goes from (m, 0) to (0, m) by steps up (j grows) or left (i falls) and meets the diagonal once, at some (l, l).

Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.

Rest of upstream introduction

Rest of upstream introduction

Its first half lies in the grid of the Ỹ and its second half in that of the Y. Both halves are recorded in one shape, as paths from (0, m) to (l, l) by steps down or right. The half in the grid of the Y is read backwards, the way conjugate forms move. The half in the grid of the Ỹ is read forwards, the way forms move, with the two indices exchanged: a step left is recorded as a step down, and a step up as a step right.

Main definitions and results

  • New.GridPath: a monotone path in one grid. New.TwoGridPath: a path through both grids, given by two halves that meet on the diagonal.
  • New.TwoGridPath.Turn: a turn replaces a node (i, j) by (i + 1, j + 1).
  • New.TwoGridPath.exists_turn: every path but the last can be turned.
  • New.TwoGridPath.turn_induction: induction backwards along turns, one at each (i, j) with i, j < m, from the last path to the first.

Pinned source lines

Declarations

  • lemma turn_induction {motive : TwoGridPath m → Finset (ℕ × ℕ) → Prop} (h_last : motive (last m) ∅)
        (h_turn : ∀ (Γ : TwoGridPath m) (s : ℕ × ℕ) (Γ' : TwoGridPath m) (T : Finset (ℕ × ℕ)),
          Γ.Turn s Γ' → s ∉ T → motive Γ' T → motive Γ (insert s T)) :
        motive (first m) (range m ×ˢ range m)
    

Import route to Main

New.Determinant.AuxiliaryForms.GridPaths → New.Determinant.Chain.Moduli (pinned import) → New.Determinant.Chain.ChainNorms (pinned import) → New.Determinant.Chain.NormOfChain (pinned import) → New.Congruences.FitTwistsExist (pinned import) → New.Determinant.Twist.LongForms (pinned import) → New.Reduction.MainInequality (pinned import) → New.Reduction.OneSidedBound (pinned import) → New.Main (pinned import) → Main (pinned import)

X Reddit Email LinkedIn