|
| 1 | +# PET hybrid workflow (end-to-end) |
| 2 | + |
| 3 | +## Goal |
| 4 | + |
| 5 | +Run the current hybrid PET pipeline from a difficult target integer to a forward executable candidate plan. |
| 6 | + |
| 7 | +This workflow does **not** recover the exact PET of the target in general. |
| 8 | + |
| 9 | +It does this instead: |
| 10 | + |
| 11 | +1. probe partial certified structure from the target |
| 12 | +2. translate the probe into bridge constraints |
| 13 | +3. synthesize and rank PET-compatible candidates |
| 14 | +4. materialize a forward constructive plan for a selected candidate |
| 15 | +5. execute that plan and verify the resulting candidate generator |
| 16 | + |
| 17 | +## Core tools |
| 18 | + |
| 19 | +- `tools/partial_signature_probe.py` |
| 20 | +- `tools/pet_hybrid_bridge.py` |
| 21 | +- `tools/pet_hybrid_synthesize.py` |
| 22 | +- `tools/pet_candidate_plan.py` |
| 23 | +- `tools/pet_constructive_plan.py` |
| 24 | + |
| 25 | +Auxiliary research tool: |
| 26 | + |
| 27 | +- `tools/find_probe_status_examples.py` |
| 28 | + |
| 29 | +## Minimal end-to-end sequence |
| 30 | + |
| 31 | +Example target: |
| 32 | + |
| 33 | +- `N = 212262408` |
| 34 | + |
| 35 | +### 1. Probe the target |
| 36 | + |
| 37 | +```bash |
| 38 | +python tools/partial_signature_probe.py 212262408 --schedule 10 --json > /tmp/pet-probe-212262408.json |
| 39 | +``` |
| 40 | + |
| 41 | +This extracts: |
| 42 | + |
| 43 | +- certified known factors |
| 44 | +- residual classification |
| 45 | +- root lower bounds |
| 46 | +- exact root anatomy only if the probe closes it |
| 47 | + |
| 48 | +### 2. Build bridge constraints |
| 49 | + |
| 50 | +```bash |
| 51 | +python tools/pet_hybrid_bridge.py /tmp/pet-probe-212262408.json --json > /tmp/pet-bridge-212262408.json |
| 52 | +``` |
| 53 | + |
| 54 | +This converts probe output into: |
| 55 | + |
| 56 | +- hard constraints |
| 57 | +- soft uncertainty |
| 58 | +- synthesis hints |
| 59 | + |
| 60 | +### 3. Synthesize and rank candidates |
| 61 | + |
| 62 | +```bash |
| 63 | +python tools/pet_hybrid_synthesize.py /tmp/pet-bridge-212262408.json --json > /tmp/pet-synth-212262408.json |
| 64 | +``` |
| 65 | + |
| 66 | +This produces: |
| 67 | + |
| 68 | +- one or more candidate PET explanations |
| 69 | +- ranking |
| 70 | +- status-aware behavior where supported |
| 71 | + |
| 72 | +### 4. Build a forward plan for the selected candidate |
| 73 | + |
| 74 | +```bash |
| 75 | +python tools/pet_candidate_plan.py /tmp/pet-synth-212262408.json --rank 1 --json > /tmp/pet-candidate-plan-212262408.json |
| 76 | +``` |
| 77 | + |
| 78 | +This produces: |
| 79 | + |
| 80 | +- root primes |
| 81 | +- root exponents |
| 82 | +- forward steps |
| 83 | +- `constructive_plan` payload |
| 84 | + |
| 85 | +### 5. Execute the constructive plan |
| 86 | + |
| 87 | +```bash |
| 88 | +jq '.constructive_plan' /tmp/pet-candidate-plan-212262408.json > /tmp/pet-exec-plan-212262408.json |
| 89 | +python tools/pet_constructive_plan.py /tmp/pet-exec-plan-212262408.json --json |
| 90 | +``` |
| 91 | + |
| 92 | +This executes the plan and reports: |
| 93 | + |
| 94 | +- final integer |
| 95 | +- generator |
| 96 | +- final signature |
| 97 | +- local step history |
| 98 | + |
| 99 | +## What to check at the end |
| 100 | + |
| 101 | +The most important consistency checks are: |
| 102 | + |
| 103 | +- candidate planner output: |
| 104 | + - `matches_candidate_root_generator = true` |
| 105 | +- constructive execution output: |
| 106 | + - `already_minimal = true` |
| 107 | + - `generator = final_n` |
| 108 | + |
| 109 | +When those hold, the ranked candidate has been successfully materialized as a valid forward constructive PET history. |
| 110 | + |
| 111 | +## Residual status interpretation |
| 112 | + |
| 113 | +Current practical reading: |
| 114 | + |
| 115 | +- `prime-power-by-sympy` |
| 116 | + - often already yields `exact_root_anatomy = true` |
| 117 | + - usually does not require dedicated synthesis logic |
| 118 | + |
| 119 | +- `perfect-power-composite-base` |
| 120 | + - currently the best open structured residual for status-aware synthesis |
| 121 | + - supported by a dedicated candidate/ranking behavior |
| 122 | + |
| 123 | +- `composite-non-prime-power` |
| 124 | + - still open research territory |
| 125 | + - currently handled by generic strategies |
| 126 | + |
| 127 | +## Non-claim |
| 128 | + |
| 129 | +This workflow is **not** a replacement for integer factorization. |
| 130 | + |
| 131 | +It is a constrained structural reconstruction workflow under explicit uncertainty. |
0 commit comments