Suppose the true label is uniform among
The chosen rule maximizes accuracy. Its gain above chance is the archive's reconstruction advantage, the average of pmfTV_le_card_mul_reconAdvantage lemma then gives, for every pair
Archived lemma · Archive verification record
Lean checks two experiments with three equally likely labels. In both, the observation laws for labels
| Experiment | Best prediction | Exact accuracy | Pairwise bound |
|---|---|---|---|
| The output matches the true label with probability |
Predict the output label. | ||
| A binary output is heads with probabilities |
Predict label |
In the second experiment the mixture is a fair coin, so its total variation distances to the three laws are
Run these commands from this directory with Git, curl, Elan and sha256sum available. The configuration pins Lean 4.34.1 and Mathlib d13f23b723b8a846827a245b89c10fc7d3f11612.
curl -fLsS \
https://raw.githubusercontent.com/HuggingMath/TheoremOS/84e40d87325052a6489f9e9225b666c622f2c405/data/proofs/openai_three_state_tree_clauses/Submission/Library/TheoremOS/Probability/TreeReconstruction.lean \
-o ArchivedTreeReconstruction.lean
sha256sum -c - <<'EOF'
cf91591ad7ab77463ba4c64dee04529a87e730716380bc87a569359d2485f54e ArchivedTreeReconstruction.lean
EOF
lake update --keep-toolchain
lake exe cache get
lake build ArchivedTreeReconstruction
lake env lean MulticlassHypothesisTesting.leanThe five printed declarations use propext, Classical.choice, and Quot.sound. Lean source