Skip to content

Development version: arxiv-v1 + 66 commits (3827c18)

Transmission representation of the Josephson free energy beyond the short-junction limit

Anton R. Akhmerov ORCID⋆

Kavli Institute of Nanoscience, Delft University of Technology, P.O. Box 4056, 2600 GA Delft, The Netherlands

⋆anharmonicity@antonakhmerov.org

October 19, 2026

Abstract

Beenakker’s formula, U⁢(φ)−U⁢(0)=Δ⁢∑n(1−1−τn⁢sin2⁡(φ/2)), expresses the zero-temperature energy-phase relation of a short Josephson junction through its normal-state transmission eigenvalues. We generalize this transmission representation beyond the short-junction limit and express the phase-dependent free energy of a time-reversal-symmetric s-wave junction as a Matsubara sum over channels with frequency-dependent transmissions. The representation constrains the small-phase expansion of the free energy. In particular, we prove that the normalized ratio of its quartic and quadratic coefficients satisfies −1≤αr≤7/80 at finite temperature. We also construct a four-site junction with αr>0, which disproves the conjectured upper bound αr≤0. We also prove that the critical current Ic and the Josephson inductance LJ of any such junction satisfy Φ0/2⁢π≤Ic⁢LJ≤3.66⁢Φ0/2⁢π, with the lower bound at every temperature and the upper bound at zero temperature. So that these results can be trusted without repeating the derivations, every numbered equation is formally verified in the Lean proof assistant.

AI disclosure. I formulated the problem and directed the research. I produced both the research reported here and the manuscript text using GPT-5.2 through GPT-6.1, in the Codex harness and in their Pro versions through ChatGPT, and Claude Fable 5.1 and Claude Opus 5.5 in Claude Code. App. D describes how these models contributed.

1 Introduction

Josephson’s original work [1] on superconductive tunnelling gave a universal sinusoidal current-phase relation, and therefore a cosine energy-phase relation, for a tunnel junction. Superconductor–normal–superconductor (SNS) junctions are much more varied. Their energy-phase relations depend on the full phase-dependent spectrum of the weak link and generally do not admit such a universal form. A major simplification reappears in the short-junction limit. There, Beenakker showed [2] that the energy-phase relation is

Ushort⁢(φ)−Ushort⁢(0)=Δ⁢∑n(1−1−τ⁢sin2n⁡φ2), (1)

where n labels the channels and τn are the normal-state transmission eigenvalues of the weak link. Equation (1) gives the full Josephson potential as a sum over independent transport channels. This potential underlies weak-link qubit models [3, 4, 5]: after quantizing the phase, its non-quadratic terms give the qubit anharmonicity.

General Green-function and scattering-matrix formulations apply at arbitrary junction length [6, 7], but to our knowledge they do not reduce the phase dependence to a sum over independent scalar channels. The phase-dependent spectrum away from the short-junction limit is not parametrized by a fixed set of normal-state transmission eigenvalues, so the local form of the free energy, F⁢(φ)−F⁢(0)=c2⁢φ2+c4⁢φ4+O⁢(φ6), does not by itself expose the signs or allowed range of c2 and c4. Titov, Jacquod, and Beenakker showed [7] in a scattering approach that a noninteracting time-reversal-symmetric disordered junction has a Josephson-energy minimum at φ=0, so c2≥0. The quartic coefficient c4, or equivalently the normalized ratio αr=12⁢c4/c2, is harder to constrain. Based on numerical perturbation theory of random-matrix Hamiltonians, we and our collaborators conjectured [8] that this ratio lies between −1 and 0.

The short-junction formula raises the question of whether a channel description survives at finite junction length. We show that it does, but the channel weights become functions of Matsubara frequency rather than fixed normal-state transmissions. We derive this representation for finite-dimensional time-reversal-symmetric s-wave Bogoliubov–de Gennes Hamiltonians, both with and without S⁢U⁢(2) spin rotation symmetry. It reduces to Beenakker’s formula in the short-junction limit, and near that limit it gives the first finite-length correction for any normal region whose scattering depends smoothly on energy near the Fermi level; its logarithmic term, which suppresses the response in previously studied models, can have either sign. Away from that limit, the same representation gives an infinite family of constraints on higher-order nonlinearities. The frequency dependence of the transmission channels bounds the normalized quartic coefficient by 7/80 at finite temperature and by (16−5⁢π)/[4⁢(4−π)]≈0.085 at zero temperature. Both bounds leave room for positive c4, and we find a four-site junction with αr>0. This rules out the older conjectured upper bound αr≤0. Beyond the small-phase expansion, the representation bounds the full current-phase relation. We prove that the critical current and the Josephson inductance of any junction in this class satisfy Φ0/2⁢π≤Ic⁢LJ≤3.66⁢Φ0/2⁢π and that the barrier at φ=π lies between two and 5.32 times the inductive energy, with the lower bounds at every temperature and the upper bounds at zero temperature, and that the critical current never exceeds that of N perfectly transmitting short channels, at any junction length. Every numbered equation in this manuscript is printed from a statement checked in the Lean proof assistant [9, 10], and App. D.3 states what this verification covers and which later results it does not. App. D describes how AI models contributed to these results.

2 Derivation of the transmission representation

The derivation has three main steps. We first convert the phase-dependent part of the free energy into a Matsubara sum and reduce each term to finite-dimensional channel spaces obtained by factoring the pairing blocks. Particle-hole symmetry fixes the allowed form of those factorizations. We then impose time-reversal symmetry and s-wave pairing, which add a transpose relation to the matrix obtained after this reduction. In the two-terminal case, this relation pairs the relevant generalized eigenvalues with opposite signs and yields the final compact formula.

2.1 Problem definition

We work in the conjugate-hole basis and split the pairing by superconductor. The Bogoliubov–de Gennes Hamiltonian is

H=(hΔ−η⁢Δ∗−h∗). (2)

Here h is the normal-state Hamiltonian and Δ=∑ieiφiΔi is the superconducting pairing. The index i labels different superconductors, so each phase φi enters only through its own pairing block. The superconducting pairing is constrained by particle-hole symmetry of the Hamiltonian, which in this basis is

𝒫⁢H⁢𝒫−1=−H,𝒫=(01η0)⁢K, (3)

with K complex conjugation. The sign η=−1 corresponds to the spin-singlet, S⁢U⁢(2)-invariant case, while η=+1 denotes the case without S⁢U⁢(2) spin-rotation symmetry. Hermiticity of this particle-hole-symmetric block, applied separately to the independent phase factors, gives

Δ=T−ηΔ. (4)

Each pairing block Δi typically acts only on the degrees of freedom that belong to superconductor i, so it is naturally rank-deficient. We therefore use a decomposition that reveals that rank while keeping the symmetry ΔiT=−η⁢Δi explicit: the Takagi factorization for η=−1 and the skew-Takagi, or Youla, factorization for η=+1, the analogues of the singular-value decomposition for complex symmetric and antisymmetric matrices. In both cases,

Δ=iLQLT,Q={⨁i⁢σyif ⁢η=11otherwise. (5)

The auxiliary space on which Q acts is the channel space for superconductor i. For η=+1, this space splits into 2×2 blocks on which Q acts as i⁢σy. For several superconductors, the total channel space is the direct sum of these spaces, and the individual maps combine into a single map L from it to electron space. The factorization on the total channel space is

Δi=L⁢Pi⁢Q⁢LT. (6)

Here, the Pi are the orthogonal projectors onto the channel spaces of the individual superconductors, with ∑iPi=1 and [Pi,Q]=0.

Because Δ=∑iei⁢φi⁢Δi, this factorization puts the superconducting phases on the channel-space side of the problem:

Φ⁢(ei⁢φ)=∑ieiφi⁢Pi,Δ=L⁢Φ⁢(ei⁢φ)⁢Q⁢LT. (7)

Our goal is to compute the finite-temperature free energy

Fβ⁢(H)=−1β⁢Tr⁡log⁡(2⁢cosh⁡β⁢H2)=−1β⁢∑klog⁡(2⁢cosh⁡β⁢εk⁢(H)2), (8)

and its zero-temperature limit,

limβ→∞Fβ⁢(H)=U⁢(H),U⁢(H)=−12⁢Tr⁡|H|. (9)

We apply the standard Matsubara summation approach and use the product identity

cosh⁡β⁢a2=∏m=0∞(1+a2ωm2), (10)

with positive fermionic Matsubara frequencies ωm=(2⁢m+1)⁢π/β. For these positive frequencies, det(ωm2+H2)=|det(i⁢ωm−H)|2. With H0=H⁢(φ=0), the product identity gives the Matsubara sum for the free-energy difference:

Fβ⁢(H)−Fβ⁢(H0)=−2β⁢∑m=0∞log⁡|det(i⁢ωm−H)det(i⁢ωm−H0)|. (11)

In the limit β→∞, the Matsubara sum converges to the corresponding integral, which gives the zero-temperature formula

U⁢(H)−U⁢(H0)=−1π⁢∫0∞log⁡|det(i⁢ω−H)det(i⁢ω−H0)|⁢dω. (12)

2.2 Scattering form of the Matsubara formula

From now on we consider an SNS junction with left and right superconductors and choose a gauge with phases 0 and φ, so the phase dependence is

Δ=Δ+Lei⁢φΔ,RΦ(ei⁢φ)=PL+ei⁢φPR. (13)

To expose the channel structure of the free energy, we reduce the full BdG determinant det[i⁢ω−H⁢(φ)] to a scattering problem on channel space. Using the factorization in Eq. (7), we apply the virtual-leads construction of Ref. [11] and introduce auxiliary currents on the superconducting channels. For a vector satisfying [i⁢ω−H⁢(φ)]⁢(ψe,ψh)T=0, we define

jeh=12(iL†ψ−eΦ(ei⁢φ)QLTψ)h,jhe=12(L†ψ−eiΦ(ei⁢φ)QLTψ)h. (14)

With these definitions, the BdG equations become

ℳω⁢(ψeψhjehjhe)=0, (15)

with

ℳω=(i⁢ω−h+i⁢L⁢L†00−i⁢2⁢L0i⁢ω+h∗+i⁢L∗⁢LTi⁢2⁢L∗⁢Q†⁢Φ⁢(e−i⁢φ)0−i⁢L†012i⁢120i⁢Φ⁢(ei⁢φ)⁢Q⁢LTi⁢1212). (16)

This enlarged system lets us eliminate either set of variables. Eliminating the auxiliary currents returns the original BdG block, because the lower-right block has determinant 1:

detℳω=det(i⁢ω−H). (17)

Eliminating the BdG amplitudes instead leaves a determinant entirely in channel space:

detℳω=(detAω)⁢det(−Aω∗)⁢det(12i⁢12⁢S⁢Q†−η⁢i⁢12⁢Φ⁢(ei⁢φ)⁢Q⁢S∗⁢Φ⁢(e−i⁢φ)12), (18)

where

Aω=i⁢ω−h+i⁢L⁢L†,Sω=(1−2⁢i⁢L†⁢Aω−1⁢L)⁢Q. (19)

Since Aω is independent of φ, its determinant cancels in the ratio between phase φ and phase 0. Comparing the two eliminations and using [Q,Φ⁢(ei⁢φ)]=0 and (Q†)2=−η then gives

det[i⁢ω−H⁢(φ)]det[i⁢ω−H⁢(0)]=det(1−η⁢Φ⁢(e−i⁢φ)⁢Sω⁢Φ⁢(ei⁢φ)⁢Sω∗)det(1−η⁢Sω⁢Sω∗). (20)

Equation (20) is the Matsubara scattering determinant of Brouwer and Beenakker [12]; Repin, Chen, and Nazarov used its multiterminal form to study the low-frequency response tensor [13].

2.3 Time-reversal-symmetric s-wave junctions

In a time-reversal-symmetric s-wave junction, the scattering matrix obeys an additional transpose symmetry. To derive this relation, we consider the time-reversal symmetry 𝒯=UT⁢K, where

UT={1if ⁢η=−1⨁i⁢σyotherwise. (21)

At zero phase, time-reversal symmetry imposes

UTh∗UT†=h,UTΔUTTi∗=Δ.i (22)

The case η=−1 has UT=1, so Δi is real symmetric. The case η=+1 has UTT=−UT and ΔiT=−Δi. The s-wave condition makes Δi⁢UT† positive semidefinite. A square-root factorization in a doubled channel space, real for η=−1 and self-dual for η=+1, gives a channel basis satisfying

Δ⁢UT†=L⁢L†,UT⁢L∗=L⁢Q. (23)

In this channel basis, the product L⁢L† obeys

UT⁢(L⁢L†)T⁢UT†=UT⁢L∗⁢LT⁢UT†=L⁢Q⁢Q†⁢L†=L⁢L†, (24)

so UT⁢AωT⁢UT†=Aω. The scattering matrix S=Sω then satisfies

ST=QT−2⁢i⁢QT⁢LT⁢(Aω−1)T⁢L∗=QT−2⁢i⁢QT⁢Q†⁢L†⁢Aω−1⁢L⁢Q=−η⁢Q+2⁢i⁢η⁢L†⁢Aω−1⁢L⁢Q=−η⁢S. (25)

Using Eq. (25) removes the remaining sign that depends on the symmetry class and transforms the ratio in Eq. (20) into

det[i⁢ω−H⁢(φ)]det[i⁢ω−H⁢(0)]=det(1+Φ⁢(e−i⁢φ)⁢Sω†⁢Φ⁢(ei⁢φ)⁢Sω)det(1+Sω†⁢Sω). (26)

2.4 Transmission representation

To extract one scalar factor per channel from the determinant ratio in Eq. (26), we separate the left and right channel spaces by introducing the signature J:

J=PL−PR,Φ⁢(ei⁢φ)=PL+ei⁢φ⁢PR=1+ei⁢φ2+1−ei⁢φ2⁢J. (27)

The orthogonal projectors satisfy PL+PR=1 on the total channel space. We write rL=rank⁡PL and rR=rank⁡PR for the dimensions of the left and right channel spaces. After this substitution, the determinant depends on two phase-independent matrices:

D=1+Sω†⁢Sω,F=J+Sω†⁢J⁢Sω. (28)

Because det(PL+ei⁢φ⁢PR)=ei⁢rR⁢φ, the ratio of determinants becomes

det[i⁢ω−H⁢(φ)]det[i⁢ω−H⁢(0)]=e−i⁢rR⁢φ⁢det(1+ei⁢φ2⁢D+1−ei⁢φ2⁢F)detD. (29)

Since D=1+Sω†⁢Sω≻0, we evaluate the determinant ratio in Eq. (29) in the generalized eigenbasis F⁢u=μ⁢D⁢u:

det[i⁢ω−H⁢(φ)]det[i⁢ω−H⁢(0)]=e−i⁢rR⁢φ⁢∏j(1+ei⁢φ2+1−ei⁢φ2⁢μj), (30)

where the μj are the generalized eigenvalues of the pair (F,D). The matrices D±F are positive semidefinite:

D+F=2⁢(PL+Sω†⁢PL⁢Sω)⪰0,D−F=2⁢(PR+Sω†⁢PR⁢Sω)⪰0. (31)

Thus −D⪯F⪯D, and since D≻0, the generalized eigenvalues obey −1≤μj≤1.

We now show that each nonendpoint eigenvalue is paired with its negative. For a generalized eigenvector u at μ, with |μ|<1, the eigenvalue equation reads

F⁢u=μ⁢D⁢u⇔(J−μ)⁢u+Sω†⁢(J−μ)⁢Sω⁢u=0. (32)

The candidate eigenvector at −μ is Θμ⁢u, with the pairing map

Θμ⁢(u)=11−μ2⁢(J−μ)⁢Sω†⁢u∗=−η⁢11−μ2⁢(J−μ)⁢(Sω⁢u)∗. (33)

Applying F+μ⁢D to Θμ⁢u, we obtain

(F+μ⁢D)⁢Θμ⁢(u) =11−μ2⁢[(J+μ)⁢(J−μ)⁢Sω†+Sω†⁢(J+μ)⁢Sω⁢(J−μ)⁢Sω†]⁢u∗ (34)
=11−μ2Sω†(1−μ+2(J+μ)Sω(J−μ)Sω†)u∗=0,

where the last equality uses the conjugate of Eq. (32). Hence Θμ⁢u is a generalized eigenvector at −μ. This pairing is one-to-one because composition with the map at −μ gives

Θ−μ⁢(Θμ⁢(u)) =11−μ2⁢(J+μ)⁢Sω†⁢[(J−μ)⁢Sω†⁢u∗]∗ (35)
=−η⁢11−μ2⁢(J+μ)⁢Sω†⁢(J−μ)⁢Sω⁢u
=η⁢11−μ2⁢(J+μ)⁢(J−μ)⁢u=η⁢u,

where the second equality uses Eq. (25), and the third uses Eq. (32). Thus the nonendpoint generalized eigenvalues come in opposite-sign pairs for both η=±1.

The endpoints μ=±1 only produce T=0 factors; the factor from μ=−1 cancels against the prefactor in Eq. (29). We therefore keep the nontrivial pairs ±μn⁢(ω), of which there are at most N=min⁡(rL,rR), and set Tn⁢(ω)=0 on the remaining channels:

Tn(ω)=1−μ(ω)2n,0≤Tn(ω)≤1. (36)

We call Tn⁢(ω) the Matsubara transmission eigenvalues. The next section shows that Tn⁢(0) equals the ordinary transmission eigenvalues τn of the normal-state scattering matrix. Using the opposite-sign pairing, each nontrivial pair ±μn⁢(ω) combines into a single scalar factor,

e−i⁢φ⁢1+ei⁢φ+(1−ei⁢φ)μ(ω)n2⁢1+ei⁢φ−(1−ei⁢φ)μ(ω)n2=1−Tn⁢(ω)⁢sin2⁡φ2. (37)

Padding the paired channels with zero transmissions gives a phase-independent family Tn⁢(ω), n=1,…,rL, and the determinant ratio

det[i⁢ω−H⁢(φ)]det[i⁢ω−H⁢(0)]=∏n(1−Tn⁢(ω)⁢sin2⁡φ2). (38)

Substituting Eq. (38) into Eq. (11) gives the transmission representation for the phase-dependent free energy:

Fβ⁢(H⁢(φ))−Fβ⁢(H⁢(0))=−2β⁢∑m=0∞∑nlog⁡(1−Tn⁢(ωm)⁢sin2⁡φ2). (39)

Here the channel sum runs over n=1,…,rL, and at most N of these transmissions are nonzero. Equation (39) is the central result of the manuscript. It shows that all φ-dependence again enters through sin2⁡(φ/2), now weighted by frequency-dependent transmission eigenvalues. Because 0≤Tn⁢(ωm)≤1, each summand is a monotone increasing function of sin2⁡(φ/2). Therefore the phase-dependent free energy, and in particular the zero-temperature energy, is itself a monotone increasing function of sin2⁡(φ/2), so φ=0 modulo 2⁢π is a global free-energy minimum.

3 Short-junction limit

The short-junction limit recovers Beenakker’s expression: the dwell time through the normal region is negligible on the scale Δ−1, so we approximate the scattering matrix by

Sω=a⁢(ωΔ)⁢S0. (40)

Here S0 is the fixed unitary normal-state scattering matrix, which we write in block form as

S0=(rt′tr′),a⁢(ωΔ)=1+(ωΔ)2−ωΔ. (41)

This approximation makes the frequency dependence explicit:

D=1+a⁢(ωΔ)2,F=J+a⁢(ωΔ)2⁢S0†⁢J⁢S0. (42)

Because D is scalar in this approximation, the generalized eigenvalue problem for a fixed channel, with μω=μn⁢(ω), is an ordinary eigenvalue problem for F:

F⁢v=μ⁢Dω⁢v. (43)

To identify the relevant channels with the usual normal-state transmission channels, it is convenient to square F. Since (S0†⁢J⁢S0)2=1,

F2=(J+a⁢(ωΔ)2⁢S0†⁢J⁢S0)2=1+a⁢(ωΔ)4+a⁢(ωΔ)2⁢(J⁢S0†⁢J⁢S0+S0†⁢J⁢S0⁢J). (44)

In block form, this identity is

J⁢S0†⁢J⁢S0+S0†⁢J⁢S0⁢J=2⁢(r†⁢r−t†⁢t00r′†⁢r′−t′†⁢t′)=2−4⁢(t†⁢t00t′†⁢t′). (45)

Substituting this identity into Eq. (44) gives

F2=[1+a⁢(ωΔ)2]2−4⁢a⁢(ωΔ)2⁢(t†⁢t00t′†⁢t′). (46)

Hence

Tn⁢(ω)=4⁢a⁢(ωΔ)2[1+a⁢(ωΔ)2]2⁢τn=τnΔ2ω+2Δ2. (47)

Here τn are the eigenvalues of t†⁢t, and therefore the transmission eigenvalues of S0. At ω=0, the same t†⁢t block results from the zero-frequency scattering matrix of any junction, and Eq. (47) gives Tn⁢(0)=τn. In the short-junction approximation, the scalar prefactor supplies the remaining ω-dependence, and substituting Eq. (47) into the zero-temperature limit of Eq. (39) reproduces Eq. (1) after integration over ω. If the two superconductors have unequal gaps, replacing the single prefactor in Eq. (40) by a separate prefactor for each lead reproduces the known result for a point contact with unequal gaps [14, 15].

The transmission representation also lets us derive the general form of the finite-length correction to the energy-phase relation, despite the singular Δ→0 behavior caused by continuum states above the gap [16]. For equal gaps, and as long as the normal-state scattering depends smoothly on energy near the Fermi level (in particular, the Fermi level does not sit at a band edge), we obtain the zero-temperature expansion (see App. A):

U(φ)−U(0)=Ushort(φ)−Ushort(0)+Δ(xClogΔ+Blow(x)+xBhigh)2+o(Δ)2. (48)

Here x=sin2⁡(φ/2), and Ushort denotes the short-junction energy of Eq. (1). The expansion is asymptotic in Δ relative to the energy scale on which the normal-state scattering changes, and it holds at fixed phase provided x⁢τn<1 for every channel. The singular part of the finite-length correction is linear in sin2⁡(φ/2), while C, Blow, and Bhigh encode the energy dependence of the normal scattering problem. Our result extends prior work by including the nondiverging terms Blow and Bhigh for any such normal region. In the previously studied examples, the logarithmic correction suppresses the short-junction response: a short point contact [17], a ballistic SNS junction [18], and resonant-level and finite-length weak-link models [8]. We find that this suppression is not universal: a one-orbital model with different lead dispersions and a single-site scattering region realizes either sign of C, as Fig. 1 shows.

Figure 1: The coefficient C changes sign as the onsite energy ϵ of the central site varies. The inset shows the central site and the two semi-infinite one-dimensional leads; their decreasing opacity indicates that they continue beyond the displayed sites. The labels give the onsite energy and hopping in each lead.

4 Phase coefficients and bounds

The transmission representation gives two levels of bounds. Positivity of each Matsubara summand gives immediate constraints at every temperature. Relations between different frequencies give a tighter upper bound on the quartic coefficient. We treat the finite- and zero-temperature arguments in Sec. 4.1.

We first expand Eq. (39) channel by channel:

c2 =12⁢β⁢∑m=0∞∑nTn⁢(ωm),c4=116⁢β⁢∑m=0∞[∑nTn⁢(ωm)2−23⁢∑nTn⁢(ωm)], (49)
c6 =11440⁢β⁢∑m=0∞∑nTn⁢(ωm)⁢(15⁢Tn⁢(ωm)2−15⁢Tn⁢(ωm)+2).

The transmission eigenvalues satisfy 0≤Tn⁢(ωm)≤1, so every product Tnp⁢(ωm)⁢[1−Tn⁢(ωm)]q, with p,q≥0, is nonnegative term by term. We combine coefficients so that their summands have this form. The expression for c2 is a sum of Tn⁢(ωm), so c2≥0, and adding c2/12 to c4 cancels the linear term in c4 and gives

c4+c212=116⁢β⁢∑m=0∞∑nTn⁢(ωm)2≥0. (50)

Subtracting c4 from c2/24 instead gives a factor Tn⁢(ωm)⁢[1−Tn⁢(ωm)]:

c224−c4=116⁢β⁢∑m=0∞∑nTn⁢(ωm)⁢[1−Tn⁢(ωm)]≥0. (51)

Combining these two inequalities yields

−c212≤c4≤c224. (52)

For c2>0, normalizing by the quadratic coefficient gives

−1≤αr⁢(β)=12⁢c4c2≤12. (53)

The inequality c2≥0 reproduces the nonnegative curvature at φ=0 implied by the scattering-theory result of Titov, Jacquod, and Beenakker [7]. The lower bound αr≥−1 matches the bound observed in our earlier numerical study [8] and is approached when Tn⁢(ωm)≪1 for the contributing channels and frequencies. The upper bound αr≤1/2 is weaker than the conjectured αr≤0, and the tighter bound below supersedes it. The positive example in Sec. 5 shows that the conjectured sign constraint does not hold.

The same termwise construction extends to sixth order. We form three nonnegative cubic products:

c6+c46+c290 =196⁢β⁢∑m=0∞∑nTn⁢(ωm)3≥0, (54)
c2360−c6 =196⁢β⁢∑m=0∞∑nTn⁢(ωm)2⁢[1−Tn⁢(ωm)]≥0,
c6−c46+c2240 =196⁢β⁢∑m=0∞∑nTn⁢(ωm)⁢[1−Tn⁢(ωm)]2≥0.

The last identity is algebraically the difference between the identity in Eq. (51) and the Tn2⁢(ωm)⁢[1−Tn⁢(ωm)] identity:

c6−c46+c2240=16⁢(c224−c4)−(c2360−c6). (55)

The last inequality follows directly from the nonnegative summand Tn⁢(ωm)⁢[1−Tn⁢(ωm)]2. The three sixth-order identities give two lower bounds and one upper bound:

c6≥−c46−c290,c6≥c46−c2240,c6≤c2360. (56)

4.1 Upper bounds from the frequency dependence

The termwise estimate treats the transmission at each frequency independently, but the transmissions at different frequencies are related because the scattering matrix depends analytically on frequency. In App. B, we show that the reduced scattering matrix Sω of Eq. (19) extends analytically to the right half of the complex frequency plane and remains subunitary there. For such a function, the Schwarz–Pick lemma bounds the rate of change by the distance from unitarity. Applied to the generalized eigenvalues of the pair (F,D) in Eq. (28), this bound becomes a speed limit for every channel: the rapidity qn=artanh⁡Tn changes by at most one per unit of log⁡ω.

The speed limit prevents a well-transmitting channel from switching off abruptly, and therefore limits the second transmission moment relative to the first. At zero temperature, we compare each channel with a trajectory that decays at the maximal speed and obtain

−1≤−1+32⁢M2M1≤16−5⁢π4⁢(4−π), (57)

where the middle expression is αr at zero temperature and Mp=∫0∞∑nTn⁢(ω)p⁢d⁢ω is the pth transmission moment. At finite temperature, the speed limit relates the transmissions at consecutive Matsubara frequencies, and a backward induction over the Matsubara sum gives

−1≤αr⁢(β)≤780. (58)

The finite-temperature bound is slightly weaker, and αr need not decrease as the temperature rises. In the three-orbital example of App. B.3, αr at β=2⁢π exceeds its zero-temperature value. Both values lie inside the general bounds, so the example shows only that temperature can increase αr and does not test either upper bound.

4.2 Bounds on the current-phase relation

The free energy is a convex increasing function of sin2⁡(φ/2), and this structure constrains the supercurrent and the barrier at φ=π, where the free energy is maximal. We derive the bounds of this subsection in App. C. We obtained them after the formalization of the other results was complete, and unlike the numbered equations of this manuscript they are not checked in Lean; their displays are unnumbered to mark this difference.

The free energy F of Eq. (8) sums over the positive eigenvalues of the Bogoliubov–de Gennes matrix. For η=−1, this matrix acts on one spin sector, and F is the physical free energy of both sectors, so the supercurrent is I⁢(φ)=(2⁢e/ℏ)⁢F′⁢(φ). For η=+1, the matrix acts on both spin sectors, and the particle-hole doubling makes the physical free energy F/2 and the current (e/ℏ)⁢F′⁢(φ), while N counts the channel pairs of the full spinful matrix. The inequalities below are homogeneous in F and hold in either normalization; the circuit statements are written for η=−1, and for η=+1 they hold for the physical quantities with the channel counts N and n1 replaced by N/2 and n1/2.

The quadratic coefficient c2=F′′⁢(0)/2 of Eq. (49) sets the Josephson inductance LJ=(ℏ/2⁢e)2/2⁢c2. We write Eb=F⁢(π)−F⁢(0) for the barrier height and Ic=(2⁢e/ℏ)⁢supφF′⁢(φ) for the critical current, where the supremum includes one-sided limits at a cusp. Differentiating Eq. (39) gives

F′⁢(φ)=sin⁡φβ⁢∑m,nTn⁢(ωm)1−Tn⁢(ωm)⁢sin2⁡(φ/2),

and every term of the sum increases with sin2⁡(φ/2). Hence F′⁢(φ)≥2⁢c2⁢sin⁡φ for 0<φ<π, every maximum of the current lies beyond π/2, and (ℏ/2⁢e)⁢Ic≥2⁢c2 and Eb≥4⁢c2 at every temperature. At zero temperature, the moment hierarchy of Eq. (120) supplies matching upper bounds, so that

2⁢c2≤ℏ2⁢e⁢Ic≤2⁢π4−π⁢c2≈7.32⁢c2,4⁢c2≤Eb≤8⁢(π−2)4−π⁢c2≈10.64⁢c2.

In circuit terms, Φ0/2⁢π≤Ic⁢LJ≤3.66⁢Φ0/2⁢π: the Josephson inductance, which is measurable at small phase, fixes the critical current and the barrier to within these factors, without knowledge of the gap, the number of channels, or the junction length. The lower bounds hold at every temperature; the upper bounds are proved at zero temperature. A zero-temperature value of Ic⁢LJ above 3.66⁢Φ0/2⁢π, measured or extrapolated, would place a junction outside the class described by Eq. (39).

The lower bounds are approached when all transmissions are small, where the energy-phase relation is sinusoidal. A short perfectly transmitting channel has (ℏ/2⁢e)⁢Ic=4⁢c2 and Eb=8⁢c2. A long ballistic channel comes much closer to the upper bounds. We take the ideal SNS channel of the Andreev approximation: a reflectionless normal segment with linearized dispersion between banks with equal rigid gaps and negligible phase gradient. Its normal-state scattering matrix at imaginary energy i⁢ω is e−ω⁢τd/ℏ times a fixed unitary, with τd=L/vF the dwell time, so the argument of Sec. 3 applies with the prefactor g⁢(ω)=e−ω⁢τd/ℏ⁢(ω2+Δ2−ω)/Δ and gives T⁢(ω)=4⁢g2/(1+g2)2. Evaluating the representation with this transmission, the ratios rise from 4 and 8 at τd=0 and tend to 2⁢π≈6.28 and π2≈9.87 for τd⁢Δ/ℏ≫1, where the current-phase relation becomes the sawtooth of a long junction [19, 20] and F⁢(φ)−F⁢(0)=c2⁢φ2 up to the cusp at φ=π. These limiting values are 86% and 93% of the bounds. Finite junctions with a resonant Fermi-level transmission improve on the sawtooth by a few percent: the four-site junction of Sec. 5 has (ℏ/2⁢e)⁢Ic=6.37⁢c2 and Eb=9.93⁢c2, the larger rank-one junction of the same section has (ℏ/2⁢e)⁢Ic=6.51⁢c2 and Eb=10.05⁢c2, and a local search in the same rank-one family with up to 32 orbitals found at best (ℏ/2⁢e)⁢Ic=6.528⁢c2 and Eb=10.052⁢c2; these are the best values found, not optima. The comparison trajectory of App. B attains the constants 7.32 and 10.64, but it is not the transmission of a junction. Whether junctions can close the remaining gap, about 10% for the current and 5% for the barrier, is open. Figure 2 shows the allowed region of the energy-phase relation together with these junctions: the best-found junction lies above the sawtooth at every phase, by 0.18⁢c2 at φ=π, and the upper bound lies 0.77⁢c2 above the sawtooth there.

Figure 2: Zero-temperature energy-phase relations in units of the quadratic coefficient c2. Panel (a) shows the allowed region (shaded) between the lower bound 4⁢sin2⁡(φ/2), which holds at every temperature, and the zero-temperature upper bound from the comparison trajectory of App. B, together with a short perfectly transmitting channel, the sawtooth c2⁢φ2 of a long ballistic channel, and the best-found rank-one junction. Panel (b) shows the same curves relative to the sawtooth.

A second bound uses the pairing strength and counts channels. Let Δmax denote the largest eigenvalue of the positive semidefinite matrix (ΔL+ΔR)⁢UT† of Sec. 2.3; when the two pairing blocks act on disjoint sets of orbitals, Δmax is the larger of the two gaps. Continuing the phase to complex values shows that every channel transmits at most as much as a perfectly transmitting short channel,

Tn⁢(ω)≤Δmax2ω2+Δmax2,

for every ω>0; the short-junction transmission of Eq. (47) with τn=1 saturates this bound. Because each term of the transmission representation increases with Tn⁢(ωm), the free energy and the current of any junction lie below those of N perfectly transmitting short channels with gap Δmax, at every temperature, and in particular Ic≤N⁢e⁢Δmax/ℏ. For a short junction, this is the zero-temperature critical current of N ballistic channels [21]; the bound extends it to any junction length, with N the number of channel pairs of Sec. 2.4 rather than the number of propagating modes of the normal region. Read as a bound on channels, a junction carrying Ic has at least ℏ⁢Ic/e⁢Δmax channel pairs.

At the barrier top, F′⁢(π)=0 whenever F is differentiable there. At positive temperature, F is an analytic function of φ, because Tn⁢(ω)<1 at every positive frequency (App. B). At zero temperature, the free energy of a junction with finitely many channels can therefore be nonanalytic only at odd multiples of π, and only if a channel is perfectly transmitting at the Fermi level. If n1 channels have Tn⁢(0)=1, with 1−Tn⁢(ω)=cn⁢ω2+o⁢(ω2), the ground-state energy has a cusp,

U⁢(π+δ)−U⁢(π)=−v⁢|δ|+o⁢(δ),v=∑n:Tn⁢(0)=112⁢cn≤n1⁢Δmax2,

where the bound on v follows from the bound on Tn⁢(ω). The slope v is the sum of the slopes of the n1 Andreev levels that cross zero energy at φ=π; a short perfectly transmitting channel has slope Δ/2 [2]. The four-site junction of Sec. 5 is perfectly transmitting at the Fermi level: Eq. (60) gives T⁢(0)=1 at its parameters, so its spectrum in Fig. 3(b) crosses zero at φ=±π and its energy has a cusp with v=38, below the bound Δ/2=1. The bound does not require the short-junction limit: two orbitals coupled by a hopping Δ, each paired with gap Δ by a different superconductor, have T⁢(ω)=4⁢Δ4/(ω2+2⁢Δ2)2 and v=Δ/2.

The curvature at the barrier top, κ=−F′′⁢(π), gives further upper bounds at every temperature at which it is finite, (ℏ/2⁢e)⁢Ic≤2⁢c2⁢κ and Eb≤4⁢c2⁢κ⁢log⁡(κ/2⁢c2)/(κ−2⁢c2) (App. C). They are particularly useful in the tunnel regime, where κ≈2⁢c2, and become vacuous at a zero-temperature cusp, where κ diverges. Apart from the zero-temperature cusp and the upper bounds in c2, the inequalities of this subsection hold at each temperature with the temperature-dependent c2, κ, Eb, and Ic. These quantities need not decrease monotonically with temperature at fixed pairing: in the four-site example, c2 at kB⁢T=2 exceeds its value at kB⁢T=1 by a factor 3.9, because the transmission vanishes at ω=3, close to the lowest Matsubara frequency at kB⁢T≈1.

5 SNS junction with a positive quartic nonlinearity

Both upper bounds allow c4>0. We now show that a conventional SNS junction realizes this possibility and therefore refutes the conjectured sign constraint. The coefficient formulas suggest concentrating the Matsubara response in one transmitting channel and tuning that channel so that its T2 weight is large relative to its T weight. Rank-one pairing blocks ΔL and ΔR enforce a single scalar transmission function T⁢(ω). The smallest closed-form example that we found is the four-site square junction shown in Fig. 3(a):

h=(0t10t2t10t200t20t3t20t30),ΔL=diag⁡(Δ,0,0,0),ΔR=diag⁡(0,Δ,0,0). (59)

The transmission representation then has one nontrivial channel, with Matsubara transmission

Tn⁢(ω)=4Δ[t1ω+2t3(t1t3−t22)]22[ω+4(Δ+2t12+2t22+t32)ω+2Δt322+(t1t3−t22)2]2. (60)

A numerical search in this family selects Δ=2, t1=1/2, t2=15/2, and t3=3/2, within about 0.13% of the best value on the search grid. At this point, the coefficients are

c2 =(186−71⁢s0)⁢r−+(186+71⁢s0)⁢r+30752, (61)
c4 =(844533+279412⁢s0)⁢r−+(844533−279412⁢s0)⁢r+11348226048>0.

Here s0=31 and r±=7±s0. Numerically, c2≈0.059 and c4≈3.1×10−5≈5.3×10−4⁢c2. A fourth-order perturbative calculation with pymablock [22] gives the same coefficients.

For this four-site junction, αr≈0.0063>0. A larger realization of the same rank-one construction gives αr≈0.021. Both values remain below the zero-temperature upper bound 0.085; Sec. 6 mentions tighter bounds that we have not yet verified.

Figure 3: The four-site junction with positive quartic nonlinearity. Panel (a) shows the square geometry. Panel (b) shows its positive-energy BdG branches; the inset plots R⁢(φ)=[U⁢(φ)−U⁢(0)]/(c2⁢φ2)−1. Panel (c) shows the lower and upper t3 boundaries of the region with αr>0 at each (t1,t2). Color indicates the maximum αr along that t3 interval.

6 Conclusion

We expressed the phase-dependent free energy of a noninteracting time-reversal-symmetric s-wave Josephson junction as a Matsubara sum over frequency-dependent transmission eigenvalues. This representation keeps the channel structure of Beenakker’s short-junction formula at arbitrary junction length, with only the transmission eigenvalues acquiring a dependence on frequency, and it proves that φ=0 is a global minimum of the free energy. Near the short-junction limit, the same representation generalizes the next-to-leading correction to any normal region whose scattering depends smoothly on energy near the Fermi level, and a one-orbital example shows that its logarithmic term can enhance as well as suppress the response.

Positivity of the individual Matsubara terms bounds the normalized quartic coefficient by −1≤αr≤1/2 and constrains the higher-order coefficients. Using the analytic structure of the scattering matrix as a function of frequency, we established a bound on how fast the transmission eigenvalues decay with frequency, and this bound tightens the upper limit to αr≤7/80 at finite temperature and to αr≤(16−5⁢π)/[4⁢(4−π)]≈0.085 at zero temperature. Both bounds leave room for a positive quartic coefficient, and the four-site junction with αr>0 disproves the upper bound αr≤0 conjectured in our earlier numerical study [8]. Computer-assisted extensions of the comparison argument, which we have not yet verified to the standard of this manuscript, lower the zero-temperature bound to αr≤0.028 for any number of channels and to 0.022 for a single channel, close to the value 0.021 of our larger rank-one junction. These extensions come from a ChatGPT conversation with GPT-6 Pro (App. D), archived in Ref. [23]. Whether the finite-temperature bound admits a comparable improvement remains open.

The same representation bounds the current-phase relation without a short-junction approximation. The Josephson inductance alone confines the critical current to Φ0/2⁢π≤Ic⁢LJ≤3.66⁢Φ0/2⁢π and the barrier at φ=π to between two and 5.32 times the inductive energy, with the lower bounds at every temperature and the upper bounds at zero temperature; the known examples reach Ic⁢LJ=3.26⁢Φ0/2⁢π and a barrier of 5.02 inductive energies, and whether junctions can approach the constants is open. The critical current also never exceeds that of N perfectly transmitting short channels with the largest pairing gap, at any length and temperature. A nonanalytic energy-phase relation requires a channel with perfect transmission at the Fermi level, which produces the cusp at φ=π that the four-site example also exhibits. We derived these bounds after completing the formalization, and they are the only results of this manuscript not checked in Lean.

A related open question is whether a positive quartic coefficient occurs in real junctions. Flat-band Josephson junctions are a promising system in which to search for it, because their Josephson response departs strongly from that of conventional weak links: quantum-metric interface states can make the critical current increase while the normal-state conductance decreases [24]. Beyond junctions, our approach may also constrain the nonlinear response of bulk superconductors to current. This nonlinear Meissner effect [25], or nonlinear kinetic inductance [26], sets the Kerr nonlinearity of superconducting resonators and kinetic-inductance amplifiers [27, 28]. In a bulk superconductor, however, the phase varies continuously instead of jumping between two contacts, so the transmission representation would first need to be extended.

Most of the derivations, code, and text behind these results, including several of the key ideas, came from AI models, as App. D describes. Over the course of the project, the results of the models became mostly reliable once we formulated the task correctly, but their own judgment of whether a task was solved remained untrustworthy. Most of our effort therefore went into making the results checkable. Every numbered equation in this manuscript is printed from the statement of a theorem or definition checked in the Lean proof assistant [9, 10], and the Zenodo record [23] includes the code that generates a website listing each result together with its hypotheses. To trust a result, a reader then only needs to check that its hypotheses, such as time-reversal symmetry and s-wave pairing, describe the junction of interest, without repeating the derivation. We expect the same approach to apply to other analytic results in theoretical physics whose derivations are long but rely on standard mathematics.

Code availability

The code, the Lean formalization, the manuscript sources, and the agent session logs are available on Zenodo [23].

Acknowledgements

I thank V. Fatemi, P. W. Brouwer, and C. W. J. Beenakker for useful discussions, F. Guinea for the question about phase π that prompted Sec. 4.2, and I. Araya Day for comments on the manuscript. I acknowledge access to ChatGPT through OpenAI’s ChatGPT for Academic Researchers program and access to Claude through Anthropic’s Claude Team plan for scientists.

Appendix A Short-junction expansion to next-to-leading order

The leading term of the short-junction expansion neglects the energy dependence of the normal scattering problem. To derive the first correction, we retain this dependence in the zero-temperature limit of Eq. (39) and write x=sin2⁡(φ/2). The correction requires the thermodynamic limit of the superconducting leads before Δ→0: once Δ falls below the level spacing of a finite lead, ordinary perturbation theory gives an analytic response that starts at order Δ2. We therefore eliminate the semi-infinite leads exactly and obtain the transmissions from finite matrices. Two expansions of these transmissions cover complementary frequency ranges. The expansion at fixed ω/Δ describes low frequencies, but the integral of its first correction diverges at large ω/Δ. The expansion at fixed ω describes the remaining range, but the integral of its second-order term diverges as ω→0. We separate the two ranges at a frequency Λ with Δ≪Λ below the normal-state energy scale and show that the divergences cancel, so that the final result is independent of Λ.

A.1 Finite transmission problem

To eliminate the leads, we separate the finite central region from the superconducting reservoirs. Instead of the electron-hole basis of the main text, we replace each hole component cX†T by its time reverse UT,X⁢cX†T, where UT,X is the unitary part of time reversal on the electron space of region X=C,S, with the same dimension as hX. The matrix UT,X is the identity in the real class and a direct sum of i⁢σy in the spinful class. In this basis,

HBdG =(HCV†VHS⁢(0)),HC=(hC00−hC),HS⁢(0)=(hSΔΔ−hS), (62)
V =(v00−v),

where hC is the normal Hamiltonian of the central region, HS⁢(φ) contains both superconducting reservoirs, and the hopping matrix v couples central-region orbitals to reservoir orbitals at the junctions. The displayed HS⁢(0) has zero phase; we restore the two phases after computing the lead self-energies. The block-diagonal coupling V does not mix electrons and holes, and the time-reversed hole basis turns the scalar pairing into Δ times the identity on the lead orbitals.

We now restore the phases; they enter HBdG⁢(φ) only through the reservoir block HS⁢(φ). A Schur complement at positive Matsubara frequency then reduces the determinant ratio in Eq. (11) to the central region:

det[i⁢ω−HBdG⁢(φ)]det[i⁢ω−HS⁢(φ)]=det(i⁢ω−HC−V†⁢[i⁢ω−HS⁢(φ)]−1⁢V). (63)

The two reservoirs are decoupled in HS⁢(φ), so a gauge transformation of each reservoir removes its phase and det[i⁢ω−HS⁢(φ)] does not depend on φ. For finite leads, the determinant ratio in Eq. (11) therefore equals the right-hand side of Eq. (63) divided by its value at φ=0. For semi-infinite leads, this ratio of determinants of finite matrices acting on the central electron and hole states defines the phase-dependent relative determinant.

The finite matrix contains the reservoir self-energy V†⁢[i⁢ω−HS⁢(φ)]−1⁢V, which we compute lead by lead. Because the pairing in each lead is Δ times the identity, the superconducting self-energy of lead l∈{L,R} follows from its normal self-energy,

ΣN,l⁢(z)=vl†⁢(z−hl)−1⁢vl, (64)

where hl is the normal Hamiltonian of the lead and vl is its part of the contact hopping. To obtain the superconducting self-energy, we gauge the phase of lead l to zero and invert its BdG Hamiltonian HS,l. The electron-electron and electron-hole blocks of (i⁢ω−HS,l)−1 are

Gee,l =1+ωω+2Δ22⁢G+,l+1−ωω+2Δ22⁢G−,l, (65)
Geh,l =Δ2⁢i⁢ω+2Δ2⁢(G+,l−G−,l),

where G±,l=(±i⁢ω2+Δ2−hl)−1 are the Green functions of the normal lead at the imaginary energies ±i⁢ω2+Δ2. Sandwiching these blocks between the contact hoppings gives the self-energy of the superconducting lead,

Σee,l⁢(ω,Δ) =11+a⁢(ωΔ)2⁢ΣN,l⁢(i⁢ω+2Δ2)+a⁢(ωΔ)21+a⁢(ωΔ)2⁢ΣN,l⁢(−i⁢ω+2Δ2), (66)
Σeh,l⁢(ω,Δ) =i⁢a⁢(ωΔ)1+a⁢(ωΔ)2⁢[ΣN,l⁢(i⁢ω+2Δ2)−ΣN,l⁢(−i⁢ω+2Δ2)],
a⁢(ωΔ) =1+(ωΔ)2−ωΔ.

Particle-hole symmetry fixes the two remaining blocks: in the time-reversed hole basis, Σhe,l=Σeh,l and Σhh,l=−Σee,l†. For Δ>0, Eq. (66) gives the superconducting self-energy without expanding in Δ, for finite and semi-infinite leads alike. The two cases differ in the analytic behavior of the normal self-energy near the Fermi energy, which controls the expansion below.

To obtain the transmissions rather than only the determinant, we use that the electron-hole self-energy is positive semidefinite:

Σeh,l(ω,Δ)=Δvl†(ω+2Δ+2hl2)−1vl⪰0. (67)

Its factorization moves the superconducting phases into the spaces on which the lead self-energies act:

Kl(ω,Δ)Kl(ω,Δ)†=ΠΣeh,ll(ω,Δ)Π,l†K=(KL⁢(ω,Δ)KR⁢(ω,Δ)), (68)

where Πl embeds the space on which the self-energy of lead l acts into the electron space of the central region. The electron-electron self-energies of both leads determine the electron Green function of the central region,

GC(ω)=[iω−hC−(ΠΣLΠee,L+L†ΠΣRΠee,R)R†]−1, (69)

and particle-hole symmetry relates the hole block to GC†. With the superconducting phases restored, the finite matrix in Eq. (63) becomes

MC(Φ)φ=(GC−1−K⁢Φ⁢K†φ†−K⁢Φ⁢K†φ−(GC†)−1). (70)

A Schur complement with respect to the electron block, followed by Sylvester’s determinant identity, moves the phase dependence into a determinant over these lead spaces:

detMC(Φ)φ=(detGC−1)det[−(GC†)−1]det(1+ΦG†φ†ΦGφ),G=K†GCK. (71)

The first two factors do not depend on φ, so dividing detMC⁢(Φφ) by its value at φ=0 leaves the phase-dependent determinant ratio entering Eq. (11).

For two terminals, Φφ is a linear combination of 1 and PL−PR, and the determinant takes the generalized-eigenvalue form of Eq. (29):

det(1+Φ⁢(e−i⁢φ)⁢G†⁢Φ⁢(ei⁢φ)⁢G)det(1+G†⁢G) =e−i⁢rR⁢φ⁢det(1+ei⁢φ2⁢D+1−ei⁢φ2⁢F)detD,D=1+G†⁢G, (72)
F =J+G†⁢J⁢G,J=PL−PR.

As in Eqs. (36) and (37), the nonendpoint generalized eigenvalues of (F,D) give the factors 1−x⁢Tn⁢(ω,Δ). We expand F and D by substituting Eq. (66).

A.2 Expansion at fixed ω/Δ

The energy at leading order and the nonanalytic part of its correction require the transmissions through first order in Δ at fixed ω/Δ. We use the rescaled frequency y=ω/Δ and the transmissions T~n⁢(y,Δ)=Tn⁢(Δ⁢y,Δ) in this coordinate.

We assume that each lead is a continuum BCS superconductor whose normal self-energy has analytic boundary values at the Fermi level, meaning that its retarded and advanced limits depend analytically on energy there, and a positive-semidefinite broadening on the nonnegative imaginary-frequency axis. The superconducting self-energy in Eq. (66) evaluates the normal self-energy at ±i⁢Δ⁢1+y2, which approaches the Fermi level from both sides as Δ→0. We therefore expand the normal self-energy around its two boundary values there.

In the expansion below, Σ^N,l⁢(s)=ΣN,l⁢(i⁢s) is the normal self-energy as a function of the imaginary part of the energy, ΣR,l and ΣA,l=ΣR,l† are its two boundary values at the Fermi level, and the slopes Σ˙R,l and Σ˙A,l=Σ˙R,l† are derivatives with respect to the energy z=±i⁢s:

Σ^N,l⁢(1+y2⁢Δ) =ΣR,l+iΔ1+y2Σ˙R,l+O(Δ)2, (73)
Σ^N,l⁢(1+y2⁢Δ)† =ΣA,l−iΔ1+y2Σ˙A,l+O(Δ)2.

For a time-reversal-symmetric lead in the real basis, the advanced boundary values and their derivatives are the complex conjugates of the retarded ones. Substituting Eq. (73) into Eq. (66) at fixed y gives the self-energies Σee,l(y)⁢(Δ) and Σeh,l(y)⁢(Δ):

Σee,l(y)⁢(Δ) =11+a⁢(y)2⁢(ΣR,l+a⁢(y)2⁢ΣA,l) (74)
+iΔ2(a(y)−1Σ˙R,l−a(y)Σ˙A,l)+O(Δ)2,
Σeh,l(y)⁢(Δ) =a⁢(y)1+a⁢(y)2Γ−lΔ2(Σ˙R,l+Σ˙A,l)+O(Δ)2,
Γl =i⁢(ΣR,l−ΣA,l).

To carry this expansion over to the transmissions, we also expand the factor Kl of Eq. (68) to first order in Δ:

Kl⁢(Δ) =K0,l+ΔK1,l+O(Δ)2,K0,lK0,l†=Π(Σeh,l(y))0lΠ,l† (75)
K1,l⁢K0,l†+K0,l⁢K1,l† =Π(Σeh,l(y))1lΠ.l†

The subscripts 0 and 1 denote Taylor coefficients in Δ at fixed y, both for K and for the self-energy. Substituting the expansions of Σee,l and Kl into GC and G expands both matrices D and F of Eq. (72):

D(Δ)=D0+ΔD1+O(Δ)2,F(Δ)=F0+ΔF1+O(Δ)2. (76)

For Δ→0+ at fixed y, the determinant ratio in Eq. (72) reduces to its normal-state form with x replaced by x/(1+y2), so the leading transmissions are

T~n⁢(y,0)=τn1+y2, (77)

where τn are the normal-state transmission eigenvalues at the Fermi level. For an isolated generalized eigenvalue, first-order perturbation theory gives

μ1⁢n =ν⋅n[(F1−μ(0)D1)v(0)],F(0)v(0)=μ(0)D(0)v(0), (78)
ν⋅n[D(0)v(0)] =1,

where v⁢(0) is the right eigenvector of the leading-order generalized eigenvalue problem and νn is its left eigenvector, written as a row. The energy, however, does not require isolated eigenvalues, because it depends only on the logarithm of the determinant ratio in Eq. (72). The first-order term of this logarithm is a trace, which we evaluate in an eigenbasis of t†⁢t and t′†⁢t′. Each basis vector contributes a coefficient T1⁢n with the weight x/[1−x⁢τn/(1+y2)] that appears in Eq. (80). The apparent powers a−1 in Eq. (74) cancel in this trace, and collecting the remaining powers of a gives the frequency dependence needed for the integral,

T1⁢n⁢(y)=2⁢a⁢(y)[1+a⁢(y)2]3⁢[γn⁢[1−a⁢(y)2]2+4⁢βn⁢a⁢(y)2]=βn+γn⁢y2(1+y2)3/2, (79)

where βn=T1⁢n⁢(0) and γn=limω/Δ→∞(ω/Δ)⁢T1⁢n⁢(ω/Δ). The BCS self-energy for equal gaps fixes this frequency dependence, and the normal junction enters only through τn, βn, and γn. The matrix elements of Σ˙R,l and Σ˙A,l in the leading eigenbasis determine βn and γn. Within a degenerate eigenspace, the individual T1⁢n depend on the chosen eigenbasis, but their sum, and hence the energy, does not.

Integrating the fixed-ω/Δ expansion up to Λ gives the leading energy, the logarithmic correction, and the part of the finite correction determined by τn, βn, and γn. The logarithm in Eq. (39) expands as

−∑nlog⁡[1−x⁢T~n⁢(y,Δ)] =f0(y,x)+Δf1(y,x)+O(Δ)2, (80)
f0⁢(y,x) =−∑nlog⁡(1−x⁢τn1+y2),f1⁢(y,x)=∑nx⁢T1⁢n⁢(y)1−x⁢τn1+y2.

The leading term f0 needs no subtraction: integrating it over all frequencies reproduces the short-junction energy of Eq. (1),

−1π⁢∫0∞∑nlog⁡(1−τΔn2ω+2Δ2⁢x)⁢d⁢ω=Δ⁢∑n(1−1−τ⁢xn). (81)

The terms to subtract from f1 are those that the two expansions share in their common frequency range. Expanding f0 and f1 at large ω/Δ gives

f0(y,x)=xy−2∑nτ+nO(y−4),f1(y,x)=−πxCy−1+O(y−3), (82)

with C=−π−1⁢∑nγn. The (ω/Δ)−1 tail produces the logarithm and is linear in x because every transmission is small where the two expansions overlap. Subtracting this tail defines the finite contribution

limY→∞(C⁢x⁢log⁡Y+1π⁢∫0Yf1⁢(y,x)⁢dy)=Blow⁢(x). (83)

Substituting Eq. (79), we evaluate the integral in closed form:

Blow(x)=xπ∑n(γlogn2+(β−nγ+nγxnτ)narcsin⁡xτnxτ(1−xτ)nn). (84)

At x⁢τn=0, the fraction equals one by continuity, and we exclude the endpoint x⁢τn=1, where the weight x/[1−x⁢τn/(1+y2)] diverges at y=0 and the expansion in Δ breaks down. To combine this result with the fixed-ω expansion, we restore the upper limit Λ/Δ. The contribution of frequencies below the cutoff is then

U<Λ⁢(φ)−U<Λ⁢(0) =Ushort(φ)−Ushort(0)+Δ[−xπ⁢Λ∑nτ−nxClogΛΔ+Blow(x)]2 (85)
+o(Δ)2+O(MΛΔ)2.

Here M is a single bound on the second derivative with respect to Δ of the left-hand side of Eq. (80) divided by π, valid for all y≥0 and all sufficiently small Δ>0. Integrating the Taylor remainder up to Λ/Δ gives O⁢(M⁢Λ⁢Δ2), while the leading tail and the first-order integral, which converges once regularized, give o⁢(Δ2) at fixed Λ>0.

A.3 Expansion at fixed ω

The expansion at fixed ω/Δ fails when ω reaches the normal-state energy scale. At fixed ω, the anomalous self-energy of lead l instead starts at first order in Δ:

Σ(Δ)l=ΔΣ+1,lO(Δ)3,Σ=1,lvl†(ω+2hl2)−1vl,Σ⪰1,l0, (86)

where the expression for the coefficient follows from Eq. (64). Substituting this expansion into G gives G=Δ⁢G1+o⁢(Δ), provided the matrix left after removing the explicit factor of Δ is continuous at zero gap. The restriction of Σ1,l to the contact orbitals of lead l is σl, and the left-to-right block of G1 is

(1−PL)⁢G1⁢PL=σR⁢(ω)1/2⁢Π⁢GCR†⁢Π⁢σLL⁢(ω)1/2, (87)

where GC is evaluated at Δ=0. This block, X⁢(ω)=PR⁢G1⁢(ω)⁢PL, determines the leading Δ2 contribution to the transmissions at fixed ω>0. Because Tn⁢(ω,Δ)=O⁢(Δ2), the logarithm depends at this order only on the sum of the transmissions:

−∑nlog⁡[1−x⁢Tn⁢(ω,Δ)] =x∑nTn(ω,Δ)+O(Δ)4, (88)
x⁢∑nTn⁢(ω,Δ) =4Δx2Tr[X(ω)†X(ω)]+o(Δ)2.

The trace runs over the space on which the self-energy of the left lead acts. The integral of the Δ2 term diverges at its lower limit. Substituting the boundary values of the normal self-energy at small ω into Eqs. (86) and (87) gives

Σ(ω)1,l=12⁢ωΓl−12(Σ˙R,l+Σ˙A,l)+O(ω),X(ω)=ωX−1−1+X0+o(1). (89)

Analyticity of the normal self-energy gives the O⁢(ω) remainder of Σ1,l⁢(ω), and differentiability at ω=0 of the square roots of ω⁢σl⁢(ω) gives the o⁢(1) remainder of X⁢(ω). The quadratic term in X−1 gives the total normal-state transmission at zero energy, as in Eq. (45), and its cross terms with X0 give the sum of the coefficients γn in Eq. (79):

4⁢Tr⁡(X−1†⁢X−1)=∑nτn,4⁢Tr⁡(X−1†⁢X0+X0†⁢X−1)=∑nγn=−π⁢C. (90)

The small-ω integrand therefore has the singular terms

4⁢x⁢Tr⁡[X⁢(ω)†⁢X⁢(ω)]=x⁢[ω⁢∑n−2τn−π⁢Cω+O⁢(1)]. (91)

Writing X~⁢(ω)=ω⁢X⁢(ω) removes the pole at ω=0. Subtracting the two singular terms from the integral leaves the finite contribution

limY→0+(4⁢xπ⁢∫Y∞Tr⁡[X~⁢(ω)†⁢X~⁢(ω)]ω2⁢dω−xπ⁢Y⋅4⁢Tr⁡[X~⁢(0)†⁢X~⁢(0)]−x⁢C⁢log⁡Y)=x⁢Bhigh. (92)

If g⁢(ω)=Tr⁡[X~†⁢(ω)⁢X~⁢(ω)] is analytic, the subtractions ∑nτn=4⁢g⁢(0) and C=−4⁢g′⁢(0)/π leave an integrand that is continuous at ω=0. The limit in Eq. (92) therefore exists when g⁢(ω)/ω2 is integrable at large ω. Because the fixed-ω integrand is linear in x, Bhigh is independent of x. Restoring the lower cutoff Λ gives the contribution of frequencies above the cutoff,

U>Λ⁢(φ)−U>Λ⁢(0) =Δ(4⁢x⁢g⁢(0)π⁢Λ+xClogΛ+xBhigh)2+o(Δ)2 (93)
+Δ⁢x2⁢(Bch⁢(Λ)−Bhigh),
Bch⁢(Λ) =4π⁢∫Λ∞g⁢(w)w2⁢dw−4⁢g⁢(0)π⁢Λ−C⁢log⁡Λ,

where Bch⁢(Λ) is the regularized coefficient at finite cutoff, so that Bch⁢(Λ)→Bhigh as Λ→0+. The o⁢(Δ2) remainder requires taking the limit Δ→0 inside the frequency integral. Dominated convergence justifies this step when Tn⁢(ω,Δ)/Δ2 is continuous at Δ=0 and, above each positive cutoff, is bounded by a Δ-independent function with a finite integral, and when the argument of the logarithm stays above a positive constant for all these frequencies and all small Δ.

A.4 Combined result

The contributions of the two frequency ranges contain opposite terms that depend on the arbitrary cutoff Λ. Adding Eqs. (85) and (93) cancels both the 1/Λ and the log⁡Λ terms. After division by Δ2, the remaining cutoff errors are bounded by M⁢Λ+|x⁢[Bch⁢(Λ)−Bhigh]|. We first choose Λ to make this bound small, then choose Δ to control the remaining o⁢(Δ2) terms. For fixed x=sin2⁡(φ/2) with x⁢τn<1 in every channel, this gives

U(φ)−U(0)=Ushort(φ)−Ushort(0)+Δ(xClogΔ+Blow(x)+xBhigh)2+o(Δ)2, (94)

where the two finite contributions combine into

B⁢(x)=Blow⁢(x)+x⁢Bhigh. (95)

These coefficients are those of Eq. (48): the coefficient C sets the logarithmic term, the function Blow⁢(x) depends only on τn, βn, and γn, and Bhigh contains the energy dependence of the normal system away from the Fermi level.

The logarithm log⁡Δ is taken in the same microscopic energy units as B. Replacing log⁡Δ by log⁡(Δ/E∗) shifts B⁢(x) by x⁢C⁢log⁡E∗, so only their combination in Eq. (94) is independent of this choice.

We validate the complete expansion in three random three-orbital models with one central site and two semi-infinite leads. The reference calculation integrates the finite-gap transmissions without expanding in Δ, while the comparison uses the coefficients and finite parts derived above. We also check that the integrand obtained from the lead-space determinant in Eq. (71) agrees with the one obtained from the full determinant of MC, and that the lead self-energies agree with solutions of their boundary equations and with self-energies computed with Kwant [29]. The code that generates the model parameters and these data is archived in Ref. [23]. Figure 4 shows the difference between the finite-gap and asymptotic energies divided by Δ2 at fixed phase; its decrease towards zero checks the o⁢(Δ2) remainder.

Figure 4: Numerical validation of the short-junction expansion to next-to-leading order for three random three-orbital realizations. The plotted residual is the difference between the finite-gap energy and the asymptotic energy in Eq. (94), divided by Δ2. Its decay checks the stated o⁢(Δ2) remainder. The inset sketches the three-orbital central site and semi-infinite leads.

Appendix B Quartic bounds from the frequency dependence

We prove the finite- and zero-temperature bounds from one local constraint on the frequency dependence of each transmission channel. We first derive this constraint and then apply it to the frequency integral at zero temperature and to the Matsubara sum at finite temperature.

B.1 Channel velocity

The constraint follows from the analytic structure of the reduced scattering matrix. We continue it from the positive frequency axis to z in the right half-plane:

Sz=(1−2⁢i⁢L†⁢Az−1⁢L)⁢Q,Az=i⁢z−h+i⁢L⁢L†. (96)

For every nonzero ψ and Re⁡z>0,

Im⁡⟨ψ,Az⁢ψ⟩=(Re⁡z)⁢∥ψ∥2+∥L†⁢ψ∥2>0, (97)

so Az is invertible and Sz is holomorphic. On the positive real axis, the right and left contractivity defects of Sz, which measure its deviation from unitarity, are

1−S†⁢S=4⁢ω⁢Q†⁢L†⁢(Aω−1)†⁢Aω−1⁢L⁢Q,1−S⁢S†=4⁢ω⁢L†⁢Aω−1⁢(Aω−1)†⁢L. (98)

Both right-hand sides are positive semidefinite. At complex z, the same calculation holds with ω replaced by Re⁡z and h by the Hermitian matrix h+(Im⁡z)⁢1, which leaves Az unchanged, and the prefactors become 4⁢Re⁡z>0. Thus Sz is holomorphic and contractive throughout the right half-plane, which makes it an operator-valued Schur function, the matrix analogue of an analytic function with modulus at most one [30]. We now derive the corresponding Schwarz–Pick bound [31] from the Cauchy–Schwarz inequality.

For a positive generalized eigenvalue μ of the pair (F,D) in Eq. (28), we choose an eigenvector u normalized by ⟨u,Dω⁢u⟩=1 and set

v=Sω⁢u⁢(ω),a=[J−μ⁢(ω)]⁢v. (99)

In terms of these vectors, the eigenvalue equation reads Sω†⁢a=−(J−μ)⁢u. Differentiating the resolvent R=Aω−1 along the positive real axis gives

d⁢Az−1d⁢z=−i⁢Az−2,d⁢Szd⁢z=−2⁢L†⁢Az−2⁢L⁢Q. (100)

With the two resolvent vectors

x=R⁢L⁢Q⁢u,y=R†⁢L⁢a, (101)

the contractivity defects and the derivative matrix element factor as

⟨u,(1−S†⁢S)⁢u⟩ =4⁢ω⁢∥x∥2,⟨a,(1−S⁢S†)⁢a⟩=4⁢ω⁢∥y∥2, (102)
⟨a,S′⁢u⟩ =−2⁢⟨y,x⟩,|⟨a,S′⁢u⟩|=2⁢|⟨y,x⟩|.

The Cauchy–Schwarz inequality for x and y gives

|⟨a,S′⁢u⟩|≤2⁢∥y∥⁢∥x∥. (103)

Because ω>0, taking the square roots of the two defect factorizations yields

2⁢ω⁢|⟨a,S′⁢u⟩|≤⟨u,(1−S†⁢S)⁢u⟩⁢⟨a,(1−S⁢S†)⁢a⟩. (104)

The frequency derivatives of F and D enter through the quadratic-form identity

⟨u,(F′−μ⁢D′)⁢u⟩=2⁢Re⁡⟨(J−μ)⁢S⁢u,S′⁢u⟩. (105)

Together with |Re⁡w|≤|w|, Eq. (104) bounds this quadratic form by the product of the two defect factors. Both factors depend on the eigenvector through

δ=∥u⁢(ω)∥2−∥v∥2. (106)

The normalization and the eigenvalue equation give

∥u⁢(ω)∥2+∥Sω⁢u⁢(ω)∥2=1,⟨u⁢(ω),J⁢u⁢(ω)⟩+⟨Sω⁢u⁢(ω),J⁢Sω⁢u⁢(ω)⟩=μ⁢(ω). (107)

Because the spectrum of J is {−1,1}, we have ⟨u,J⁢u⟩≤∥u∥2 and ⟨v,J⁢v⟩≥−∥v∥2. Combining each inequality with Eq. (107) gives

⟨u⁢(ω),J⁢u⁢(ω)⟩−⟨v,J⁢v⟩ ≤1+δ−μ⁢(ω), (108)
⟨u⁢(ω),J⁢u⁢(ω)⟩−⟨v,J⁢v⟩ ≤1+μ⁢(ω)−δ,

and the smaller right-hand side yields

⟨u⁢(ω),J⁢u⁢(ω)⟩−⟨v,J⁢v⟩≤1−|δ−μ⁢(ω)|. (109)

The quadratic form under the first square root in Eq. (104) equals δ, and the choice of a expresses the second quadratic form through δ and μ:

⟨a,(1−Sω⁢Sω†)⁢a⟩ =−[1+μ⁢(ω)2]⁢δ+2⁢μ⁢(ω)⁢(⟨u⁢(ω),J⁢u⁢(ω)⟩−⟨v,J⁢v⟩) (110)
≤−[1+μ⁢(ω)2]⁢δ+2⁢μ⁢(ω)⁢(1−|δ−μ⁢(ω)|).

Contractivity and normalization restrict δ to 0≤δ≤1. On this interval, the product of δ with the upper bound in Eq. (110) increases up to δ=μ and then decreases, so its maximum gives

δ⟨a,(1−SS†)a⟩≤μ(1−μ)22. (111)

Substituting this bound into Eq. (104) bounds the quadratic form ⟨u,(F′−μ⁢D′)⁢u⟩. The sorted eigenvalues can have kinks where they cross, so we use the Courant–Fischer theorem. With it, the same estimate bounds from both sides how fast each sorted eigenvalue changes as ω increases, also at a kink; formally, it bounds the right Dini derivatives, the upper and lower limits of the difference quotients from the right. Wherever the sorted eigenvalues are differentiable, the estimate gives

|ω⁢μ˙n⁢(ω)|≤|μn⁢(ω)|⁢Tn⁢(ω). (112)

The factor |μn|⁢Tn makes this velocity bound depend on the channel. The transmission rapidity removes this dependence:

qn⁢(ω)=arcosh⁡1|μn⁢(ω)|=artanh⁡Tn⁢(ω). (113)

The bounds on the right Dini derivatives imply that each sorted rapidity changes by at most |log⁡(ω2/ω1)| between any two frequencies ω1,ω2>0. Each sorted rapidity is therefore locally absolutely continuous on ω>0: on every closed interval of positive frequencies, it is differentiable except on a set of zero total length, and its change equals the integral of its derivative. Wherever the rapidity is differentiable, the chain rule gives

|ω⁢q˙n⁢(ω)|≤1. (114)

Because the argument works with the sorted channels, it holds through eigenvalue crossings. Since the change of each rapidity equals the integral of its derivative, the integral comparisons below use the chain rule only at frequencies where the rapidity is differentiable. At ω>0, the quadratic form of F is positive on the channels of the left superconductor and negative on those of the right one, while D is positive definite. By the Courant–Fischer theorem, no generalized eigenvalue vanishes, so |μn⁢(ω)|>0 and Tn⁢(ω)<1: perfect transmission can occur only at ω=0. We therefore integrate from a lower cutoff ε and let ε↓0; the cutoff changes each moment by at most N⁢ε, because 0≤Tn≤1 and at most N channels are nonzero.

B.2 Zero-temperature moment bound

The velocity bound turns the moment inequality into a one-dimensional comparison problem. We prove for every integer p≥2 that the pth moment of each channel is at most Cp times its (p−1)st moment. For one channel, this amounts to showing that the frequency integral of the signed density fp⁢(T)=Tp−Cp⁢Tp−1 is nonpositive. The density is positive at high transmission and negative at low transmission, so a pointwise estimate cannot prove the result. We compare instead the accumulated positive and negative contributions along the channel trajectory.

The natural comparison trajectory decreases at the maximum speed allowed by Eq. (114). Its rapidity is q⋆⁢(ω)=log⁡(Ω/ω) until it reaches zero at ω=Ω, and its transmission vanishes thereafter. On the nonzero part of the trajectory, r=ω/Ω=e−q⋆ ranges from zero to one, and we denote the comparison transmission by τ⁢(r). Requiring this trajectory to have zero total signed moment fixes Cp, independently of Ω:

Cp=IpIp−1,Ip=∫01τ⁢(r)p⁢dr,τ⁢(r)=(1−r21+r2)2. (115)

We next attach to every point (ω,q) the signed moment accumulated by the comparison trajectory through that point. This trajectory has scale Ω=ω⁢eq, and its contribution between zero and ω is ω⁢Gp⁢(q), where

Gp⁢(q)=eq⁢∫0e−q[τ⁢(r)p−Cp⁢τ⁢(r)p−1]⁢dr. (116)

The corresponding integral over 0≤r≤1 vanishes by the definition of Cp. Because τ⁢(r) decreases from one to zero, the signed moment density changes sign once, from positive to negative, so every partial integral starting at zero is nonnegative.

The function Gp⁢(q) is the average of the signed density over the comparison trajectory up to the point (ω,q). Before the sign change, this average is at least the value at the endpoint, because the density decreases. After the sign change, the average remains nonnegative while the endpoint value is nonpositive. Differentiating and using T=τ⁢(e−q) gives

Gp′⁢(q) =Gp⁢(q)−[τ⁢(e−q)p−Cp⁢τ⁢(e−q)p−1]≥0, (117)
Gp⁢(q)−Gp′⁢(q) =τ⁢(e−q)p−Cp⁢τ⁢(e−q)p−1.

We now compare the signed moment accumulated by a sorted channel with that of its comparison trajectory. Wherever qn is differentiable, the chain rule, Gp′≥0, and the velocity bound imply that the total derivative of ω⁢Gp is smallest at d⁢q/d⁢log⁡ω=−1:

dd⁢ω⁢[ω⁢Gp⁢(qn⁢(ω))] =Gp⁢(qn⁢(ω))+Gp′⁢(qn⁢(ω))⁢ω⁢q˙n⁢(ω) (118)
≥Gp⁢(qn⁢(ω))−Gp′⁢(qn⁢(ω))
=Tn⁢(ω)p−Cp⁢Tn⁢(ω)p−1.

The last line is the signed moment density of the sorted channel, which is therefore bounded by the total derivative of ω⁢Gp⁢(qn⁢(ω)). For a finite-dimensional realization, ω⁢Gp⁢(qn⁢(ω)) vanishes at both integration endpoints. Because qn is locally absolutely continuous, integrating Eq. (118) therefore gives

∫0∞Tn⁢(ω)p⁢dω≤Cp⁢∫0∞Tn⁢(ω)p−1⁢dω. (119)

Summing over channels bounds the total moments Mp=∫0∞∑nTn⁢(ω)p⁢d⁢ω:

Mp≤Cp⁢Mp−1. (120)

For the quartic coefficient, only p=2 is needed. The two integrals that fix C2 are ∫01τ⁢(r)⁢dr=2−π/2,∫01τ⁢(r)2⁢dr=8/3−3⁢π/4, and their ratio yields

M2M1≤C2=32−9⁢π6⁢(4−π). (121)

Together with the coefficient formulas in Eq. (49), this moment ratio gives the upper bound in Eq. (57).

B.3 Finite-temperature increase

The zero-temperature moment bound does not carry over by simply replacing the frequency integral with a Matsubara sum, because the Matsubara grid can sample frequencies at which a channel transmits more than it does on average in the continuous integral. A three-orbital junction shows this effect. Its matrices are

h=(0121212001200),ΔL=diag⁡(1,0,0),ΔR=diag⁡(0,1,0). (122)

The first and second orbitals couple to the left and right superconductors, respectively, and the third is side-coupled to the first. The only nonzero transmission is

T⋆⁢(ω)=16ω216ω+648ω+436ω+21, (123)

which vanishes at ω=0 and takes the value T⋆⁢(1/2)=16/53. At β=2⁢π, the fermionic Matsubara frequencies are the half-integers, and the continuous moments and the corresponding discrete sums give

αr,⋆⁢(β→∞)≈−0.70<−0.64≈αr,⋆⁢(β=2⁢π). (124)

Finite temperature thus increases αr by about 0.063 in this example. The executable calculation reproduces the discrete-sum value independently from the finite-temperature BdG free energy. Because the integral comparison does not transfer directly to Matsubara sums, we give a separate finite-temperature argument.

B.4 Finite-temperature moment bound

At finite temperature, the same comparison problem is sampled on the Matsubara grid ωm=rm⁢π/β with rm=2⁢m+1. We write qm=qn⁢(ωm) for the rapidity of a fixed channel at these nodes. The bound |log⁡(ω2/ω1)| on the change of the rapidity between two frequencies, applied to consecutive Matsubara frequencies, gives

|qn⁢(ωm+1)−qn⁢(ωm)|≤log⁡rm+1rm. (125)

The quartic bound follows if the discrete second moment of every channel is at most 29/40 times its first moment. Because T=tanh2⁡q, the difference between the two sides has the summand

f⁢(q)=tanh4⁡q−2940⁢tanh2⁡q, (126)

and it remains to prove ∑mf⁢(qm)≤0.

The discrete counterpart of the zero-temperature comparison trajectory descends by the largest step allowed between consecutive nodes: starting from q at node m, its rapidity at node j is max⁡{q−log⁡(rj/rm),0}. With h⁢(z)=τ⁢(z)2−(29/40)⁢τ⁢(z), where τ from Eq. (115) is extended by zero for z≥1, the tail sum along this sequence is

Hm⁢(q)=∑k=0∞h⁢(rm+krm⁢eq). (127)

The tail sum Hm is the discrete analogue of the accumulated comparison moment ω⁢Gp, except that it collects the remaining rather than the preceding contribution. Separating the current node gives the recursion

Hm⁢(q)=f⁢(q)+Hm+1⁢(max⁡(q−log⁡rm+1rm,0)). (128)

The derivative of the tail sum involves g⁢(z)=−z⁢h′⁢(z): differentiating the finite sum of nonzero terms in Hm gives Hm′⁢(q)=∑k≥0g⁢(rm+k/[rm⁢eq]). Two properties make Hm an upper bound for every admissible tail:

H0⁢(q)≤0,∑k=0∞g⁢(rm+krm⁢eq)≤0,m≥1. (129)

The first states that even the complete comparison sequence has a nonpositive sum. The second is the nontrivial comparison step: increasing the rapidity at the next node cannot increase the remaining tail sum. This is a statement about the whole tail, not a pointwise ordering of f.

Equation (125) gives qm+1≥max⁡{qm−log⁡(rm+1/rm),0}. Because Hm+1 is nonincreasing, replacing the actual next value by the comparison value can only increase the bound on the remaining tail sum. Backward induction with a finite cutoff, followed by the convergent limit of the cutoff, therefore gives

∑m=0∞f⁢(qm)≤H0⁢(q0)≤0. (130)

We verify the two properties in Eq. (129) with the substitution a=rm⁢eq, which writes the comparison sequence as τ⁢(rj/a). The first property then becomes the midpoint sum

H0⁢(q)=F⁢(eq),F⁢(a)=∑k=0∞h⁢(2⁢k+1a). (131)

For the derivative bound, we compare Hm′⁢(q), for m≥1, with the sum of g over all Matsubara nodes except r0=1:

G⁢(a)=∑k=0∞g⁢(2⁢k+3a). (132)

Here g is extended by zero for z≥1, and on 0≤z<1 it equals z2⁢(1−z2)⁢(51⁢z4−218⁢z2+51)/[5⁢(1+z2)5]. Consequently, F⁢(a)≤0 for a≥1 proves that the complete comparison sequence has a nonpositive sum. To prove that the remaining tail sum is nonincreasing, we use that g changes sign once on (0,1). If the first term of Hm′ lies before this sign change, the omitted lower nodes add positive terms to G; if it lies after the sign change, every retained term is already nonpositive. Hence G⁢(a)≤0 for a≥3 implies Hm′≤0 for every m≥1.

We prove these two midpoint-sum inequalities with analytic bounds at large a and exact rational checks on the remaining finite intervals. Polynomial root counting on [0,1] gives

|h′′⁢(z)| ≤515,|g⁢(z)|≤1750,|z⁢g′⁢(z)|≤2920, (133)
|g′′⁢(z)| ≤1025.

The first and last bounds control the midpoint-rule errors for F and G, and the middle two control their variation on the finite intervals. At large a, both midpoint sums are governed by the same negative integral,

I=∫01h⁢(z)⁢dz=∫01g⁢(z)⁢dz=7360−31⁢π80,I<0, (134)

so the composite midpoint estimate and Eq. (133) prove negativity for large a:

F⁢(aF) ≤aF2⁢(7360−31⁢π80)+1720⁢aF⁢(1+2aF)<0,aF≥51, (135)
G⁢(aG) ≤aG2⁢(7360−31⁢π80)+112⁢aG<0,aG≥127.

The estimate for G uses the derivative of the zero extension of g, whose total variation, the summed size of all its increases and decreases, is at most 22.

On 1≤a≤3, F contains one nonpositive term, and the same holds for G on 3≤a≤5. The executable certificate partitions [3,51] into rational cells of width 1/512 and [5,127] into cells of width 1/64. It evaluates every midpoint exactly and uses the middle two bounds in Eq. (133) to cover the complete cells. Every resulting rational upper bound is strictly negative, which proves Eq. (129).

Applying Eq. (130) to every channel and restoring the Matsubara scale yields

∑n∑m=0∞Tn⁢(ωm)2≤2940⁢∑n∑m=0∞Tn⁢(ωm). (136)

Together with Eq. (49), this gives

−1+32⁢∑n∑m=0∞Tn⁢(ωm)2∑n∑m=0∞Tn⁢(ωm)≤−1+32⁢2940=780, (137)

for 0<β<∞, which is Eq. (58).

Appendix C Bounds on the current-phase relation

This appendix derives the bounds of Sec. 4.2. Unlike the other appendices, it contains derivations that are not formalized in Lean, and its displays are unnumbered. Throughout, we abbreviate the transmission representation as

F⁢(φ)−F⁢(0)=−∫log⁡[1−t⁢sin2⁡(φ/2)]⁢𝑑ν⁢(t),

where the positive measure ν on [0,1] assigns weight 2/β to each pair (m,n) at the value t=Tn⁢(ωm), and at zero temperature becomes (1/π)⁢∑n∫0∞𝑑ω over t=Tn⁢(ω). In this notation, c2=14⁢∫t⁢𝑑ν, the barrier-top curvature is κ=−F′′⁢(π)=12⁢∫t/(1−t)⁢𝑑ν, and Eb=−∫log⁡(1−t)⁢𝑑ν. We consider junctions with c2>0.

C.1 Bounds from the positive weights

With x=sin2⁡(φ/2), differentiation gives

F′⁢(φ)=sin⁡φ⁢R⁢(x),R⁢(x)=12⁢∫t1−t⁢x⁢𝑑ν⁢(t),

and R increases strictly from R⁢(0)=2⁢c2 to R⁢(1)=κ. The lower bound F′⁢(φ)≥2⁢c2⁢sin⁡φ follows, and integrating it over 0≤φ≤π gives Eb≥4⁢c2. The derivative of each term of F′ with respect to φ has the sign of cos⁡φ+t⁢sin2⁡(φ/2), which is positive for φ≤π/2, so every maximum of the current lies beyond π/2.

For the upper bounds, we assume that κ is finite and normalize the weights t⁢d⁢ν/2 to total mass 2⁢c2 and write the integrand of R in terms of y=(1−t)−1:

11−t⁢x=yx+(1−x)⁢y.

This function is concave in y for 0<x<1, and the mean of y under the normalized weights is κ/2⁢c2. Jensen’s inequality therefore gives

R⁢(x)≤2⁢c2⁢κκ⁢(1−x)+2⁢c2⁢x,

which bounds the current at every phase. Writing u=tan⁡(φ/2), the envelope becomes 4⁢c2⁢κ⁢u/(κ+2⁢c2⁢u2), whose maximum 2⁢c2⁢κ at u2=κ/2⁢c2 bounds (ℏ/2⁢e)⁢Ic. Integrating the envelope with Eb=2⁢∫01R⁢(x)⁢𝑑x gives the barrier bound Eb≤4⁢c2⁢κ⁢log⁡(κ/2⁢c2)/(κ−2⁢c2). Equality in Jensen’s inequality requires the weights to concentrate on a single value of t. For a finite-dimensional junction, ∑nTn⁢(ω) is a rational function of ω that vanishes at infinity, so the nonzero transmissions on the Matsubara tail take infinitely many values, and the upper bounds are strict. Convexity of −log⁡(1−t⁢x) in x also places the free energy between its tangent at x=0 and its chord to x=1,

2⁢c2⁢(1−cos⁡φ)≤F⁢(φ)−F⁢(0)≤Eb2⁢(1−cos⁡φ)≤κ⁢(1−cos⁡φ),

where the last step uses −log⁡(1−t)≤t/(1−t).

C.2 Pairing-scale bound on the transmissions

With the time-reversal operator UT of Sec. 2.3, the matrices A=ΔL⁢UT† and B=ΔR⁢UT†, which act on the electron space, are positive semidefinite. Multiplying the hole components of the Bogoliubov–de Gennes Hamiltonian by UT turns the pairing block into A+ei⁢φ⁢B and, by Eqs. (4) and (22), its lower-left partner into the adjoint A+e−i⁢φ⁢B and the hole block into −h. A further phase-dependent unitary distributes the phase symmetrically, so that the Hamiltonian becomes

ℋ⁢(φ)=(he−i⁢φ/2⁢A+ei⁢φ/2⁢Bei⁢φ/2⁢A+e−i⁢φ/2⁢B−h).

Both transformations preserve det[i⁢ω−H⁢(φ)], and the determinant ratio of Eq. (38), established there for real phases, is a polynomial in sin2⁡(φ/2). We continue it to complex phases z by replacing φ with z in both off-diagonal blocks; for complex z the lower block is no longer the adjoint of the upper one. Both sides of Eq. (38) are entire functions of z that agree on the real axis, so the identity persists. At z=π+2⁢i⁢y with y≥0, the exponentials become e−i⁢z/2=−i⁢ey and ei⁢z/2=i⁢e−y, and the continued Hamiltonian splits into a Hermitian and an anti-Hermitian part,

ℋ⁢(π+2⁢i⁢y)=(hi⁢(B−A)⁢cosh⁡y−i⁢(B−A)⁢cosh⁡y−h)−i⁢sinh⁡y⁢(0A+BA+B0).

The anti-Hermitian part has norm Δmax⁢sinh⁡y, with Δmax=∥A+B∥. Hence the imaginary part of i⁢ω−ℋ⁢(π+2⁢i⁢y) is positive definite, and the matrix is invertible, whenever ω>Δmax⁢sinh⁡y. On the other hand, sin2⁡(z/2)=cosh2⁡y, so the factor 1−Tn⁢(ω)⁢cosh2⁡y of the determinant ratio vanishes at the nonnegative y with sinh2⁡y=1/Tn⁢(ω)−1 whenever Tn⁢(ω)>0. Invertibility forces ω2≤Δmax2⁢[1/Tn⁢(ω)−1], which is the bound Tn⁢(ω)≤Δmax2/(ω2+Δmax2).

The functions −log⁡(1−t⁢x) and t/(1−t⁢x) increase with t, so replacing every nonzero Tn⁢(ωm) by the bound and the channel sum by N terms gives upper bounds on the free energy and the current. The Matsubara sums are those of a perfectly transmitting short channel with gap Δmax, and Eq. (10) evaluates them in closed form:

F⁢(φ)−F⁢(0)≤2⁢Nβ⁢log⁡cosh⁡(β⁢Δmax/2)cosh⁡[β⁢Δmax⁢cos⁡(φ/2)/2],

whose derivative bounds the current for 0<φ<π,

F′⁢(φ)≤N⁢Δmax2⁢sin⁡φ2⁢tanh⁡β⁢Δmax⁢cos⁡(φ/2)2.

At zero temperature the right-hand side of the energy bound becomes N⁢Δmax⁢[1−|cos⁡(φ/2)|] and the current envelope (N⁢Δmax/2)⁢sin⁡(φ/2), so (ℏ/2⁢e)⁢Ic≤N⁢Δmax/2 at every temperature.

C.3 Cusp at perfect transmission

At positive temperature, every Tn⁢(ωm) is strictly below one, so each term of the transmission representation is analytic in φ and the sum converges uniformly with its derivatives; F is analytic. At zero temperature, the frequency integral is analytic on any compact phase interval that avoids odd multiples of π, and also at φ=π if every Tn⁢(0)<1, because then the transmissions stay uniformly below one. A nonanalytic energy-phase relation therefore requires a channel with Tn⁢(0)=1. For such a channel, with 1−Tn⁢(ω)=cn⁢ω2+o⁢(ω2), we write 1−Tn⁢sin2⁡[(π+δ)/2]=(1−Tn)⁢[1+an⁢sin2⁡(δ/2)] with an=Tn/(1−Tn). The phase-dependent part of the integrand is −log⁡[1+an⁢sin2⁡(δ/2)], and the integral ∫0∞log⁡(1+b2/ω2)⁢𝑑ω=π⁢b with b2=δ2/(4⁢cn) gives the contribution −|δ|/(2⁢cn) to leading order in δ. Channels with Tn⁢(0)<1 contribute O⁢(δ2), which proves the cusp formula with v=∑n1/(2⁢cn). The pairing-scale bound gives 1−Tn⁢(ω)≥ω2/(ω2+Δmax2), hence cn≥Δmax−2 and v≤n1⁢Δmax/2. The count n1 also equals the number of zero-energy eigenvalue pairs of H⁢(π) that are not present at every phase. Vectors annihilated by h, A, and B give phase-independent zero modes, and because A and B are positive semidefinite they exhaust ker⁡H⁢(0); their factors cancel from Eq. (38), which at φ=π reads det[i⁢ω−H⁢(π)]/det[i⁢ω−H⁢(0)]=∏n[1−Tn⁢(ω)]. The left-hand side then vanishes as ωdimker⁡H⁢(π)−dimker⁡H⁢(0) while the right-hand side vanishes as ω2⁢n1.

The same bound follows from the spectrum. In the symmetric gauge, ℋ′⁢(π) is −12 times the off-diagonal matrix built from A+B, with norm Δmax/2. Compressing it to the zero-energy eigenspace of ℋ⁢(π) gives the slopes of the Andreev levels crossing zero, each of magnitude at most Δmax/2, and v is the sum of the positive slopes. Distributing the phase as −a⁢φ on the left and (1−a)⁢φ on the right pairing instead gives the norm ∥a⁢A+(1−a)⁢B∥ for any 0≤a≤1; the compression then acts on the image of ker⁡H⁢(π) under the phase-dependent gauge transformation, and the slopes it produces are gauge independent because the eigenvalues are. For pairing blocks on disjoint orbitals with gaps ΔL and ΔR, the optimal choice gives v≤n1⁢ΔL⁢ΔR/(ΔL+ΔR). Two orbitals coupled by a hopping ΔL⁢ΔR, each paired by a different superconductor, have T⁢(ω)=4⁢ΔL2⁢ΔR2/[ω4+(ΔL+ΔR)2⁢ω2+4⁢ΔL2⁢ΔR2] and attain this bound.

C.4 Zero-temperature bounds from the moment hierarchy

At zero temperature, Eq. (120) with the constants of Eq. (115) gives by induction Mp≤(Ip/I1)⁢M1 for the moments Mp=∫0∞∑nTnp⁢d⁢ω, where Ip=∫01τ⁢(r)p⁢𝑑r are the moments of the comparison transmission τ⁢(r)=[(1−r2)/(1+r2)]2. Expanding R⁢(x) in a power series with positive coefficients and using M1=4⁢π⁢c2,

R⁢(x)=12⁢π⁢∑p≥1Mp⁢xp−1≤2⁢c2I1⁢∫01τ⁢(r)1−x⁢τ⁢(r)⁢𝑑r.

On 0≤r≤1, τ⁢(r)≤1/(1+4⁢r2), and extending the integral to infinity gives

∫01τ⁢(r)1−x⁢τ⁢(r)⁢𝑑r≤∫0∞d⁢r1−x+4⁢r2=π4⁢1−x.

With I1=(4−π)/2 and sin⁡φ/1−x=2⁢sin⁡(φ/2), the current obeys F′⁢(φ)≤[2⁢π/(4−π)]⁢c2⁢sin⁡(φ/2) and hence (ℏ/2⁢e)⁢Ic≤2⁢π⁢c2/(4−π). Summing the moment bounds with weights 1/p instead gives

Eb=1π⁢∑p≥1Mpp≤4⁢c2I1⁢∫01−log⁡[1−τ⁢(r)]⁢d⁢r=8⁢(π−2)4−π⁢c2,

where 1−τ=4⁢r2/(1+r2)2 makes the integral elementary. Both series have positive terms, so the interchange of sum and integral is justified, and the bounds hold whenever Eb is finite, including in the presence of a cusp. The comparison trajectory T⁢(ω)=τ⁢(ω/Ω), cut off at ω=Ω, attains both constants, but no junction has a transmission with such a cutoff.

Appendix D Development workflow and use of AI agents

This appendix records how the results came about, which contributions came from AI models and which from me, and which checks support the claims. I formulated the problem, chose which results to pursue and keep, and reviewed the derivations and the full text.

D.1 History of the project

The problem comes from our earlier numerical study [8], which conjectured −1≤αr≤0. Before February 2026, I used the proof of this conjecture as a benchmark of the mathematical ability of language models, and GPT-5.2 made no progress on it. In February 2026, I started a repository whose instruction file asked a coding agent to construct analytic proofs, to pursue several approaches in parallel, to validate each step numerically, and to keep a running log. The agent explored trace-logarithm inequalities, Schur complements, and pinching arguments, and it recorded most of them as dead ends. Figure 5 places the following steps on a time axis and separately counts my prompts and the agents’ tasks to one another.

GPT-5.4 gave the first complete proof of the lower bound αr≥−1 in early March, as a sum-of-squares identity that occupied more than a thousand lines of notes. I gave these notes to GPT-5.4 Pro and asked it to prove the missing upper bound. Its first answer rested on a lemma that it reported to hold numerically to machine precision; when I asked whether the lemma was true, the model refuted it with an explicit example. The model then observed numerically that the nonzero roots of the Matsubara characteristic polynomial, as a function of ei⁢φ, lie on the negative real axis, and it proved this observation. The result is the first version of the transmission representation, from which the lower bound follows in a few lines. This result convinced me that the problem deserved a complete study rather than serving only as a benchmark. A coding agent then reworked the derivation under my guidance into the form of Sec. 2.

The upper bound αr≤0 resisted about a dozen proof strategies in March, including moment-problem, Padé, thermal-interpolation, and eigenvalue-monotonicity arguments. For part of this search, I asked an agent to take over my role: to launch exploratory subagents, evaluate their results, and choose new directions. In April, I asked GPT-5.4 Pro to prove the upper bound, stated as the sign of a frequency integral. The model reduced the integral to the transmission moments that determine αr and, after several unproductive attempts, reported that the bound is false. It supported this claim with a violation found by a numerical search over a structured family of junctions, a result that came as a complete surprise to me. Within a day, a coding agent confirmed the positive c4 by perturbation theory, by the transmission-moment identity, and by a direct fit of the energy. When I asked whether a smaller junction suffices, GPT-5.4 Pro found the four-site example of Sec. 5; the coding agent brought it to the square form shown there and computed its coefficients exactly. I then removed the exploratory code and notes, about 24 000 lines, and redefined the project goal around the retained results. Later in April, I asked GPT-5.5 Pro to improve the upper bound. When this failed, I asked it to push αr higher instead, and it constructed the larger example of Sec. 5.

Pro models also found the tighter upper bound of Sec. 4.1, and GPT-6 Pro later produced the unverified improvements of this bound mentioned in Sec. 6. Coding agents derived the short-junction expansion to next-to-leading order in App. A, built the numerical checks, and wrote the formal proofs described in App. D.3.

Figure 5: Timeline of the project and of my prompts to the coding agents. The top row marks the steps described in this appendix on the day when each result or tool entered the repository or the recorded sessions; dashed lines repeat these days in the middle panel, which counts my prompts per day. Each bar is divided among the six labels in proportion to how many of that day’s prompts carry each label; since a prompt can carry several labels, this division is only indicative. Its legend gives the share of my prompts that carry each label. The lower panel separately counts retained agent-to-agent tasks throughout the archive: relays between top-level sessions in gray, and parent-assigned subagent tasks in dark gray. These tasks pass through the same sanitization, are not classified, and do not enter the label shares. The prompt labels are approximate: GPT-6-luna assigned them automatically to the 3 028 prompts recorded from 5 February to 17 October, without validation against hand labels.

D.2 Agents and working practice

The work used two kinds of models. In the ChatGPT interface, the Pro versions of GPT-5.4 through GPT-6 received self-contained mathematical questions and produced the three results above that I consider hardest. Coding agents worked inside the repository: Codex with GPT-5.2 through GPT-6.1 throughout, and Claude Code with Claude Fable 5.1 and Claude Opus 5.5 from September. These agents carried out derivations, wrote numerical and verification code, formalized the proofs, and wrote most of the text.

From April on, a project website showed the current state of the work. Continuous integration rebuilt it after every change: first an executable version of the manuscript with every number recomputed from the code, and later the PDF and HTML versions of the paper together with pages generated from the Lean formalization that list each claim with its hypotheses. I reviewed the work on this website, reading the results as built from the repository. The review tools of App. D.4 also run on this website.

Agent sessions were long and often ran in parallel in separate copies of the repository. In the final stage, one agent coordinated others: it assigned scoped tasks, requested reviews from a model of a different vendor, and merged the results. Between February and October 2026, the repository accumulated about 1 800 commits, and I wrote about 3 000 prompts in the recorded agent sessions (Fig. 5). The Zenodo record [23] contains the 252 recorded agent sessions, from February on, and the ChatGPT conversations that produced the key results, with private data removed on a best-effort basis. My own time is hard to estimate, because I usually worked on several tasks in parallel, except during a period of detailed feedback on the text. I estimate it at several weeks of full-time work.

Most of my prompts set directions, judged the physics, or corrected agent errors. An approximate automatic classification assigns about 45%, 30%, and 20% of the prompts to these three kinds (Fig. 5). The errors followed a few recurring patterns. Agents restated the target as an assumption, presented unverified claims with confidence, made sign errors in symmetry constraints, and wrote checks that passed without testing the intended statement. For example, an early cross-check with Kwant used Kwant only to diagonalize a finite matrix and did not solve the scattering problem. I found most of these errors by following the derivations myself. The errors became rarer with each model generation, and by the end of the project the results were mostly reliable once I had formulated the task correctly. What did not change is that a model’s own judgment of whether it had solved a task was not reliable, especially for the hardest tasks. Checking that a result matches the task as I described it therefore remained a continuous part of my work.

D.3 Verification

By the time I started building verification tools, I had followed every derivation and was confident in the results. I built the tools to raise the standard of verifiability, so that a reader can trust the results without repeating my checks. Each generation of tools raised this standard. Executable notes first recomputed every reported number. A symbolic layer then checked individual derivation steps with SymPy, a compromise between rigor and effort. While building this layer, agents repeatedly satisfied a check without meeting its intent; in one case, the printing code contained the derivation that the check was supposed to establish. In August, I asked an agent to attempt a formalization in Lean 4 [9] with Mathlib [10]. Lean checks complete statements together with their hypotheses rather than isolated algebraic steps, and it replaced the symbolic layer within days.

In the final pipeline, the manuscript source contains code cells that the build runs in a Jupyter kernel [32] before typesetting; jupytertex, a LaTeX package in the repository, replaces them with their output. These cells print every numbered display equation from the statement of a checked Lean declaration. The bounds on the current-phase relation in Sec. 4.2 and App. C are the exception: we derived them after the formalization was complete, their displays are unnumbered and typeset directly from the source, and only the numerical checks of the four-site example run in the build. The printer maps Lean identifiers to symbols through a single notation table. Apart from a few sign and ordering conventions, such as printing x−(−y) as x+y, it performs no algebraic rewriting, so each display shows the checked statement itself. The printer is Python code that Lean does not check. The build fails when a manuscript label has no Lean declaration or a registered declaration does not appear in the manuscript. Each main result lists its hypotheses, classified as model assumptions, physical conditions, or technical conditions. Because the printer can show distinct objects with the same symbol, an audit records for every such pair either a proof that the objects are equal or a confirmation that they are distinct. The proofs contain no unproved steps and add no axioms. Only the rational certificate of App. B.4 relies on compiled evaluation, which trusts the Lean compiler in addition to its kernel.

The formal proofs cover the displayed statements under their listed hypotheses. These hypotheses include the energy-independent short-junction model of Sec. 3 and regularity conditions on the normal-state scattering in App. A. The formalization works with finite matrices. In App. A, each semi-infinite lead enters only through its normal self-energy, which the formal model takes as an input with the stated regularity; neither the reduction of the infinite lead to this self-energy nor the identification of the relative determinant with the thermodynamic limit of finite leads is formalized. The figures and the comparisons with numerical simulations rely on Python code using NumPy [33], SciPy [34], SymPy [35], mpmath [36], Matplotlib [37], Pymablock [22], and Kwant [29]. Only review checks the prose between the displays.

Verification dominates the size of the code. The repository contains about 33 000 lines of Lean and 8 000 lines of publication and audit code, but only about 1 000 lines of physics numerics. Each generation of tools replaced the previous one, and about 40 000 lines of discarded tooling did not enter the final version.

D.4 Writing and review

Agents wrote most of the text from my instructions on its content and structure and revised it in response to my comments, and I reviewed all of it. To make this review efficient, I built a commenting tool for the manuscript on the project website that attaches each comment to the corresponding source lines and passes both to an agent. I also wrote my writing guidelines as reusable agent instructions, had models of a different vendor review the text, and added a linter for display punctuation and cross-references. A typical revision cycle consisted of my comments, an agent revision, an independent agent review, and my final reading. With later model generations, the drafts needed far fewer of my comments. The amount of revision was nevertheless large: over the course of the project, the agents wrote about four times as many words of manuscript text as the final version contains.

References

  • [1] B. D. Josephson, Possible new effects in superconductive tunnelling, Phys. Lett. 1(7), 251 (1962), doi:10.1016/0031-9163(62)91369-0.
  • [2] C. W. J. Beenakker, Universal limit of critical-current fluctuations in mesoscopic Josephson junctions, Phys. Rev. Lett. 67(27), 3836 (1991), doi:10.1103/physrevlett.67.3836.
  • [3] T. W. Larsen, K. D. Petersson, F. Kuemmeth, T. S. Jespersen, P. Krogstrup, J. Nygård and C. M. Marcus, Semiconductor-nanowire-based superconducting qubit, Phys. Rev. Lett. 115(12), 127001 (2015), doi:10.1103/physrevlett.115.127001.
  • [4] G. de Lange, B. van Heck, A. Bruno, D. J. van Woerkom, A. Geresdi, S. R. Plissard, E. P. A. M. Bakkers, A. R. Akhmerov and L. DiCarlo, Realization of microwave quantum circuits using hybrid superconducting-semiconducting nanowire Josephson elements, Phys. Rev. Lett. 115(12), 127002 (2015), doi:10.1103/physrevlett.115.127002.
  • [5] A. Kringhøj, L. Casparis, M. Hell, T. W. Larsen, F. Kuemmeth, M. Leijnse, K. Flensberg, P. Krogstrup, J. Nygård, K. D. Petersson and C. M. Marcus, Anharmonicity of a superconducting qubit with a few-mode Josephson junction, Phys. Rev. B 97(6), 060508 (2018), doi:10.1103/physrevb.97.060508.
  • [6] A. Furusaki and M. Tsukada, Current-carrying states in Josephson junctions, Phys. Rev. B 43(13), 10164 (1991), doi:10.1103/physrevb.43.10164.
  • [7] M. Titov, P. Jacquod and C. W. J. Beenakker, Negative superfluid density: Mesoscopic fluctuations and reverse of the supercurrent through a disordered Josephson junction, Phys. Rev. B 65(1), 012504 (2001), doi:10.1103/physrevb.65.012504, arXiv:cond-mat/0106018.
  • [8] V. Fatemi, P. Kurilovich, A. R. Akhmerov and B. van Heck, Nonlinearity of transparent SNS weak links decreases sharply with length, SciPost Phys. 18(3), 091 (2025), doi:10.21468/scipostphys.18.3.091, arXiv:2410.01913.
  • [9] L. de Moura and S. Ullrich, The Lean 4 theorem prover and programming language, In Automated Deduction – CADE 28, vol. 12699 of Lecture Notes in Computer Science, pp. 625–635. Springer International Publishing, doi:10.1007/978-3-030-79876-5_37 (2021).
  • [10] The mathlib Community, The Lean mathematical library, In Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs, pp. 367–381, doi:10.1145/3372885.3373824 (2020).
  • [11] X. Waintal, M. Wimmer, A. Akhmerov, C. Groth, B. K. Nikolic, M. Istas, T. Ö. Rosdahl and D. Varjas, Computational quantum transport: a scattering approach perspective (2024), arXiv:2407.16257.
  • [12] P. W. Brouwer and C. W. J. Beenakker, Anomalous temperature dependence of the supercurrent through a chaotic Josephson junction, Chaos, Solitons & Fractals 8(7-8), 1249 (1997), doi:10.1016/s0960-0779(97)00018-0.
  • [13] E. V. Repin, Y. Chen and Y. V. Nazarov, Topological properties of multiterminal superconducting nanostructures: Effect of a continuous spectrum, Phys. Rev. B 99(16), 165414 (2019), doi:10.1103/physrevb.99.165414.
  • [14] A. V. Zaitsev, Quasiclassical equations of the theory of superconductivity for contiguous metals and the properties of constricted microcontacts, Sov. Phys. JETP 59(5), 1015 (1984).
  • [15] S. K. Yip, Supercurrent and noise in point contacts between two different superconductors, Phys. Rev. B 68(2), 024511 (2003), doi:10.1103/physrevb.68.024511.
  • [16] A. Levchenko, A. Kamenev and L. Glazman, Singular length dependence of critical current in superconductor/normal-metal/superconductor bridges, Phys. Rev. B 74(21), 212509 (2006), doi:10.1103/physrevb.74.212509, arXiv:cond-mat/0601177.
  • [17] C. W. J. Beenakker, Casimir-Josephson force on a point contact between two superconductors, Phys. Rev. B 108(19), 195422 (2023), doi:10.1103/physrevb.108.195422, arXiv:2310.06672.
  • [18] A. Levchenko, Casimir effect in Josephson junctions, J. Low Temp. Phys. 218(3-4), 268 (2025), doi:10.1007/s10909-024-03254-3, arXiv:2410.08398.
  • [19] C. Ishii, Josephson currents through junctions with normal metal barriers, Prog. Theor. Phys. 44(6), 1525 (1970), doi:10.1143/ptp.44.1525.
  • [20] J. Bardeen and J. L. Johnson, Josephson current flow in pure superconducting-normal-superconducting junctions, Phys. Rev. B 5(1), 72 (1972), doi:10.1103/physrevb.5.72.
  • [21] C. W. J. Beenakker and H. van Houten, Josephson current through a superconducting quantum point contact shorter than the coherence length, Phys. Rev. Lett. 66(23), 3056 (1991), doi:10.1103/physrevlett.66.3056.
  • [22] I. Araya Day, S. Miles, H. Kerstens, D. Varjas and A. R. Akhmerov, Pymablock: An algorithm and a package for quasi-degenerate perturbation theory, SciPost Phys. Codebases 50 (2025), doi:10.21468/scipostphyscodeb.50.
  • [23] A. R. Akhmerov, Source code and agent logs for “transmission representation of the Josephson free energy beyond the short-junction limit”, doi:10.5281/zenodo.21705015 (2026).
  • [24] Z. C. F. Li, Y. Deng, D. K. Efetov and K. T. Law, Quantum metric induced critical current anomaly in flat band Josephson junctions (2026), arXiv:2608.08120.
  • [25] S. K. Yip and J. A. Sauls, Nonlinear Meissner effect in CuO superconductors, Phys. Rev. Lett. 69(15), 2264 (1992), doi:10.1103/physrevlett.69.2264.
  • [26] J. R. Clem and V. G. Kogan, Kinetic impedance and depairing in thin and narrow superconducting films, Phys. Rev. B 86(17) (2012), doi:10.1103/physrevb.86.174521.
  • [27] J. Zmuidzinas, Superconducting microresonators: physics and applications, Annu. Rev. Condens. Matter Phys. 3(1), 169 (2012), doi:10.1146/annurev-conmatphys-020911-125022.
  • [28] B. H. Eom, P. K. Day, H. G. LeDuc and J. Zmuidzinas, A wideband, low-noise superconducting amplifier with high dynamic range, Nature Phys 8(8), 623 (2012), doi:10.1038/nphys2356.
  • [29] C. W. Groth, M. Wimmer, A. R. Akhmerov and X. Waintal, Kwant: a software package for quantum transport, New J. Phys. 16(6), 063065 (2014), doi:10.1088/1367-2630/16/6/063065.
  • [30] J. A. Ball, M. Kurula, O. J. Staffans and H. Zwart, De Branges–Rovnyak realizations of operator-valued Schur functions on the complex right half-plane, Complex Anal. Oper. Theory 9(4), 723 (2015), doi:10.1007/s11785-014-0358-2.
  • [31] J. M. Anderson and J. Rovnyak, On generalized Schwarz‐Pick estimates, Mathematika 53(1), 161 (2006), doi:10.1112/s0025579300000085.
  • [32] T. Kluyver, B. Ragan-Kelley, F. Pérez, B. Granger, M. Bussonnier, J. Frederic, K. Kelley, J. Hamrick, J. Grout, S. Corlay, P. Ivanov, D. Avila et al., Jupyter notebooks – a publishing format for reproducible computational workflows, In F. Loizides and B. Schmidt, eds., Positioning and Power in Academic Publishing: Players, Agents and Agendas, pp. 87–90. IOS Press, doi:10.3233/978-1-61499-649-1-87 (2016).
  • [33] C. R. Harris, K. J. Millman, S. J. van der Walt, R. Gommers, P. Virtanen, D. Cournapeau, E. Wieser, J. Taylor, S. Berg, N. J. Smith, R. Kern, M. Picus et al., Array programming with NumPy, Nature 585(7825), 357 (2020), doi:10.1038/s41586-020-2649-2.
  • [34] P. Virtanen, R. Gommers, T. E. Oliphant, M. Haberland, T. Reddy, D. Cournapeau, E. Burovski, P. Peterson, W. Weckesser, J. Bright, S. J. van der Walt, M. Brett et al., SciPy 1.0: fundamental algorithms for scientific computing in Python, Nat Methods 17(3), 261 (2020), doi:10.1038/s41592-019-0686-2.
  • [35] A. Meurer, C. P. Smith, M. Paprocki, O. Čertík, S. B. Kirpichev, M. Rocklin, A. Kumar, S. Ivanov, J. K. Moore, S. Singh, T. Rathnayake, S. Vig et al., SymPy: symbolic computing in Python, PeerJ Computer Science 3, e103 (2017), doi:10.7717/peerj-cs.103.
  • [36] The mpmath development team, mpmath: a Python library for arbitrary-precision floating-point arithmetic, https://mpmath.org/ (2026).
  • [37] J. D. Hunter, Matplotlib: A 2d graphics environment, Comput. Sci. Eng. 9(3), 90 (2007), doi:10.1109/mcse.2007.55.