Exact Lean source
Nonadditivity.HaarPathSupport
Download original .lean · View on GitHub · Jump to source
Imported by project modules
3 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
14 project constants, including generated, internal and private declarations.
14 declarations
Nonadditivity.HaarPathGraph.Path.outgoingCount.eq_1internal/detail/privateNonadditivity.HaarPathWeights.columnCount_negative_pathEntriesNonadditivity.HaarPathWeights.columnCount_negative_pathEntries._simp_1_2internal/detail/privateNonadditivity.HaarPathWeights.columnCount_positive_pathEntriesNonadditivity.HaarPathWeights.columnCount_positive_pathEntries._simp_1_1internal/detail/privateNonadditivity.HaarPathWeights.even_length_of_integral_ne_zeroNonadditivity.HaarPathWeights.even_length_of_integral_ne_zero._proof_1_1internal/detail/privateNonadditivity.HaarPathWeights.integral_pathProduct_eq_zero_of_vertices_gtNonadditivity.HaarPathWeights.integral_pathProduct_eq_zero_of_vertices_gt._proof_1_1internal/detail/privateNonadditivity.HaarPathWeights.locallyBalanced_of_integral_ne_zeroNonadditivity.HaarPathWeights.rowCount_negative_pathEntriesNonadditivity.HaarPathWeights.rowCount_negative_pathEntries._simp_1_1internal/detail/privateNonadditivity.HaarPathWeights.rowCount_positive_pathEntriesNonadditivity.HaarPathWeights.rowCount_positive_pathEntries._simp_1_2internal/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.HaarPathBalance7import Nonadditivity.HaarPathLocalPhase89/-! # Vanishing of Haar path weights with too many vertices -/10noncomputable section11attribute [local instance 2000] instBEqOfDecidableEq12set_option backward.isDefEq.respectTransparency false13set_option maxHeartbeats 120000014namespace Nonadditivity.HaarPathWeights15open MeasureTheory HaarModel HaarFourthMoments HaarPathLocalPhase16open scoped BigOperators Matrix Matrix.Norms.L2Operator1718variable {N m : ℕ} (P : HaarPathGraph.Path (Fin (N+1)) 2 m)1920lemma rowCount_positive_pathEntries (a : Fin 2) (v : Fin (N+1)) :21rowCount (selected (a,true) (pathEntries P)) v=P.outgoingCount (a,true) v := by22rw [pathEntries, selected_rowCount_ofFn, HaarPathGraph.Path.outgoingCount]23congr 124ext i25cases hb : (P.colors i).2 <;> simp [hb,and_comm] <;>26intro hc <;> have he := congrArg Prod.snd hc <;> simp [hb] at he2728lemma rowCount_negative_pathEntries (a : Fin 2) (v : Fin (N+1)) :29rowCount (selected (a,false) (pathEntries P)) v=P.incomingCount (a,false) v := by30rw [pathEntries, selected_rowCount_ofFn, HaarPathGraph.Path.incomingCount]31congr 132ext i33cases hb : (P.colors i).2 <;> simp [hb,and_comm] <;>34intro hc <;> have he := congrArg Prod.snd hc <;> simp [hb] at he3536lemma columnCount_positive_pathEntries (a : Fin 2) (v : Fin (N+1)) :37columnCount (selected (a,true) (pathEntries P)) v=P.incomingCount (a,true) v := by38rw [pathEntries, selected_columnCount_ofFn, HaarPathGraph.Path.incomingCount]39congr 140ext i41cases hb : (P.colors i).2 <;> simp [hb,and_comm] <;>42intro hc <;> have he := congrArg Prod.snd hc <;> simp [hb] at he4344lemma columnCount_negative_pathEntries (a : Fin 2) (v : Fin (N+1)) :45columnCount (selected (a,false) (pathEntries P)) v=P.outgoingCount (a,false) v := by46rw [pathEntries, selected_columnCount_ofFn, HaarPathGraph.Path.outgoingCount]47congr 148ext i49cases hb : (P.colors i).2 <;> simp [hb,and_comm] <;>50intro hc <;> have he := congrArg Prod.snd hc <;> simp [hb] at he5152/-- Nonvanishing of the actual product Haar integral implies the precise53vertex-by-color balance used in the reduced-path combinatorics. -/54theorem locallyBalanced_of_integral_ne_zero55(h : (∫ U : LocalUnitary N × LocalUnitary N, pathProduct P U ∂(haar N).prod (haar N)) ≠ 0) :56P.LocallyBalanced := by57have hf : ∀ a : Fin 2,58(∫ U : LocalUnitary N,59listMonomial (selected (a,true) (pathEntries P)) (selected (a,false) (pathEntries P)) U60∂haar N) ≠ 0 := by61simp_rw [pathProduct_eq,signedProduct_eq] at h62rw [integral_prod_mul] at h63intro a64fin_cases a65· exact (mul_ne_zero_iff.mp h).166· exact (mul_ne_zero_iff.mp h).267intro c v68obtain ⟨a,b⟩ := c69have hc := counts_eq_of_integral_ne_zero _ _ (hf a) v70rw [rowCount_positive_pathEntries, rowCount_negative_pathEntries,71columnCount_positive_pathEntries,columnCount_negative_pathEntries] at hc72cases b73· exact hc.2.symm74· exact hc.17576/-- The same nonzero integral enforces even path length, independently of the77graph-theoretic argument. -/78theorem even_length_of_integral_ne_zero79(h : (∫ U : LocalUnitary N × LocalUnitary N, pathProduct P U ∂(haar N).prod (haar N)) ≠ 0) :80Even m := by81have hb : ∀ a : Fin 2,82(selected (a,true) (pathEntries P)).length=(selected (a,false) (pathEntries P)).length := by83intro a84by_contra ha85apply h86simp_rw [pathProduct_eq]87exact integral_signedProduct_eq_zero_of_unbalanced _ a ha88have hs := selected_lengths (pathEntries P)89rw [pathEntries_length] at hs90have h0 := hb 091have h1 := hb 192refine ⟨(selected (0,true) (pathEntries P)).length+(selected (1,true) (pathEntries P)).length,?_⟩93omega9495/-- The support restriction in BC Corollary 5.5, proved for the actual Haar96expectation and without a matrix-size hypothesis. -/97theorem integral_pathProduct_eq_zero_of_vertices_gt98(hv : m/2 < P.vertices.card) :99(∫ U : LocalUnitary N × LocalUnitary N, pathProduct P U ∂(haar N).prod (haar N))=0 := by100by_contra hn101have h := P.vertices_le_half_of_balanced (locallyBalanced_of_integral_ne_zero P hn)102(even_length_of_integral_ne_zero P hn)103omega104105end Nonadditivity.HaarPathWeights