Documentation

Books.Analysis2_Tao_2022.Chapters.Chap03.section05

def finiteSumRealFunctions {X : Type u_1} {N : } (f : Fin NX) :
X

Definition 3.8: (Finite sum of real-valued functions) Let (X,d_X) be a metric space and let f^{(1)},...,f^{(N)} : X -> Real. The finite sum sum_{i=1}^N f^{(i)} : X -> Real is defined by (sum_{i=1}^N f^{(i)})(x) = sum_{i=1}^N f^{(i)}(x).

Equations
Instances For
    def example351_fi :
    Fin 3

    The family of three functions x, x^2, and x^3 indexed by Fin 3.

    Equations
    Instances For

      Example 3.5.1: Let f^{(1)}(x) = x, f^{(2)}(x) = x^2, and f^{(3)}(x) = x^3. Define f := ∑_{i=1}^3 f^{(i)}, so that f(x) = x + x^2 + x^3.

      Equations
      Instances For
        theorem example351_f_apply (x : ) :
        example351_f x = x + x ^ 2 + x ^ 3

        The finite sum of example351_fi evaluates to x + x^2 + x^3.

        theorem helperForText_3_5_2_chooseData {X : Type u_1} {Y : Type u_2} [Nonempty X] [NormedAddCommGroup Y] [NormedSpace Y] {n : } (f : Fin nXY) (hfb : ∀ (i : Fin n), ∃ (y0 : Y) (M : ), ∀ (x : X), dist (f i x) y0 M) :
        ∃ (c : Fin nY) (B : Fin n), ∀ (i : Fin n) (x : X), dist (f i x) (c i) B i

        Helper for Text 3.5.2: choose centers and bounds for a bounded family.

        theorem helperForText_3_5_2_dist_le_maxBound {X : Type u_1} {Y : Type u_2} [NormedAddCommGroup Y] [NormedSpace Y] {n : } {f : Fin nXY} {c : Fin nY} {B : Fin n} {i : Fin n} {x : X} (h : dist (f i x) (c i) B i) :
        dist (f i x) (c i) max (B i) 0

        Helper for Text 3.5.2: extend a pointwise bound to max (B i) 0.

        theorem helperForText_3_5_2_dist_sum_sum_le {X : Type u_1} {Y : Type u_2} [NormedAddCommGroup Y] [NormedSpace Y] {n : } (f : Fin nXY) (c : Fin nY) (x : X) :
        dist (∑ i : Fin n, f i x) (∑ i : Fin n, c i) i : Fin n, dist (f i x) (c i)

        Helper for Text 3.5.2: dist between sums is bounded by sum of pointwise dists.

        theorem helperForText_3_5_2_sum_dist_le_sum_max {X : Type u_1} {Y : Type u_2} [NormedAddCommGroup Y] [NormedSpace Y] {n : } (f : Fin nXY) (c : Fin nY) (B : Fin n) (hcB : ∀ (i : Fin n) (x : X), dist (f i x) (c i) B i) (x : X) :
        i : Fin n, dist (f i x) (c i) i : Fin n, max (B i) 0

        Helper for Text 3.5.2: sum of pointwise dists is bounded by sum of max bounds.

        theorem finiteSum_boundedFunctions {X : Type u_1} {Y : Type u_2} [Nonempty X] [NormedAddCommGroup Y] [NormedSpace Y] {n : } (f : Fin nXY) (hfb : ∀ (i : Fin n), ∃ (y0 : Y) (M : ), ∀ (x : X), dist (f i x) y0 M) :
        ∃ (y0 : Y) (M : ), ∀ (x : X), dist (∑ i : Fin n, f i x) y0 M

        Text 3.5.2: [Finite sums of bounded functions are bounded] Let X be a nonempty set and let (Y, d_Y) be a metric space, with Y a normed vector space and d_Y(u,v)=‖u-v‖. If f^{(1)}, …, f^{(n)} ∈ B(X → Y), then the pointwise sum f(x)=∑_{i=1}^n f^{(i)}(x) is bounded, hence f ∈ B(X → Y).

        theorem finiteSum_continuousFunctions {X : Type u_1} {Y : Type u_2} [MetricSpace X] [NormedAddCommGroup Y] [NormedSpace Y] {n : } (f : Fin nXY) (hfc : ∀ (i : Fin n), Continuous (f i)) :
        Continuous fun (x : X) => i : Fin n, f i x

        Text 3.5.3: [Finite sums of continuous functions are continuous] Let (X, d_X) be a metric space and let Y be a normed vector space (with its metric). If f^{(1)}, …, f^{(n)} : X → Y are continuous, then f := ∑_{i=1}^n f^{(i)} is continuous.

        Convergence mode for a series of functions: pointwise or uniform.

        Instances For
          def seriesPartialSum {X : Type u_1} (f : X) (N : ) :
          X

          Partial sum function S_N(x) = ∑_{n=1}^N f^{(n)}(x).

          Equations
          Instances For
            def seriesConverges {X : Type u_1} [MetricSpace X] (f : X) (g : X) (mode : SeriesConvergenceMode) :

            Definition 3.9: [Infinite series of functions] Let (X,d_X) be a metric space and let (f^{(n)})_{n≥1} be functions f^{(n)} : X → ℝ, with partial sums S_N(x) = ∑_{n=1}^N f^{(n)}(x). Let f : X → ℝ. (i) The series ∑_{n=1}^∞ f^{(n)} converges pointwise to f on X if for every x ∈ X, lim_{N→∞} S_N(x) = f(x). (ii) The series converges uniformly to f on X if S_N → f uniformly on X, i.e. lim_{N→∞} sup_{x∈X} |S_N(x) - f(x)| = 0.

            Equations
            Instances For
              def IsBoundedRealFunction {X : Type u_1} (f : X) :

              A real-valued function on X is bounded if there exists M ≥ 0 with |f x| ≤ M for all x.

              Equations
              Instances For
                noncomputable def supNorm {X : Type u_1} (f : { f : X // IsBoundedRealFunction f }) :

                Definition 3.10: [Sup norm] Let X be a set and let f : X → ℝ be bounded. The sup norm (uniform norm) is ‖f‖∞ = sup { |f(x)| : x ∈ X }, and if X = ∅ then ‖f‖∞ = 0.

                Equations
                Instances For
                  theorem helperForText_3_5_4_bddAbove_range_abs {X : Type u_1} (f : { f : X // IsBoundedRealFunction f }) :
                  BddAbove (Set.range fun (x : X) => |f x|)

                  Helper for Text 3.5.4: bounded above range of absolute values.

                  theorem helperForText_3_5_4_abs_le_supNorm {X : Type u_1} (f : { f : X // IsBoundedRealFunction f }) (x : X) :
                  |f x| supNorm f

                  Helper for Text 3.5.4: pointwise bound by the sup norm.

                  theorem supNorm_nonneg {X : Type u_1} [Nonempty X] (f : { f : X // IsBoundedRealFunction f }) :

                  Text 3.5.4: [Finiteness and nonnegativity of the sup norm] Let X be a nonempty set and let f : X → ℝ be bounded. Define ‖f‖∞ := sup_{x∈X} |f(x)|. Then ‖f‖∞ ∈ [0,∞), in particular it is finite and nonnegative.

                  theorem helperForTheorem_3_5_seriesPartialSum_eq_sum_range_succ {X : Type u_1} (f : X) (N : ) (x : X) :
                  seriesPartialSum f N x = nFinset.range N, f (n + 1) x

                  Helper for Theorem 3.5: rewrite seriesPartialSum as a Finset.range sum.

                  theorem helperForTheorem_3_5_norm_le_supNorm {X : Type u_1} {f0 : X} (hbf : IsBoundedRealFunction f0) (x : X) :

                  Helper for Theorem 3.5: pointwise norm bound by the sup norm.

                  theorem helperForTheorem_3_5_tendstoUniformly_seriesPartialSum_tsum {X : Type u_1} [MetricSpace X] (f : X) (hbounded : ∀ (n : ), IsBoundedRealFunction (f n)) (hsum : Summable fun (n : ) => supNorm f n, ) :
                  TendstoUniformly (fun (N : ) => seriesPartialSum f N) (fun (x : X) => ∑' (n : ), f (n + 1) x) Filter.atTop

                  Helper for Theorem 3.5: uniform convergence of partial sums to the tsum.

                  theorem helperForTheorem_3_5_seriesPartialSum_continuous {X : Type u_1} [MetricSpace X] (f : X) (hcont : ∀ (n : ), Continuous (f n)) (N : ) :

                  Helper for Theorem 3.5: continuity of each partial sum.

                  theorem weierstrass_M_test {X : Type u_1} [MetricSpace X] (f : X) (hcont : ∀ (n : ), Continuous (f n)) (hbounded : ∀ (n : ), IsBoundedRealFunction (f n)) (hsum : Summable fun (n : ) => supNorm f n, ) :

                  Theorem 3.5: [Weierstrass M-test] Let (X,d) be a metric space and let (f^{(n)}) be a sequence of bounded real-valued continuous functions on X. Assume the series ∑ ‖f^{(n)}‖∞ converges. Then the series of functions ∑ f^{(n)} converges uniformly on X to a function f : X → ℝ, and f is continuous on X.

                  def geometricSeriesTermOnIoo (n : ) (x : { x : // x Set.Ioo (-1) 1 }) :

                  The geometric series term function on (-1,1) given by x ↦ x^n.

                  Equations
                  Instances For
                    noncomputable def geometricSeriesSumOnIoo (x : { x : // x Set.Ioo (-1) 1 }) :

                    The geometric series sum function on (-1,1) given by x ↦ x/(1-x).

                    Equations
                    Instances For
                      theorem helperForExample_3_5_2_seriesPartialSum_closedForm (x : { x : // x Set.Ioo (-1) 1 }) (N : ) :
                      seriesPartialSum geometricSeriesTermOnIoo N x = (x - x ^ (N + 1)) / (1 - x)

                      Helper for Example 3.5.2: closed form for the geometric series partial sum on (-1,1).

                      Helper for Example 3.5.2: distance from partial sum to limit in closed form.

                      Helper for Example 3.5.2: pointwise convergence of the geometric series on (-1,1).

                      noncomputable def helperForExample_3_5_2_xNValue (N : ) :

                      Helper for Example 3.5.2: explicit real value x_N = 1 - 1/2^(N+1).

                      Equations
                      Instances For

                        Helper for Example 3.5.2: the point x_N is at least 1/2.

                        Helper for Example 3.5.2: the point x_N lies in (-1,1).

                        Helper for Example 3.5.2: for each N, some point has error at least 1/2.

                        Example 3.5.2: Pointwise but not uniform convergence of a geometric series. For f^{(n)}(x) = x^n on (-1,1), the series converges pointwise to x/(1-x), but the convergence is not uniform on (-1,1).

                        Proposition 3.17: If a series of functions converges uniformly to f on X, then it converges pointwise to f on X.

                        The interval (-2,1) as a subtype of .

                        Equations
                        Instances For

                          The function x ↦ 2x on (-2,1).

                          Equations
                          Instances For

                            The function x ↦ 2x on (-2,1) is bounded.

                            The bounded function x ↦ 2x on (-2,1) packaged for supNorm.

                            Equations
                            Instances For

                              Pointwise bound for |2x| on (-2,1).

                              theorem example356_delta_point_mem_Ioo (a : ) (ha : a < 4) :
                              have δ := min ((4 - a) / 4) 1; -2 + δ Set.Ioo (-2) 1

                              A canonical point near -2 that still lies in (-2,1).

                              theorem example356_exists_abs_gt_of_lt_four (a : ) (ha : a < 4) :

                              Any level strictly below 4 is exceeded by |2x| at some point of (-2,1).

                              Upper bound ‖x ↦ 2x‖∞ ≤ 4 on (-2,1).

                              Example 3.5.6: (Computing the sup norm) For X = (-2,1) and f(x) = 2x, the sup norm ‖f‖∞ = sup_{x∈X} |f(x)| equals 4.

                              def geometricSeriesTermOnIcc (r : ) (n : ) (x : { x : // x Set.Icc (-r) r }) :

                              The geometric series term function on [-r,r] given by x ↦ x^n.

                              Equations
                              Instances For
                                noncomputable def geometricSeriesSumOnIcc (r : ) (x : { x : // x Set.Icc (-r) r }) :

                                The geometric series sum function on [-r,r] given by x ↦ x/(1-x).

                                Equations
                                Instances For
                                  theorem helperForExample_3_5_8_abs_coe_le_r {r : } (x : { x : // x Set.Icc (-r) r }) :
                                  |x| r

                                  Helper for Example 3.5.8: bound |x| by r on [-r,r].

                                  theorem helperForExample_3_5_8_abs_pow_le_r_pow {r : } (n : ) (x : { x : // x Set.Icc (-r) r }) :
                                  |x ^ n| r ^ n

                                  Helper for Example 3.5.8: bound |x^n| by r^n on [-r,r].

                                  Helper for Example 3.5.8: compute ‖x ↦ x^n‖∞ on [-r,r].

                                  theorem helperForExample_3_5_8_tsum_pow_succ_eq_div {x : } (hx : |x| < 1) :
                                  ∑' (n : ), x ^ (n + 1) = x / (1 - x)

                                  Helper for Example 3.5.8: shifted geometric series on |x| < 1.

                                  Example 3.5.8: [Uniform convergence on [-r,r] for a geometric series] Let 0 < r < 1 and define f^{(n)}(x) = x^n on [-r,r]. Each f^{(n)} is continuous and bounded, with sup norm ‖f^{(n)}‖∞ = r^n. The series ∑ f^{(n)} converges uniformly on [-r,r] to x/(1-x), and ∑ x^n is pointwise but not uniformly convergent on (-1,1).