Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarPathRefinedCounting

Download original .lean · View on GitHub · Jump to source

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

38 project constants, including generated, internal and private declarations.

38 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPathCounting7import Nonadditivity.HaarPathVertexFibre8import Nonadditivity.HaarPathRefined9import Nonadditivity.HaarPathProfileReverse1011/-! # Counting the genuine refined path quotient1213Within each actual coarse class, one profile per unoriented suppressed chain14is sufficient: the reverse profile is forced. Transport to a fixed class15representative gives a concrete injective profile assignment.16-/17noncomputable section18set_option backward.isDefEq.respectTransparency false19set_option maxHeartbeats 100000020namespace Nonadditivity.HaarPathClasses21open HaarPathGraph HaarPathProfiles22open scoped BigOperators23attribute [local instance] Classical.propDecidable24variable {V : Type*} [Fintype V] [DecidableEq V] {d m : ℕ}2526instance refinedClassFintype : Fintype (RefinedClass V d m) := Quotient.fintype _2728def refinedToCoarse : RefinedClass V d m → PathClass V d m :=29  Quotient.lift (Quotient.mk _) (fun _ _ h => Quotient.sound h.samePattern)3031@[simp] theorem refinedToCoarse_mk (P : Path V d m) :32    refinedToCoarse (Quotient.mk _ P)=Quotient.mk _ P := rfl3334/-- Actual refined classes lying over a given coarse class. -/35def RefinedOver (C : PathClass V d m) := {D : RefinedClass V d m // refinedToCoarse D=C}3637instance (C : PathClass V d m) : Fintype (RefinedOver C) := by38  unfold RefinedOver39  infer_instance4041def orientation (P : Path V d m) (s : P.unorientedChains) : P.CoreChain :=42  Classical.choose (show s.val.Nonempty from by43    obtain ⟨c,hc,he⟩ := Finset.mem_image.mp s.property44    rw [←he]45    simp)4647omit [Fintype V] in48theorem orientation_mem (P : Path V d m) (s : P.unorientedChains) :49    orientation P s ∈ s.val := Classical.choose_spec _5051def chainOrbit (P : Path V d m) (c : P.CoreChain) : P.unorientedChains :=52  ⟨{c,P.coreChainReverse c},Finset.mem_image.mpr ⟨c,Finset.mem_univ _,rfl⟩⟩5354theorem orientation_cases (P : Path V d m) (c : P.CoreChain) :55    orientation P (chainOrbit P c)=c ∨56      orientation P (chainOrbit P c)=P.coreChainReverse c := by57  simpa only [chainOrbit,Finset.mem_insert,Finset.mem_singleton] using58    orientation_mem P (chainOrbit P c)5960def overRepresentative {C : PathClass V d m} (D : RefinedOver C) : Path V d m :=61  Quotient.out D.val6263theorem over_samePattern {C : PathClass V d m} (D : RefinedOver C) :64    SamePattern (Quotient.out C) (overRepresentative D) := by65  apply @Quotient.exact _ (pathSetoid (V := V) (d := d) (m := m))66  change Quotient.mk _ (Quotient.out C)=refinedToCoarse (Quotient.mk _ (overRepresentative D))67  rw [Quotient.out_eq]68  have hd : (Quotient.mk _ (overRepresentative D) : RefinedClass V d m)=D.val :=69    Quotient.out_eq D.val70  rw [hd,D.property]7172/-- The actual profile labels on chosen orientations of the representative's73suppressed chains. -/74def overProfileAssignment {C : PathClass V d m} (D : RefinedOver C) :75    (Quotient.out C).unorientedChains → BoundedProfile (Color d) m :=76  fun s => (overRepresentative D).coreChainProfile77    ((over_samePattern D).coreChainEquiv (orientation (Quotient.out C) s))7879/-- Equality on one orientation forces equality on the reverse orientation. -/80theorem overProfiles_all {C : PathClass V d m} (D E : RefinedOver C)81    (he : overProfileAssignment D=overProfileAssignment E)82    (c : (Quotient.out C).CoreChain) :83    (overRepresentative D).coreChainProfile ((over_samePattern D).coreChainEquiv c)=84      (overRepresentative E).coreChainProfile ((over_samePattern E).coreChainEquiv c) := by85  have h := congrFun he (chainOrbit (Quotient.out C) c)86  change (overRepresentative D).coreChainProfile87      ((over_samePattern D).coreChainEquiv (orientation _ _)) =88    (overRepresentative E).coreChainProfile89      ((over_samePattern E).coreChainEquiv (orientation _ _)) at h90  rcases orientation_cases (Quotient.out C) c with hc | hc91  · simpa only [hc] using h92  · rw [hc] at h93    simp only [SamePattern.coreChainEquiv_apply,SamePattern.coreChainMap_reverse] at h94    have hr := HaarPathGraph.Path.coreChainProfile_reverse_eq_of_profile_eq95      (overRepresentative D) (overRepresentative E) _ _ h96    simpa only [Path.coreChainReverse_involutive] using hr9798/-- The profile assignment is injective on the genuine refined quotient. -/99theorem overProfileAssignment_injective (C : PathClass V d m) :100    Function.Injective (@overProfileAssignment V _ _ d m C) := by101  intro D E he102  let hD := over_samePattern D103  let hE := over_samePattern E104  let hDE := hD.symm.trans hE105  have hr : RefinedPattern (overRepresentative D) (overRepresentative E) := by106    refine ⟨hDE,fun c => ?_⟩107    let a := hD.coreChainEquiv.symm c108    have ha : hD.coreChainEquiv a=c := hD.coreChainEquiv.apply_symm_apply c109    have hv := overProfiles_all D E he a110    have ht : hDE.coreChainEquiv (hD.coreChainEquiv a)=hE.coreChainEquiv a := by111      simpa only [SamePattern.coreChainEquiv_apply] using112        (hD.coreChainMap_trans hDE a).symm113    rw [ha] at hv ht114    exact hv.trans (congrArg (overRepresentative E).coreChainProfile ht.symm)115  apply Subtype.ext116  calc117    D.val = Quotient.mk _ (overRepresentative D) := (Quotient.out_eq D.val).symm118    _ = Quotient.mk _ (overRepresentative E) := Quotient.sound hr119    _ = E.val := Quotient.out_eq E.val120121/-- Exact refined-fibre count with the original profile exponent. -/122theorem card_refinedOver_le (C : PathClass V d m) (hm : 0 < m) (hd : 0 < d) :123    Fintype.card (RefinedOver C) ≤124      (2*d*m^d)^(3*(Quotient.out C).defectTwice+4) := by125  calc126    _ ≤ Fintype.card ((Quotient.out C).unorientedChains → BoundedProfile (Color d) m) :=127      Fintype.card_le_of_injective _ (overProfileAssignment_injective C)128    _ ≤ _ := (Quotient.out C).card_chainProfileAssignments_le hm hd129130/-- Actual refined classes at a fixed integer defect. -/131abbrev RefinedDefectClass (V : Type*) [Fintype V] [DecidableEq V]132    (m δ : ℕ) (hm : 0 < m) :=133  {D : RefinedClass V 2 m // classDefectTwice hm (refinedToCoarse D)=δ}134135def refinedDefectEquiv (hm : 0 < m) (δ : ℕ) :136    RefinedDefectClass V m δ hm ≃137      Σ C : DefectClass V m δ hm, RefinedOver C.val where138  toFun D := ⟨⟨refinedToCoarse D.val,D.property⟩,⟨D.val,rfl⟩⟩139  invFun CD := ⟨CD.2.val,by rw [CD.2.property]; exact CD.1.property⟩140  left_inv D := rfl141  right_inv CD := by142    obtain ⟨⟨C,hC⟩,D,hD⟩ := CD143    dsimp at hD144    subst C145    rfl146147/-- Corrected coarse-class and exact profile counts combined on the genuine148refined quotient, with no class-cardinality hypothesis. -/149theorem card_refinedDefectClass_le (hm : 0 < m) (δ : ℕ) :150    Fintype.card (RefinedDefectClass V m δ hm) ≤151      128^(δ+2)*m^(3*δ+6)*(4*m^2)^(3*δ+4) := by152  rw [Fintype.card_congr (refinedDefectEquiv hm δ),Fintype.card_sigma]153  have hC (C : DefectClass V m δ hm) :154      Fintype.card (RefinedOver C.val) ≤ (4*m^2)^(3*δ+4) := by155    have h := card_refinedOver_le C.val hm (by decide : 0 < 2)156    have hd := classRepresentative_defect hm C157    change (Quotient.out C.val).defectTwice=δ at hd158    simpa only [hd,show 2*2=4 from rfl] using h159  calc160    _ ≤ ∑ C : DefectClass V m δ hm, (4*m^2)^(3*δ+4) :=161      Finset.sum_le_sum (fun C _ => hC C)162    _ = Fintype.card (DefectClass V m δ hm)*(4*m^2)^(3*δ+4) := by simp163    _ ≤ _ := Nat.mul_le_mul_right _ (card_defectClass_le hm δ)164165/-- Every concrete subfamily of refined classes at a fixed defect inherits166our genuine quotient bound. -/167theorem card_refined_subfamily_le (hm : 0 < m) (δ : ℕ)168    (s : Finset (RefinedClass V 2 m))169    (hs : ∀ C ∈ s, classDefectTwice hm (refinedToCoarse C)=δ) :170    s.card ≤ 128^(δ+2)*m^(3*δ+6)*(4*m^2)^(3*δ+4) := by171  let f : s → RefinedDefectClass V m δ hm := fun C => ⟨C.val,hs C.val C.property⟩172  have hf : Function.Injective f := by173    intro C D h174    have he := congrArg (fun x : RefinedDefectClass V m δ hm => x.val) h175    exact Subtype.ext he176  have h := Fintype.card_le_of_injective f hf177  simp only [Fintype.card_coe] at h178  exact h.trans (card_refinedDefectClass_le hm δ)179180end Nonadditivity.HaarPathClasses