Steady-state two-port channel model of heat transfer (Li et al., Section IV)
DefinitionArxiv1912_10252_BasicThe 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 .
- Geometry and parameters. A region is connected to two uniform channels of thermal conductivity and cross-section . Channel 1 runs over and channel 2 over . The source points satisfy and . A point source has strength , and is the total heat generation in , which does not depend on the conditions outside .
- Green's functions in the channels (Eq. 15). The steady-state Green's functions vanish at and are piecewise linear in the channels. has slopes on , on and on . has slopes on , on and on . The six slopes are taken at their limiting values as .
- Energy conservation (Eq. 16).
- The matrix (Eq. 17). . By Eq. (15) its entries are , , and . At leading order in ,
- The flux matrix (Eq. 19). . It sends the coefficients of the superposition to the heat fluxes in the channels near the interfaces.
- Global reciprocity (Eq. 14, Section IV). The system is steady-state globally reciprocal if .
- Not a thermal diode (Eqs. 17, 22, 25). Take any temperatures . Let and . The system is not a thermal diode if, for every such choice, , where .
Formalization Note The paper takes the limit when it passes from Eq. (17) to Eqs. (18) and (20). The definitions therefore record the slopes as numbers (their limits) and by its leading-order term. Condition (25) is homogeneous in the fluxes, so it does not change when is rescaled. The no-diode condition quantifies over coefficient vectors solving Eqs. (17) and (22) and does not use or . It is therefore meaningful when and is singular. Matrix indices of the paper are in Lean.
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
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 in the code are written here with indices .
TwoPortData. A two-port data record is a list of eleven real numbers, with no constraints relating them:
The field names suggest the following roles:
- is a thermal conductivity.
- is a cross-section area.
- is a channel half-length.
- is a source strength.
- is a total heat generation.
- The six values are slopes.
None of these roles is enforced. Any value is allowed, including zero, negative values or . Nothing in the record mentions positions , Green's functions, or any limit .
EnergyConservation. For a record , EnergyConservation s is the proposition that all four of these equations hold simultaneously:
Edge cases:
- If , the conditions reduce exactly to and , that is, .
- The value does not appear in these equations.
greenMat. For a record , greenMat s is the real matrix
It is a fixed algebraic expression in the record's fields. No limit is taken and no Green's function is evaluated. When , is the zero matrix.
fluxMat. For a record , fluxMat s is the real matrix
It does not depend on , , or .
IsGloballyReciprocal. For a record , IsGloballyReciprocal s is the proposition that the off-diagonal entries of are equal, . Written out:
Edge cases:
- When this holds automatically.
- When it is equivalent to .
- It involves no other fields, and it does not assume
EnergyConservation.
IsNotDiode. For a record , IsNotDiode s is the following proposition. Take any reals and any vectors , such that
For all such data, writing , it is required that
Points to note:
- The conclusion is an exact equality of vectors.
- The proposition does not assume
EnergyConservationorIsGloballyReciprocal. - range over all reals with no sign or ordering condition, and is included.
Edge cases:
- singular. For some no or satisfies the hypotheses, so those instances hold vacuously.
- Solutions not unique. When is singular, a hypothesis may also have many solutions or . The conclusion must then hold for every such pair.
- . Then , so the hypotheses hold exactly when , for arbitrary . In that case the proposition is equivalent to , meaning or .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.