Exact Lean source
Nonadditivity.HaarPathChainCount
Download original .lean · View on GitHub · Jump to source
Imported by project modules
Relationships above come from literal import commands. The declarations below link to types and references extracted from Lean’s environment. Source text is complete and unchanged.
Declarations in this module
12 project constants, including generated, internal and private declarations.
12 declarations
Nonadditivity.HaarPathGraph.Path.card_chainProfileAssignments_leNonadditivity.HaarPathGraph.Path.card_coreChain_le_twice_budgetNonadditivity.HaarPathGraph.Path.card_coreDarts_eq_sumNonadditivity.HaarPathGraph.Path.card_coreDarts_eq_twice_budgetNonadditivity.HaarPathGraph.Path.card_coreDarts_eq_twice_budget._proof_1_1internal/detail/privateNonadditivity.HaarPathGraph.Path.card_unorientedChains_le_budgetNonadditivity.HaarPathGraph.Path.card_unorientedChains_le_budget._proof_1_1internal/detail/privateNonadditivity.HaarPathGraph.Path.coreChainDecidableEqNonadditivity.HaarPathGraph.Path.coreEdgeBudget.congr_simpNonadditivity.HaarPathGraph.Path.twice_card_unorientedChains_le_defectNonadditivity.HaarPathGraph.Path.twice_card_unorientedChains_le_defect._proof_1_1internal/detail/privateNonadditivity.HaarPathGraph.Path.unorientedChains
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPathChains7import Nonadditivity.HaarPathInvolution89/-! # Exact incidence budget for core chains -/10noncomputable section11namespace Nonadditivity.HaarPathGraph.Path12open scoped BigOperators13variable {V : Type*} [DecidableEq V] {d m : ℕ} (P : Path V d m)1415instance coreChainDecidableEq : DecidableEq P.CoreChain := Classical.decEq _1617theorem card_coreDarts_eq_sum :18P.coreDarts.card = ∑ v ∈ P.coreVertices, P.degree v := by19exact (Finset.sum_card_fiberwise_eq_card_filter P.darts P.coreVertices source).symm2021/-- The incidences at core vertices account for exactly twice the Euler22core-edge budget. Internal vertices each consume exactly two incidences. -/23theorem card_coreDarts_eq_twice_budget : P.coreDarts.card = 2*P.coreEdgeBudget := by24have hfilter : (P.vertices.filter fun v => v ∈ P.coreVertices) = P.coreVertices :=25Finset.filter_mem_eq_inter.trans (Finset.inter_eq_right.mpr (Finset.filter_subset _ _))26have hdeg (v : V) (hv : v ∈ P.vertices.filter (fun v => v ∉ P.coreVertices)) :27P.degree v=2 := by28by_contra h29have hmem := (Finset.mem_filter.mp hv).130have hnot := (Finset.mem_filter.mp hv).231exact hnot (Finset.mem_filter.mpr ⟨hmem,Or.inr h⟩)32have hs := Finset.sum_filter_add_sum_filter_not P.vertices33(fun v => v ∈ P.coreVertices) P.degree34have hcards := Finset.card_filter_add_card_filter_not (s := P.vertices)35(fun v => v ∈ P.coreVertices)36rw [hfilter,←P.card_coreDarts_eq_sum,P.sum_degrees] at hs37rw [Finset.sum_congr rfl hdeg] at hs38simp only [Finset.sum_const,smul_eq_mul] at hs39rw [hfilter] at hcards40have hv := P.vertices_le_edges41dsimp [coreEdgeBudget]42omega4344/-- There are at most twice the Euler budget oriented maximal chains. -/45theorem card_coreChain_le_twice_budget : Fintype.card P.CoreChain ≤ 2*P.coreEdgeBudget := by46simpa only [P.card_coreDarts_eq_twice_budget] using P.card_coreChain_le_coreDarts4748/-- Actual core chains with the two orientations identified. -/49def unorientedChains : Finset (Finset P.CoreChain) :=50HaarPathInvolution.pairs P.coreChainReverse5152/-- The number of actual compressed chains has the BC Euler budget. This53uses first-dart reconstruction and the proved free orientation reversal. -/54theorem card_unorientedChains_le_budget : P.unorientedChains.card ≤ P.coreEdgeBudget := by55have hp := HaarPathInvolution.twice_card_pairs P.coreChainReverse_involutive56P.coreChainReverse_ne_self57have hc := P.card_coreChain_le_twice_budget58change 2*P.unorientedChains.card = _ at hp59omega6061/-- Core-chain count in the exact exponent form of BC Lemma 5.8. -/62theorem twice_card_unorientedChains_le_defect :632*P.unorientedChains.card ≤ 3*P.defectTwice+4 := by64have hb := P.card_unorientedChains_le_budget65have hd := P.twice_coreEdgeBudget_le66omega6768/-- Assigning realizable bounded-length profiles to the actual unoriented69core chains costs at most the profile factor in BC Lemma 5.8. -/70theorem card_chainProfileAssignments_le (hm : 0 < m) (hd : 0 < d) :71Fintype.card (P.unorientedChains → HaarPathProfiles.BoundedProfile72(HaarPathProfiles.Color d) m) ≤73(2*d*m^d)^(3*P.defectTwice+4) := by74rw [Fintype.card_fun,Fintype.card_coe]75have hp := HaarPathProfiles.card_signedProfile_le d m76calc77_ ≤ ((2*d*m^d)^2)^P.unorientedChains.card := Nat.pow_le_pow_left hp _78_ = (2*d*m^d)^(2*P.unorientedChains.card) := (pow_mul _ _ _).symm79_ ≤ _ := Nat.pow_le_pow_right (by positivity) P.twice_card_unorientedChains_le_defect8081end Nonadditivity.HaarPathGraph.Path