WorksPhysics and Astronomy
The Four-Qubit Hyperbolic Quadric Has Contextuality Degree 315
Abstract
The contextuality degree of a set of Pauli contexts is the least number of contexts that every noncontextual assignment violates. For the four-qubit hyperbolic quadric , with points and lines as contexts, Muller et al. conjectured from heuristic searches that the degree is and that the violated contexts of every optimal assignment form a dual polar space . We prove both conjectures. The lower bound has a short proof by hand: every doily () of the quadric contains ten Peres-Mermin grids covering each of its lines four times, so every assignment violates at least three of its fifteen lines, and averaging over the doilies gives . The equality case is local: an assignment is optimal exactly when it violates one ruling of one grid in every doily. Using this as a SAT encoding, we show that there are exactly optimal violated sets, one orbit of , each isomorphic to . The same argument gives the first lower bounds for all quadrics with lines in qubits. The degree theorem is kernel-checked in Lean 4, and the completeness of the enumeration is certified by a DRAT proof checked by the verified checker cake_lpr.
Introduction
The Kochen–Specker theorem [33, 6] rules out noncontextual hidden-variable models of quantum mechanics: there is no assignment of definite values to observables, independent of which compatible observables are measured alongside, that respects the functional relations quantum mechanics imposes on every set of commuting observables. The most transparent proofs use Pauli observables. In the Peres–Mermin square [46, 38, 39] nine two-qubit Pauli observables are arranged in a grid whose rows and columns are triples of commuting observables with product , except for one column with product . No assignment of values satisfies all six constraints. Such state-independent proofs underlie experimental tests of contextuality [11, 31, 3] and connect contextuality to the power of quantum computation [48, 28].
The non-identity -qubit Pauli observables, taken up to sign, are the points of the symplectic polar space of rank over , two observables commuting exactly when the corresponding points are orthogonal [53, 20, 58]. This dictionary has made finite geometry a natural language for observable-based contextuality [26, 60, 34, 52]. Any family of totally isotropic lines, each line carrying the sign of , defines a candidate contextuality configuration. De Boutray, Holweck, Giorgetti, Masson and Saniga [13] introduced the contextuality degree, the least number of contexts that a noncontextual assignment must violate, as a measure of how contextual such a configuration is. It governs both the classical bound of the associated noncontextuality inequality [12, 30] and the classical winning probability of the associated Mermin-type games [4, 30]. Computing it is a MAX-XOR-SAT problem, and exact values are known only for small configurations: the doily (3), the three-qubit space (63) and its quadrics (21 and 9) [13, 42, 50].
For four qubits the problem has resisted computation. The hyperbolic quadric has 135 points and 1575 lines. Muller, Saniga, Giorgetti, de Boutray and Holweck [43, Table 1] could only show that its degree is at most 500. Muller, Saniga, Giorgetti, Holweck and Kelleher {citep}[44 §5.1.2] then found, with a heuristic search, assignments violating only 315 lines, observed that the 315 unsatisfied lines are isomorphic to the dual polar space $DW(5, 2)$, and wrote: “So, we do believe that $d^{\mathrm{hyp}}_4 = 315$, with the understanding that the corresponding unsatisfied configurations are (always) isomorphic to $DW(5, 2)$.” Saniga, Holweck, Kelleher, Muller, Giorgetti and de Boutray {citep}[50 p. 24] single out a closely related question as “computationally rather challenging”, whose affirmative answer “would mean, among other things, that the degree of contextuality of a four-qubit hyperbolic quadric is 315”. Muller and Giorgetti {citep}[41 §5.3] and Muller’s thesis {citep}[40]` list 315 as an upper bound only.
Results. We settle both parts of this conjecture.
Theorem 11. Every hyperbolic quadric of the four-qubit space, with its 1575 lines as contexts, has contextuality degree exactly 315.
Proposition 14 and Theorem 15. In every optimal assignment, each of the 40 320 doilies of the quadric has exactly three violated lines, which form one ruling of one of its grids. There are exactly 240 sets of lines that arise as the violated set of an optimal assignment; they form one orbit of the orthogonal group , and each is isomorphic to . The first statement has a short proof by hand; the second is computer-assisted.
Theorem 17. For every , every hyperbolic or elliptic quadric of the -qubit space, with lines, has degree at least . This is tight for and for the four-qubit hyperbolic quadric, and to our knowledge it gives the first lower bounds for the elliptic four-qubit quadric and for all quadrics with qubits.
Corollary 18. The 1575 contexts give a state-independent noncontextuality inequality with classical bound exactly 945 and quantum value 1575; equivalently, a uniformly random context is satisfied with probability at most by any noncontextual assignment, and this bound is attained.
The proof of the lower bound is short and needs no computation, and we regard this as its main point: a value that resisted solver-based attacks follows from three classical ingredients. These are the parity argument behind the Peres–Mermin square; Sylvester’s model of the generalised quadrangle , which shows that a doily contains ten grids covering each of its lines four times; and Witt’s theorem, which makes the orthogonal group transitive on the lines of the quadric. The averaging principle itself is not new. Saniga et al. [50 §4.1] obtained the degree 63 of by averaging over its doilies, and Muller et al. [44 §4] bounded the degree of the whole space by a recursion over subspaces; as far as we know, it had not been applied to the quadrics, where it turns out to be tight. The rounding inside each doily is what makes the bound tight: averaging over the 67 200 grids of the quadric directly gives only . What we regard as the main new content is what the equality case gives: a local characterisation of all optimal assignments (Proposition 14), which turns the classification of the optima into an easy and certified computation (Theorem 15), together with a formal proof of the degree.
We formalised the theorem for the real quadric (the observables with an even number of factors) in Lean 4 with Mathlib [15, 59]; the kernel checks every finite fact, and the statement depends only on the standard axioms (§ 9). All code and certificates are available at https://github.com/BrianLi009/four-qubit-hyperbolic-quadric.
For the formal-methods reader. Computing a contextuality degree is a MAX-XOR-SAT problem, here with 135 variables and 1575 parity constraints of length three, and this one had resisted the solver-based attacks of [43, 44]. SAT solving has settled several open problems in combinatorics, often with the help of mathematical insight in the encoding [22, 65]. The present case is an extreme instance of that pattern: the mathematics settles the optimisation problem completely, and what remains for the solver, the classification of all optima, becomes easy only after the proof is turned into constraints. Sections 10.2 and 10.3 give the encoding and a comparison: direct MaxSAT and cardinality formulations do not finish within 30 minutes, while local cardinality constraints over doilies, together with redundant clauses derived from Proposition 10, enumerate all optimal solutions in about 30 seconds; the final unsatisfiability, which gives completeness, is certified by a DRAT proof checked by drat-trim and by the verified checker cake_lpr. Section 9 describes the Lean proof, in particular how 191 kernel evaluations were restructured to fit in 2.2 GB of memory, and Section 10.4 lists the running time of every computation.
Outline. Section 2 reviews related work and Section 3 sets up the geometry and the symmetries of the problem. Section 4 proves that every doily of a quadric has degree at least 3. Section 5 proves the main theorem, Section 6 studies the optimal assignments, and Section 7 extends the lower bound to all quadrics. Section 8 discusses the physical consequences, Section 9 the Lean proof, Section 10 the encodings, certificates and running times, and Section 11 open problems.
Related work
Contextuality. The Kochen–Specker theorem [33, 6] and its many proofs are surveyed by Budroni, Cabello, Gühne, Kleinmann and Larsson [10]. Proofs with Pauli observables began with the Peres–Mermin square and Mermin’s pentagram [46, 38, 39]; Waegell and Aravind constructed families of observable-based proofs in the -qubit Pauli group [63], and Trandafir, Lisoněk and Cabello characterised the irreducible magic sets of qubits [60]. State-independent contextuality was turned into experimentally testable inequalities by Cabello [11, 12] and tested with trapped ions and photons [31, 3]; tests of whole symplectic polar spaces on noisy quantum computers were reported by Holweck [24]. Quantitative measures of contextuality include the contextual fraction of Abramsky, Barbosa and Mansfield [1], in the sheaf-theoretic framework of [2]; the contextuality degree studied here is a combinatorial measure for observable-based proofs, closely tied to the classical value of Mermin-type games [4, 30]. Contextuality is a resource for quantum computation: for magic-state injection [28], for measurement-based computation [48], and for qubit computation models [7].
The finite geometry of Pauli observables. The identification of the -qubit Pauli group modulo phases with the symplectic polar space is due to Saniga and Planat [53], with general qudit versions by Havlicek, Odehnal and Saniga [20] and Thas [58]. This dictionary has been used to classify contextual configurations: Mermin pentagrams as ovoids and their three-qubit taxonomy [51, 36], the Veldkamp spaces of multiple qubits [62], the split Cayley hexagon of order two and its role for three qubits [35, 47, 25], the polar subspaces of small rank [49], and the real four-qubit Pauli group as a hyperbolic quadric of with its ovoids [52]. The Lagrangian Grassmannian relates -qubit and -qubit Pauli groups [27, 34]; for it maps the 135 planes of to the points of the four-qubit hyperbolic quadric, which is how appears in our problem. For the geometry itself we rely on [45, 23, 57, 14].
The contextuality degree. De Boutray, Holweck, Giorgetti, Masson and Saniga [13] introduced the degree and computed it for the quadrics of three qubits (21 and 9). Muller et al. enumerated the multi-qubit doilies and showed that every doily has degree 3 [42]; they then computed degrees of many configurations with SAT solvers and sparse linear algebra, found that the whole three-qubit space has degree 63, and gave upper bounds for four and five qubits [43]. A heuristic search then gave the upper bounds of Table 1 for four to seven qubits, together with the conjectures that we prove [44]. Saniga et al. explained the value 63 by averaging over doilies and showed that the unsatisfied configurations of are classically embedded split Cayley hexagons [50, 25]; Muller and Giorgetti identified an abstract structure that determines the degree of observable-based proofs [41], and Muller’s thesis collects the algorithmic side [40]. Our lower bound uses the same averaging principle as [50, 44]; what is new is that, applied to the doilies of a quadric, it is tight, and that its equality case characterises the optimal assignments.
SAT solving and formal proof in mathematics. SAT solvers have settled several long-open combinatorial problems, among them the Boolean Pythagorean triples problem [22], Schur number five [21] and the last open dimension of Keller’s conjecture [9]. Combining SAT solvers with computer algebra (SAT+CAS) was proposed in MathCheck [65]. For Kochen–Specker sets in three dimensions, the minimum size was bounded from below by exhaustive search [61], then by SAT modulo symmetries with co-certificate learning [32] and by SAT+CAS with certified proofs [37]. Unsatisfiability results are made checkable by clausal proofs: DRAT proofs checked by drat-trim [64], and verified checkers such as cake_lpr [56]. Parity constraints such as ours are handled natively by solvers with Gaussian elimination [55]; MaxSAT solvers such as RC2 [29] address the optimisation version directly. Large finite computations have been formally verified before in proof assistants, notably in the proofs of the four colour theorem in Coq [17] and of the Kepler conjecture in HOL Light and Isabelle [19]. Our use of SAT differs from these in that the solver is not used to establish the main theorem: the degree is proved by hand and kernel-checked in Lean [15, 59], and the solver is used only for the classification of the optima, where the encoding is made tractable by lemmas from the proof (§ 10.3).
Pauli observables, quadrics and the contextuality degree
The symplectic polar space
Write , , , for the Pauli matrices. A vector labels the Hermitian -qubit Pauli observable
and every Pauli observable is for a unique . For the products satisfy for an exponent , which is the sum over the qubits of the single-qubit exponents (, , , and for the reversed products). Consequently $P(u) and commute if and only if the symplectic form
vanishes, and they anticommute otherwise. The points of are the nonzero vectors of , that is the non-identity observables up to sign, and its lines are the triples with , that is the triples of pairwise commuting observables whose product is .
Quadrics and the real observables
The quadratic forms on with polar form are
where counts the factors of modulo 2. Since , the singular points of are exactly the real (symmetric) Pauli observables [52]. The form is hyperbolic, an orthogonal sum of hyperbolic planes, and , so is hyperbolic when and elliptic when . For four qubits there are 136 hyperbolic quadrics and 120 elliptic quadrics . A hyperbolic quadric of has 135 points and 1575 lines, with 35 lines through each point and 3 points on each line [23]. The lines of a quadric are the lines of all of whose points are singular; two singular points are collinear on the quadric if and only if , since .
Contexts, signs and the degree
Definition 1. A configuration is a set of points of together with a set of lines on them, the contexts. The sign of a context is the bit with . An assignment is a map from the points to , the value standing for the outcome of . It violates if , and the contextuality degree is the least number of contexts violated by an assignment [13].
A noncontextual hidden-variable model assigns to each observable a fixed outcome, and quantum mechanics requires the outcomes of , , to multiply to ; so is the least number of these constraints that any such model must break. For the configuration of all points and lines of the quadric we write .
Two kinds of symmetry leave the degree unchanged.
Lemma 2 (Re-signing). Replacing the observable by toggles the sign of every context through . The assignment (which changes the value at only) violates, after the replacement, exactly the contexts that violates before it. Hence the replacement preserves the degree.
Lemma 3 (Clifford transport). Let be a Clifford unitary, with for a symplectic map of and a function . If is a context of , then has sign . Consequently violates exactly when violates , and .
Proof. Conjugate by .
Every symplectic map of is induced by a Clifford unitary [18, 16]. For instance, for the unitary induces the symplectic transvection : it fixes when and sends it to otherwise. If then , so carries the quadric onto . Together with Lemma 3, this gives:
Corollary 4. All 136 hyperbolic quadrics of have the same contextuality degree, and so do all 120 elliptic quadrics.
Proof. For the hyperbolic quadrics, with carries to . For the elliptic ones, is transitive on the quadratic forms of a given type with polar form [57].
The 136 hyperbolic quadrics fall into three classes by their number of negative lines (532, 604 and 612) [43]; re-signing (Lemma 2) and Clifford transport (Lemma 3) change this number without changing the degree, so it plays no role below.
Grids, doilies and their degree
Lemma 5 (Odd sets). Let be a family of contexts in which every point occurs an even number of times and whose signs have odd sum. Then every assignment violates an odd number, and in particular at least one, of the contexts of .
Proof. Modulo 2, the number of violated contexts is .
A grid is a generalised quadrangle : nine points () and six lines, the three rows and the three columns . The rows form one ruling and the columns the other.
Lemma 6 (Peres–Mermin parity). Let nine Pauli observables form a grid in which every row and every column is a context, and in which and anticommute whenever and . Then the six contexts have signs of odd sum.
Proof. Let and be the signs of the rows and the columns, so that the products of the rows and the columns are and . The product in row-major order equals . Reordering it into column-major order exchanges the relative order of and exactly when and . There are nine such pairs and each anticommutes, so the column-major product is . It also equals , so is odd.
By Lemma 5 (each point lies on one row and one column), every assignment violates an odd number of the six lines of such a grid. This is the familiar argument for the Peres–Mermin square [46, 38]; it also shows that every grid of is contextual [26].
A doily of a quadric of is the configuration of singular points and lines of inside a 5-dimensional subspace on which is nondegenerate. Since is odd and the characteristic is 2, the restriction of to is always degenerate; nondegenerate means that its radical is one-dimensional, spanned by a vector with , so that is a parabolic form on . It is a parabolic quadric , a generalised quadrangle with 15 points and 15 lines [45, 23].
Lemma 7. Let be a doily of a quadric and a grid (nine points and six lines of forming a ). Two points of that are not collinear in anticommute.
Proof. Let be non-collinear in . Two points of commute if and only if they are collinear in , because and means that is a line of the quadric. Suppose are collinear in . Let be a line of through ; then . In the grid, is collinear with exactly one point of . So in the point is collinear with two points of the line , contradicting the axiom of a generalised quadrangle.
Lemma 8. A doily contains ten grids such that every line of the doily lies in exactly four of them and any two intersecting lines lie in exactly two of them.
Proof. is unique up to isomorphism and has Sylvester’s model [45] (Figure 1): the points are the 15 two-element subsets (duads) of and the lines are the 15 partitions of into three duads (synthemes), with inclusion as incidence. For a partition of into two triples, the 9 duads meeting both and correspond to , and the synthemes made of such duads to the 6 bijections . Two bijections share duads. Identifying and with , this is 0 when is a 3-cycle and 1 when it is a transposition. So the even bijections are three pairwise disjoint lines covering the nine duads, and so are the odd ones, and every even bijection meets every odd one in exactly one duad: the nine duads and six synthemes form a grid. This gives ten grids, one for each of the partitions. A syntheme lies in the grid of exactly when each of its duads meets both and , which leaves partitions. Two synthemes sharing the duad , say and , both lie in the grid of iff are separated, is separated from and , and from and , which leaves the two partitions and .

Figure 1. A doily in Sylvester’s model: the points are the duads of and the lines the synthemes (Lemma 8). The filled points and the coloured lines form the grid of the partition ; the three dashed lines are one of its rulings. By Proposition 14, an optimal assignment violates exactly such a ruling in every doily of the quadric.
Remark 9. These ten are in fact all the grids of the doily, but only the stated multiplicities are used below. We also checked, on all 40 320 doilies of the four-qubit hyperbolic quadric, that each has exactly ten grids with these multiplicities (Section B).
Proposition 10. Every doily of a quadric of , with the signs inherited from the Pauli operators, has contextuality degree at least 3. If an assignment violates exactly three of its lines, then they are pairwise disjoint and form a ruling of one of its grids, and each of the other nine grids contains exactly one of them.
Proof. Let be an assignment and the set of violated lines of the doily . Let run over the ten grids of Lemma 8. By Lemmas 5 to 7, every meets in an odd number of lines, and by Lemma 8,
The left side is a sum of ten odd numbers, so and . If , the ten odd numbers sum to 12, so exactly one grid contains three violated lines and the other nine contain one each. Two intersecting violated lines would lie in two common grids (Lemma 8), each then containing at least two, hence three, violated lines; so the three violated lines are pairwise disjoint. They lie in , and three pairwise disjoint lines of a grid form a ruling.
The bound is attained: every doily has degree exactly 3 [42 Prop. 1], [13], which we also checked by brute force over the assignments of each doily of the four-qubit hyperbolic quadric.
The main theorem
Theorem 11. Every hyperbolic quadric of the four-qubit space, with its 1575 lines as contexts, has contextuality degree exactly 315.
Proof. Lower bound. Let be a hyperbolic quadric and the set of its doilies. The orthogonal group maps doilies to doilies, and it acts transitively on the lines of by Witt’s theorem [57], since any linear isometry between two totally singular 2-spaces extends to . The set is not empty (an example is given in Section A); so every line lies in the same number of doilies, and counting incidences gives . For an assignment with violated set , Proposition 10 gives
(In fact and .)
Upper bound. The assignment of Section A violates exactly 315 of the 1575 lines of the real quadric . Its existence was first shown by Muller et al. [44]; ours was found independently by local search. By Corollary 4, every hyperbolic quadric has an assignment with 315 violations; explicitly, for the assignment of Lemma 3 works for , which we also checked for all 135 such .
Remark 12 (The role of the doily). Averaging with grids instead of doilies gives only , that is , because a grid can have a single violated line out of six. The doily gains from the rounding . Its violated fraction is exactly the violated fraction of the quadric, so the lower bound is tight.
Remark 13 (Averaging over three-qubit sections). The quadric has 120 parabolic hyperplane sections , the sections by with ; each is a copy of with 315 lines, and each line of lies in 24 of them. If each section, with its inherited signs, has degree 63, which follows from [50] together with [41 Thm. 5], the same averaging gives . This route was implicitly available from [44 §5.1.2], which notes the 120 sections, but it was not drawn there. Since the degree 63 of is itself obtained by averaging over doilies [50 §4.1], it is the doily argument in two stages; the direct argument needs only Proposition 10.
The optimal assignments
Equality in the averaging argument constrains every optimal assignment locally.
Proposition 14. Let be an assignment of a hyperbolic quadric violating exactly 315 lines. Then every one of its 40 320 doilies contains exactly three violated lines; they are pairwise disjoint and form a ruling of one of the ten grids of the doily, and each of the other nine grids contains exactly one of them. Conversely, if is a family of doilies covering every line equally often, an assignment violating exactly three lines of every doily of is optimal.
Proof. If , the inequality is an equality, and each term is at least 3, so each term is 3. Apply Proposition 10. Conversely, if covers every line times and every doily of has three violated lines, then and , so .
The converse turns the global optimisation problem over assignments into local constraints, each on the fifteen lines of a doily, and this makes a complete enumeration easy.
Theorem 15 (computer-assisted). For the real quadric there are exactly 240 sets of lines that are the violated set of an optimal assignment, and each is the violated set of exactly 256 assignments, so that there are 61 440 optimal assignments. The 240 sets form a single orbit of the orthogonal group acting on the lines. Each of them, as a point–line geometry, is isomorphic to the dual polar space : it has 315 lines through all 135 points, with 7 lines through every point. By Lemma 3 the same holds for every hyperbolic quadric of .
Proof (computer-assisted). Enumeration. Section 10.2 gives a propositional formula whose models are exactly the optimal assignments (Lemma 19). Enumerating its models with a SAT solver, each new violated set being excluded by a blocking clause, yields 240 violated sets, after which the formula is unsatisfiable; that last unsatisfiability is certified by a DRAT proof checked by drat-trim and, converted to LRAT, by the verified checker cake_lpr [56]. The certificate covers only this unsatisfiability; the correctness of the encoding is Lemma 19, proved by hand (see § 10.2). Gauge. Two assignments have the same violated set if and only if their difference satisfies on every line. The line–point incidence matrix has rank 127 over , so these differences form a space of dimension , namely the restrictions of the 256 linear functionals on . Consequently, each realisable violated set comes from exactly assignments. Orbit. The orthogonal group of is generated by the 120 transvections with (reflections), each induced by a Clifford unitary [57]. By Lemma 3 each maps violated sets of optimal assignments to violated sets of optimal assignments. Starting from the violated set of our witness, the orbit under these generators has exactly 240 elements; linear algebra over confirms that each of them is the violated set of some assignment, independently of the SAT solver, and the orbit coincides with the enumerated list. Since , the stabiliser of a violated set has order , the order of the automorphism group of . Isomorphism. The dual polar space has as points the 135 planes (maximal totally isotropic subspaces) of and as lines its 315 lines [14]. For each of the 240 violated sets, a backtracking search finds a bijection from the planes of to the points of . We check that, for every line of , the three planes containing map to a violated line, and that these images are exactly the 315 violated lines.
Theorem 15 confirms the second half of the conjecture of [44]: the unsatisfiable configurations of the four-qubit hyperbolic quadric are always isomorphic to . Muller et al. explained why one should expect this: contains 120 split Cayley hexagons of order two, as many as the quadric contains three-qubit subspaces , and the unsatisfied configurations of are exactly the classically embedded hexagons [44, 50].
Remark 16 (Optimal assignments are not quadratic). The assignments of the form , for a quadratic form on , violate the line exactly when , where is the polar form of . An exhaustive search over all alternating forms shows that none violates fewer than 532 lines, the number of negative lines, attained by . So no optimal assignment is quadratic.
A lower bound for all quadrics
The argument of § 5 uses only the doilies of the quadric and the transitivity of its orthogonal group on lines.
Theorem 17. Let and let be a hyperbolic quadric , an elliptic quadric , or the whole space , with all its lines as contexts. Then .
Proof. For a quadric , a nondegenerate 6-dimensional subspace of type or exists for (take three of the hyperbolic or elliptic planes of an orthogonal decomposition), and its quadric contains parabolic sections ; so has doilies. is transitive on the lines of by Witt’s theorem, and Proposition 10 applies to every doily. The argument of Theorem 11 gives . For , use the doilies of all its quadrics: permutes them and is transitive on the lines.
For this recovers the bound of [44 eq. (11)], which was obtained by a recursion over subspaces. The number of lines follows from the fact that the lines of a quadric through a point correspond to the points of the quadric of rank one less: , with points on Table 1 compares the bound with the known exact values and with the heuristic upper bounds of [44].
Table 1. The doily bound of Theorem 17 against the known values. The quadric bounds for and for are, to our knowledge, the first lower bounds stated for these configurations.
The bound is tight in the four cases where the degree is known. In the other cases the heuristic upper bounds are much larger, between and . Whether the doily bound is tight for , as it is for and , is the natural next question.
Physical consequences
A noncontextuality inequality with an exact classical bound. For a configuration with contexts , consider the sum of the signed correlators
where each correlator is estimated by measuring the three commuting observables of jointly or in sequence [11, 12]. Quantum mechanics gives , the number of contexts, in every state, because . A noncontextual model that assigns the outcomes satisfies the constraints of the non-violated contexts and violates the others, so , and mixtures of such models do no better [30].
Corollary 18. For the 1575 contexts of a four-qubit hyperbolic quadric, every noncontextual hidden-variable model satisfies , the bound is attained, and quantum mechanics gives in every four-qubit state. Equivalently, if a context is chosen uniformly at random, the best strategy based on a context-independent assignment of outcomes to observables succeeds with probability exactly , whereas ideal quantum measurements satisfy the context constraint with certainty.
The inequality is exact, but it is not stronger than known ones: the ratio of the classical to the quantum value, , is the same as for the doily (), the three-qubit hyperbolic quadric () and the generalised quadrangle () [30]. Although has 105 times as many contexts as the doily, the two configurations have the same minimum violated fraction, . If measurement noise uniformly scales every ideal signed correlator by a visibility , the inequality is violated exactly when , as for the doily. Its interest is rather that the classical bound is known exactly for a configuration this large, and that for all observables are real, so the test needs only real-amplitude (rebit) measurements. By Theorem 17, every quadric of qubits violates at least a fifth of its contexts in every noncontextual model, so its ratio is at most ; the open question is which of them have a violated fraction strictly above , that is a ratio strictly below . The heuristic upper bounds of [44] for , and are all exactly of their lines, which leaves open a ratio as low as .
Where the contextuality sits. Proposition 14 says that in every optimal noncontextual model, the failures are spread perfectly evenly: each doily of the quadric fails on exactly one ruling of one of its grids. Theorem 15 adds that the failures form one rigid geometric object, a , unique up to the symmetry of the quadric. This is the four-qubit analogue of the three-qubit picture of [50], where the unsatisfied lines of always form a classically embedded split Cayley hexagon.
Formal verification in Lean
We formalised the theorem for in Lean 4 (v4.35.0-rc2) with Mathlib [15, 59]. The toolchain is the release candidate v4.35.0-rc2 because it is the one required by the Mathlib commit we use (045acef0); both are pinned in the repository (lean-toolchain, lake-manifest.json), so lake build fetches exactly these versions, and the build was reproduced from a fresh checkout on a second machine. The final statement is
theorem degree_eq_315 : Contextuality.Pauli.degree 0 = 315
where degree is the infimum, over all maps , of the number of violated contexts of the quadratic . #print axioms degree_eq_315 reports only propext, Classical.choice and Quot.sound: the proof uses no sorry, no added axiom, and in particular no native_decide, which would trust the compiler and its runtime.
Definitions. Basic.lean defines points as natural numbers with the encoding of § 3 (bit is ; bit is ), the symplectic form, the quadratic forms , the phase exponent as a sum of single-qubit exponents, the contexts as the pairs with satisfying the definition (computed inside Lean by filtering all $256^2$ pairs, so that the list of contexts is not an input), their signs, violation, and the degree. PhaseMatrix.lean proves that is the exponent in the product of the actual Pauli matrices over $\mathbb{C} (pauliMat_mul), so that the sign of every context is the sign of the operator product (context_product`); this ties the combinatorial definition to the physics.
Proof. OddSets.lean proves Lemma 5 (exists_violated_of_odd) for contexts given with point masks. The lower bound follows Theorem 11, with a smaller family than all 40 320 doilies: the 2520 doilies forming the union of the orbits of the qubit permutations on a selected set, which cover every line exactly 24 times (found by integer programming over the orbits). For each doily the data lists its fifteen lines in the order of a fixed labelling of , so that the ten grids of Lemma 8 sit at the same fifteen positions in every doily. The kernel then checks: (i) the keys of listed lines form a permutation of the 1575 contexts, each repeated 24 times (keys_perm); (ii) in every doily, each of the ten grids is an odd set: the exclusive-or of the point masks of its six lines is 0 and their signs sum to 1; (iii) each of the fifteen positions lies in four grids (sum_gridPos). Together with Lemma 5 this gives three_le_doily and , hence le_numViolated: for every assignment. A kernel evaluation of the witness (witness_check) gives the upper bound. Nothing produced by the scripts that generate the data is trusted: every property of the data used in the proof is re-evaluated by the kernel, and the data’s sortedness is never assumed.
Making the kernel computation fit on a laptop. All finite checks are discharged by decide +kernel, which evaluates a decidable proposition in the kernel. The kernel caches intermediate terms, so its memory grows with the number of reduction steps. Three naive checks did not fit: evaluating contexts 0 (a filter over pairs) in one check exceeded a 4 GB limit, and a single sort-and-compare of all 37 800 keys was estimated, from the measured growth, at about 10 GB. We restructured the proof so that no check is large:
Q8PlusContexts.leanstates the contexts as 64 literal chunks and provescontexts_eq : contexts 0 = (List.range 64).flatMap cchunkby 64 separate kernel checks; every later check rewrites with it instead of recomputing the filter.
The permutation check (i) is split twice: for each of 26 chunks of 100 doilies, a merge sort of its 1500 keys equals a literal bucketed by
key/1024(sortOK); for each of the 64 buckets, the merged pieces from the 26 chunks equal the corresponding chunk of contexts, each repeated 24 times (bucketOK). The merge functions are proved to permute their input (mergeTree_perm) and a lemma on exchanging twoflatMapsup to permutation (flatMap_comm_perm) glues the chunks, so the correctness of the sorting is never assumed.
Each Lean file imports only the Mathlib modules it needs: importing all of Mathlib alone costs about 4 GB of memory.
The development has 191 decide +kernel checks. Table 2 lists its files.
| File | lines | build | content |
| Basic.lean | 133 | 10 s | definitions; degree |
| OddSets.lean | 144 | 34 s | Lemma 5; merge sort and its permutation lemmas |
| PhaseMatrix.lean | 86 | 27 s | phase rule for the Pauli matrices over |
| Q8Plus.lean | 240 | 16 s | the proof of degree_eq_315 |
| Q8PlusData.lean (generated) | 6 266 | 55 s | 2520 doilies, grid positions, witness |
| Q8PlusContexts.lean (generated) | 580 | 71 s | contexts in 64 chunks; 67 kernel checks |
| Q8PlusChecks.lean (generated) | 226 | 276 s | 120 kernel checks: cover, sorting, grids |
Table 2. The Lean development. Build times with one thread on the machine of § 10.4, Mathlib precompiled; the whole build takes under ten minutes, and the peak memory, reached on Q8PlusChecks.lean, is 2.2 GB.
The formalisation covers the real quadric . The other 135 hyperbolic quadrics follow from Corollary 4, which we checked by computer but did not formalise. The Lean proof does not formalise the general arguments of § 4: instead of Lemmas 7 and 8, the kernel checks the grid structure and the odd-set property directly on each of the 2520 doilies it uses. Likewise Theorem 17 for other quadrics and other is not formalised. Theorem 15 is not formalised; its certificate is the DRAT proof of § 10.2, checked by drat-trim and by cake_lpr.
Computations: encodings, certificates and costs
This section is written for readers who want to check or reuse the computations. All of them are in the repository; Table 4 lists their running times.
| Computation | tool | time |
all finite facts of the paper (verify_facts.py) | Python | 47 s |
| with the degree 3 of all 40 320 doilies by brute force over assignments | Python, NumPy | 55 s |
separately written re-check of the bound and the witness (independent_check.py) | Python, NumPy | 72 s |
search for a witness (find_witness.py) | Python | under 1 s |
enumeration of the 240 optimal violated sets (enumerate_optimal.py) | CaDiCaL 1.5.3 | 30 s |
| of which the final refutation | 2 s | |
| DRAT proof of the final refutation (39 MB) | CaDiCaL 3.0.1 | 25 s |
| DRAT check | drat-trim | 11–17 s |
| LRAT check of the converted proof | cake_lpr | 3 s |
orbit, realisability, 240 isomorphisms with (optimal_structure.py) | Python | 4 s |
table of lower bounds for all quadrics (general_bounds.py) | Python | 0.1 s |
| all quadratic assignments | C | 2.4 s |
Lean build of degree_eq_315 (Mathlib precompiled) | Lean 4 | under 10 min |
| axiom report | Lean 4 | 15 s |
Table 4. Running times of all computations (wall clock, one thread).
What is computed, and who checks it
Finite facts used in the proofs (numbers of quadrics, points, lines and signs; the doilies, their grids and multiplicities; the witness): computed by one Python program, recomputed by a second one written separately, and, for , re-evaluated by the Lean kernel. The signs are computed both from the phase rule and from matrix products.
Theorem 11: the lower bound is a proof by hand (§ 4 and § 5); the upper bound is the evaluation of the witness on 1575 lines. Both are kernel-checked in Lean for .
Theorem 15: the completeness of the list of 240 violated sets rests on the SAT encoding of § 10.2 and on a DRAT proof checked by
drat-trimand, as LRAT, by the verified checkercake_lpr. The orbit, the realisability of each set and the isomorphisms with are checked by separate code that does not use the SAT solver.
Remark on quadratic assignments: an exhaustive search in C.
The SAT encoding of the optimal assignments
The degree problem is an instance of MAX-XOR-SAT: 135 Boolean variables and 1575 parity constraints of length three, one per line, and the task is to satisfy as many as possible. Rather than optimise, we use Proposition 14 to characterise the optimum by local constraints.
Variables. for the 135 points and for the 1575 lines.
Parity. For each line , the eight clauses that forbid the assignments of with , so that holds iff violates (12 600 clauses).
Local cardinality. For each doily of a family covering every line equally often, “exactly three of the fifteen , , are true”, encoded by PySAT’s
CardEnc.equalswith its sequential-counter encoding [54], which combines an “at most 3” and an “at least 3” counter (144 clauses and 72 auxiliary variables per doily; these are PySAT’s sizes, smaller than those of the textbook encoding). We use either the 2520 doilies of the Lean proof or all 40 320.
Pair clauses (redundant). For any two intersecting lines of a common doily, the clause . There are 37 800 such pairs: through each point, two of its 35 lines lie in a common doily iff they are not coplanar on the quadric. These clauses are not derived by the solver: they are justified by Proposition 10, applied to every doily of the quadric (not only to those of ), and they are part of the input formula whose unsatisfiability the certificate checks.
Blocking clauses. After a model with violated set , the clause . Since every model has , it excludes exactly the models with violated set .
Lemma 19. With either family, with or without the pair clauses, the projections of the models onto the -variables are exactly the optimal assignments of .
Proof. By Proposition 14 (converse), every model is optimal. Conversely, an optimal assignment has exactly three violated lines in every doily, which are pairwise disjoint by Proposition 10, so it satisfies all cardinality and pair clauses with the auxiliary variables of the sequential counters set accordingly.
No symmetry breaking is used: the gauge freedom of § 6 leaves 256 models per violated set, and the blocking clauses act on the -variables only. The final formula, the base formula plus the 240 blocking clauses, has 183 150 variables and 413 520 clauses in the default configuration. CaDiCaL 3.0.1 [8] refutes it and writes a DRAT proof of 39 MB; drat-trim [64] verifies it, using 120 460 of the 560 025 lemmas in the run recorded in the repository (CaDiCaL’s proof differs slightly between machines; the formula itself is fixed by its SHA-256 hash in drat/check.log). The proof was also converted to LRAT by drat-trim (22 MB) and checked by the verified checker cake_lpr [56], whose correctness is proved in HOL4 down to machine code. The certificate establishes only that the final formula is unsatisfiable. Three parts of the argument are trusted rather than certified: the encoder, a short Python program that writes the formula; Lemma 19, including the justification of the pair clauses by Proposition 10; and the enumeration loop, whose only role is to add one blocking clause per violated set it finds, all of which appear in the certified final formula.
What made the enumeration easy
Muller et al. [43, 44] attacked the degree with SAT solvers and with heuristics directly, and the direct formulations remain hard. Table 3 compares, with the same solver and a time limit of 30 minutes, two direct formulations with the four variants of our encoding. The direct formulations are a MaxSAT instance (the parity clauses as hard clauses, as 1575 soft clauses, solved by RC2 [29]) and the decision problem “at most 314 violated lines” with a totalizer encoding [5], whose unsatisfiability is the lower bound of Theorem 11.
| Formulation | variables | clauses | result within 30 min |
| MaxSAT (RC2) | 1 710 | 12 600 + 1 575 soft | not solved |
| SAT, at most 314 violated (totalizer) | 18 562 | 1 268 978 | not solved |
| local cardinality, 2520 doilies | 183 150 | 375 480 | all 240 by 44 s; not refuted |
| local cardinality, 40 320 doilies | 2 904 750 | 5 818 680 | all 240 by 1363 s; refuted at 1447 s |
| local cardinality, 2520 doilies + pairs | 183 150 | 413 280 | all 240 by 29 s; refuted at 31 s |
| local cardinality, 40 320 doilies + pairs | 2 904 750 | 5 856 480 | all 240 by 403 s; refuted at 407 s |
Table 3. Formulations of the degree problem for , solved by CaDiCaL 1.5.3 through PySAT (RC2 with its default Glucose 3 oracle) on the machine of § 10.4, one thread, 30-minute limit. For the enumerations, the times are until the last of the 240 violated sets is found and until the final formula is refuted.
Three observations stand out. First, neither direct formulation finishes: RC2 does not reach the optimum and the solver does not refute “at most 314” within 30 minutes, although Theorem 11 shows that the answer is 315. The lower bound is therefore not merely faster to prove by hand; for these generic encodings it is out of reach of the solver in this time. Second, the local cardinality constraints make the search easy: every variant finds all 240 optimal violated sets. Third, completeness, the refutation after the last blocking clause, depends on the redundant pair clauses: without them the small family is not refuted within 30 minutes and the large one needs 84 s for the last call alone; with them the final call takes 2 s and 4 s. The pair clauses encode the second half of Proposition 10, that the violated lines of a doily are pairwise disjoint, so they are a lemma of the proof handed to the solver. The smaller family is also better: the 2520 doilies of the Lean proof give a formula 14 times smaller than all 40 320, and the full enumeration takes 31 s instead of 407 s.
Running times
All times in Table 4 are wall-clock times on a laptop (Apple M3, 8 cores, 16 GB, macOS 14.5), with one thread and at low priority while other programs were running, so they are upper bounds on what a dedicated machine needs. Software: Python 3.12.12 with NumPy 2.5.4 and PySAT 1.9 (which bundles CaDiCaL 1.5.3); the standalone CaDiCaL 3.0.1; drat-trim at commit 2e3b2dc; cake_lpr at commit a36874a; Lean 4 v4.35.0-rc2 with Mathlib at commit 045acef0.
Open problems
The elliptic quadric and the whole space. For four qubits, and from Theorem 17 and [44]. Every line of lies on 24 of the 120 elliptic quadrics, so would give and hence equality. The doily bound cannot reach 315 here, and neither can averaging over the 136 parabolic sections of , which also gives only ; larger sub-configurations are needed.
Five qubits. Is ? The heuristic upper bound 6975 of [44] is far above.
A conceptual proof of Theorem 15. Proposition 14 characterises the optimal violated sets by local conditions on doilies. Is there a direct proof that these conditions force a , for instance through the Lagrangian Grassmannian map from the planes of to the points of [27, 44]?
Higher rank. Does a hyperbolic quadric have degree whenever 5 divides , and are its optimal violated sets again a single orbit?
Code and data availability
All scripts, the witness, the SAT certificates and the Lean development are at https://github.com/BrianLi009/four-qubit-hyperbolic-quadric; Section B lists what each checks.
The witness and an example doily
The following assignment of violates exactly 315 of its 1575 lines. It gives the value 1 (outcome ) to the 71 observables below and 0 (outcome ) to the other 64 real four-qubit observables.
IIIX IIIZ IIXX IIXZ IIZX IIZZ IXIX IXIZ IXXZ IXZX IXZZ IYIY
IYYI IYYX IYZY IZII IZIZ IZXI IZYY IZZZ XIII XIIX XIXX XIYY
XIZI XXII XXXI XXXX XXYY XXZI XYXY XYYZ XZII XZXI XZXZ XZZI
XZZX YIIY YIXY YIYI YIYZ YXIY YXXY YXYI YXZY YYII YYXI YYZI
YZYX YZZY ZIIX ZIIZ ZIXX ZIXZ ZIZX ZXIX ZXIZ ZXXX ZXXZ ZXYY
ZXZX ZXZZ ZYIY ZYXY ZYYI ZYZY ZZII ZZXI ZZYY ZZZI ZZZZ
The 315 violated lines pass through every point, seven through each, and form a (Theorem 15).
An example of a doily of : the singular points of the subspace spanned by XIII, IXII, ZIII, IZIX and YIYI. Its fifteen points are XIII, IXII, XXII, ZIII, ZXII, IZIX, XZIX, ZZIX, YYIX, YIYI, YXYI, IYYX, XYYX, YZYX, ZYYX, and three of its fifteen lines are negative: {XXII, ZZIX, YYIX}, {ZXII, XYYX, YZYX} and {XZIX, YXYI, ZYYX}.
Reproducing the computations
From the folder code of the repository, with Python and the packages numpy and python-sat:
| command | reproduces |
python verify_facts.py --brute | every finite fact of Sections 3 to 5; the witness |
python independent_check.py | the same, separately written |
python enumerate_optimal.py --cnf | Theorem 15: the 240 sets and the final formula |
sh drat/check.sh | the DRAT proof, its check, and the LRAT check by cake_lpr (needs CaDiCaL and drat-trim; cake_lpr if present) |
python optimal_structure.py | Theorem 15: orbit, realisability, isomorphisms with |
sh sat_ablation.sh, sh sat_direct.sh | Table 3 |
python general_bounds.py | Table 1 |
sh quadratic/run.sh | the remark on quadratic assignments |
Table 5.
In the folder lean, run lake exe cache get to download the compiled Mathlib, then lake build, and finally lake env lean scripts/AxiomReport.lean for the axiom report. Every script exits with a non-zero status if a check fails.
References
- [1]Samson Abramsky, Rui Soares Barbosa, and Shane Mansfield. Contextual fraction as a measure of contextuality. Physical Review Letters, 119:050504, 2017.DOI
- [2]Samson Abramsky and Adam Brandenburger. The sheaf-theoretic structure of non-locality and contextuality. New Journal of Physics, 13:113036, 2011.
- [3]Elias Anselem, Magnus Rådmark, Mohamed Bourennane, and Adán Cabello. State-independent quantum contextuality with single photons. Physical Review Letters, 103:160405, 2009.
- [4]Alex Arkhipov. Extending and characterizing quantum magic games, 2012. arXiv:1209.3819.arxiv.org/abs/1209.3819
- [5]Olivier Bailleux and Yacine Boufkhad. Efficient CNF encoding of Boolean cardinality constraints. In Principles and Practice of Constraint Programming (CP 2003), volume 2833 of Lecture Notes in Computer Science, pages 108–122. Springer, 2003.DOI
- [6]John S. Bell. On the problem of hidden variables in quantum mechanics. Reviews of Modern Physics, 38:447–452, 1966.
- [7]Juan Bermejo-Vega, Nicolas Delfosse, Dan E. Browne, Cihan Okay, and Robert Raussendorf. Contextuality as a resource for models of quantum computation with qubits. Physical Review Letters, 119:120505, 2017.
- [8]Armin Biere, Tobias Faller, Katalin Fazekas, Mathias Fleury, Nils Froleyks, and Florian Pollitt. CaDiCaL 2.0. In Computer Aided Verification (CAV 2024), volume 14681 of Lecture Notes in Computer Science, pages 133–152. Springer, 2024.DOI
- [9]Joshua Brakensiek, Marijn Heule, John Mackey, and David Narváez. The resolution of Keller’s conjecture. In Automated Reasoning (IJCAR 2020), volume 12166 of Lecture Notes in Computer Science, pages 48–65. Springer, 2020.
- [10]Costantino Budroni, Adán Cabello, Otfried Gühne, Matthias Kleinmann, and Jan-Åke Larsson. Kochen-Specker contextuality. Reviews of Modern Physics, 94:045007, 2022.
- [11]Adán Cabello. Experimentally testable state-independent quantum contextuality. Physical Review Letters, 101:210401, 2008.DOI
- [12]Adán Cabello. Proposed test of macroscopic quantum contextuality. Physical Review A, 82:032110, 2010.DOI
- [13]Henri de Boutray, Frédéric Holweck, Alain Giorgetti, Pierre-Alain Masson, and Metod Saniga. Contextuality degree of quadrics in multi-qubit symplectic polar spaces. Journal of Physics A: Mathematical and Theoretical, 55(47):475301, 2022.
- [14]Bart De Bruyn. Near Polygons. Frontiers in Mathematics. Birkhäuser, 2006.
- [15]Leonardo de Moura and Sebastian Ullrich. The Lean 4 theorem prover and programming language. In Automated Deduction – CADE 28, volume 12699 of Lecture Notes in Computer Science, pages 625–635. Springer, 2021.DOI
- [16]Jeroen Dehaene and Bart De Moor. Clifford group, stabilizer states, and linear and quadratic operations over GF(2). Physical Review A, 68:042318, 2003.DOI
- [17]Georges Gonthier. Formal proof—the four-color theorem. Notices of the American Mathematical Society, 55(11):1382–1393, 2008.
- [18]Daniel Gottesman. The Heisenberg representation of quantum computers, 1998. arXiv:quant-ph/9807006.arxiv.org/abs/quant-ph/9807006
- [19]Thomas Hales et al. A formal proof of the Kepler conjecture. Forum of Mathematics, Pi, 5:e2, 2017.
- [20]Hans Havlicek, Boris Odehnal, and Metod Saniga. Factor-group-generated polar spaces and (multi-)qudits. SIGMA. Symmetry, Integrability and Geometry: Methods and Applications, 5:096, 2009.DOI
- [21]Marijn J. H. Heule. Schur number five. In Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence (AAAI-18), pages 6598–6606, 2018.
- [22]Marijn J. H. Heule, Oliver Kullmann, and Victor W. Marek. Solving and verifying the Boolean Pythagorean triples problem via cube-and-conquer. In Theory and Applications of Satisfiability Testing (SAT 2016), volume 9710 of Lecture Notes in Computer Science, pages 228–245. Springer, 2016.DOI
- [23]James W. P. Hirschfeld and Joseph A. Thas. General Galois Geometries. Springer, 2016.DOI
- [24]Frédéric Holweck. Testing quantum contextuality of binary symplectic polar spaces on a noisy intermediate scale quantum computer. Quantum Information Processing, 20(7):247, 2021.arxiv.org/abs/2101.03812
- [25]Frédéric Holweck, Henri de Boutray, and Metod Saniga. Three-qubit-embedded split Cayley hexagon is contextuality sensitive. Scientific Reports, 12:8915, 2022.DOI
- [26]Frédéric Holweck and Metod Saniga. Contextuality with a small number of observables. International Journal of Quantum Information, 15(4):1750026, 2017.DOI
- [27]Frédéric Holweck, Metod Saniga, and Péter Léváy. A notable relation between N-qubit and 2N−1-qubit Pauli groups via binary LGr(n, 2n). SIGMA. Symmetry, Integrability and Geometry: Methods and Applications, 10:041, 2014.
- [28]Mark Howard, Joel Wallman, Victor Veitch, and Joseph Emerson. Contextuality supplies the ‘magic’ for quantum computation. Nature, 510:351–355, 2014.
- [29]Alexey Ignatiev, Antonio Morgado, and Joao Marques-Silva. RC2: An efficient MaxSAT solver. Journal on Satisfiability, Boolean Modeling and Computation, 11:53–64, 2019.DOI
- [30]Colm Kelleher, Frédéric Holweck, and Péter Lévay. Exploiting finite geometries for better quantum advantages in Mermin-like games, 2024. arXiv:2403.09512.arxiv.org/abs/2403.09512
- [31]G. Kirchmair, F. Zähringer, R. Gerritsma, M. Kleinmann, O. Gühne, A. Cabello, R. Blatt, and C. F. Roos. State-independent experimental test of quantum contextuality. Nature, 460:494–497, 2009.DOI
- [32]Markus Kirchweger, Tomáš Peitl, and Stefan Szeider. Co-certificate learning with SAT modulo symmetries. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence (IJCAI-23), pages 1944–1953, 2023.arxiv.org/abs/2306.10427
- [33]Simon Kochen and Ernst P. Specker. The problem of hidden variables in quantum mechanics. Journal of Mathematics and Mechanics, 17:59–87, 1967.
- [34]Péter Lévay, Michel Planat, and Metod Saniga. Grassmannian connection between three- and four-qubit observables, Mermin’s contextuality and black holes. Journal of High Energy Physics, 2013(9):037, 2013.DOI
- [35]Péter Lévay, Metod Saniga, and Péter Vrana. Three-qubit operators, the split Cayley hexagon of order two, and black holes. Physical Review D, 78(12):124022, 2008.DOI
- [36]Péter Lévay and Zsolt Szabó. Mermin pentagrams arising from Veldkamp lines for three qubits. Journal of Physics A: Mathematical and Theoretical, 50(9):095201, 2017.DOI
- [37]Zhengyu Li, Curtis Bright, and Vijay Ganesh. A SAT solver + computer algebra attack on the minimum Kochen–Specker problem. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence (IJCAI-24), pages 1898–1906, 2024.
- [38]N. David Mermin. Simple unified form for the major no-hidden-variables theorems. Physical Review Letters, 65:3373–3376, 1990.pubmed.ncbi.nlm.nih.gov/10042855
- [39]N. David Mermin. Hidden variables and the two theorems of John Bell. Reviews of Modern Physics, 65:803–815, 1993.DOI
- [40]Axel Muller. Algorithmic studies of contextual quantum configurations. PhD thesis, Université Marie et Louis Pasteur (Franche-Comté), 2025. HAL tel-05351702.DOI
- [41]Axel Muller and Alain Giorgetti. An abstract structure determines the contextuality degree of observable-based Kochen-Specker proofs, 2024. arXiv:2410.14463.DOI
- [42]Axel Muller, Metod Saniga, Alain Giorgetti, Henri de Boutray, and Frédéric Holweck. Multi-qubit doilies: Enumeration for all ranks and classification for ranks four and five. Journal of Computational Science, 64:101853, 2022.DOI
- [43]Axel Muller, Metod Saniga, Alain Giorgetti, Henri de Boutray, and Frédéric Holweck. New and improved bounds on the contextuality degree of multi-qubit configurations. Mathematical Structures in Computer Science, 34:322–343, 2024. arXiv:2305.10225.DOI
- [44]Axel Muller, Metod Saniga, Alain Giorgetti, Frédéric Holweck, and Colm Kelleher. A new heuristic approach for contextuality degree estimates and its four- to six-qubit portrayals. Journal of Physics A: Mathematical and Theoretical, 58:215302, 2025. arXiv:2407.02928.DOI
- [45]Stanley E. Payne and Joseph A. Thas. Finite Generalized Quadrangles. European Mathematical Society, 2nd edition, 2009.DOI
- [46]Asher Peres. Incompatible results of quantum measurements. Physics Letters A, 151:107–108, 1990.DOI
- [47]Michel Planat, Metod Saniga, and Frédéric Holweck. Distinguished three-qubit ‘magicity’ via automorphisms of the split Cayley hexagon. Quantum Information Processing, 12(7):2535–2549, 2013.
- [48]Robert Raussendorf. Contextuality in measurement-based quantum computation. Physical Review A, 88:022322, 2013.
- [49]Metod Saniga, Henri de Boutray, Frédéric Holweck, and Alain Giorgetti. Taxonomy of polar subspaces of multi-qubit symplectic polar spaces of small rank. Mathematics, 9(18):2272, 2021.DOI
- [50]Metod Saniga, Frédéric Holweck, Colm Kelleher, Axel Muller, Alain Giorgetti, and Henri de Boutray. Hexagons govern three-qubit contextuality. Quantum, 9:1601, 2025. arXiv:2312.07738.DOI
- [51]Metod Saniga and Péter Lévay. Mermin’s pentagram as an ovoid of PG(3,2). EPL (Europhysics Letters), 97:50006, 2012.DOI
- [52]Metod Saniga, Péter Lévay, and Petr Pracna. Charting the real four-qubit Pauli group via ovoids of a hyperbolic quadric of PG(7,2). Journal of Physics A: Mathematical and Theoretical, 45:295304, 2012.DOI
- [53]Metod Saniga and Michel Planat. Multiple qubits as symplectic polar spaces of order two. Advanced Studies in Theoretical Physics, 1:1–4, 2007.
- [54]Carsten Sinz. Towards an optimal CNF encoding of Boolean cardinality constraints. In Principles and Practice of Constraint Programming (CP 2005), volume 3709 of Lecture Notes in Computer Science, pages 827–831. Springer, 2005.DOI
- [55]Mate Soos, Karsten Nohl, and Claude Castelluccia. Extending SAT solvers to cryptographic problems. In Theory and Applications of Satisfiability Testing (SAT 2009), volume 5584 of Lecture Notes in Computer Science, pages 244–257. Springer, 2009.DOI
- [56]Yong Kiam Tan, Marijn J. H. Heule, and Magnus O. Myreen. cake_lpr: Verified propagation redundancy checking in CakeML. In Tools and Algorithms for the Construction and Analysis of Systems (TACAS 2021), volume 12652 of Lecture Notes in Computer Science, pages 223–241. Springer, 2021.
- [57]Donald E. Taylor. The Geometry of the Classical Groups. Heldermann, Berlin, 1992.
- [58]Koen Thas. The geometry of generalized Pauli operators of N-qudit Hilbert space, and an application to MUBs. EPL (Europhysics Letters), 86:60005, 2009.DOI
- [59]The mathlib Community. The Lean mathematical library. In Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs (CPP 2020), pages 367–381, 2020.DOI
- [60]Stefan Trandafir, Petr Lisoněk, and Adán Cabello. Irreducible magic sets for n-qubit systems. Physical Review Letters, 129:200401, 2022.
- [61]Sander Uijlen and Bas Westerbaan. A Kochen-Specker system has at least 22 vectors. New Generation Computing, 34:3–23, 2016.DOI
- [62]Péter Vrana and Péter Lévay. The Veldkamp space of multiple qubits. Journal of Physics A: Mathematical and Theoretical, 43(12):125303, 2010.DOI
- [63]Mordecai Waegell and P. K. Aravind. Proofs of the Kochen-Specker theorem based on the N-qubit Pauli group. Physical Review A, 88:012102, 2013.DOI
- [64]Nathan Wetzler, Marijn J. H. Heule, and Warren A. Hunt, Jr. DRAT-trim: Efficient checking and trimming using expressive clausal proofs. In Theory and Applications of Satisfiability Testing (SAT 2014), volume 8561 of Lecture Notes in Computer Science, pages 422–429. Springer, 2014.DOI
- [65]Edward Zulkoski, Vijay Ganesh, and Krzysztof Czarnecki. MathCheck: A math assistant via a combination of computer algebra systems and SAT solvers. In Automated Deduction – CADE-25, volume 9195 of Lecture Notes in Computer Science, pages 607–622. Springer, 2015.DOI