Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarPathReconstructionTree

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

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

8 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPathReconstructionFresh7import Nonadditivity.HaarPathNormalizedTreeColors89/-! # Reconstructing each complete block of sparse exploration data -/10noncomputable section11namespace Nonadditivity.HaarPathClasses12open HaarPathGraph HaarPathProfiles13variable {V : Type*} [DecidableEq V] {m : ℕ} {P Q : Path V 2 m}1415/-- The marked endpoint determines the old-tree run, its length, and both16local labels of every step. Only the already decoded prefix is used. -/17theorem normalizedPrefixEq_to_treeStop (hm : 0 < m) (i : Fin m)18    (hmark : explorationMark P hm i=explorationMark Q hm i)19    (hp : NormalizedPrefixEq P Q hm (i.val+1)) :20    treeStop P i=treeStop Q i ∧ NormalizedPrefixEq P Q hm (treeStop P i) := by21  have hP := P.exploration_block_split (i.val+1) (by omega)22  have hQ := Q.exploration_block_split (i.val+1) (by omega)23  have hbP := treeStop_bounds P i24  have hbQ := treeStop_bounds Q i25  have hend : P.vertexName hm ⟨treeStop P i,by omega⟩ =26      Q.vertexName hm ⟨treeStop Q i,by omega⟩ :=27    congrArg (fun x : ExplorationMark m => x.2.1) hmark28  obtain ⟨hs,hv,hc⟩ := normalized_old_tree_reconstruction P Q hm29    (colorNormalizer P hm) (colorNormalizer Q hm)30    (i.val+1) (treeStop P i) (treeStop Q i)31    hbP.1 hbQ.1 hbP.2 hbQ.232    (fun j haj hjs => (hP.2.1 j haj hjs).2)33    (fun j haj hjs => (hP.2.1 j haj hjs).1)34    (fun j haj hjs => (hQ.2.1 j haj hjs).2)35    (fun j haj hjs => (hQ.2.1 j haj hjs).1)36    hp.1 hp.2 hend37  refine ⟨hs,?_,?_⟩38  · intro j hj39    by_cases hja : j.val ≤ i.val+140    · exact hp.1 j hja41    · exact hv j (by omega) hj42  · rintro ⟨j,b⟩ hj43    by_cases hja : j.val < i.val+144    · exact hp.2 (j,b) hja45    · exact hc j (by omega) hj b4647/-- One full important-edge / old-tree / fresh-run block is reconstructed48from its literal sparse mark and previously known data. -/49theorem normalizedPrefixEq_block (hm : 0 < m) (i : Fin m)50    (hevents : explorationEventList P hm=explorationEventList Q hm)51    (hi : i∈P.importantTimes) (hp : NormalizedPrefixEq P Q hm i.val) :52    NormalizedPrefixEq P Q hm (P.nextImportant (i.val+1)) := by53  have hmark := explorationMark_eq_of_eventList_eq hm hevents i hi54  have hp' := normalizedPrefixEq_extend_mark hm i hp hmark55  obtain ⟨hstop,hpstop⟩ := normalizedPrefixEq_to_treeStop hm i hmark hp'56  exact normalizedPrefixEq_after_treeStop hm i hevents hmark hstop hpstop5758end Nonadditivity.HaarPathClasses