# ito_formula_data 函数

ito_formula 背后的认证记录：结果、有效性、证书与定理。

## 怎么写

### ito_formula_data(f, states, drift, diffusion, time)

is_ito_certificate 和 is_validity_certificate 读取的记录；它的 result 就是答案。

**f**

由状态与时间构成的、被求微分的表达式。接受一个表达式。

**states**

状态变量，用方括号括起。接受变量列表或一个变量。

**drift**

每个状态的漂移项，用方括号括起。接受一个列表。

**diffusion**

噪声：每一行对应一个状态，每一列对应一个驱动。接受一个矩阵，写作行组成的列表。

**time**

时间，一个变量。接受一个变量或变量列表。

### ito_formula_data(f, states, drift, diffusion, time)

只有一个状态和一个驱动时，不用列表的调用；记录相同。

**f**

由状态与时间构成的、被求微分的表达式。接受一个表达式。

**states**

唯一的状态变量，不用列表。接受一个变量或变量列表。

**drift**

该状态的漂移项。接受一个表达式。

**diffusion**

该状态的噪声，对应一个驱动。接受一个表达式。

**time**

时间，一个变量。接受一个变量或变量列表。

## 示例

- $\displaystyle \operatorname{ito\_formula\_data}\left(x^{2}, \left[ x \right], \left[ \mu x \right], \begin{pmatrix} \sigma x \end{pmatrix}, t\right) = \left[ \text{status} \to \text{certified}, \text{result} \to \operatorname{ito\_differential}(x^{2}) \to \left[ \text{dt} \to \sigma^{2} x^{2}+2 \mu x^{2}, \text{dw} \to \left[ 2 \sigma x^{2} \right] \right], \text{validity} \to \left[ \text{status} \to \text{conditional}, \text{assumptions} \to t \in \mathbb{R} \text{ and } x \in \mathbb{R} \text{ and } \mu x \in \mathbb{R} \text{ and } \sigma x \in \mathbb{R}, \text{regularity} \to \text{x\textasciicircum{}2 is C\textasciicircum{}1 in time and C\textasciicircum{}2 in the state variables}, \text{quadratic\_variation} \to \text{dW\_i dW\_j = kronecker\_delta(i,j) dt} \right], \text{certificate} \to \left[ \text{kind} \to \text{multivariate\_ito\_formula}, \text{observable} \to x^{2}, \text{states} \to \left[ x \right], \text{drift} \to \left[ \mu x \right], \text{diffusion} \to \begin{pmatrix} \sigma x \end{pmatrix}, \text{time} \to t, \text{recheck} \to \operatorname{true} \right], \text{theorem} \to \text{Multivariate Ito lemma for an Ito diffusion}, \text{coverage} \to \left[ \text{completeness} \to \text{proven\_full}, \text{frontier\_id} \to \text{T6.3-ITO-DIM-LE6}, \text{complete\_domain\_declared} \to \text{C\textasciicircum{}(1,2) scalar observables of Ito diffusions with <=6 states and <=6 independent Brownian drivers}, \text{not\_claimed} \to \text{closed-form SDE paths or transition laws, beyond the geometric family geometric\_sde\_path now certifies, scalar or vector (src/stochastic/path.rs)} \right], \text{complete} \to \operatorname{true}, \text{resources} \to \left[ \left[ \text{kind} \to \text{max\_state\_dimension}, \text{limit} \to 6 \right], \left[ \text{kind} \to \text{max\_brownian\_dimension}, \text{limit} \to 6 \right], \left[ \text{kind} \to \text{state\_dimension}, \text{limit} \to 1 \right], \left[ \text{kind} \to \text{brownian\_dimension}, \text{limit} \to 1 \right] \right] \right]$

  `ito_formula_data(x^2, [x], [mu*x], [[sigma*x]], t)`

  在求解器中，`ito_formula_data(x^2, [x], [mu*x], [[sigma*x]], t)` 的结果是 `{status: "certified", result: ito_differential(x^2) -> {dt: sigma^2*x^2 + 2mu*x^2, dw: [2sigma*x^2]}, validity: {status: "conditional", assumptions: t : real and x : real and mu*x : real and sigma*x : real, regularity: "x^2 is C^1 in time and C^2 in the state variables", quadratic_variation: "dW_i dW_j = kronecker_delta(i,j) dt"}, certificate: {kind: "multivariate_ito_formula", observable: x^2, states: [x], drift: [mu*x], diffusion: [[sigma*x]], time: t, recheck: true}, theorem: "Multivariate Ito lemma for an Ito diffusion", coverage: {completeness: "proven_full", frontier_id: "T6.3-ITO-DIM-LE6", complete_domain_declared: "C^(1,2) scalar observables of Ito diffusions with <=6 states and <=6 independent Brownian drivers", not_claimed: "closed-form SDE paths or transition laws, beyond the geometric family geometric_sde_path now certifies, scalar or vector (src/stochastic/path.rs)"}, complete: true, resources: [{kind: "max_state_dimension", limit: 6}, {kind: "max_brownian_dimension", limit: 6}, {kind: "state_dimension", limit: 1}, {kind: "brownian_dimension", limit: 1}]}`。

  [在求解器中打开](https://zh.hilberon.com/?q=ito_formula_data%28x%5E2%2C%20%5Bx%5D%2C%20%5Bmu*x%5D%2C%20%5B%5Bsigma*x%5D%5D%2C%20t%29)
- $\displaystyle \operatorname{ito\_formula\_data}\left(x y, \left[ x, y \right], \left[ 0, 0 \right], \begin{pmatrix} s_{1} \\ s_{2} \end{pmatrix}, t\right) = \left[ \text{status} \to \text{certified}, \text{result} \to \operatorname{ito\_differential}(x y) \to \left[ \text{dt} \to s_{1} s_{2}, \text{dw} \to \left[ s_{2} x+s_{1} y \right] \right], \text{validity} \to \left[ \text{status} \to \text{conditional}, \text{assumptions} \to t \in \mathbb{R} \text{ and } x \in \mathbb{R} \text{ and } y \in \mathbb{R} \text{ and } s_{1} \in \mathbb{R} \text{ and } s_{2} \in \mathbb{R}, \text{regularity} \to \text{x*y is C\textasciicircum{}1 in time and C\textasciicircum{}2 in the state variables}, \text{quadratic\_variation} \to \text{dW\_i dW\_j = kronecker\_delta(i,j) dt} \right], \text{certificate} \to \left[ \text{kind} \to \text{multivariate\_ito\_formula}, \text{observable} \to x y, \text{states} \to \left[ x, y \right], \text{drift} \to \left[ 0, 0 \right], \text{diffusion} \to \begin{pmatrix} s_{1} \\ s_{2} \end{pmatrix}, \text{time} \to t, \text{recheck} \to \operatorname{true} \right], \text{theorem} \to \text{Multivariate Ito lemma for an Ito diffusion}, \text{coverage} \to \left[ \text{completeness} \to \text{proven\_full}, \text{frontier\_id} \to \text{T6.3-ITO-DIM-LE6}, \text{complete\_domain\_declared} \to \text{C\textasciicircum{}(1,2) scalar observables of Ito diffusions with <=6 states and <=6 independent Brownian drivers}, \text{not\_claimed} \to \text{closed-form SDE paths or transition laws, beyond the geometric family geometric\_sde\_path now certifies, scalar or vector (src/stochastic/path.rs)} \right], \text{complete} \to \operatorname{true}, \text{resources} \to \left[ \left[ \text{kind} \to \text{max\_state\_dimension}, \text{limit} \to 6 \right], \left[ \text{kind} \to \text{max\_brownian\_dimension}, \text{limit} \to 6 \right], \left[ \text{kind} \to \text{state\_dimension}, \text{limit} \to 2 \right], \left[ \text{kind} \to \text{brownian\_dimension}, \text{limit} \to 1 \right] \right] \right]$

  `ito_formula_data(x*y, [x, y], [0, 0], [[s1], [s2]], t)`

  在求解器中，`ito_formula_data(x*y, [x, y], [0, 0], [[s1], [s2]], t)` 的结果是 `{status: "certified", result: ito_differential(x*y) -> {dt: s1*s2, dw: [s2*x + s1*y]}, validity: {status: "conditional", assumptions: t : real and x : real and y : real and s1 : real and s2 : real, regularity: "x*y is C^1 in time and C^2 in the state variables", quadratic_variation: "dW_i dW_j = kronecker_delta(i,j) dt"}, certificate: {kind: "multivariate_ito_formula", observable: x*y, states: [x, y], drift: [0, 0], diffusion: [[s1], [s2]], time: t, recheck: true}, theorem: "Multivariate Ito lemma for an Ito diffusion", coverage: {completeness: "proven_full", frontier_id: "T6.3-ITO-DIM-LE6", complete_domain_declared: "C^(1,2) scalar observables of Ito diffusions with <=6 states and <=6 independent Brownian drivers", not_claimed: "closed-form SDE paths or transition laws, beyond the geometric family geometric_sde_path now certifies, scalar or vector (src/stochastic/path.rs)"}, complete: true, resources: [{kind: "max_state_dimension", limit: 6}, {kind: "max_brownian_dimension", limit: 6}, {kind: "state_dimension", limit: 2}, {kind: "brownian_dimension", limit: 1}]}`。

  [在求解器中打开](https://zh.hilberon.com/?q=ito_formula_data%28x*y%2C%20%5Bx%2C%20y%5D%2C%20%5B0%2C%200%5D%2C%20%5B%5Bs1%5D%2C%20%5Bs2%5D%5D%2C%20t%29)
- $\displaystyle \operatorname{ito\_formula\_data}(x^{2}, x, \mu x, \sigma x, t) = \left[ \text{status} \to \text{certified}, \text{result} \to \operatorname{ito\_differential}(x^{2}) \to \left[ \text{dt} \to \sigma^{2} x^{2}+2 \mu x^{2}, \text{dw} \to \left[ 2 \sigma x^{2} \right] \right], \text{validity} \to \left[ \text{status} \to \text{conditional}, \text{assumptions} \to t \in \mathbb{R} \text{ and } x \in \mathbb{R} \text{ and } \mu x \in \mathbb{R} \text{ and } \sigma x \in \mathbb{R}, \text{regularity} \to \text{x\textasciicircum{}2 is C\textasciicircum{}1 in time and C\textasciicircum{}2 in the state variables}, \text{quadratic\_variation} \to \text{dW\_i dW\_j = kronecker\_delta(i,j) dt} \right], \text{certificate} \to \left[ \text{kind} \to \text{multivariate\_ito\_formula}, \text{observable} \to x^{2}, \text{states} \to \left[ x \right], \text{drift} \to \left[ \mu x \right], \text{diffusion} \to \begin{pmatrix} \sigma x \end{pmatrix}, \text{time} \to t, \text{recheck} \to \operatorname{true} \right], \text{theorem} \to \text{Multivariate Ito lemma for an Ito diffusion}, \text{coverage} \to \left[ \text{completeness} \to \text{proven\_full}, \text{frontier\_id} \to \text{T6.3-ITO-DIM-LE6}, \text{complete\_domain\_declared} \to \text{C\textasciicircum{}(1,2) scalar observables of Ito diffusions with <=6 states and <=6 independent Brownian drivers}, \text{not\_claimed} \to \text{closed-form SDE paths or transition laws, beyond the geometric family geometric\_sde\_path now certifies, scalar or vector (src/stochastic/path.rs)} \right], \text{complete} \to \operatorname{true}, \text{resources} \to \left[ \left[ \text{kind} \to \text{max\_state\_dimension}, \text{limit} \to 6 \right], \left[ \text{kind} \to \text{max\_brownian\_dimension}, \text{limit} \to 6 \right], \left[ \text{kind} \to \text{state\_dimension}, \text{limit} \to 1 \right], \left[ \text{kind} \to \text{brownian\_dimension}, \text{limit} \to 1 \right] \right] \right]$

  `ito_formula_data(x^2, x, mu*x, sigma*x, t)`

  在求解器中，`ito_formula_data(x^2, x, mu*x, sigma*x, t)` 的结果是 `{status: "certified", result: ito_differential(x^2) -> {dt: sigma^2*x^2 + 2mu*x^2, dw: [2sigma*x^2]}, validity: {status: "conditional", assumptions: t : real and x : real and mu*x : real and sigma*x : real, regularity: "x^2 is C^1 in time and C^2 in the state variables", quadratic_variation: "dW_i dW_j = kronecker_delta(i,j) dt"}, certificate: {kind: "multivariate_ito_formula", observable: x^2, states: [x], drift: [mu*x], diffusion: [[sigma*x]], time: t, recheck: true}, theorem: "Multivariate Ito lemma for an Ito diffusion", coverage: {completeness: "proven_full", frontier_id: "T6.3-ITO-DIM-LE6", complete_domain_declared: "C^(1,2) scalar observables of Ito diffusions with <=6 states and <=6 independent Brownian drivers", not_claimed: "closed-form SDE paths or transition laws, beyond the geometric family geometric_sde_path now certifies, scalar or vector (src/stochastic/path.rs)"}, complete: true, resources: [{kind: "max_state_dimension", limit: 6}, {kind: "max_brownian_dimension", limit: 6}, {kind: "state_dimension", limit: 1}, {kind: "brownian_dimension", limit: 1}]}`。

  [在求解器中打开](https://zh.hilberon.com/?q=ito_formula_data%28x%5E2%2C%20x%2C%20mu*x%2C%20sigma*x%2C%20t%29)
- $\displaystyle \operatorname{ito\_formula\_data}(\ln(x), x, \mu x, \sigma x, t) = \left[ \text{status} \to \text{certified}, \text{result} \to \operatorname{ito\_differential}(\ln(x)) \to \left[ \text{dt} \to \mu-\frac{\sigma^{2}}{2}, \text{dw} \to \left[ \sigma \right] \right], \text{validity} \to \left[ \text{status} \to \text{conditional}, \text{assumptions} \to t \in \mathbb{R} \text{ and } x \in \mathbb{R} \text{ and } \mu x \in \mathbb{R} \text{ and } \sigma x \in \mathbb{R}, \text{regularity} \to \text{ln(x) is C\textasciicircum{}1 in time and C\textasciicircum{}2 in the state variables}, \text{quadratic\_variation} \to \text{dW\_i dW\_j = kronecker\_delta(i,j) dt} \right], \text{certificate} \to \left[ \text{kind} \to \text{multivariate\_ito\_formula}, \text{observable} \to \ln(x), \text{states} \to \left[ x \right], \text{drift} \to \left[ \mu x \right], \text{diffusion} \to \begin{pmatrix} \sigma x \end{pmatrix}, \text{time} \to t, \text{recheck} \to \operatorname{true} \right], \text{theorem} \to \text{Multivariate Ito lemma for an Ito diffusion}, \text{coverage} \to \left[ \text{completeness} \to \text{proven\_full}, \text{frontier\_id} \to \text{T6.3-ITO-DIM-LE6}, \text{complete\_domain\_declared} \to \text{C\textasciicircum{}(1,2) scalar observables of Ito diffusions with <=6 states and <=6 independent Brownian drivers}, \text{not\_claimed} \to \text{closed-form SDE paths or transition laws, beyond the geometric family geometric\_sde\_path now certifies, scalar or vector (src/stochastic/path.rs)} \right], \text{complete} \to \operatorname{true}, \text{resources} \to \left[ \left[ \text{kind} \to \text{max\_state\_dimension}, \text{limit} \to 6 \right], \left[ \text{kind} \to \text{max\_brownian\_dimension}, \text{limit} \to 6 \right], \left[ \text{kind} \to \text{state\_dimension}, \text{limit} \to 1 \right], \left[ \text{kind} \to \text{brownian\_dimension}, \text{limit} \to 1 \right] \right] \right]$

  `ito_formula_data(ln(x), x, mu*x, sigma*x, t)`

  在求解器中，`ito_formula_data(ln(x), x, mu*x, sigma*x, t)` 的结果是 `{status: "certified", result: ito_differential(ln(x)) -> {dt: mu - sigma^2/2, dw: [sigma]}, validity: {status: "conditional", assumptions: t : real and x : real and mu*x : real and sigma*x : real, regularity: "ln(x) is C^1 in time and C^2 in the state variables", quadratic_variation: "dW_i dW_j = kronecker_delta(i,j) dt"}, certificate: {kind: "multivariate_ito_formula", observable: ln(x), states: [x], drift: [mu*x], diffusion: [[sigma*x]], time: t, recheck: true}, theorem: "Multivariate Ito lemma for an Ito diffusion", coverage: {completeness: "proven_full", frontier_id: "T6.3-ITO-DIM-LE6", complete_domain_declared: "C^(1,2) scalar observables of Ito diffusions with <=6 states and <=6 independent Brownian drivers", not_claimed: "closed-form SDE paths or transition laws, beyond the geometric family geometric_sde_path now certifies, scalar or vector (src/stochastic/path.rs)"}, complete: true, resources: [{kind: "max_state_dimension", limit: 6}, {kind: "max_brownian_dimension", limit: 6}, {kind: "state_dimension", limit: 1}, {kind: "brownian_dimension", limit: 1}]}`。

  [在求解器中打开](https://zh.hilberon.com/?q=ito_formula_data%28ln%28x%29%2C%20x%2C%20mu*x%2C%20sigma*x%2C%20t%29)

## 相关函数

- [ito_formula](https://zh.hilberon.com/library/ito_formula)

  Itô 引理：对服从 Itô 过程的状态所构成表达式的微分。
- [ito_integral](https://zh.hilberon.com/library/ito_integral)

  由维纳值 w 和时间 s 构成的表达式在 0 到 t 上的 Itô 积分。
- [ito_process](https://zh.hilberon.com/library/ito_process)

  由漂移项和扩散项给出的过程：dX = drift dt + diffusion dW。
- [geometric_sde_path](https://zh.hilberon.com/library/geometric_sde_path)

  dX = mu X dt + sigma X dW 的路径，表示为维纳过程在时刻 t 的取值 w 的函数。
- [mean](https://zh.hilberon.com/library/mean)

  一组数的平均值，或分布的期望值。
- [geometric_brownian_motion_process](https://zh.hilberon.com/library/geometric_brownian_motion_process)

  以速率 mu 增长、相对噪声为 sigma、从 x0 出发的过程。

---
Source: https://zh.hilberon.com/library/ito_formula_data
