Offline · exact source
Exact Lean source

GeneralSymmetricDimension

formalization/Cloning/GeneralSymmetricDimension.lean

Source hash: 118effd9da84cba931e0a726a8d414314fac05557f3224c0cc17d8b9fa203bc0

Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.

The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.

Declarations in this module
1import Cloning.GeneralSymmetricOccupation
2import Cloning.WernerNormalization
3import Mathlib.Data.Fintype.BigOperators
4 
5/-! # All occupation profiles and the general symmetric-tensor dimension
6 
7Every nonnegative multiplicity vector summing to the tensor length is realized
8by an actual computational word. Thus the constructed occupation basis has the
9usual stars-and-bars dimension.
10-/
11noncomputable section
12set_option synthInstance.maxHeartbeats 200000
13set_option maxHeartbeats 1000000
14open scoped BigOperators
15 
16namespace Cloning.GeneralSymmetricOccupation
17 
18theorem profile_sum {L d : ℕ} (w : Word L d) : ∑ a, profile w a = L := by
19  have h := Fintype.card_congr (Equiv.sigmaFiberEquiv w)
20  simpa [Fintype.card_sigma, profile] using h
21 
22/-- Every composition of the tensor length is realized by a computational word. -/
23theorem exists_word_of_sum {L d : ℕ} (q : Fin d → ℕ) (hq : ∑ a, q a = L) :
24    ∃ w : Word L d, profile w = q := by
25  classical
26  let e : Fin L ≃ (Σ a : Fin d, Fin (q a)) :=
27    Fintype.equivOfCardEq (by simpa using hq.symm)
28  let w : Word L d := fun i => (e i).1
29  refine ⟨w, funext fun a => ?_⟩
30  let f : {i : Fin L // w i = a} ≃ {x : Σ b : Fin d, Fin (q b) // x.1 = a} :=
31    e.subtypeEquiv (fun _ => Iff.rfl)
32  have h := Fintype.card_congr (f.trans (Equiv.sigmaSubtype a))
33  simpa [profile] using h
34 
35/-- Realized occupations are exactly the stars-and-bars compositions. -/
36def compositionEquiv (L d : ℕ) :
37    Occupation L d ≃ {q : Fin d → ℕ // ∑ a, q a = L} where
38  toFun q := ⟨q.val, by rcases q.property with ⟨w, hw⟩; rw [← hw]; exact profile_sum w⟩
39  invFun q := ⟨q.val, exists_word_of_sum q.val q.property⟩
40  left_inv _ := rfl
41  right_inv _ := rfl
42 
43theorem occupation_card (L s : ℕ) :
44    Fintype.card (Occupation L (s + 1)) = (L + s).choose s := by
45  let e : Occupation L (s + 1) ≃
46      {q // q ∈ Finset.Nat.antidiagonalTuple (s + 1) L} :=
47    (compositionEquiv L (s + 1)).trans (Equiv.subtypeEquivRight (fun q : Fin (s + 1) → ℕ =>
48      Finset.Nat.mem_antidiagonalTuple.symm))
49  rw [Fintype.card_congr e, Fintype.card_coe]
50  exact Cloning.WernerNormalization.antidiagonalTuple_card s L
51 
52end Cloning.GeneralSymmetricOccupation