Exact Lean source
Nonadditivity.HaarPathReconstructionTree
Download original .lean · View on GitHub · Jump to source
Imported by project modules
2 direct reverse imports
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
Nonadditivity.HaarPathClasses.normalizedPrefixEq_blockNonadditivity.HaarPathClasses.normalizedPrefixEq_to_treeStopNonadditivity.HaarPathClasses.normalizedPrefixEq_to_treeStop._proof_1_1internal/detail/privateNonadditivity.HaarPathClasses.normalizedPrefixEq_to_treeStop._proof_1_2internal/detail/privateNonadditivity.HaarPathClasses.normalizedPrefixEq_to_treeStop._proof_1_3internal/detail/privateNonadditivity.HaarPathClasses.normalizedPrefixEq_to_treeStop._proof_1_4internal/detail/privateNonadditivity.HaarPathClasses.normalizedPrefixEq_to_treeStop._proof_1_5internal/detail/privateNonadditivity.HaarPathClasses.normalizedPrefixEq_to_treeStop._proof_1_6internal/detail/private
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)) :20treeStop P i=treeStop Q i ∧ NormalizedPrefixEq P Q hm (treeStop P i) := by21have hP := P.exploration_block_split (i.val+1) (by omega)22have hQ := Q.exploration_block_split (i.val+1) (by omega)23have hbP := treeStop_bounds P i24have hbQ := treeStop_bounds Q i25have hend : P.vertexName hm ⟨treeStop P i,by omega⟩ =26Q.vertexName hm ⟨treeStop Q i,by omega⟩ :=27congrArg (fun x : ExplorationMark m => x.2.1) hmark28obtain ⟨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)31hbP.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)36hp.1 hp.2 hend37refine ⟨hs,?_,?_⟩38· intro j hj39by_cases hja : j.val ≤ i.val+140· exact hp.1 j hja41· exact hv j (by omega) hj42· rintro ⟨j,b⟩ hj43by_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) :52NormalizedPrefixEq P Q hm (P.nextImportant (i.val+1)) := by53have hmark := explorationMark_eq_of_eventList_eq hm hevents i hi54have hp' := normalizedPrefixEq_extend_mark hm i hp hmark55obtain ⟨hstop,hpstop⟩ := normalizedPrefixEq_to_treeStop hm i hmark hp'56exact normalizedPrefixEq_after_treeStop hm i hevents hmark hstop hpstop5758end Nonadditivity.HaarPathClasses