Offline · exact source
Exact Lean source

TensorRankOneDimension

formalization/Cloning/TensorRankOneDimension.lean

Source hash: b83dca5dd8b76e6a8d720e6d5f356baa0fdbde2de09a499f6cfa8f909929aefd

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.WeylCharacterDimensionPhysical
2import Cloning.TensorCloningKernel
3import Mathlib.Data.Nat.Choose.Basic
4 
5/-! Exact dimensions of physical one-row cyclic sectors. -/
6noncomputable section
7open scoped BigOperators
8namespace Cloning.TensorLie
9open Cloning.WeylCharacter Cloning.TensorCloning
10set_option maxHeartbeats 1000000
11set_option backward.isDefEq.respectTransparency false
12 
13theorem dimensionProduct_oneRow (n d : ℕ) :
14    dimensionProduct (oneRowPartition n d) = ((n+d).choose d : ℝ) := by
15  rw [dimensionProduct_eq_pairProduct]
16  have hall (i : Fin (d+1)) :
17      (∏ j ∈ Finset.Ioi i,
18        (((oneRowPartition n d i : ℝ)-oneRowPartition n d j+j.val-i.val)/((j.val:ℝ)-i.val))) =
19      ∏ j : Fin (d+1), if i<j then
20        (((oneRowPartition n d i : ℝ)-oneRowPartition n d j+j.val-i.val)/((j.val:ℝ)-i.val)) else 1 := by
21    rw [← Finset.prod_filter]
22    congr 1
23    ext j
24    simp
25  simp_rw [hall]
26  rw [Fin.prod_univ_succ]
27  have htail : (∏ i : Fin d, ∏ j : Fin (d+1), if i.succ<j then
28      (((oneRowPartition n d i.succ : ℝ)-oneRowPartition n d j+j.val-i.succ.val)/
29        ((j.val:ℝ)-i.succ.val)) else 1)=1 := by
30    apply Finset.prod_eq_one
31    intro i _
32    apply Finset.prod_eq_one
33    intro j _
34    split_ifs with hij
35    · have hj : j ≠ 0 := by intro h; subst j; exact (not_lt_of_ge (Fin.zero_le _)) hij
36      have hgap : (j.val:ℝ)-i.succ.val ≠ 0 := (sub_pos.mpr (by exact_mod_cast hij)).ne'
37      simp only [oneRowPartition,if_neg (Fin.succ_ne_zero i),if_neg hj,Nat.cast_zero,
38        sub_self,zero_add,div_self hgap]
39    · rfl
40  rw [htail,mul_one,Fin.prod_univ_succ]
41  simp only [lt_self_iff_false,if_false,one_mul,Fin.succ_pos,if_true,
42    oneRowPartition,if_true,Fin.succ_ne_zero,if_false,Nat.cast_zero,sub_zero,Fin.val_zero,
43    Fin.val_succ,Nat.cast_add,Nat.cast_one]
44  rw [Finset.prod_div_distrib]
45  have hnum : (∏ j : Fin d, ((n:ℝ)+(j.val+1)))=((n+1).ascFactorial d : ℝ) := by
46    rw [Nat.ascFactorial_eq_prod_range]
47    simp only [Nat.cast_prod,Nat.cast_add,Nat.cast_one]
48    rw [← Fin.prod_univ_eq_prod_range]
49    apply Finset.prod_congr rfl
50    intro j _
51    ring
52  have hden : (∏ j : Fin d, (j.val+1:ℝ))=(d.factorial:ℝ) := by
53    rw [Nat.factorial_eq_prod_range_add_one]
54    simp only [Nat.cast_prod,Nat.cast_add,Nat.cast_one]
55    rw [← Fin.prod_univ_eq_prod_range]
56  rw [hnum,hden,Nat.ascFactorial_eq_factorial_mul_choose,Nat.cast_mul]
57  exact mul_div_cancel_left₀ _ (by exact_mod_cast Nat.factorial_ne_zero d)
58 
59theorem partitionDimension_oneRow (n d : ℕ) :
60    partitionDimension (oneRowPartition n d) (oneRowPartition_antitone n d)=(n+d).choose d := by
61  have h := partitionDimension_eq_dimensionProduct (oneRowPartition n d) (oneRowPartition_antitone n d)
62  rw [dimensionProduct_oneRow] at h
63  exact_mod_cast h
64 
65end Cloning.TensorLie