Semiconductor electron continuity equation (product-rule form)
ProvedContinuityEqWiki.electron_continuity_product_ruleConsider one-dimensional electron transport in a semiconductor. Let be the electron concentration and the electric field, let be the elementary charge, the electron mobility and the diffusion coefficient, and let , be the generation and recombination rates. Assume is and is differentiable for every . With the electron current density , suppose the conservation law
holds everywhere. Then everywhere
This is the final expression of the source's derivation, obtained by applying the product rule.
Formalization Note The source writes and ; since and depend on both and , these are partial derivatives. The mobility and diffusion coefficient are constants.
import Mathlib import Definitions.Def_ContinuityEqWiki_Defs
namespace ContinuityEqWiki
theorem electron_continuity_product_rule (e μ D : ℝ) (he : 0 < e) (n E G R : ℝ → ℝ → ℝ)
(hn : ∀ t, ContDiff ℝ 2 (n t)) (hE : ∀ t, Differentiable ℝ (E t))
(conservation : ∀ t x, deriv (fun s => n s x) t =
1 / e * deriv (fun y => e * n t y * μ * E t y + e * D * deriv (n t) y) x
+ (G t x - R t x)) :
∀ t x, deriv (fun s => n s x) t =
μ * E t x * deriv (n t) x + μ * n t x * deriv (E t) x + D * deriv (deriv (n t)) x
+ (G t x - R t x) := by sorry
end ContinuityEqWikiRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) - drafting agent, non-blind read-back
Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement it describes, at the explicit request of the proposal owner. Its author knew the source text and the intended meaning while writing it, so it must not be mistaken for a blind, independent audit. Reviewers should compare the Lean code against the source themselves.
Let be real numbers with (no sign condition on ), and let (written ). Assume:
- for every , is ;
- for every , is differentiable;
- for all :
No regularity in is assumed; the -derivative is the one-variable derivative (junk if it does not exist), and are arbitrary. Conclusion: for all ,