Left to Solve
Problems / MathOverflow (not formalized)

Amortized analysis of data structure via potential function

Open, not yet stated in LeanMathOverflow (not formalized)Computational Complexitydifficulty55/100

Statement

One common method for proving that a data structure supports an operation in amortized time is to construct a potential function , which associates every state of the data structure with a positive real number, such that for any operation .

Is the converse true, i.e. that for any data structure in amortized time there is a potential function which witnesses this fact (and has this amortized-time property) ? If not, are there are any non-artifical counterexamples?

Posed by David Harris · computational-complexity, algorithms

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-71128.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-71128.lean

import Mathlib

/-!
# Amortized analysis of data structure via potential function

Source: https://mathoverflow.net/questions/71128
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_71128

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_71128