← Existence And Smoothness Of The Navier–Stokes Equation (navier_stokes_existence_and_smoothness_R3)
Index of theproofnetwork/open-problems@860a535/Prove2Me/Definitions/Def_Hirsch_walk.lean
qedmarket’s copy of theproofnetwork/open-problems@860a535, 1 Dec 2026original source ↗
/-From Prove2Me, definition `Hirsch_walk` (https://prove2.me/definitions/21028eb8-ac2a-4010-9ad0-13006359b264). Apache-2.0 per Prove2Me's terms.-/import Mathlibimport Prove2Me.Definitions.Def_Hirsch_model /-!# Walks and graph distance in the vertex-edge graph of a polytope Vocabulary for diameter inductions on H-polytopes. `Reach P L u v` is the body of`DiamLE`: a walk of exactly `L` steps from `u` to `v`, each step either stationary oralong an edge of `P`. `gdist P u v` is the least such `L` (the combinatorial distance),with the junk value `0` when no walk exists.-/ namespace Hirsch /-- `Reach P L u v`: there is a walk `w 0 = u, …, w L = v` of exactly `L` steps in thevertex-edge graph of `P`, each step either stationary (`w i = w (i+1)`) or along anedge (`Adj P (w i) (w (i+1))`). `DiamLE P B` is exactly `∀ u v` extreme, `Reach P B u v`. -/def Reach {E : Type*} [AddCommGroup E] [Module ℝ E] (P : Set E) (L : ℕ) (u v : E) : Prop := ∃ w : ℕ → E, w 0 = u ∧ w L = v ∧ ∀ i < L, w i = w (i + 1) ∨ Adj P (w i) (w (i + 1)) /-- The combinatorial (graph) distance from `u` to `v` in the vertex-edge graph of `P`:the least `L` with `Reach P L u v`, and `0` if there is no walk at all. -/noncomputable def gdist {E : Type*} [AddCommGroup E] [Module ℝ E] (P : Set E) (u v : E) : ℕ := sInf {L | Reach P L u v} theorem diamLE_iff_reach {E : Type*} [AddCommGroup E] [Module ℝ E] (P : Set E) (B : ℕ) : DiamLE P B ↔ ∀ u ∈ Set.extremePoints ℝ P, ∀ v ∈ Set.extremePoints ℝ P, Reach P B u v := Iff.rfl theorem reach_zero {E : Type*} [AddCommGroup E] [Module ℝ E] (P : Set E) (u : E) : Reach P 0 u u := ⟨fun _ => u, rfl, rfl, fun i hi => absurd hi (Nat.not_lt_zero i)⟩ end Hirsch