Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Aether Catalog definitions — Tropical_TropicalAlgebra_TropicalTDLPEigenAttack

Definition
Tropical_TropicalAlgebra_TropicalTDLPEigenAttack

by raver1975 · Sep 13, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogtropical

Definition bundle for the Aether Catalog module Tropical.TropicalAlgebra.TropicalTDLPEigenAttack, transplanted by skeleton subtraction; supplies the types and constants the catalog's theorems import.

Definition code
-- Def bundle generated from Tropical/TropicalAlgebra/TropicalTDLPEigenAttack.lean by skeleton subtraction
import Mathlib

/-!
# A tropical discrete-logarithm counterexample on eigenlines

This file formalizes a small, self-contained counterexample to the security of a
naive *tropical discrete logarithm problem* (TDLP).

We work over `Nat` (the min-plus / tropical semiring carrier, ignoring `+∞`) to
avoid the complications of `WithTop` and partial subtraction.  The "scalar
multiplication" of the min-plus semiring is ordinary addition `λ + x`, and the
group operation that hides the secret exponent `k` is iterated min-plus matrix
application.

The two headline results are:

* `oneByOne_tropical_iterate`: applying the `1×1` tropical matrix with entry `λ`
  exactly `k` times sends `x` to `k * λ + x`.
* `tdlp_recover_oneByOne`: when `λ = 1`, the secret exponent `k` is recovered
  from a single input/output pair by ordinary subtraction `output - input = k`.

The abstract version `iterate_eigenline_attack` shows the same collapse happens
for *any* scalar-equivariant tropical-linear map restricted to one of its
eigenlines, with the coordinate-wise recovery statement
`tdlp_recover_eigenline`.
-/

namespace Catalog.Tropical.TropicalTDLPEigenAttack

/-! ## The 1×1 case -/




/-! ## The abstract eigenline attack -/

/-- A tropical vector indexed by `ι`. -/
abbrev Vec (ι : Type) := ι → Nat

/-- Tropical scalar addition: add the scalar `c` to every coordinate. -/
def tropScalarAdd {ι : Type} (c : Nat) (v : Vec ι) : Vec ι := fun i => c + v i

/-- A map `F` is scalar-equivariant if it commutes with tropical scalar addition. -/
def ScalarEquivariant {ι : Type} (F : Vec ι → Vec ι) : Prop :=
  ∀ (c : Nat) (v : Vec ι), F (tropScalarAdd c v) = tropScalarAdd c (F v)

/-- `v` is a tropical eigenvector of `F` with eigenvalue `lam`. -/
def IsTropicalEigen {ι : Type} (F : Vec ι → Vec ι) (v : Vec ι) (lam : Nat) : Prop :=
  F v = tropScalarAdd lam v




end Catalog.Tropical.TropicalTDLPEigenAttack

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me