Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
f94bb5c
Import A proof of the Regts–Sevenster conjecture, formalized
Vilin97 Sep 21, 2026
abc9131
Refine full import for Lean 4.34 compatibility and quality checks
Vilin97 Sep 21, 2026
4f7f875
Port tensor, coend and power series foundations to current Mathlib
Vilin97 Sep 21, 2026
c795dc3
Repair tensor permutation and module relation proofs
Vilin97 Sep 21, 2026
441add3
Update algebra coefficients and transparent graded object constructions
Vilin97 Sep 21, 2026
c2a232e
Port symmetric algebra and stabilize orientation and copairing proofs
Vilin97 Sep 21, 2026
6744e3e
Update remaining coefficient and induction APIs and port tensor const…
Vilin97 Sep 21, 2026
e47d212
Port tensor coherence and skein assembly proofs to current Mathlib
Vilin97 Sep 21, 2026
b8a23cf
Port module pairings and supermodule shifts to current Mathlib
Vilin97 Sep 21, 2026
5b52430
Update pairing permutations and Day functor coherence
Vilin97 Sep 21, 2026
327660b
Repair tensor associators and fibre functor support proofs
Vilin97 Sep 21, 2026
316c745
Port tensor power triangles and induction character splitting
Vilin97 Sep 21, 2026
05a4adc
Port induction coefficients and relative tensor comparisons
Vilin97 Sep 22, 2026
3d3a9a9
Factor fibre monoidal coherence through typed products
Vilin97 Sep 22, 2026
1a53a27
Port remaining tensor and chain coherence frontier to Lean 4.34
Vilin97 Sep 22, 2026
e1c613c
Port scalar braiding and monoidal base-change coherence
Vilin97 Sep 22, 2026
e6aa47a
Port graded chain and adjoint compatibility through bounded lemmas
Vilin97 Sep 22, 2026
39efe4a
Repair graded colimit and standard letter rewrites
Vilin97 Sep 22, 2026
070a108
Restore seed insertion and image algebra coherence proofs
Vilin97 Sep 22, 2026
8538d7e
Repair pair carrier and simple quotient comparisons
Vilin97 Sep 22, 2026
5a2af3a
Repair residue monoid and odd-line simplicity proofs
Vilin97 Sep 22, 2026
16a2a24
Bound transparency in residue unit-law rewrites
Vilin97 Sep 22, 2026
956910b
Port residue comparison inverse laws to current coercion transparency
Vilin97 Sep 22, 2026
a30d864
Restore compiled statement and definition contracts for Regts Sevenster
Vilin97 Sep 22, 2026
6e6c177
Merge remote-tracking branch 'origin/main' into pr-499
github-actions[bot] Sep 22, 2026
1c9c064
Merge remote-tracking branch 'origin/main' into pr-499
github-actions[bot] Sep 23, 2026
91a7ee9
Merge remote-tracking branch 'origin/main' into pr-499
github-actions[bot] Sep 23, 2026
8fdbee9
Merge remote-tracking branch 'origin/main' into pr-499
github-actions[bot] Sep 24, 2026
319ff56
Refactor Regts proofs within quality limits and resolve compiler warn…
Vilin97 Sep 25, 2026
a8ae738
Migrate the complete Regts import to Lean modules
Vilin97 Sep 25, 2026
8b384dc
Repair Regts module visibility and exported interfaces
Vilin97 Sep 25, 2026
8162a85
Sync main while preserving complete Regts project card
Vilin97 Sep 25, 2026
5df7e53
Repair public interfaces across Regts module boundaries
Vilin97 Sep 25, 2026
030b88e
Repair remaining Regts interfaces and tensor-power reassociation
Vilin97 Sep 25, 2026
a3482e6
Repair Regts fold and graded module interfaces
Vilin97 Sep 25, 2026
5db6813
Remove redundant Regts walk premises and local proofs
Vilin97 Sep 25, 2026
972f9f6
Merge remote-tracking branch 'origin/main' into fix/regts-unused-inte…
Vilin97 Sep 25, 2026
ff335a0
Remove unused duplicate disjoint-union helper block
Vilin97 Sep 25, 2026
1c5b701
Repair Regts module interfaces and local proof scopes
Vilin97 Sep 25, 2026
9738d73
Merge remote-tracking branch 'origin/codex/import42-regts-sevenster' …
Vilin97 Sep 25, 2026
9c5aae1
Preserve shared disjoint-union helper interfaces
Vilin97 Sep 25, 2026
2a60fd2
Repair scoped crossing statements and equivalence proof arguments
Vilin97 Sep 25, 2026
7b5cfd2
Lay out the final tensor survivor proof argument explicitly
Vilin97 Sep 25, 2026
8d24bd8
Repair downstream skein instances and preserve order-comparison inter…
Vilin97 Sep 25, 2026
8506caa
Repair remaining tensor and coordinate module interfaces
Vilin97 Sep 26, 2026
f54e33b
Merge main and preserve all YAML project registrations
Vilin97 Sep 26, 2026
94be646
Merge main and preserve all YAML project registrations
Vilin97 Sep 26, 2026
44adb23
Supply local classical instances for glued colouring sums
Vilin97 Sep 26, 2026
42d2fdf
Merge remote-tracking branch 'origin/main' into HEAD
Vilin97 Sep 26, 2026
ec6038b
refactor(RegtsSevenster): finish tactic and proof-budget commentary c…
Vilin97 Sep 26, 2026
3af8182
fix(RegtsSevenster): close skein visibility and explicit simp frontiers
Vilin97 Sep 26, 2026
89b80c1
Merge remote-tracking branch 'origin/main' into pr-499
github-actions[bot] Sep 26, 2026
46d25a8
Merge remote-tracking branch 'origin/main' into pr-499
github-actions[bot] Sep 26, 2026
d2938ef
Merge remote-tracking branch 'origin/main' into pr-499
github-actions[bot] Sep 26, 2026
5051613
fix(RegtsSevenster): close empty ledger count and trim unused simp rules
Vilin97 Sep 26, 2026
c95b922
Reuse the empty-interface ledger lemma in the recursion base case
Vilin97 Sep 26, 2026
d4e06ca
Restore local decidability in the relabelled edge sum proof
Vilin97 Sep 26, 2026
bead875
Supply proof-local decidability for closed boundary agreement
Vilin97 Sep 26, 2026
5f416a0
Merge remote-tracking branch 'origin/main' into pr-499
github-actions[bot] Sep 26, 2026
7a0d769
Fix Regts-Sevenster formatting warnings
Vilin97 Sep 26, 2026
73e484b
Merge remote-tracking branch 'origin/main' into pr-499
github-actions[bot] Sep 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
838 changes: 838 additions & 0 deletions LeanPool.lean

Large diffs are not rendered by default.

856 changes: 856 additions & 0 deletions LeanPool/RegtsSevenster.lean

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions LeanPool/RegtsSevenster/RS.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/-
Copyright (c) 2026 William Whistler. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: William Whistler
-/

module

public import LeanPool.RegtsSevenster.RS.Common
public import LeanPool.RegtsSevenster.RS.Classical
public import LeanPool.RegtsSevenster.RS.Novel
public import LeanPool.RegtsSevenster.RS.Definitions
public import LeanPool.RegtsSevenster.RS.StatementConverse
public import LeanPool.RegtsSevenster.RS.TheoremForward
public import LeanPool.RegtsSevenster.RS.TheoremQuant
public import LeanPool.RegtsSevenster.RS.TheoremTotal
public import LeanPool.RegtsSevenster.RS.TheoremConverse
public import LeanPool.RegtsSevenster.RS.QuantSector
public import LeanPool.RegtsSevenster.RS.Glossary
public import LeanPool.RegtsSevenster.RS.Assembly.BlueprintStatement
public import LeanPool.RegtsSevenster.RS.Assembly.Blueprint
public import LeanPool.RegtsSevenster.RS.Assembly.BlueprintConverse
public import LeanPool.RegtsSevenster.RS.Assembly.BlueprintSchur
public import LeanPool.RegtsSevenster.RS.Classical.Deligne
public import LeanPool.RegtsSevenster.RS.Summit
public import LeanPool.RegtsSevenster.RS.Assembly.BlueprintDeligne
public import LeanPool.RegtsSevenster.RS.Assembly.BlueprintFactorial
public import LeanPool.RegtsSevenster.RS.DimensionDefinitions
public import LeanPool.RegtsSevenster.RS.TheoremDimension
public import LeanPool.RegtsSevenster.RS.TheoremPadding
1,046 changes: 1,046 additions & 0 deletions LeanPool/RegtsSevenster/RS/Assembly/Blueprint.lean

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions LeanPool/RegtsSevenster/RS/Assembly/BlueprintConverse.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
/-
Copyright (c) 2026 William Whistler. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: William Whistler
-/

module

public import LeanPool.RegtsSevenster.RS.Assembly.BlueprintSchur
public import LeanPool.RegtsSevenster.RS.Novel.Skein.LoopExample
public import LeanPool.RegtsSevenster.RS.TheoremConverse

/-!
# Blueprint: the converse audit

The third part of the axiom audit: the chord diagram of a boundary
pairing, the super Gram identity, the interface lift, and the
converse itself. The prose between pins says what each step
contributes; read `Blueprint.lean` first for the forward direction.
-/

/-! ### Chords of the boundary pairing

A subset's boundary flags pair up into chords; the involution
that records them, extended by the identity off the used labels,
is what the Koszul sign is read from.
-/

/- Upstream audit output: 'RS.EdgeSubset.pathMatch_eq_pairing_of_boundary' depends on axioms:
[propext, Classical.choice, Quot.sound] -/

-- Boundary flags carry distinct labels, so a subset has at most as
-- many as the interface has labels. With the parity above, one label
-- leaves the boundary unused and forces a surviving state into the
-- even sector.

-- A matching state's odd labels are in bijection with the subset's
-- boundary flags, so there is an even number of them -- which is
-- exactly what the Koszul sign's exponent is handed.

-- The out-end test asks for an odd colour, so an everywhere-even state
-- is its own twist and carries no sign: there the conjugated kernel is
-- the plain Koszul kernel at the raw states.

-- So the Koszul sign is read off the chord diagram: at a matching
-- state it is (-1) to the number of chords of the very diagram the cut
-- signs are computed from.

-- Crossing asks for a strict interleaving, so a chord with equal ends
-- crosses nothing and nothing crosses it: an involution extended by
-- the identity off a subset has the crossing count of its genuine
-- chords alone.

-- Chords pair up the labels a subset uses; extending by the identity
-- off those labels gives an involution of the whole interface, whose
-- genuine chords are the subset's and whose fixed points are the
-- unused labels. This is what the restriction transports apply to.

/- Upstream audit output: 'RS.EdgeSubset.boundaryFlag_chordInv' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.chordInv_mem' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.chordInv_invol' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.chordInv_ne' depends on axioms: [propext, Classical.choice,
Quot.sound] -/

-- At a used label the two chord descriptions coincide -- the
-- involution's chord is the sorted pair the diagram records -- and at
-- an unused one the involution's chord is degenerate, hence inert.

/- Upstream audit output: 'RS.EdgeSubset.boundaryLabel_boundaryFlag' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

-- The cycle data is permutation-theoretic and reads no order, so
-- conjugating both involutions by a bijection carries the walk, its
-- return time and its label set across, and the cycle count is
-- unchanged.

/-! ### The Gram identity

The connection matrix of a parameter with a super Gram
factorization has bounded rank, which is the converse's engine.
-/

/- Upstream audit output: 'RS.converse_of_superGram' depends on axioms: [propext, Classical.choice,
Quot.sound] -/

/- Upstream audit output: 'RS.converse_of_superGramIdentity' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.exists_sum_sum_superForm_tFull' depends on axioms:
[propext, Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.exists_sum_sum_superForm_tensorTermAt' depends on axioms:
[propext, Classical.choice, Quot.sound] -/

/-! ### The interface lift

Transition data carried up the gluing interface one cut at a time
and back down: the lift, the two glue branches, and the round
trip on directions and on the matching.
-/

/- Upstream audit output: 'RS.EdgeSubset.sign_composition_pair' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.chainDir_pushData_alternates' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.edgeSum_closeBase_eq_pairAgreeValue' depends on axioms:
[propext, Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.liftData' depends on axioms: [propext, Classical.choice,
Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.glueDataOpen' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.glueDataClosed' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.match_unglue_glueDataOpen' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.isOut_unglue_glueDataOpen' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.match_unglue_glueDataClosed' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.isOut_unglue_glueDataClosed' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.edgeTermAt_pushData_colourSum' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/-! ### The base sum and the converse

The subset sum over the composition's base, its independence of
the free bits, and the theorems of record.
-/

/- Upstream audit output: 'RS.EdgeSubset.summandSum_bits_indep' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.baseSumBitsOf_all' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.baseSumIsClosure_all' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.EdgeSubset.superGramIdentity' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.regts_sevenster_converse' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.regts_sevenster_iff' depends on axioms: [propext, Classical.choice,
Quot.sound] -/

/- Upstream audit output: 'RS.regts_sevenster_quant_roundtrip' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/-! ### Definition 5, evaluated

The paper's worked example: the loop graph against the functional
whose mixed partition function is the characteristic polynomial.
Its value `θ − 2` fixes the loop's two incidences, the Eulerian
condition, the circuit sign and the `η`-convention all at once;
adjoining a free circle sends the same functional to `0`, which
fixes the loop/free-circle distinction.
-/

/- Upstream audit output: 'RS.mixedPartition_loopGraph' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.mixedPartition_loopGraphCircle' depends on axioms: [propext,
Classical.choice, Quot.sound] -/
91 changes: 91 additions & 0 deletions LeanPool/RegtsSevenster/RS/Assembly/BlueprintDeligne.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
/-
Copyright (c) 2026 William Whistler. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: William Whistler
-/

module

public import LeanPool.RegtsSevenster.RS.Summit

/-!
# Audit: Deligne's theorem and the unconditional summit

The pinned axiom checks for Deligne’s theorem and the unconditional
summit statements. Each `#guard_msgs`
fails the build if the axiom set changes, so the claim that these
depend on nothing beyond `propext`, `Classical.choice` and
`Quot.sound` is checked rather than asserted.
-/

@[expose] public section

namespace RS

/-! ### Deligne's theorem -/

/- Upstream audit output: 'RS.deligne_theorem' depends on axioms: [propext, Classical.choice,
Quot.sound] -/

/- Upstream audit output: 'RS.braidedFibreHypothesis' depends on axioms: [propext, Classical.choice,
Quot.sound] -/

/- Upstream audit output: 'RS.exists_splitting_simple_algebra_doubled' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.exists_simple_quotient' depends on axioms: [propext, Classical.choice,
Quot.sound] -/

/-! ### The summit, unconditionally -/

/- Upstream audit output: 'RS.regts_sevenster' depends on axioms: [propext, Classical.choice,
Quot.sound] -/

/- Upstream audit output: 'RS.regts_sevenster_quant' depends on axioms: [propext, Classical.choice,
Quot.sound] -/

/- Upstream audit output: 'RS.regts_sevenster_total' depends on axioms: [propext, Classical.choice,
Quot.sound] -/

/- Upstream audit output: 'RS.regts_sevenster_characterisation' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.regts_sevenster_quant_characterisation' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/-! ### Minimum dimensions, growth and padding -/

/- Upstream audit output: 'RS.minimumColourDimension_le_of_represents' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.TotalBoundedMixedModel.dimension_eq_minimum' depends on axioms:
[propext, Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.stdModel_dimension_eq_minimum' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.stdModel_connectionRank_growth' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.MixedColourEmbedding.mixedPartition_extendColours' depends on axioms:
[propext, Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.MixedFunctional.padColours_represents' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.TotalBoundedMixedModel.even_dimension_eq' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.TotalBoundedMixedModel.half_odd_dimension_eq' depends on axioms:
[propext, Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.regts_sevenster_minimum' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.regts_sevenster_rank_growth' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

/- Upstream audit output: 'RS.regts_sevenster_prescribed' depends on axioms: [propext,
Classical.choice, Quot.sound] -/

end RS
Loading
Loading