OAI/Combinatorics/PerfectMatching/Entropy.lean
18 declarations, 0 contain sorry, 0 declared as axioms
Finite Shannon entropy and attainment of its supremum over feasible matching laws.
- def
OAI.MatchingEntropy.entropyline 18Also declared: ComparatorChallenges/MatchingEntropy.lean:49 (same declaration text).
- def
OAI.MatchingEntropy.marginalEntropyline 21Also declared: ComparatorChallenges/MatchingEntropy.lean:52 (same declaration text).
- def
OAI.MatchingEntropy.maxMatchingEntropyline 23Also declared: ComparatorChallenges/MatchingEntropy.lean:54 (same declaration text).
- theorem
OAI.MatchingEntropy.entropy_eqline 29Source documentation
Shannon entropy is the literal sum of negative probability-log-probability terms.
theorem entropy_eq {ι : Type*} [Fintype ι] (p : ι → ℝ) : entropy p = -(∑ i, p i * Real.log (p i)) := by …Mentions: OAI.MatchingEntropy.entropy
- theorem
OAI.MatchingEntropy.continuous_entropyline 33 - theorem
OAI.MatchingEntropy.entropy_nonnegline 38 - theorem
OAI.MatchingEntropy.entropy_le_log_cardline 46Source documentation
The entropy bound used in the counting reduction, including zero probabilities.
theorem entropy_le_log_card {ι : Type*} [Fintype ι] {p : ι → ℝ} (hp : p ∈ probabilitySimplex ι) : entropy p ≤ Real.log (Fintype.card ι) := by …Mentions: OAI.MatchingEntropy.probabilitySimplex, OAI.MatchingEntropy.entropy
- theorem
OAI.MatchingEntropy.LooplessGraph.coordinate_mem_Iccline 67 - theorem
OAI.MatchingEntropy.LooplessGraph.incident_vertex_sumline 80Source documentation
Counting the two distinct endpoints; parallel identities are never collapsed.
theorem incident_vertex_sum (G : LooplessGraph V E) (e : E) : (∑ v, if G.Incident v e then (1 : ℕ) else 0) = 2 := by … - theorem
OAI.MatchingEntropy.LooplessGraph.matching_incident_sumline 94 - theorem
OAI.MatchingEntropy.LooplessGraph.matching_card_twiceline 106 - theorem
OAI.MatchingEntropy.LooplessGraph.matching_cardline 119 - theorem
OAI.MatchingEntropy.LooplessGraph.indicator_sumline 124 - theorem
OAI.MatchingEntropy.LooplessGraph.marginal_sumline 130Source documentation
All feasible marginal vectors have mass m, as in the entropy proof.
theorem marginal_sum (G : LooplessGraph V E) {m : ℕ} (hV : Fintype.card V = 2 * m) {y : E → ℝ} (hy : y ∈ G.polytope) : ∑ e, y e = (m : ℝ) := by … - theorem
OAI.MatchingEntropy.maxMatchingEntropy_attainedline 143Source documentation
The supremum in the definition of H is a genuine attained maximum.
theorem maxMatchingEntropy_attained (G : LooplessGraph V E) {y : E → ℝ} (hy : y ∈ G.polytope) : ∃ p ∈ G.feasibleLaws y, entropy p = maxMatchingEntropy G y := by …Mentions: OAI.MatchingEntropy.entropy, OAI.MatchingEntropy.maxMatchingEntropy
- theorem
OAI.MatchingEntropy.maxMatchingEntropy_nonnegline 152 - theorem
OAI.MatchingEntropy.maxMatchingEntropy_le_log_cardline 159 - theorem
OAI.MatchingEntropy.entropy_le_maxMatchingEntropyline 167