Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Steady-state two-port channel model of heat transfer (Li et al., Section IV)

Definition
Arxiv1912_10252_Basic

by Xeroth · Nov 25, 2026 · Mathlib 0df444a (Lean v4.33.1)

green-functionheat-conductionreciprocitythermal-diode

The steady-state two-port model of Section IV of Li, Li, Qi, Qiu and Chen (arXiv:1912.10252), at leading order in the channel length LLL.

  1. Geometry and parameters. A region VVV is connected to two uniform channels of thermal conductivity κc>0\kappa_c>0κc​>0 and cross-section σ>0\sigma>0σ>0. Channel 1 runs over −L≤x≤x1-L\le x\le x_1−L≤x≤x1​ and channel 2 over x2≤x≤Lx_2\le x\le Lx2​≤x≤L. The source points satisfy xa≤x1x_a\le x_1xa​≤x1​ and xb≥x2x_b\ge x_2xb​≥x2​. A point source has strength Q0Q_0Q0​, and H=∫Vh dVH=\int_V h\,dVH=∫V​hdV is the total heat generation in VVV, which does not depend on the conditions outside VVV.
  2. Green's functions in the channels (Eq. 15). The steady-state Green's functions vanish at x=±Lx=\pm Lx=±L and are piecewise linear in the channels. G(x∣xa,0)G(x\mid x_a,0)G(x∣xa​,0) has slopes C1(xa)C_1(x_a)C1​(xa​) on [−L,xa][-L,x_a][−L,xa​], D1(xa)D_1(x_a)D1​(xa​) on [xa,x1][x_a,x_1][xa​,x1​] and C2(xa)C_2(x_a)C2​(xa​) on [x2,L][x_2,L][x2​,L]. G(x∣xb,0)G(x\mid x_b,0)G(x∣xb​,0) has slopes C1(xb)C_1(x_b)C1​(xb​) on [−L,x1][-L,x_1][−L,x1​], D2(xb)D_2(x_b)D2​(xb​) on [x2,xb][x_2,x_b][x2​,xb​] and C2(xb)C_2(x_b)C2​(xb​) on [xb,L][x_b,L][xb​,L]. The six slopes are taken at their limiting values as L→∞L\to\inftyL→∞.
  3. Energy conservation (Eq. 16).
−κcD1(xa)σ=−κcC2(xa)σ+H,−κcC1(xb)σ=−κcD2(xb)σ+H,-\kappa_cD_1(x_a)\sigma=-\kappa_cC_2(x_a)\sigma+H,\qquad -\kappa_cC_1(x_b)\sigma=-\kappa_cD_2(x_b)\sigma+H,−κc​D1​(xa​)σ=−κc​C2​(xa​)σ+H,−κc​C1​(xb​)σ=−κc​D2​(xb​)σ+H, −κc[C1(xa)−C2(xa)]σ=−κc[C1(xb)−C2(xb)]σ=Q0+H.-\kappa_c[C_1(x_a)-C_2(x_a)]\sigma=-\kappa_c[C_1(x_b)-C_2(x_b)]\sigma=Q_0+H.−κc​[C1​(xa​)−C2​(xa​)]σ=−κc​[C1​(xb​)−C2​(xb​)]σ=Q0​+H.
  1. The matrix G\mathbf GG (Eq. 17). G=(G(xa∣xa,0)G(xa∣xb,0)G(xb∣xa,0)G(xb∣xb,0))\mathbf G=\begin{pmatrix}G(x_a\mid x_a,0)&G(x_a\mid x_b,0)\\G(x_b\mid x_a,0)&G(x_b\mid x_b,0)\end{pmatrix}G=(G(xa​∣xa​,0)G(xb​∣xa​,0)​G(xa​∣xb​,0)G(xb​∣xb​,0)​). By Eq. (15) its entries are C1(xa)(xa+L)C_1(x_a)(x_a+L)C1​(xa​)(xa​+L), C1(xb)(xa+L)C_1(x_b)(x_a+L)C1​(xb​)(xa​+L), C2(xa)(xb−L)C_2(x_a)(x_b-L)C2​(xa​)(xb​−L) and C2(xb)(xb−L)C_2(x_b)(x_b-L)C2​(xb​)(xb​−L). At leading order in LLL,
G=L(C1(xa)C1(xb)−C2(xa)−C2(xb)).\mathbf G=L\begin{pmatrix}C_1(x_a)&C_1(x_b)\\-C_2(x_a)&-C_2(x_b)\end{pmatrix}.G=L(C1​(xa​)−C2​(xa​)​C1​(xb​)−C2​(xb​)​).
  1. The flux matrix Q\mathbf QQ (Eq. 19). Q=κc(D1(xa)C1(xb)C2(xa)D2(xb))\mathbf Q=\kappa_c\begin{pmatrix}D_1(x_a)&C_1(x_b)\\C_2(x_a)&D_2(x_b)\end{pmatrix}Q=κc​(D1​(xa​)C2​(xa​)​C1​(xb​)D2​(xb​)​). It sends the coefficients (fa,fb)(f_a,f_b)(fa​,fb​) of the superposition F=faG(⋅∣xa,0)+fbG(⋅∣xb,0)F=f_aG(\cdot\mid x_a,0)+f_bG(\cdot\mid x_b,0)F=fa​G(⋅∣xa​,0)+fb​G(⋅∣xb​,0) to the heat fluxes (q1,q2)(q_1,q_2)(q1​,q2​) in the channels near the interfaces.
  2. Global reciprocity (Eq. 14, Section IV). The system is steady-state globally reciprocal if G12=G21\mathbf G_{12}=\mathbf G_{21}G12​=G21​.
  3. Not a thermal diode (Eqs. 17, 22, 25). Take any temperatures T1,T2T_1,T_2T1​,T2​. Let Gf=(T1,T2)⊤\mathbf Gf=(T_1,T_2)^\topGf=(T1​,T2​)⊤ and Gf~=(T2,T1)⊤\mathbf G\tilde f=(T_2,T_1)^\topGf~​=(T2​,T1​)⊤. The system is not a thermal diode if, for every such choice, Qf~=(−q2,−q1)⊤\mathbf Q\tilde f=(-q_2,-q_1)^\topQf~​=(−q2​,−q1​)⊤, where (q1,q2)⊤=Qf(q_1,q_2)^\top=\mathbf Qf(q1​,q2​)⊤=Qf.

Formalization Note The paper takes the limit L→∞L\to\inftyL→∞ when it passes from Eq. (17) to Eqs. (18) and (20). The definitions therefore record the slopes as numbers (their limits) and G\mathbf GG by its leading-order term. Condition (25) is homogeneous in the fluxes, so it does not change when G\mathbf GG is rescaled. The no-diode condition quantifies over coefficient vectors solving Eqs. (17) and (22) and does not use G−1\mathbf G^{-1}G−1 or Q−1\mathbf Q^{-1}Q−1. It is therefore meaningful when H=0H=0H=0 and Q\mathbf QQ is singular. Matrix indices 1,21,21,2 of the paper are 0,10,10,1 in Lean.

Definition code
import Mathlib

/-!
Ying Li, Jiaxin Li, Minghong Qi, Cheng-Wei Qiu and Hongsheng Chen, *Diffusive non-reciprocity and
thermal diode*, arXiv:1912.10252v3: the steady-state two-port channel model of Section IV
(Eqs. (15)-(25), PDF pp. 6-7), taken at leading order in the channel length `L` as `L → ∞`.

Channel 1 occupies `-L ≤ x ≤ x₁`, channel 2 occupies `x₂ ≤ x ≤ L`, and the source points satisfy
`x_a ≤ x₁`, `x_b ≥ x₂`. The steady-state Green's functions `G(x | x_a, 0)` and `G(x | x_b, 0)` are
piecewise linear in the channels, with slopes `C₁(x_a), D₁(x_a), C₂(x_a)` and
`C₁(x_b), D₂(x_b), C₂(x_b)` (Eq. (15)). The region `V` between the channels is a black box: it enters
only through these slopes, the energy balance (16), and the linearity used to superpose the two
Green's functions.
-/

noncomputable section

namespace Arxiv1912_10252

/-- Section IV, Eqs. (15)-(16), PDF p. 6: the parameters of the steady-state two-port model, with
`C₁(x_a)`, ... read as their limits as `L → ∞`. -/
structure TwoPortData where
  /-- `κ_c`, the thermal conductivity of the two channels. -/
  kc : ℝ
  /-- `σ`, the cross-section area of the channels. -/
  sigma : ℝ
  /-- `L`, the channel ends sit at `x = ±L`. -/
  L : ℝ
  /-- `Q₀`, the strength of the point source in Eq. (3). -/
  Q0 : ℝ
  /-- `H = ∫_V h(r) dV`, the total heat generation in `V`, independent of outside conditions. -/
  H : ℝ
  /-- `C₁(x_a)`, slope of `G(x | x_a, 0)` on `-L ≤ x ≤ x_a`. -/
  C1a : ℝ
  /-- `D₁(x_a)`, slope of `G(x | x_a, 0)` on `x_a ≤ x ≤ x₁`. -/
  D1a : ℝ
  /-- `C₂(x_a)`, slope of `G(x | x_a, 0)` on `x₂ ≤ x ≤ L`. -/
  C2a : ℝ
  /-- `C₁(x_b)`, slope of `G(x | x_b, 0)` on `-L ≤ x ≤ x₁`. -/
  C1b : ℝ
  /-- `D₂(x_b)`, slope of `G(x | x_b, 0)` on `x₂ ≤ x ≤ x_b`. -/
  D2b : ℝ
  /-- `C₂(x_b)`, slope of `G(x | x_b, 0)` on `x_b ≤ x ≤ L`. -/
  C2b : ℝ

/-- Section IV, Eq. (16), PDF p. 6: energy conservation for the two steady-state Green's functions
when the total heat generation `H` in `V` does not depend on the outside conditions. -/
def EnergyConservation (s : TwoPortData) : Prop :=
  -s.kc * s.D1a * s.sigma = -s.kc * s.C2a * s.sigma + s.H ∧
  -s.kc * s.C1b * s.sigma = -s.kc * s.D2b * s.sigma + s.H ∧
  -s.kc * (s.C1a - s.C2a) * s.sigma = s.Q0 + s.H ∧
  -s.kc * (s.C1b - s.C2b) * s.sigma = s.Q0 + s.H

/-- Section IV, Eq. (17) with Eq. (15), PDF p. 6: the matrix
`G = [[G(x_a|x_a,0), G(x_a|x_b,0)], [G(x_b|x_a,0), G(x_b|x_b,0)]]` at leading order in `L`.
Eq. (15) gives `G(x_a|x_a,0) = C₁(x_a)(x_a+L)`, `G(x_a|x_b,0) = C₁(x_b)(x_a+L)`,
`G(x_b|x_a,0) = C₂(x_a)(x_b-L)`, `G(x_b|x_b,0) = C₂(x_b)(x_b-L)`; as `L → ∞` these are
`C₁(x_a)L`, `C₁(x_b)L`, `-C₂(x_a)L`, `-C₂(x_b)L`. -/
def greenMat (s : TwoPortData) : Matrix (Fin 2) (Fin 2) ℝ :=
  !![s.C1a * s.L, s.C1b * s.L; -(s.C2a * s.L), -(s.C2b * s.L)]

/-- Section IV, Eq. (19), PDF p. 6: the matrix `Q = κ_c [[D₁(x_a), C₁(x_b)], [C₂(x_a), D₂(x_b)]]`
sending the superposition coefficients `(f_a, f_b)` to the heat fluxes `(q₁, q₂)` in the channels
near the interfaces `S₁`, `S₂`. -/
def fluxMat (s : TwoPortData) : Matrix (Fin 2) (Fin 2) ℝ :=
  s.kc • !![s.D1a, s.C1b; s.C2a, s.D2b]

/-- Section III, Eq. (14), and Section IV, PDF p. 7: steady-state global reciprocity of the two-port
system, `G₁₂ = G₂₁`. -/
def IsGloballyReciprocal (s : TwoPortData) : Prop :=
  greenMat s 0 1 = greenMat s 1 0

/-- Section IV, Eqs. (17), (22), (25), PDF pp. 6-7: the system is not a thermal diode. For all
temperatures `T₁, T₂`, if the coefficients `f = (f_a, f_b)` give `F(x_a) = T₁`, `F(x_b) = T₂`
(Eq. (17)) and `f̃` gives the swapped temperatures (Eq. (22)), then the new fluxes
`(q̃₁, q̃₂) = Q f̃` equal `(-q₂, -q₁)`, where `(q₁, q₂) = Q f` (Eq. (25)). -/
def IsNotDiode (s : TwoPortData) : Prop :=
  ∀ (T1 T2 : ℝ) (f f' : Fin 2 → ℝ),
    (greenMat s).mulVec f = ![T1, T2] → (greenMat s).mulVec f' = ![T2, T1] →
      (fluxMat s).mulVec f' = ![-((fluxMat s).mulVec f 1), -((fluxMat s).mulVec f 0)]

end Arxiv1912_10252
Source
Li, Li, Qi, Qiu and Chen, Diffusive non-reciprocity and thermal diode, arXiv:1912.10252v3 (2019), Section III, Eq. (14); Section IV, Eqs. (15)-(25), PDF pp. 5-7
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

This file contains six declarations. Each one gets its own read-back below. Vectors and matrices indexed by {0,1}\{0,1\}{0,1} in the code are written here with indices 1,21,21,2.

TwoPortData. A two-port data record sss is a list of eleven real numbers, with no constraints relating them:

κc, σ, L, Q0, H, C1a, D1a, C2a, C1b, D2b, C2b∈R.\kappa_c,\ \sigma,\ L,\ Q_0,\ H,\ C_1^a,\ D_1^a,\ C_2^a,\ C_1^b,\ D_2^b,\ C_2^b \in \mathbb{R}.κc​, σ, L, Q0​, H, C1a​, D1a​, C2a​, C1b​, D2b​, C2b​∈R.

The field names suggest the following roles:

  • κc\kappa_cκc​ is a thermal conductivity.
  • σ\sigmaσ is a cross-section area.
  • LLL is a channel half-length.
  • Q0Q_0Q0​ is a source strength.
  • HHH is a total heat generation.
  • The six C,DC, DC,D values are slopes.

None of these roles is enforced. Any value is allowed, including zero, negative values or L=0L = 0L=0. Nothing in the record mentions positions xa,xb,x1,x2x_a, x_b, x_1, x_2xa​,xb​,x1​,x2​, Green's functions, or any limit L→∞L \to \inftyL→∞.

EnergyConservation. For a record sss, EnergyConservation s is the proposition that all four of these equations hold simultaneously:

−κcD1aσ=−κcC2aσ+H,−κcC1bσ=−κcD2bσ+H,−κc(C1a−C2a)σ=Q0+H,−κc(C1b−C2b)σ=Q0+H.\begin{aligned} -\kappa_c D_1^a \sigma &= -\kappa_c C_2^a \sigma + H,\\ -\kappa_c C_1^b \sigma &= -\kappa_c D_2^b \sigma + H,\\ -\kappa_c (C_1^a - C_2^a)\sigma &= Q_0 + H,\\ -\kappa_c (C_1^b - C_2^b)\sigma &= Q_0 + H. \end{aligned}−κc​D1a​σ−κc​C1b​σ−κc​(C1a​−C2a​)σ−κc​(C1b​−C2b​)σ​=−κc​C2a​σ+H,=−κc​D2b​σ+H,=Q0​+H,=Q0​+H.​

Edge cases:

  • If κcσ=0\kappa_c \sigma = 0κc​σ=0, the conditions reduce exactly to H=0H = 0H=0 and Q0+H=0Q_0 + H = 0Q0​+H=0, that is, H=Q0=0H = Q_0 = 0H=Q0​=0.
  • The value LLL does not appear in these equations.

greenMat. For a record sss, greenMat s is the real 2×22\times 22×2 matrix

Gs=(C1aLC1bL−C2aL−C2bL).G_s = \begin{pmatrix} C_1^a L & C_1^b L \\ -C_2^a L & -C_2^b L \end{pmatrix}.Gs​=(C1a​L−C2a​L​C1b​L−C2b​L​).

It is a fixed algebraic expression in the record's fields. No limit is taken and no Green's function is evaluated. When L=0L = 0L=0, GsG_sGs​ is the zero matrix.

fluxMat. For a record sss, fluxMat s is the real 2×22\times 22×2 matrix

Qs=κc(D1aC1bC2aD2b).Q_s = \kappa_c \begin{pmatrix} D_1^a & C_1^b \\ C_2^a & D_2^b \end{pmatrix}.Qs​=κc​(D1a​C2a​​C1b​D2b​​).

It does not depend on LLL, σ\sigmaσ, Q0Q_0Q0​ or HHH.

IsGloballyReciprocal. For a record sss, IsGloballyReciprocal s is the proposition that the off-diagonal entries of GsG_sGs​ are equal, (Gs)12=(Gs)21(G_s)_{12} = (G_s)_{21}(Gs​)12​=(Gs​)21​. Written out:

C1bL=− C2aL.C_1^b L = -\,C_2^a L.C1b​L=−C2a​L.

Edge cases:

  • When L=0L = 0L=0 this holds automatically.
  • When L≠0L \neq 0L=0 it is equivalent to C1b=−C2aC_1^b = -C_2^aC1b​=−C2a​.
  • It involves no other fields, and it does not assume EnergyConservation.

IsNotDiode. For a record sss, IsNotDiode s is the following proposition. Take any reals T1,T2T_1, T_2T1​,T2​ and any vectors f=(f1,f2)f = (f_1, f_2)f=(f1​,f2​), f′=(f1′,f2′)∈R2f' = (f'_1, f'_2) \in \mathbb{R}^2f′=(f1′​,f2′​)∈R2 such that

Gsf=(T1T2)andGsf′=(T2T1).G_s f = \begin{pmatrix} T_1 \\ T_2 \end{pmatrix} \quad\text{and}\quad G_s f' = \begin{pmatrix} T_2 \\ T_1 \end{pmatrix}.Gs​f=(T1​T2​​)andGs​f′=(T2​T1​​).

For all such data, writing (q1,q2)=Qsf(q_1, q_2) = Q_s f(q1​,q2​)=Qs​f, it is required that

Qsf′=(−q2−q1).Q_s f' = \begin{pmatrix} -q_2 \\ -q_1 \end{pmatrix}.Qs​f′=(−q2​−q1​​).

Points to note:

  • The conclusion is an exact equality of vectors.
  • The proposition does not assume EnergyConservation or IsGloballyReciprocal.
  • T1,T2T_1, T_2T1​,T2​ range over all reals with no sign or ordering condition, and T1=T2T_1 = T_2T1​=T2​ is included.

Edge cases:

  • GsG_sGs​ singular. For some (T1,T2)(T_1, T_2)(T1​,T2​) no fff or f′f'f′ satisfies the hypotheses, so those instances hold vacuously.
  • Solutions not unique. When GsG_sGs​ is singular, a hypothesis may also have many solutions fff or f′f'f′. The conclusion must then hold for every such pair.
  • L=0L = 0L=0. Then Gs=0G_s = 0Gs​=0, so the hypotheses hold exactly when T1=T2=0T_1 = T_2 = 0T1​=T2​=0, for arbitrary f,f′f, f'f,f′. In that case the proposition is equivalent to Qs=0Q_s = 0Qs​=0, meaning κc=0\kappa_c = 0κc​=0 or D1a=C1b=C2a=D2b=0D_1^a = C_1^b = C_2^a = D_2^b = 0D1a​=C1b​=C2a​=D2b​=0.
Human review
  • Endorsed by Shuze Chen · Nov 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 25, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me