MindFormal v1.0.0One Mind

MindFormal.Tools.A732TreeCoefficients.Butcher

RC9.9a, the rooted-tree form of RC9.9's coefficients. The evaluated elementary differentials are F_β€’ = π”ŸβΊ(s⁰, 0) and F_[t₁,…,t_j] = D^j π”ŸβΊ(s⁰, 0)[F_{t₁}, …, F_{t_j}]; for every m β‰₯ 1, s_{β„“,m} = Ξ£_{|t|=m} (F_t)_β„“ / (Ξ“_sym(t) Ξ“_tree(t)). Joining the children's terms to a root gives the derivative tensor, identical children contribute their multiplicity factorials, and the root's vertex count is the integration of the time monomial. Pure analysis, no mind.

@[irreducible]
def MindFormal.A732TreeCoefficients.elemDiff {ΞΉ : Type u_1} [Fintype ΞΉ] (b : β„• β†’ (ΞΉ β†’ β„•) β†’ ΞΉ β†’ ℝ) (sβ‚€ : ΞΉ β†’ ℝ) (t : β„•) :
Aug ΞΉ β†’ ℝ

RC9.9a: the evaluated elementary differential of a tree, F_β€’ = π”ŸβΊ(s⁰, 0) and F_[t₁,…,t_j] = D^j π”ŸβΊ(s⁰, 0)[F_{t₁}, …, F_{t_j}], D^j Mathlib's iterated FrΓ©chet derivative.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem MindFormal.A732TreeCoefficients.elemDiff_eq {ΞΉ : Type u_1} [Fintype ΞΉ] (b : β„• β†’ (ΞΉ β†’ β„•) β†’ ΞΉ β†’ ℝ) (sβ‚€ : ΞΉ β†’ ℝ) (t : β„•) :
    elemDiff b sβ‚€ t = (iteratedFDeriv ℝ (children t).length (augField b sβ‚€) (augStart sβ‚€)) fun (i : Fin (children t).length) => elemDiff b sβ‚€ (tuple (children t).length (children t) i)
    theorem MindFormal.A732TreeCoefficients.elemDiff_leaf {ΞΉ : Type u_1} [Fintype ΞΉ] (b : β„• β†’ (ΞΉ β†’ β„•) β†’ ΞΉ β†’ ℝ) (sβ‚€ : ΞΉ β†’ ℝ) :
    elemDiff b sβ‚€ 1 = augField b sβ‚€ (augStart sβ‚€)
    noncomputable def MindFormal.A732TreeCoefficients.treeTerm {ΞΉ : Type u_1} [Fintype ΞΉ] (b : β„• β†’ (ΞΉ β†’ β„•) β†’ ΞΉ β†’ ℝ) (sβ‚€ : ΞΉ β†’ ℝ) (t : β„•) :
    Aug ΞΉ β†’ ℝ

    A tree's term, F_t / (Ξ“_sym(t) Ξ“_tree(t)).

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem MindFormal.A732TreeCoefficients.treeTerm_eq {ΞΉ : Type u_1} [Fintype ΞΉ] [DecidableEq ΞΉ] {b : β„• β†’ (ΞΉ β†’ β„•) β†’ ΞΉ β†’ ℝ} {sβ‚€ : ΞΉ β†’ ℝ} {R Rs K L : ℝ} (hc : A726AnalyticReference.ConvergenceCertificate b sβ‚€ R Rs K L) {t k : β„•} (hk : (children t).length = k) :
      treeTerm b sβ‚€ t = (↑(size t))⁻¹ β€’ βˆ‘ w ∈ Finset.image (fun (Οƒ : Equiv.Perm (Fin k)) => tuple k (children t) ∘ ⇑σ) Finset.univ, (augSeries b k) fun (i : Fin k) => treeTerm b sβ‚€ (w i)

      A tree's term is its size's reciprocal times the sum, over the rearrangements w of its children, of the series' degree-k term at the children's terms.

      The ordered k-tuples of trees with m vertices in all.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem MindFormal.A732TreeCoefficients.size_graft {k : β„•} {w : Fin k β†’ β„•} (hw : βˆ€ (i : Fin k), 0 < w i) :
        size (graft (List.ofFn w)) = 1 + βˆ‘ i : Fin k, size (w i) ∧ (children (graft (List.ofFn w))).length = k
        theorem MindFormal.A732TreeCoefficients.fiber_tuples {t k m : β„•} (ht : t ∈ treesOfSize (m + 1)) (hk : (children t).length = k) :
        {w ∈ tuplesOfSize k m | graft (List.ofFn w) = t} = Finset.image (fun (Οƒ : Equiv.Perm (Fin k)) => tuple k (children t) ∘ ⇑σ) Finset.univ
        theorem MindFormal.A732TreeCoefficients.sum_treeTerm_succ {ΞΉ : Type u_1} [Fintype ΞΉ] [DecidableEq ΞΉ] {b : β„• β†’ (ΞΉ β†’ β„•) β†’ ΞΉ β†’ ℝ} {sβ‚€ : ΞΉ β†’ ℝ} {R Rs K L : ℝ} (hc : A726AnalyticReference.ConvergenceCertificate b sβ‚€ R Rs K L) (m : β„•) :
        βˆ‘ t ∈ treesOfSize (m + 1), treeTerm b sβ‚€ t = (↑(m + 1))⁻¹ β€’ βˆ‘ k ∈ Finset.range (m + 1), βˆ‘ w ∈ tuplesOfSize k m, (augSeries b k) fun (i : Fin k) => treeTerm b sβ‚€ (w i)

        Regrouping: the trees with m + 1 vertices, through their children, are the ordered tuples of trees with m vertices in all.

        noncomputable def MindFormal.A732TreeCoefficients.treePoly {ΞΉ : Type u_1} (G : β„• β†’ Aug ΞΉ β†’ ℝ) (m : β„•) (c : Aug ΞΉ) :

        The polynomial Ξ£_{1≀|t|≀m} G_t,c z^{|t|} of a coordinate c.

        Equations
        Instances For
          theorem MindFormal.A732TreeCoefficients.coeff_prod_treePoly {ΞΉ : Type u_1} (G : β„• β†’ Aug ΞΉ β†’ ℝ) (k m : β„•) (L : Fin k β†’ Aug ΞΉ) :
          (∏ i : Fin k, treePoly G m (L i)).coeff m = βˆ‘ w ∈ tuplesOfSize k m, ∏ i : Fin k, G (w i) (L i)
          theorem MindFormal.A732TreeCoefficients.sum_tuples_augSeries {ΞΉ : Type u_1} [Fintype ΞΉ] [DecidableEq ΞΉ] (b : β„• β†’ (ΞΉ β†’ β„•) β†’ ΞΉ β†’ ℝ) (G : β„• β†’ Aug ΞΉ β†’ ℝ) (k m : β„•) :
          (βˆ‘ w ∈ tuplesOfSize k m, (augSeries b k) fun (i : Fin k) => G (w i)) = βˆ‘ Ξ± ∈ augIndices k, (∏ c : Aug ΞΉ, treePoly G m c ^ Ξ± c).coeff m β€’ augCoeff b Ξ±

          The tuples' degree-k terms: the coefficient of z^m in Ξ _c Y_c^{Ξ±_c}, Y_c the coordinate's polynomial.

          noncomputable def MindFormal.A732TreeCoefficients.augCoeffs {ΞΉ : Type u_1} [Fintype ΞΉ] [DecidableEq ΞΉ] (b : β„• β†’ (ΞΉ β†’ β„•) β†’ ΞΉ β†’ ℝ) (sβ‚€ : ΞΉ β†’ ℝ) (m : β„•) :
          Aug ΞΉ β†’ ℝ

          The augmented coefficients: s_m on the state coordinates, and on local time 1 at m = 1.

          Equations
          Instances For
            theorem MindFormal.A732TreeCoefficients.treePoly_eq {ΞΉ : Type u_1} (G : β„• β†’ Aug ΞΉ β†’ ℝ) (m : β„•) (c : Aug ΞΉ) (a : β„• β†’ ℝ) (hG : βˆ€ (p : β„•), 1 ≀ p β†’ p ≀ m β†’ βˆ‘ t ∈ treesOfSize p, G t c = a p) :
            theorem MindFormal.A732TreeCoefficients.sum_degree_le {ΞΉ : Type u_1} [Fintype ΞΉ] [DecidableEq ΞΉ] {V : Type u_2} [AddCommMonoid V] (g : (Aug ΞΉ β†’ β„•) β†’ V) (m : β„•) :
            βˆ‘ k ∈ Finset.range (m + 1), βˆ‘ Ξ± ∈ augIndices k, g Ξ± = βˆ‘ j ∈ Finset.range (m + 1), βˆ‘ e ∈ A726AnalyticReference.lowIndices (m - j), g (splitEquiv.symm (j, e))

            The multi-indices of degree at most m, by (time degree, state multi-index): RC9.9's double sum Ξ£_{j=0}^{m} Ξ£_{|m'|≀m-j}.

            Up to z^m the local time's polynomial Ξ£_{p=1}^{m} [p=1] z^p acts as z.

            theorem MindFormal.A732TreeCoefficients.state_step {ΞΉ : Type u_1} [Fintype ΞΉ] [DecidableEq ΞΉ] (b : β„• β†’ (ΞΉ β†’ β„•) β†’ ΞΉ β†’ ℝ) (sβ‚€ : ΞΉ β†’ ℝ) (m : β„•) (Y : Aug ΞΉ β†’ Polynomial ℝ) (hY : βˆ€ (c : Aug ΞΉ), Y c = A726AnalyticReference.truncPoly (fun (p : β„•) => augCoeffs b sβ‚€ p c) m) (l : ΞΉ) :
            βˆ‘ k ∈ Finset.range (m + 1), βˆ‘ Ξ± ∈ augIndices k, (∏ c : Aug ΞΉ, Y c ^ Ξ± c).coeff m * augCoeff b Ξ± (Sum.inl l) = βˆ‘ j ∈ Finset.range (m + 1), βˆ‘ e ∈ A726AnalyticReference.lowIndices (m - j), b j e l * (∏ h : ΞΉ, A726AnalyticReference.truncPoly (fun (p : β„•) => A726AnalyticReference.seriesCoeff b sβ‚€ p h) m ^ e h).coeff (m - j)

            The state coordinate l of the regrouped sum is RC9.9's recursion.

            theorem MindFormal.A732TreeCoefficients.time_step {ΞΉ : Type u_1} [Fintype ΞΉ] [DecidableEq ΞΉ] (b : β„• β†’ (ΞΉ β†’ β„•) β†’ ΞΉ β†’ ℝ) (m : β„•) (Y : Aug ΞΉ β†’ Polynomial ℝ) :
            βˆ‘ k ∈ Finset.range (m + 1), βˆ‘ Ξ± ∈ augIndices k, (∏ c : Aug ΞΉ, Y c ^ Ξ± c).coeff m * augCoeff b Ξ± tm = if m = 0 then 1 else 0

            The local-time coordinate of the regrouped sum: only π”ŸβΊ's constant time component.

            theorem MindFormal.A732TreeCoefficients.tree_coefficients {ΞΉ : Type u_1} [Fintype ΞΉ] [DecidableEq ΞΉ] {b : β„• β†’ (ΞΉ β†’ β„•) β†’ ΞΉ β†’ ℝ} {sβ‚€ : ΞΉ β†’ ℝ} {R Rs K L : ℝ} (hc : A726AnalyticReference.ConvergenceCertificate b sβ‚€ R Rs K L) (m : β„•) :
            1 ≀ m β†’ βˆ‘ t ∈ treesOfSize m, treeTerm b sβ‚€ t = augCoeffs b sβ‚€ m

            RC9.9a: the tree sums of the augmented terms are the evaluated coefficients: for every m β‰₯ 1, Ξ£_{|t|=m} F_t/(Ξ“_sym(t) Ξ“_tree(t)) is s_m on the state coordinates (and [m = 1] on time).