cfahlgren1/math / lean /ComparatorChallenges /HoneycombBridgeFiniteness.lean
cfahlgren1's picture
download
raw
2.37 kB
import Mathlib
namespace OAI
namespace PolynomialVacuumBridge.Corridor
inductive Vertex where
| up (i j : ℤ)
| down (i j : ℤ)
deriving DecidableEq
noncomputable def position : Vertex → ℝ × ℝ
| .up i j => ((i : ℝ) + (j : ℝ) / 2,
((j : ℝ) + 1 / 3) * (Real.sqrt 3 / 2))
| .down i j => ((i : ℝ) + (j : ℝ) / 2 + 1 / 2,
((j : ℝ) + 2 / 3) * (Real.sqrt 3 / 2))
def adjacent : Vertex → Vertex → Prop
| .up i j, .down k l =>
(k = i ∧ l = j - 1) ∨ (k = i ∧ l = j) ∨ (k = i - 1 ∧ l = j)
| .down k l, .up i j =>
(k = i ∧ l = j - 1) ∨ (k = i ∧ l = j) ∨ (k = i - 1 ∧ l = j)
| _, _ => False
noncomputable def criticalActivity : ℝ := (2 * Real.cos (Real.pi / 8))⁻¹
noncomputable def layer (vertex : Vertex) : ℤ :=
Vertex.rec (fun _ vertical => vertical) (fun _ vertical => vertical) vertex
structure BridgePath (h : ℕ) where
vertices : List Vertex
distinct : vertices.Nodup
connected : vertices.IsChain adjacent
source : vertices.head? = some (.up 0 0)
terminal : ∃ i : ℤ, vertices.getLast? = some (.down i ((h : ℤ) - 1))
inStrip : ∀ v ∈ vertices, 0 ≤ layer v ∧ layer v < (h : ℤ)
noncomputable def weight {h : ℕ} (p : BridgePath h) : ℝ :=
criticalActivity ^ p.vertices.length
noncomputable def firstLengthWeight {h : ℕ} (p : BridgePath h) : ℝ :=
(p.vertices.length : ℝ) * weight p
noncomputable def bridgeMass (h : ℕ) : ℝ := ∑' p : BridgePath h, weight p
noncomputable def InLogCorridor {h : ℕ} (p : BridgePath h) : Prop :=
∀ v ∈ p.vertices, |(position v).1| ≤ (h : ℝ) * (Real.log (h : ℝ)) ^ 2
def ConfinedBridgePath (h : ℕ) := {p : BridgePath h // InLogCorridor p}
noncomputable def confinedMass (h : ℕ) : ℝ :=
∑' p : ConfinedBridgePath h, weight p.val
def FiniteBridgeSums : Prop :=
∀ h : ℕ, 1 ≤ h →
Summable (weight (h := h)) ∧ Summable (firstLengthWeight (h := h)) ∧
Summable (fun p : BridgePath h => firstLengthWeight p / bridgeMass h) ∧
Summable (fun p : ConfinedBridgePath h => weight p.val) ∧
Summable (fun p : ConfinedBridgePath h => firstLengthWeight p.val) ∧
Summable (fun p : ConfinedBridgePath h => firstLengthWeight p.val / confinedMass h)
theorem finite_bridge_sums : FiniteBridgeSums := by
sorry
end PolynomialVacuumBridge.Corridor
end OAI

Xet Storage Details

Size:
2.37 kB
·
Xet hash:
fbe34edb6ac7246de8c05c8c29e70da5490dd022298c2ef4e29bb56b077f4ada

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.