Freeks/rearrangement.book(保存済みの内容) … 編集へ / ファイル一覧へ

Rearrangement inequality (ordered commutative ring)
import /Freeks/orderedring.book /Freeks/arith.book(section 5 まで)

For two monotone sequences \(a_i, b_i\) in an ordered commutative ring and any permutation of \(\{1, \ldots, n\}\) given by \(p\), we show that the sorted sum \(\sum a_i b_i\) is maximal (Rear), and minimal if \(b\) is in reverse order (Rearl), for general \(n\). The permutation is written via a sequence \(p\) and its values \(p(i)\), and being a bijection (range, injectivity, surjectivity) is an assumption.
#38 Alternative proof of the AM–GM inequality (rearrangement inequality). The original #38 (orderedring) uses Bernoulli-type induction (Cauchy's forward-backward induction only up to \(n = 4\)) and shows the division-free form \(n^n \prod x_i \preceq (\sum x_i)^n\).
The other route takes \(a_i = x_1 \cdots x_i / G^i,\ b_i = 1 / a_i\), so that \(\sum x_i / G = \sum a_i b_{i-1} \succeq \sum a_i b_i = n\) (the reverse-order sum is a lower bound). This book goes as far as the rearrangement inequality and the lower bound Rinv when \(a\) is monotone and \(a_i c_i = 1\).

1 Lemmas on ordered commutative rings

Swap lemma: if \(u \preceq c,\ w \preceq d\), then \(u d + c w \preceq u w + c d\) (since \((c - u)(d - w) \succeq 0\)).
Lsw … \(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] , P ) :\mathsf{OCRing} \Longrightarrow \forall c , d , u , w \in X . ( u \preceq P c , w \preceq P d \Longrightarrow u \cdot d + c \cdot w \preceq P u \cdot w + c \cdot d )\) \(\blacktriangleleft\) \(\mathbb{W}.\)
Sums of two sequences differing at one point: \(\sum_{i=1}^{n} g(i) + f(m) = \sum_{i=1}^{n} f(i) + g(m)\) (for \(i \ne m\), \(f(i) = g(i)\)).
T∑1 … \(( V , [+] ) :\underline{2}\mathsf{C}\mathsf{A} \Longrightarrow \forall m , n \in \mathbb{M} ^{\times} . ( m \le n , \forall i \in \mathbb{Z} . ( 1 \le i \le n \Longrightarrow {f} ( i ) \in V , {g} ( i ) \in V ) , \forall i \in \mathbb{Z} . ( 1 \le i \le n , i \neq m \Longrightarrow {f} ( i ) = {g} ( i ) ) \Longrightarrow \sum_{ i \in 1 \mathinner{\ldotp\ldotp} n } {g} ( i ) + {f} ( m ) = \sum_{ i \in 1 \mathinner{\ldotp\ldotp} n } {f} ( i ) + {g} ( m ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,AxΣ

2 Permutations

We take as an axiom of this book that there is a sequence obtained by changing the value at a single point (UPD).
UPD … \(\exists h \, ( h ( k ) = v , \forall i \in \mathbb{Z} . ( i \neq k \Longrightarrow h ( i ) = g ( i ) ) )\)
A permutation of \(\{1, \ldots, n+1\}\) given by \(p\) with \(p(m) = n+1\): replacing its value at \(m\) with \(p(n+1)\) gives \(q\), which is a permutation of \(\{1, \ldots, n\}\).

3 Rearrangement inequality

Generalization of adjacent swaps: if \(p(m) = n+1\), replacing only the value at \(m\) with \(p(n+1)\) gives \(q\), and \(\sum_{i \le n+1} a_i b_{p(i)} \preceq \sum_{i \le n} a_i b_{q(i)} + a_{n+1} b_{n+1}\) (\(a, b\) monotone).
Lstp … \(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] , P ) :\mathsf{OCRing} , \forall i \in \mathbb{Z} . ( 1 \le i \Longrightarrow {a} ( i ) \in X , {b} ( i ) \in X ) , \forall i , j \in \mathbb{Z} . ( 1 \le i \le j \Longrightarrow {a} ( i ) \preceq P {a} ( j ) , {b} ( i ) \preceq P {b} ( j ) ) , m \in \mathbb{M} ^{\times} , \forall i \in \mathbb{Z} . ( i \neq m \Longrightarrow q ( i ) = p ( i ) ) \Longrightarrow \forall n \in \mathbb{M} ^{\times} . ( \forall i \in \mathbb{Z} . ( 1 \le i \le n + 1 \Longrightarrow p ( i ) \in \mathbb{Z} , 1 \le p ( i ) \le n + 1 ) , 1 \le m \le n + 1 , p ( m ) = n + 1 , q ( m ) = p ( n + 1 ) , \forall i \in \mathbb{Z} . ( 1 \le i \le n \Longrightarrow q ( i ) \in \mathbb{Z} , 1 \le q ( i ) \le n ) \Longrightarrow \sum_{ i \in 1 \mathinner{\ldotp\ldotp} ( n + 1 ) } {a} ( i ) \cdot {b} ( p ( i ) ) \preceq P \sum_{ i \in 1 \mathinner{\ldotp\ldotp} n } {a} ( i ) \cdot {b} ( q ( i ) ) + {a} ( n + 1 ) \cdot {b} ( n + 1 ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+ ,AxΣ
In an ordered commutative ring \(X\), if sequences \(a, b\) are monotone non-decreasing (\(i \le j\) implies \(a_i \preceq a_j\) and \(b_i \preceq b_j\)), then for any permutation of \(\{1, \ldots, n\}\) given by \(p\), \(\sum_{i=1}^{n} a_i b_{p(i)} \preceq \sum_{i=1}^{n} a_i b_i\) (the sorted sum is maximal). By induction on \(n\): for \(p(m) = n+1\), at the position \(m\) replacing the value with \(p(n+1)\) gives \(q\), a permutation of \(\{1, \ldots, n\}\); the swap lemma \(a_m b_{n+1} + a_{n+1} b_{p(n+1)} \preceq a_m b_{p(n+1)} + a_{n+1} b_{n+1}\) (Lsw) gives \(\sum a_i b_{p(i)} \preceq \sum a_i b_{q(i)} + a_{n+1} b_{n+1}\) (Lstp).
Rear … \(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] , P ) :\mathsf{OCRing} , \forall i \in \mathbb{Z} . ( 1 \le i \Longrightarrow {a} ( i ) \in X , {b} ( i ) \in X ) , \forall i , j \in \mathbb{Z} . ( 1 \le i \le j \Longrightarrow {a} ( i ) \preceq P {a} ( j ) , {b} ( i ) \preceq P {b} ( j ) ) \Longrightarrow \forall n \in \mathbb{M} ^{\times} . \forall p \, ( \forall i \in \mathbb{Z} . ( 1 \le i \le n \Longrightarrow p ( i ) \in \mathbb{Z} , 1 \le p ( i ) \le n ) , \forall i , j \in \mathbb{Z} . ( 1 \le i \le n , 1 \le j \le n , p ( i ) = p ( j ) \Longrightarrow i = j ) , \forall j \in \mathbb{Z} . ( 1 \le j \le n \Longrightarrow \exists i \in \mathbb{Z} . ( 1 \le i \le n , p ( i ) = j ) ) \Longrightarrow \sum_{ i \in 1 \mathinner{\ldotp\ldotp} n } {a} ( i ) \cdot {b} ( p ( i ) ) \preceq P \sum_{ i \in 1 \mathinner{\ldotp\ldotp} n } {a} ( i ) \cdot {b} ( i ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+ ,AxΣ ,UPD ,LpB
Reverse direction: if \(a\) is monotone non-decreasing and \(b\) is monotone non-increasing (reverse order), the sum with matched order \(\sum a_i b_i\) is minimal. Replace \(b\) by \(-b\) and use Rear (\(\sum a_i(-b_{p(i)}) = -\sum a_i b_{p(i)}\)).
Rearl … \(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] , P ) :\mathsf{OCRing} , \forall i \in \mathbb{Z} . ( 1 \le i \Longrightarrow {a} ( i ) \in X , {b} ( i ) \in X ) , \forall i , j \in \mathbb{Z} . ( 1 \le i \le j \Longrightarrow {a} ( i ) \preceq P {a} ( j ) , {b} ( j ) \preceq P {b} ( i ) ) \Longrightarrow \forall n \in \mathbb{M} ^{\times} . \forall p \, ( \forall i \in \mathbb{Z} . ( 1 \le i \le n \Longrightarrow p ( i ) \in \mathbb{Z} , 1 \le p ( i ) \le n ) , \forall i , j \in \mathbb{Z} . ( 1 \le i \le n , 1 \le j \le n , p ( i ) = p ( j ) \Longrightarrow i = j ) , \forall j \in \mathbb{Z} . ( 1 \le j \le n \Longrightarrow \exists i \in \mathbb{Z} . ( 1 \le i \le n , p ( i ) = j ) ) \Longrightarrow \sum_{ i \in 1 \mathinner{\ldotp\ldotp} n } {a} ( i ) \cdot {b} ( i ) \preceq P \sum_{ i \in 1 \mathinner{\ldotp\ldotp} n } {a} ( i ) \cdot {b} ( p ( i ) ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+ ,AxΣ ,UPD ,LpB
Corollary: with \(b = a\), for any permutation \(p\), \(\sum a_i a_{p(i)} \preceq \sum a_i^2\).
Rsq … \(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] , P ) :\mathsf{OCRing} , \forall i \in \mathbb{Z} . ( 1 \le i \Longrightarrow {a} ( i ) \in X ) , \forall i , j \in \mathbb{Z} . ( 1 \le i \le j \Longrightarrow {a} ( i ) \preceq P {a} ( j ) ) \Longrightarrow \forall n \in \mathbb{M} ^{\times} . \forall p \, ( \forall i \in \mathbb{Z} . ( 1 \le i \le n \Longrightarrow p ( i ) \in \mathbb{Z} , 1 \le p ( i ) \le n ) , \forall i , j \in \mathbb{Z} . ( 1 \le i \le n , 1 \le j \le n , p ( i ) = p ( j ) \Longrightarrow i = j ) , \forall j \in \mathbb{Z} . ( 1 \le j \le n \Longrightarrow \exists i \in \mathbb{Z} . ( 1 \le i \le n , p ( i ) = j ) ) \Longrightarrow \sum_{ i \in 1 \mathinner{\ldotp\ldotp} n } {a} ( i ) \cdot {a} ( p ( i ) ) \preceq P \sum_{ i \in 1 \mathinner{\ldotp\ldotp} n } {a} ( i ) \cdot {a} ( i ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+ ,AxΣ ,UPD ,LpB

4 Sequences of reciprocals (the road to AM–GM)

Pairing with reciprocals: if \(a_i \succ 0\) is monotone non-decreasing and \(a_i c_i = 1\) (\(c_i = 1/a_i\)), then \(c\) is monotone non-increasing and \(\sum a_i c_i = n\). From the reverse-order lower bound Rearl, for any permutation \(p\), \(n \preceq \sum a_i c_{p(i)}\) (the core of the AM–GM proof).
Rinv … \(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] , P ) :\mathsf{OCRing} , \textit{0} \neq \textit{1} , \forall i \in \mathbb{Z} . ( 1 \le i \Longrightarrow {a} ( i ) \in P , {c} ( i ) \in X , {a} ( i ) \cdot {c} ( i ) = \textit{1} ) , \forall i , j \in \mathbb{Z} . ( 1 \le i \le j \Longrightarrow {a} ( i ) \preceq P {a} ( j ) ) \Longrightarrow \forall n \in \mathbb{M} ^{\times} . \forall p \, ( \forall i \in \mathbb{Z} . ( 1 \le i \le n \Longrightarrow p ( i ) \in \mathbb{Z} , 1 \le p ( i ) \le n ) , \forall i , j \in \mathbb{Z} . ( 1 \le i \le n , 1 \le j \le n , p ( i ) = p ( j ) \Longrightarrow i = j ) , \forall j \in \mathbb{Z} . ( 1 \le j \le n \Longrightarrow \exists i \in \mathbb{Z} . ( 1 \le i \le n , p ( i ) = j ) ) \Longrightarrow n \cdot \textit{1} \preceq P \sum_{ i \in 1 \mathinner{\ldotp\ldotp} n } {a} ( i ) \cdot {c} ( p ( i ) ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+ ,AxΣ ,UPD ,LpB

イベント 25 件