Exact Lean source
Nonadditivity.HaarPathExplorationCounterexample
Download original .lean · View on GitHub · Jump to source
Catalog entries: Corrected important-exploration-time count
Direct imports
Imported by project modules
1 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
10 project constants, including generated, internal and private declarations.
10 declarations
Nonadditivity.HaarPathExplorationCounterexample.attains_corrected_important_boundNonadditivity.HaarPathExplorationCounterexample.balanced_countsNonadditivity.HaarPathExplorationCounterexample.defect_twiceNonadditivity.HaarPathExplorationCounterexample.first_timesNonadditivity.HaarPathExplorationCounterexample.important_timesNonadditivity.HaarPathExplorationCounterexample.pathNonadditivity.HaarPathExplorationCounterexample.path._proof_1internal/detail/privateNonadditivity.HaarPathExplorationCounterexample.path._proof_2internal/detail/privateNonadditivity.HaarPathExplorationCounterexample.path._proof_3internal/detail/privateNonadditivity.HaarPathExplorationCounterexample.violates_uncorrected_important_bound
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPathExploration78/-! # The terminal-tree-edge correction is necessary910A literal reduced, closed and generator-balanced two-generator path refutes11BC Lemma 5.3's intermediate bound on important times. It does not refute the12lemma's final class count. HaarPathExploration proves the corrected bound.13-/14noncomputable section15namespace Nonadditivity.HaarPathExplorationCounterexample16open HaarPathGraph HaarPathProfiles1718/-- Go along an `a` edge, traverse the `b,a,B,A` commutator of two loops,19and return along the original edge. The word is `abaBAA`. -/20def path : Path (Fin 2) 2 6 where21vertex := ![0,1,1,1,1,1,0]22colors := ![(0,true),(1,true),(0,true),(1,false),(0,false),(0,false)]23closed := rfl24reduced := by decide2526theorem balanced_counts :27(List.ofFn path.colors).count (0,true)=2 ∧28(List.ofFn path.colors).count (0,false)=2 ∧29(List.ofFn path.colors).count (1,true)=1 ∧30(List.ofFn path.colors).count (1,false)=1 := by decide3132theorem first_times : path.firstTimes={0} := by decide3334theorem important_times : path.importantTimes={1,2,3,4} := by decide3536theorem defect_twice : path.defectTwice=2 := by decide3738/-- Excluding the final traversal does not remove an important time in this39example: that traversal belongs to the discovery tree. -/40theorem violates_uncorrected_important_bound :41path.defectTwice+1 <42(path.importantTimes.filter fun i => i.val+1<6).card := by decide4344theorem attains_corrected_important_bound :45path.importantTimes.card=path.defectTwice+2 := by decide4647end Nonadditivity.HaarPathExplorationCounterexample