Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Qubit: det⁡D>0  ⟺  c−<c<c+\det D>0\iff c_-<c<c_+detD>0⟺c−​<c<c+​

Proved
HardyFiveAxioms.qubitD_det_pos_iff

by Lucas · Oct 2, 2026 · Mathlib 0df444a (Lean v4.33.1)

linear-algebramathematical-physicsquantum-foundationsquantum-information

Let 0≤a,b≤10\le a,b\le10≤a,b≤1 and c∈Rc\in\mathbb Rc∈R, and let D=D(a,b,c)D=D(a,b,c)D=D(a,b,c) be the 4×44\times44×4 matrix of Eq. (34)/(74). Then

det⁡D>0  ⟺  c−<c<c+,c±=1−a−b+2ab±2ab(1−a)(1−b).\det D>0\iff c_-<c<c_+,\qquad c_\pm=1-a-b+2ab\pm2\sqrt{ab(1-a)(1-b)} .detD>0⟺c−​<c<c+​,c±​=1−a−b+2ab±2ab(1−a)(1−b)​.

In Section 5 Hardy observes that the quantum constraint c−<c<c+c_-<c<c_+c−​<c<c+​ (Eqs. (36)–(37)) "is equivalent to the condition Det(D)>0\mathrm{Det}(D)>0Det(D)>0". In Section 8.6 he notes that det⁡D=0\det D=0detD=0 has the same roots c±c_\pmc±​ as det⁡A=0\det A=0detA=0.

Formalization Note At the boundary a∈{0,1}a\in\{0,1\}a∈{0,1} or b∈{0,1}b\in\{0,1\}b∈{0,1} one has c−=c+c_-=c_+c−​=c+​, so the interval is empty and det⁡D≤0\det D\le0detD≤0.

Preamble
import Mathlib
import Definitions.Def_hardy2001_qubit
Formal statement
namespace HardyFiveAxioms

/-- Hardy 2001, Section 5, Eqs. (36)–(37) (and Section 8.6, Eq. (85)): for `0 ≤ a, b ≤ 1`,
`det D > 0` if and only if `c₋ < c < c₊`. -/
theorem qubitD_det_pos_iff (a b c : ℝ) (ha₀ : 0 ≤ a) (ha₁ : a ≤ 1) (hb₀ : 0 ≤ b) (hb₁ : b ≤ 1) :
    0 < (qubitD a b c).det ↔ cMinus a b < c ∧ c < cPlus a b := by sorry

end HardyFiveAxioms
Source
L. Hardy, *Quantum Theory From Five Reasonable Axioms*, arXiv:quant-ph/0101012v4 (2001), https://arxiv.org/abs/quant-ph/0101012, p. 9, Section 5, Eqs. (34), (36)–(37) and the sentence after (37); p. 21, Section 8.6, after Eq. (85)
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

NON-BLIND READ-BACK — NOT INDEPENDENT TESTIMONY. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement below, with full knowledge of the source paper and of the intended meaning. It was not produced by a blind, independent auditor, so it may share the drafter's blind spots. Reviewers must not treat it as independent confirmation of faithfulness; compare the Lean code against the source directly.

Let a,b,ca,b,ca,b,c be real numbers with 0≤a≤10\le a\le10≤a≤1 and 0≤b≤10\le b\le10≤b≤1. Let DDD be the real 4×44\times44×4 matrix with rows (1,0,1−a,1−b)(1,0,1-a,1-b)(1,0,1−a,1−b), (0,1,a,b)(0,1,a,b)(0,1,a,b), (1−a,a,1,c)(1-a,a,1,c)(1−a,a,1,c), (1−b,b,c,1)(1-b,b,c,1)(1−b,b,c,1). Then det⁡D>0\det D>0detD>0 holds if and only if both 1−a−b+2ab−2ab(1−a)(1−b)<c1-a-b+2ab-2\sqrt{ab(1-a)(1-b)}<c1−a−b+2ab−2ab(1−a)(1−b)​<c and c<1−a−b+2ab+2ab(1−a)(1−b)c<1-a-b+2ab+2\sqrt{ab(1-a)(1-b)}c<1−a−b+2ab+2ab(1−a)(1−b)​ hold. Under the stated bounds the radicand is nonnegative.

Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 8, 2026

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

View graph

Get started

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

About Prove2Me

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

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me