# ito_formula_data function

The certified record behind ito_formula: its result, validity, certificate and theorem.

## How to write it

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

The record that is_ito_certificate and is_validity_certificate read; its result is the answer.

**f**

The expression of the states and time that is differentiated. Takes an expression.

**states**

The state variables, in brackets. Takes a list of variables, or a variable.

**drift**

The drift of each state, in brackets. Takes a list.

**diffusion**

The noise: one row for each state, one column for each driver. Takes a matrix, written as a list of rows.

**time**

The time, a variable. Takes a variable, or a list of variables.

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

For one state and one driver, the call without lists; the record is the same.

**f**

The expression of the state and time that is differentiated. Takes an expression.

**states**

The one state variable, without a list. Takes a variable, or a list of variables.

**drift**

The drift of the state. Takes an expression.

**diffusion**

The noise of the state, for one driver. Takes an expression.

**time**

The time, a variable. Takes a variable, or a list of variables.

## Examples

- $\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)`

  In the solver, `ito_formula_data(x^2, [x], [mu*x], [[sigma*x]], t)` gives `{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}]}`.

  [Open in the solver](https://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)`

  In the solver, `ito_formula_data(x*y, [x, y], [0, 0], [[s1], [s2]], t)` gives `{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}]}`.

  [Open in the solver](https://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)`

  In the solver, `ito_formula_data(x^2, x, mu*x, sigma*x, t)` gives `{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}]}`.

  [Open in the solver](https://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)`

  In the solver, `ito_formula_data(ln(x), x, mu*x, sigma*x, t)` gives `{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}]}`.

  [Open in the solver](https://hilberon.com/?q=ito_formula_data%28ln%28x%29%2C%20x%2C%20mu*x%2C%20sigma*x%2C%20t%29)

## Related functions

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

  Itô's lemma: the differential of an expression of states that follow an Itô process.
- [ito_integral](https://hilberon.com/library/ito_integral)

  The Itô integral of an expression of the Wiener value w and the time s, from 0 to t.
- [ito_process](https://hilberon.com/library/ito_process)

  A process given by its drift and diffusion: dX = drift dt + diffusion dW.
- [geometric_sde_path](https://hilberon.com/library/geometric_sde_path)

  The path of dX = mu X dt + sigma X dW, as a function of the Wiener process's value w at time t.
- [mean](https://hilberon.com/library/mean)

  The average of a list of numbers, or the expected value of a distribution.
- [geometric_brownian_motion_process](https://hilberon.com/library/geometric_brownian_motion_process)

  A process that grows at rate mu with relative noise sigma, started at x0.

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