LUMINA · INDEXED SEARCH

Hypothesis of indexed search

The working hypothesis. The question of P versus NP stays open. This page does not close it.

Notes of this continuation: hypothesis, indexing challenge, indexes, selection, calibration.

The question of P versus NP stays open. This text does not close it.

This page describes version 2026-11-28b, the program on the indexed-search page, and it keeps the earlier record underneath. The program published on 27 November 2026 is 2026-11-28a. It draws the whole most-negative dH page and keeps the last 20 movements.

Continuation of 28 November 2026

Horizon 1, dH, still says how many conflicts a move raises or lowers, and it still moves one step along the edges of the moved vertex. Horizon 2 looks only at the neighbors of that vertex. Removing color x opens x for those neighbors. Putting color y takes y away from them. Adjacent neighbors are one choice. Neighbors with no edge between them add. The stored key remains dH − put + cut. The page rank, once no non-tabu descent remains, is dH − quitar + poner. On the triangle, with every vertex on color 0, put is 2, dH is −2, cut is 0, and the key is −4.

Growing tabu adds one iteration each time a movement is taken. The first take lasts 1 iteration, the second 2, the third 3. A repeat is allowed when the iteration count is at least the last use plus the number of uses. A movement never taken is free. Tabu belongs to the movement. Another color of the same vertex is a different movement. A move whose score plus dH is strictly below the best score is still admitted.

How the indexes are maintained is on the indexes page. How a move is chosen is on the selection page. The calibration of this continuation is on the calibration page. The indexing challenge stays the same aim: precise, one clean step, and no claim about P versus NP.

This continuation has no polynomial bound on the number of moves, and no proof that the choice reaches zero on every instance that can be colored. The 19 harder graphs were not run. Branch::result still has no return.

What the biological operator set down

There is a graph and an initial coloring. The horizon-1 index knows, for each move, how many conflicts that move raises or lowers. That number is dH. A horizon N looks further: the edges, and the edges of those edges, as a domino chain of length N.

The idea is to go toward zero conflicts in a straight line. The length of that line would be N equal to the number of vertices: each vertex, once, to its color. The line may climb over ridges. A move with a worse dH is accepted when the opportunity further along is better. At the end of the line the conflicts are zero, because the index has already seen which moves belong on that line.

Computing the opportunity counts combinations. A larger horizon makes the index more expensive, determines the next move more strongly, and leaves less to chance. A smaller horizon leaves more ties, more uncertainty, and a more stochastic step. Horizon = number of vertices / 2 is the proposed balance between the cost of indexing and the number of iterations.

The aim is not to mix a deterministic method and a heuristic from the outside. It is the most efficient index that stays precise for a horizon n: when a move is made, only what that move changes is recomputed. Memory may be large. Opportunity calculations for vertices the move does not touch may run in parallel. What has to be found first is the indexing algorithm. That is the challenge on the indexing-challenge page.

What the 2017 base holds

src/indexed is the solver as left on 9 March 2017. Its index is horizon 1. There is no second number, the opportunity of a longer chain, in that 2017 index. Branch::result is marked NP!=P. solve() does not call it, and it does not return a value. That function will not be completed in order to force an answer.

An initial coloring enters with -D solution=n. Without that option every vertex starts at color 0.

Horizon 1, checked on 26 November 2026

This is the version the biological operator left. The horizon-1 index already moves one step. It does not rebuild the table.

start() builds the index once. Each solve() used to take the first move of the lowest dH bucket and call change(). change() walks only the edges of the moved vertex. For each neighbor it updates the old color and the new color of that vertex, and when the neighbor shares one of those two colors it shifts that neighbor's bucket by one place (movZ). At the end, when dH is not zero, it shifts the moved vertex's own buckets by -dH. The cost of one step is proportional to the degree and to the active pages of those neighbors, not to n·k.

The stored number is exact. For each candidate move, the bucket is the real change in monochromatic edges, and h1-h0 gives that same dH. The height of the chosen color is the number of conflicts incident to that vertex. zerocolor.score is the number of monochromatic edges in the whole graph. This was checked, move by move, against a count made from scratch:

solve() used to walk the whole chosen bucket and then ignore that walk. It also read one bucket past the end of the array. That did not change the chosen move. The empty walk was removed. The conflict sequence on myciel5 stayed identical. On queen8_8, 200000 steps still sit at 8 conflicts. The bottleneck on those graphs is not the cost of indexing: horizon 1 is already cheap, and many moves share the same dH. The first entry in the list was the 2017 tie-break. The tabu of 10, below, replaced it.

At that moment the horizon was still 1. The horizon-n domino was written later, in the opportunity-index section.

Calibration of that same base, after the empty walk was removed, closed 7 of 12 with zero monochromatic edges at 0.05 s: anna, david, games120, huck, myciel5, myciel6, and le450_25a. queen8_8, queen8_12, le450_5a, dsjc125.5, and r125.5 stopped at 600 s without printing a coloring. The gate stayed open and the 19 hard graphs were not launched. That run says nothing about P versus NP.

Tabu of the last 10 moves

Under that rule the horizon was still 1. change() was not touched: each iteration still moves the dH index one step, without rebuilding it. What changed is which move is chosen.

  1. solve() stores the move it has just made, the vertex-color pair. The ring holds the last 10. rand() is called once per iteration, with no srand.
  2. Pages are scanned from the most negative dH toward the most positive. When every move on a page is in the ring and score+dH is not strictly below best, the scan goes to the next page.
  3. The page contributes one random move among those that may be taken. One eligible move is that move. n eligible moves are one of those n.
  4. When score+dH is strictly below the best score seen, the page is accepted even if its moves are in the ring. Every move on one page has the same dH, so the draw includes the whole page.
  5. When every page is in the ring and none improves best, one random move is taken from the first non-empty page. Otherwise the search would stand still.

best starts at the score after start() and falls only when the score truly falls.

An external recount checked, at each step, that the index stayed exact and that the move obeyed this rule. myciel5 reached 0 in 27 steps, anna in 59, and queen8_12 in 162, with zero monochromatic edges and zero disagreements. On queen8_8, 2000000 steps of that audit lowered the plateau of 8 conflicts to a best score of 1, also with no disagreements. That audit recounts the whole graph at every step, so it is slower than the solver.

There is no iteration cap. iter only counts. The process runs until time, or a signal, stops it. SIGTERM, SIGHUP, and SIGINT let the current iteration finish, and then the coloring where it stopped is printed, in the form {color,...},. That line can seed another run. The source keeps these guards, even when a build does not turn them on:

#ifdef PrintPath
#ifdef PrintScore

PrintPath writes the vertex of each move. PrintScore writes score,best,iter. Without those flags the trace is not printed.

Calibration of this rule closed 9 of 12 with zero monochromatic edges. queen8_12 at 0.05 s and r125.5 at 0.75 s joined the seven above. queen8_8, le450_5a, and dsjc125.5 stopped at 600 s with no coloring. The 19 hard graphs were not launched. That run says nothing about P versus NP.

Another calibration the same day, with the stopped coloring printed, again closed 9 of 12. Those colorings were saved. On a solved graph the first line is the proper coloring and the second is the stop, after shrink. On the three that did not close there is one line. Those three were recompiled with -Dsolution=0 and that last coloring as the initial array: queen8_8 started from 2 conflicts, dsjc125.5 from 8, and le450_5a from 90. Another 600 s did not take them to zero. At the stop they stood at 1, 8, and 90 conflicts. Those later colorings were saved.

The dH-page choice of this section was replaced by the opportunity key. The ring of 10, the aspiration on score+dH, the signal, and the lack of a cap remain.

The straight line does exist

When the graph has a proper coloring with k colors, there is a sequence of at most n moves that reaches it from any initial coloring: each vertex is recolored once, to its final color. The states in between may have more conflicts than the current state. That is the ridge.

The index does not build that line. The line exists because the final coloring exists. At each step the index has to choose a move that is still on some such line. A wrong choice forces the same vertex to be touched again, and the search is no longer straight.

Two ways to look a distance N ahead

The first enumerates sequences of moves. At each step there are on the order of n·k candidates. The tree measures (n·k)^N. With N = n, or with N = n/2, that is exponential. That is not the index to build.

The second is the chain the biological operator described. A move changes the incident edges. Those edges push the neighbors. The horizon is the length of that chain. The state to store is an aggregate per move, not the list of the paths. If the aggregate is materialized as paths of length N, the cost is exponential again. On the selected subnet graph the maximum degree is 210. A chain that opens by the degree is already heavy at N = 3, and it is not a balance at N = n/2.

The algorithm being sought compresses the chain. For each move it stores how much opportunity to lower conflicts the domino of length n offers, and it updates that value only on the frontier the last move invalidated.

What this would say about P and NP

Coloring with k fixed, k at least 3, is NP-complete. That is why the cost of this index matters.

If an index exists with all three properties at once, the problem is in P, and therefore P = NP:

We do not have that index. Working out its complexity is the research. A cost, by itself, does not decide the question. If the exact horizon-n index turned out to be exponential, that would not prove P ≠ NP either. It would only say that this family of indexes is not polynomial. P ≠ NP is a statement about every algorithm.

Horizon = n/2 does not land in P by being half. It lands in P only if the cost of maintaining that horizon, multiplied by the number of moves, is polynomial. Until that cost is a formula, n/2 is the operating point the biological operator proposes to measure, not a demonstrated optimum.

Determinism and chance

At horizon 1 many moves share the same dH. The 2017 solver broke the tie by keeping the first entry in the list. That is a fixed order, not an opportunity. Later versions, in the 2016 archive, use rand() to break ties. Chance appears when the index cannot yet tell the moves apart.

A larger horizon separates moves that share a dH, and it can also prefer a worse dH when the chain that follows lowers more conflicts. The decision becomes more determined. Chance remains only inside a tie the horizon still does not split.

The balance stays empirical until there is a formula: for each n, measure the cost of one move, the ties that remain, and the moves until zero.

What was already tried, and does not refute this

An earlier trial of horizon 2 and horizon 3 was not this chain. It stored the minimum of opportunities already cached on the neighbors, and that value goes stale when another move changes the height pages. On an earlier stored coloring of that subnet graph, horizon 1 reduced the conflicts more than horizons 2 and 3, and horizons 2 and 3 were slower. That says a stale approximation is not enough. It says nothing against a precise horizon, recomputed only where the move reaches.

An earlier one-step opportunity, on the order of Δ² per color, reindexes the distance-2 neighborhood after a move. Without a proven polynomial bound on the number of moves, that search remains a heuristic.

Hypothesis of this reading

The line of at most n moves exists whenever a coloring exists. The index that follows it is a chain along edges, compressed, not a tree of sequences.

The compressed state worth seeking fits in memory proportional to n times the number of edges, colors, and the horizon. One number per vertex and color is small. One term per directed edge, color, and horizon step is the size not to pass while nothing more is required. One term per path is the enumeration that will not be stored.

If that state is updated in polynomial time per move, and the choices reach zero in polynomial time on every instance that can be colored, then this problem is in P and P = NP. Expecting that is not asserting it.

What is expected, and has to be measured: a small precise horizon reduces ties relative to dH. The first horizon that matched a count made again from scratch is horizon 1, and that count is dH. The first domino, horizon 2, is already in the code. Horizon = n/2 is tried when the cost per move is a formula, not before.

Parallelism serves to rebuild opportunities on frontiers that do not touch. It does not replace the incremental algorithm.

How work proceeds from here

Read this page before writing a new index.

The 2017 solver is not rewritten in order to test the hypothesis. The new index is new code, in this base, and it is compared with dH and with a fresh evaluation of the same horizon. It is already in src/indexed/Opportunity.hpp. In 2026-11-28a that file is the earlier attempt described in the last section. The section at the top of this page is version 2026-11-28b.

Each move keeps the index one step ahead. The whole table is not rebuilt when the frontier is enough.

Precise means: the stored number equals a from-scratch evaluation of that same horizon.

A run, a horizon, or a partial bound does not conclude P = NP or P ≠ NP.

Branch::result stays as it is.

Opportunity index in the 27 November 2026 publication

This section is version 2026-11-28a. The section at the top of this page is version 2026-11-28b. The numbers below, including a triangle put of 1 and a key of −3, belong to this earlier draft.

The key of a candidate that puts color c on vertex v, whose current color is s, is

dH(v, c) − put(v, c) + cut(v)

cut(v) is the opportunity of freeing s. put(v, c) is the opportunity taken away from the adjacency by occupying c. The key is stored that way. It does not choose the move. The page is the conflict change, most negative dH first, and the whole page is drawn. On r125.5, drawing the lowest key among the moves that do not lower the count left the search at two conflicts. The flat page itself is the path that reaches zero. A move that raises the count holds its vertex for the next twenty movements, so the next step does not undo that climb unless score+dH is strictly below best. A flat move does not hold its vertex. The default horizon is 2. -D Horizon=n changes it. When it is not defined, the source sets 2. The value is capped at the number of vertices. At horizon 0 the opportunity is 0 and the key is dH.

Opportunity is a breadth-first walk to that depth. The root is marked and is not computed again: in the triangle A—B—C—A, returning to A does not recompute it. Each vertex is computed once, at the nearest layer. The parent is the previous-layer neighbor with the smallest vertex id. The layer is ordered by that id, and the first to arrive claims the unmarked neighbors, so the number does not depend on edge order. Two vertices of the same layer are not expanded into each other: the edge B—C of the triangle is not a second computation.

Layer 1 uses the color and the direction of this evaluation. Deeper layers free the parent's color. A vertex whose color is already that color contributes 0 and is not expanded. The one-step decrease is the maximum of 0 and the opposite of the adjusted dH. The adjustment is −1 when the parent already holds that color, because the stored dH still counts that edge. The adjustment is +1 when the parent is about to occupy it, because after the put the child's dH rises by 1.

Vertices that would receive the same color from the same parent form one group. When two of them are adjacent, they cannot both keep that color. The group contributes the maximum-weight independent set, not the sum. In the triangle, B and C are one edge: the better of the two enters. When there is no edge between them, they do add. A clique keeps the maximum. A negative total is stored as 0. At horizon 2, the free continuation and the put penalty inside the node are both one step. At a larger horizon the free chain continues through what the child contributes, and the put penalty at that node is only the one-step decrease of those children, because each vertex is expanded once. Top-level cut and put are two separate evaluations, each with fresh marks. On the path 0—1—2—3, at horizon 3, after vertex 1 is painted with color 1, put(0, color 2) stayed 1 and cut(0) stayed 1, the same as at horizon 2. At horizon 1 both are 0, because that 1 lives in layer 2.

Two arrays sit beside dH. free_at[v] stores cut. take_at[c][v] stores put. Candidates sit in one linked list, the project's own: OppLink inherits from Element, and the list is a List. It is not ordered. The color already chosen leaves the list. The draw does not walk that list. A frontier update inserts at the tail, and that order was changing which tied move rand() drew. The draw walks the holds in vertex-then-color order. Eligible moves compete on the most negative dH. One rand() draws the whole page. The key is not read by that draw.

start() builds this table once, after the colors and dH exist. change() still maintains dH as in 2017. Then, when the index is already built, the step recomputes only the closed ball of radius Horizon+1. At horizon 0 the radius is 1, because dH still changes on the vertex and its neighbors. dH changes at distance at most 1. An opportunity of horizon H reads vertices out to distance H, so the roots at distance H+1 are exactly the frontier. Outside that ball the stored numbers are left untouched. The table is not rebuilt.

The cost of one step is, for each dirty root and each color, a walk of the edges inside that ball. dH is read in constant time from the bucket. On a dense graph the horizon-2 ball can be the whole graph. That is what the move can affect. It is not a tighter bound, and it is not a rebuild of a region the move does not reach. Memory is one list node per vertex and color, plus the two arrays. No term is stored per path. The independent set of a group is exact. When the group has no edges, it is the sum. When it is a clique, it is the maximum. Otherwise it is a search. On queen8_8 that search fits, because the neighborhood is dense. A large sparse group can be expensive: the cost follows the size of that group.

Selection draws the whole most-negative dH page, in vertex-then-color order. A move is admitted when it is outside the last 20 and its vertex is not held, or when score+dH is strictly below best. That test is the real change in conflicts, not the key. A climb, a move with dH greater than 0, holds its vertex for the next twenty movements. A flat move does not. When every move is tabu or held, the same page is drawn anyway. best falls only when the score truly falls. There is no iteration cap. The signal and PrintPath / PrintScore stay as they were.

An external recount compares the stored number with a fresh walk that does not read the buckets. They matched, with zero disagreements:

The horizon-1 recount still recounts dH. The choice it checks is the most negative dH among admitted moves. The whole page is drawn. It does not require a particular key.

On r125.5, k=36, from a blank coloring, shrinking that flat page by the lowest key left the path at iteration 122, while the score stayed 14. Every 600 s run of that rule stopped at two conflicts. Drawing the whole page does not leave it. Horizon 0 reached zero in 14301 steps, with no climb. The coloring uses colors 0 through 35 and has no monochromatic edge. The last vertex was 31. Horizon 2 followed the same vertices and the same scores. In 600 s it had taken 13227 of those steps. The score was 1, the best was 1, first reached at step 11417, and there was no climb. The clock stopped on the path, 1074 steps before zero. The first 96 steps took 206 s: the exact independent set of the still-monochrome neighborhood is large. Later steps ran at about 30 per second. The same opening is iteration 1, vertex 65, score 3739, and iteration 122, vertex 119, score still 14. The same day the twelve-graph calibration was run once, 600 s each. Nine reached a proper coloring: myciel5 in 0.05 s, myciel6 in 0.17 s, games120 in 0.20 s, huck in 0.30 s, queen8_8 in 0.85 s, queen8_12 in 2.06 s, anna in 3.27 s, david in 16.60 s, and r125.5 in 547.84 s. Each of those colorings has no monochromatic edge. Three stopped at 600 s with conflicts still present: le450_5a with 96, dsjc125.5 with 5, and le450_25a with 1320. Those three stopped colorings were compiled in as the start of a second 600 s run. le450_5a stayed at 96, dsjc125.5 stayed at 5, and le450_25a fell from 1320 to 1. None reached zero. The ring then grew from 10 to 20 and those three colorings were the next start. le450_25a reached zero in 83.04 s. le450_5a fell from 96 to 17, and dsjc125.5 from 5 to 3. Those two stopped at 600 s. The 19 hard graphs were not launched.

This does not put coloring in P. The cost per move is the ball, and on a dense graph that ball is the whole graph. There is no polynomial bound on the number of moves, and no proof that the choice reaches zero on every instance that can be colored. An exact horizon that turned out to be exponential would not prove P ≠ NP either. Branch::result still has no return. The 19 hard graphs were not launched.