Intermediate value theorem (alternative proof: interval halving)
import /Freeks/14.book(section 8 まで)
1 #79b Intermediate value theorem (interval halving) forget
On the closed interval \([a, b]\), if \(f\) is continuous with \(f(a) \le 0 \le f(b)\), then \(f(c) = 0\) for some \(c \in [a, b]\) (the same statement as 14.book).
14.book takes the supremum of the set of points where \(f(x) \le 0\). This book repeatedly halves the interval (recursion theorem) to build a sequence of nested intervals \([a_n, b_n]\) (\(f(a_n) \le 0 \le f(b_n)\), width \((b - a)/2^n\)). The supremum \(c\) of the left endpoints lies in every interval, and \(f(c) = 0\) by continuity.
\(\frac12\) is a positive real with \(2 \cdot \frac12 = 1\).
L12 …
\(1 / 2 \in \mathbb{R} , 0 < 1 / 2 , 2 \cdot ( 1 / 2 ) = 1\) \(\blacktriangleleft\) R01 ,Rpm ,RM1 ,AxR ,<. ,÷ℚ ,Lde ,⋅0X ,\(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+The midpoint \(t = (a + b)/2\) satisfies \(a < t < b\), and both \(t - a\) and \(b - t\) equal \((b - a)/2\).
Lm …
\(a , b \in \mathbb{R} , a < b \Longrightarrow ( a + b ) \cdot ( 1 / 2 ) \in \mathbb{R} , a < ( a + b ) \cdot ( 1 / 2 ) , ( a + b ) \cdot ( 1 / 2 ) < b , 2 \cdot ( ( a + b ) \cdot ( 1 / 2 ) + ( - a ) ) = b + ( - a ) , 2 \cdot ( b + ( - ( ( a + b ) \cdot ( 1 / 2 ) ) ) ) = b + ( - a )\) \(\blacktriangleleft\) L12 ,Rlt ,Rpp ,AxR ,<. ,\(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+One step: if \(f(t) > 0\) choose \([a, t]\), otherwise \([t, b]\). In either case \(f\) is \(\le 0\) at the left endpoint and \(\ge 0\) at the right endpoint, and the width is halved.
LStep …
\(a , b , c , d \in \mathbb{R} , a < b , {f} ( a ) \le 0 , 0 \le {f} ( b ) , {f} ( ( a + b ) \cdot ( 1 / 2 ) ) \in \mathbb{R} , ( ( 0 < {f} ( ( a + b ) \cdot ( 1 / 2 ) ) , c = a , d = ( a + b ) \cdot ( 1 / 2 ) ) \mathbin{\rm o\!r} ( \neg 0 < {f} ( ( a + b ) \cdot ( 1 / 2 ) ) , c = ( a + b ) \cdot ( 1 / 2 ) , d = b ) ) \Longrightarrow a \le c , c < d , d \le b , {f} ( c ) \le 0 , 0 \le {f} ( d ) , 2 \cdot ( d + ( - c ) ) = b + ( - a )\) \(\blacktriangleleft\) Lm ,÷ℚ ,AxR ,<. ,\(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+\(n + 1 \le 2^n\) (by induction on \(n\)).
L2N …
\(n \in \mathbb{M} \Longrightarrow n + 1 \le 2 ^ n\) \(\blacktriangleleft\) ↑s𝕄 ,↑∈𝕄 ,L2 ,L1≤ ,Ls× ,L≤t ,↑0X ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤIf the width \(u\) satisfies \(2^N u = W\), then for large \(N\), \(u < e\) (\(e > 0\)). If \(e \le u\), then \(W = 2^N u \ge 2^N e \ge (N+1) e > N e \ge W\) (Archimedes: \(W/e \le N\)), a contradiction.
Lsm …
\(W , e \in \mathbb{R} , 0 < e \Longrightarrow \exists N \in \mathbb{M} . \forall u \in \mathbb{R} . ( ( 2 ^ N ) \cdot u = W \Longrightarrow u < e )\) \(\blacktriangleleft\) Rpi ,Arch ,L2N ,RM1 ,↑∈𝕄 ,Rpm ,Rlt ,Rh0 ,R01 ,AxR ,<. ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,AxℤIf an interval \([x, z]\) contains the point \(s\) and has width less than \(d\), both endpoints lie in the neighborhood of \(s\) of radius \(d\).
Lbr …
\(s , x , z , d \in \mathbb{R} , x \le s , s \le z , z + ( - x ) < d \Longrightarrow s + ( - d ) < x , x < s + d , s + ( - d ) < z , z < s + d\) \(\blacktriangleleft\) Rh1 ,Rh2 ,Rlt ,AxR ,<. ,\(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+The condition for a pair to belong to a product set. The midpoint is a real number.
Lpp …
\(\langle x , y \rangle \in A \times B \Longleftrightarrow x \in A , y \in B\) \(\blacktriangleleft\) \(\mathbb{W}.\)LtR …
\(a , b \in \mathbb{R} \Longrightarrow ( a + b ) \cdot ( 1 / 2 ) \in \mathbb{R}\) \(\blacktriangleleft\) L12 ,AxR ,\(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+For a sequence of nested intervals \([a_n, b_n]\), the supremum of the left endpoints is a zero.
Lfin …
\(a , b \in \mathbb{R} , a < b , \forall x \in \mathbb{R} . ( a \le x , x \le b \Longrightarrow {f} ( x ) \in \mathbb{R} ) , \forall x \in \mathbb{R} . ( a \le x , x \le b \Longrightarrow \forall e \in \mathbb{R} . ( 0 < e \Longrightarrow \exists d \in \mathbb{R} . 0 < d , \forall y \in \mathbb{R} . ( a \le y , y \le b , x + ( - d ) < y , y < x + d \Longrightarrow {f} ( x ) + ( - e ) < {f} ( y ) , {f} ( y ) < {f} ( x ) + e ) ) ) , {f} ( a ) \le 0 , 0 \le {f} ( b ) , H \subset \mathbb{M} \times ( \mathbb{R} \times \mathbb{R} ) , \langle 0 , \langle a , b \rangle \rangle \in H , \forall n \in \mathbb{M} . \exists! y \, \langle n , y \rangle \in H , \forall n \in \mathbb{M} . \forall x , z , u , v \, ( \langle n , \langle x , z \rangle \rangle \in H , \langle n + 1 , \langle u , v \rangle \rangle \in H \Longrightarrow ( ( 0 < {f} ( ( x + z ) \cdot ( 1 / 2 ) ) , u = x , v = ( x + z ) \cdot ( 1 / 2 ) ) \mathbin{\rm o\!r} ( \neg 0 < {f} ( ( x + z ) \cdot ( 1 / 2 ) ) , u = ( x + z ) \cdot ( 1 / 2 ) , v = z ) ) ) \Longrightarrow \exists c \in \mathbb{R} . a \le c , c \le b , {f} ( c ) = 0\) \(\blacktriangleleft\) Lsm ,Lm ,LtR ,Lbr ,Lpp ,LStep ,Ltot ,L2N ,L12 ,Rpi ,Arch ,RM1 ,Rpm ,Rlt ,Rh0 ,Rh1 ,Rh2 ,R01 ,Lde ,↑0X ,↑s𝕄 ,↑∈𝕄 ,L2 ,L1≤ ,Ls× ,L≤t ,⋅𝕄:D ,⋅0X ,RCRing ,Rinv ,RQ ,Rord ,Rsup ,ax_s ,÷ℚ ,<. ,\(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+Repeatedly halve the interval \([a, b]\) (\(a < b\)) (recursion theorem). The state is a pair of intervals \(\langle a_n, b_n\rangle\): if \(f(\frac{a_n + b_n}{2}) > 0\), the left half, otherwise the right half.
Lnst …
\(a , b \in \mathbb{R} , a < b , \forall x \in \mathbb{R} . ( a \le x , x \le b \Longrightarrow {f} ( x ) \in \mathbb{R} ) , \forall x \in \mathbb{R} . ( a \le x , x \le b \Longrightarrow \forall e \in \mathbb{R} . ( 0 < e \Longrightarrow \exists d \in \mathbb{R} . 0 < d , \forall y \in \mathbb{R} . ( a \le y , y \le b , x + ( - d ) < y , y < x + d \Longrightarrow {f} ( x ) + ( - e ) < {f} ( y ) , {f} ( y ) < {f} ( x ) + e ) ) ) , {f} ( a ) \le 0 , 0 \le {f} ( b ) \Longrightarrow \exists c \in \mathbb{R} . a \le c , c \le b , {f} ( c ) = 0\) \(\blacktriangleleft\) Rec ,Lpp ,LtR ,Lfin ,Lsm ,Lm ,LtR ,Lbr ,Lpp ,LStep ,Ltot ,L2N ,L12 ,Rpi ,Arch ,RM1 ,Rpm ,Rlt ,Rh0 ,Rh1 ,Rh2 ,R01 ,Lde ,↑0X ,↑s𝕄 ,↑∈𝕄 ,L2 ,L1≤ ,Ls× ,L≤t ,⋅𝕄:D ,⋅0X ,RCRing ,Rinv ,RQ ,Rord ,Rsup ,ax_s ,÷ℚ ,<. ,\(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+The intermediate value theorem. If \(a = b\) then \(f(a) = 0\). If \(a < b\), a zero is obtained from the sequence of interval halvings.
\(a , b \in \mathbb{R} , a \le b , \forall x \in \mathbb{R} . ( a \le x , x \le b \Longrightarrow {f} ( x ) \in \mathbb{R} ) , \forall x \in \mathbb{R} . ( a \le x , x \le b \Longrightarrow \forall e \in \mathbb{R} . ( 0 < e \Longrightarrow \exists d \in \mathbb{R} . 0 < d , \forall y \in \mathbb{R} . ( a \le y , y \le b , x + ( - d ) < y , y < x + d \Longrightarrow {f} ( x ) + ( - e ) < {f} ( y ) , {f} ( y ) < {f} ( x ) + e ) ) ) , {f} ( a ) \le 0 , 0 \le {f} ( b ) \Longrightarrow \exists c \in \mathbb{R} . a \le c , c \le b , {f} ( c ) = 0\) \(\blacktriangleleft\) Lnst ,RM1 ,Rord ,<. ,RCRing ,Rinv ,RQ ,Rsup ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+ ,\(\mathbb{W}.\) ,÷ℚ