TropMaxPlus assoc
ProvedTropicalEventGraph.tropMaxPlus_assocaether-catalogtropical
Formal statement of TropicalEventGraph.tropMaxPlus_assoc from the Aether Catalog (Tropical). The mathematical content is given by the Lean statement below; a human-readable write-up is pending.
theorem TropicalEventGraph.tropMaxPlus_assoc {ι κ μ ν : Type} [Fintype κ] [Fintype μ]
[DecidableEq κ] [DecidableEq μ]
[Nonempty κ] [Nonempty μ]
(A : Matrix ι κ ℝ) (B : Matrix κ μ ℝ) (C : Matrix μ ν ℝ) :
tropMaxPlus (tropMaxPlus A B) C = tropMaxPlus A (tropMaxPlus B C) := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source Tropical/NeuralCoding/EventGraphSemantics.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from Tropical/NeuralCoding/EventGraphSemantics.lean
import Mathlib
import Definitions.Def_Tropical_NeuralCoding_EventGraphSemantics
/-
# Compositional Tropical Semantics for Event Graphs
This file formalizes a compositional theory of timed event-graph systems
using max-plus (tropical) matrix algebra. The key results are:
1. **Series composition** of event graphs corresponds to tropical matrix
multiplication (max-plus matrix product).
2. **Parallel composition** with disjoint interfaces corresponds to tropical
block-diagonal matrix sum.
3. **Parallel composition** with shared interfaces corresponds to pointwise
tropical maximum.
4. **Throughput/cycle-time bounds** compose modularly: series adds bounds,
parallel takes the max.
## Mathematical Framework
We work with event graphs whose transfer semantics are captured by matrices
over `ℝ`. The tropical semiring operations are:
- Tropical addition: `max`
- Tropical multiplication: `+` (classical addition)
The transfer matrix `M(G)_{i,k}` of an event graph `G` with input interface `ι`
and output interface `κ` records the maximum-weight path from each input to
each output, representing the longest delay / critical path timing.
## Key Definitions
- `tropMaxPlus A B`: max-plus matrix multiplication
- `EventGraph ι κ`: event graph with typed interfaces
- `transfer G`: the transfer matrix of `G`
- `series G₁ G₂`: series composition
- `parallel G₁ G₂`: parallel (disjoint) composition
- `parallelShared G₁ G₂`: parallel (shared-interface) composition
- `CycleTimeBound G c`: predicate asserting cycle-time ≤ c
-/
open Matrix Finset
noncomputable section
open TropicalEventGraph
/-! ## Max-Plus Matrix Operations -/
/-! ## Event Graph Structure -/
/-! ## Transfer Semantics -/
/-! ## Composition Operations -/
/-! ## Theorem 1: Series Composition = Tropical Matrix Multiplication -/
/-! ## Theorem 2a: Parallel (Disjoint) = Block Diagonal -/
/-! ## Theorem 2b: Parallel (Shared) = Pointwise Max -/
/-! ## Cycle-Time Bounds -/
/-! ## Theorem 3a: Series Throughput Certification -/
/-
**Series throughput theorem**: If `G₁` has cycle-time bound `c₁` and
`G₂` has cycle-time bound `c₂`, then their series composition has
cycle-time bound `c₁ + c₂`.
-/
/-! ## Theorem 3b: Parallel (Disjoint) Throughput Certification -/
/-
**Parallel throughput theorem (disjoint)**: Cycle-time bound is max.
Requires `0 ≤ c₁` and `0 ≤ c₂` because off-diagonal (cross-system)
entries are `0`, representing the absence of paths.
-/
/-! ## Theorem 3c: Shared-Parallel Throughput Certification -/
/-
**Shared-parallel throughput theorem**: Cycle-time bound is max.
-/
/-! ## Associativity of Max-Plus Matrix Multiplication -/
/-
Max-plus matrix multiplication is associative.
-/Formal statement
theorem TropicalEventGraph.tropMaxPlus_assoc {ι κ μ ν : Type} [Fintype κ] [Fintype μ]
[DecidableEq κ] [DecidableEq μ]
[Nonempty κ] [Nonempty μ]
(A : Matrix ι κ ℝ) (B : Matrix κ μ ℝ) (C : Matrix μ ν ℝ) :
tropMaxPlus (tropMaxPlus A B) C = tropMaxPlus A (tropMaxPlus B C) := by sorrySource