Optimal prefix-free code design with a complex objective function
Statement
We have a long message to encode. The message is composed of a set of symbols . Let denote the number of appearance of in . We seek to find a prefix-free code for each so as to minimize , where and denote the number of bits and in the coded message, respectively, denotes the length of the coded message. The prefix-free code system is a set of codes where any code is not a prefix of another. Our problem is to find such optimal coding system. Our problem resembles Huffman coding but with a more complex objective function.
Posed by lchen · co.combinatorics, combinatorial-optimization, coding-theory
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-430201.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-430201.lean
import Mathlib /-! # Optimal prefix-free code design with a complex objective function Source: https://mathoverflow.net/questions/430201 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_430201 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_430201