Repository navigation
Releases
v0.2.2
QUBOPreprocessing v0.2.2
Changelog
- Add shared-budget reduction scheduling and explicit scheduling policies while preserving existing scheduling defaults.
- Keep live workspace and undo state on an exact integer grid, with bounded dyadic caches and promotion before fixed-width overflow.
- Add opt-in integer normalization for exact Float64 export where the integer coefficients and adjusted scale round-trip exactly.
- See the full changelog for rounding, proof replay and compatibility details.
Merged pull requests:
- Add exact primitive-integer normalization for residual export (#104) (@bernalde)
- Keep exact workspace and undo numerators in persistent integer state (#105) (@bernalde)
- Centralize explicit preprocessing policies and observation accounting (#106) (@bernalde)
- chore(release): prepare QUBOPreprocessing v0.2.2 (#108) (@bernalde)
Closed issues:
- Perf: non-integer binary64 inputs keep Rational{BigInt} workspace state (about 10x slower to build) (#93)
The exact v0.2.2 source archive is preserved on Zenodo. Version DOI 10.5281/zenodo.24372363
v0.2.1
QUBOPreprocessing v0.2.1
Release 0.2.1 packages the tested additive preprocessing improvements: opt-in budgeted scheduling with family reports; recorded nearest-Float64 export rounding and precise exact-transport diagnostics; workspace construction and bounded precompilation improvements; and preparation/solver/reconstruction deadline accounting fixes. Existing scheduling and exact-export defaults remain. Broader acceptance work in #91, #93 and #95 remains open.
Selected source: c5bc8e5, tree 5050a4197600cd99d6809b9c9ee9efe4f76a8b70. Exact-head PR and merged-source CI/docs passed. Fresh-source candidate install/import, installed tests and smoke passed on Dantzig; normal General installation/import and tree verification follow publication.
Prepared with AI assistance under the maintainer's explicit staged release authorization.
Merged pull requests:
- fix(roof-duality): bound residual-SCC extraction and verification by deadline and work (#94) (#96) (@bernalde)
- Sampler: fall back to the original model when the reduction is small (#92) (#97) (@bernalde)
- feat(schedule): run reduction families under a shared time budget (#95) (#98) (@bernalde)
- feat(export): record nearest rounding and diagnose inexact residuals (#91) (#99) (@bernalde)
- perf(workspace): build exact caches with bounded dyadic accumulation (#93) (#101) (@bernalde)
- perf: precompile productive budgeted scheduling paths (#100) (#102) (@bernalde)
- Release v0.2.1 with the tested preprocessing improvements (#103) (@bernalde)
Closed issues:
v0.2.0
QUBOPreprocessing v0.2.0
Breaking changes
integerize_scale,Workspace,reset!andpreprocessdefault toatol = 0.0. Withintegerize_scale = true(thepreprocessdefault forrules !== :identity), only exact dyadic multipliers2^aare factored intoscale. Decimal coefficients such as0.1are no longer rounded unlessatol > 0is passed (#87, #89).DominanceCertificaterecords the source perturbation in two new fields. The 5- and 6-argument constructors still work.propertynames(::Workspace)lists only the public:perturbedand:max_perturbation.- Coercive witnesses and probing candidate order can differ from v0.1.5 (#86, #88).
Fixed
- On v0.1.5,
preprocess(model; rules = :mixed)could round decimal coefficients, then certify reductions of the rounded model. The snapshot now represents the input exactly by default.Workspace,ExportResult,ConditionedExportand certificates exposeperturbedandmax_perturbation, andverify_certificatechecks them.
Performance
coercive_field_witnessand:coercive/:extremalprobing order use Float64 when the coefficients fit, with an exact fallback. Proofs remain exact.- Exact dyadic integerization checks and scales in Float64.
Added
coercive_field_witness(ws; sequential = true): when every free field is zero, the sequential pass breaks the Z2 symmetry at one coupled anchor.- Cross-corpus coercive alignment tables in the benchmarks manual.
Merged pull requests:
- perf(probing,docs): Float64 coercive witness/ordering fast path, zero-field symmetry breaking, and cross-corpus alignment tables (#86) (#88) (@bernalde)
- fix(identity,certificates): make integerize_scale exact by default and record snapshot perturbation (#87) (#89) (@bernalde)
- chore(release): prepare v0.2.0 (#90) (@bernalde)
Closed issues:
v0.1.5
QUBOPreprocessing v0.1.5
Fixed & Performance
-
$O(1)$ isbits/SymbolTuple Deep-Copying &$O(M + k)$ Batch Proof-Step Copying (#84, #85):-
_deepcopy_tuplenow returnstimmediately in$O(1)$ whenn == 0 || isbitstype(eltype(typeof(t))) || eltype(typeof(t)) === Symboland indexes heterogeneous tuples viagetfield(t, i). -
_copy_proof_stepand_deepcopy_stepsdetect consecutive steps in the sameRoofDualityStep,SubmodularCutStep,_RoofSCCPairWitness, or_BlockEliminationWitnessbatch and reuse the deep-copied batch witness payload (flow_edges,block_phi), reducingexport_certificate,reductions,deepcopy(::DominanceCertificate), anddeepcopy(::ConditionedExport)from$O(k \cdot M + k^2)$ to$O(M + k)$ while maintaining full mutation independence.
-
-
Type-Erased
ConditionedExportCertificate &@nospecializeTuple Indexing (#84, #85):-
ConditionedExportnow storescertificateas a concrete-fieldNamedTuple{(:scope, :assumptions, :reduction_chain, :unchanged_representation, :proof), Tuple{Symbol, Tuple, Tuple, Bool, Any}}(_ConditionedCertNT), avoiding$O(K^2)$ LLVMLocalScancompilation on long interleaved heterogeneous reduction chains. -
_fill_index_map!,_build_export_linear,_build_export_quadratic, and_lift_state_implnow accept@nospecializetuple arguments and index viagetfield.
-
-
Zero-Promotion
_incrementalBound Initialization (#84, #85):-
_incrementalnow inspectssignbit(q.num)directly instead ofmin(0, q)/max(0, q), eliminating$4m$ temporaryRational{BigInt}(0, 1)promotions during workspace initialization.
-
Documentation
- Added the 7-collection
QUBOLib.jlv0.2.6(9,294-instance) corpus summary and theMQLib(3,002corpus +394out-of-corpus dense instances) benchmark tables todocs/src/benchmarks.mdanddocs/src/index.md.
Merged pull requests:
- O(M + k) batch witness export, type-erased ConditionedExport reduction_chain, and v0.1.5 release (#85) (@bernalde)
Closed issues:
- O(M + k) batch witness export, type-erased ConditionedExport reduction_chain, and v0.1.5 release (#84)
v0.1.4
QUBOPreprocessing v0.1.4
QUBOPreprocessing v0.1.4
Added
- Non-zero-field degree-3 Walsh–Hadamard elimination (
star_nonzero_hatmax_degree = 3whenever$\alpha_{123} = 0$ , #56, #57). - Shared-neighborhood co-flip cancellation (
:coflip_pair) and non-adjacent exact signed twin contraction (prove_twin,contract_twins!, #58, #59). - Roof-duality residual-SCC (
:roof_scc_pair,contract_scc = true) and two-branch probing (:probing_pair,:double_probe) 2-SAT pair equivalences (#60, #61). - 0-, 1-, and 2-separator Tarjan biconnected block elimination (
eliminate_block!,:block,enable_blocks = true, #62, #63). - Kernel-checked Lean 4 (
v4.33.1, Mathlibv4.33.1) formalization of all eight core theorems (180public theorems,360compiled constants across9modules inlean/, #54, #55, #68, #69, #72, #73, #74, #75, #76, #77). - Permanent end-to-end brute-force, operation-sequence, and certificate-tampering fuzz test suite (
test/fuzz.jl, #80, #81) and updated 6,292-instanceQUBOLib.jl(v0.2.4-data+6) /QOBLIB/QPLIB/MINLPLibbenchmark documentation (#82, #83).
Fixed & Optimized
- Replaced
$O(n)$ abstractlabels::Tuplescans with$O(1)$ label_vec::Vectorindexing (34.5xexport_certificateand 30.0xmaterializespeedup at$n = 32{,}000$ ), eliminated per-sizeNTuple{N}JIT recompilation indomain_map(15,300x first-call speedup at$n = 4{,}000$ ), and added concrete_Storageterm iteration and 53-bit rational hardwarefmainterval enclosures (#64, #65, #66, #67, #70, #78). - Recorded deduction-matched caller
assume!requests inst.pinsand replayed them in chronological order across structuralassume!rollbacks (#71, #79).
Merged pull requests:
- feat(lean): add kernel-checked Lean 4 formalization of gauge invariance, compositional reduction, Max-Cut triangle slack, and compression refutations (#54) (#55) (@bernalde)
- feat(elimination): generalize degree-3 elimination to all zero-cubic-Fourier (alpha_123 = 0) vertices (#56) (#57) (@bernalde)
- feat(relations): shared-neighborhood co-flip pair dominance (:coflip_pair) and twin/clique contraction (#58) (#59) (@bernalde)
- feat(relations,probing,roof): 2-SAT pair equivalences from roof-duality residual SCCs and double probing (#60) (#61) (@bernalde)
- feat(elimination): 0-, 1-, and 2-separator biconnected block elimination (#62) (#63) (@bernalde)
- Perf: Eliminate heterogeneous Tuple specialization in verify_certificate and speed up _enclose / _can_possibly_contract (#65) (@bernalde)
- Perf: Eliminate _Storage/_thaw dispatch, 53-bit rational BigFloat enclosures, and redundant relation checks (#66) (#67) (@bernalde)
- Lean 4: Formalize Theorem 5 — General 3-Variable Walsh–Hadamard Quadratic Interpolation & Non-Zero-Field Degree-3 Elimination Cones (#68) (#69) (@bernalde)
- Lean 4: Formalize Theorem 6 — Unified Shared-Neighborhood Co-Flip Cancellation & Non-Adjacent Twin Contraction (#72) (#73) (@bernalde)
- Lean 4: Formalize Theorem 7 — Quantitative Telescoping Energy-Repair Margins for Two-Branch Probing (#74) (#75) (@bernalde)
- Lean 4: Formalize Theorem 8 — Exact 0-, 1-, 2-, and 3-Separator Biconnected Block Elimination (#76) (#77) (@bernalde)
- Perf: linear label validation and no per-size recompilation for label/gauge tuples (#70) (#78) (@bernalde)
- Fix: keep deduction-matched assumptions across assume!'s structural rollback (#71) (#79) (@bernalde)
- test: promote brute-force, operation-sequence, and certificate-tampering fuzz suites into test/fuzz.jl (#80) (#81) (@bernalde)
- chore(release): prepare v0.1.4 and refresh corpus benchmark & Lean 4 docs (#83) (@bernalde)
Closed issues:
- feat(lean): add kernel-checked Lean 4 formalization of gauge invariance, compositional reduction, Max-Cut triangle slack, and compression refutations (#54)
- feat(elimination): generalize degree-3 elimination to all zero-cubic-Fourier (alpha_123 = 0) vertices (#56)
- feat(relations): shared-neighborhood co-flip pair dominance (:coflip_pair) and twin/clique contraction (#58)
- feat(relations,probing,roof): 2-SAT pair equivalences from roof-duality residual SCCs and double probing (#60)
- feat(elimination): 1-separator and 2-separator biconnected-component block elimination (#62)
- Perf: Eliminate heterogeneous Tuple specialization in verify_certificate and speed up _enclose / _can_possibly_contract (#64)
- Perf: Eliminate type-unstable _Storage/_thaw iteration, dyadic BigFloat enclosures, and redundant relation checks on dense graphs (#66)
- Lean 4: Formalize Theorem 5 — General 3-Variable Walsh–Hadamard Quadratic Interpolation & Non-Zero-Field Degree-3 Elimination Cones (#68)
- Perf: O(n²) label validation and per-model-size recompilation in export_certificate / materialize / domain_map (#70)
- assume! silently drops a caller assumption that matched a certified deduction after a later structural rollback (#71)
- Lean 4: Formalize Theorem 6 — Unified Shared-Neighborhood Co-Flip Cancellation & Non-Adjacent Twin Contraction (#72)
- Lean 4: Formalize Theorem 7 — Quantitative Telescoping Energy-Repair Margins for Two-Branch Probing (#74)
- Lean 4: Formalize Theorem 8 — Exact 0-, 1-, 2-, and 3-Separator Biconnected Block Elimination (#76)
- test: promote brute-force, operation-sequence, and certificate-tampering fuzz suites into test/fuzz.jl (#80)
- chore(release): update corpus benchmark & Lean 4 docs and prepare v0.1.4 (#82)
v0.1.3
QUBOPreprocessing v0.1.3
Added
- Added conditioned workspace coercive local-field and
$\mathbb{Z}_2$ gauge-invariance diagnostics (coercive_fields,coercive_field_ratios,coercive_field_ratio,zero_field_fraction,trivial_dominance_fraction,is_gauge_invariant) (#49, #50). - Added
coercive_field_witness(ws)as the default upper-bound witness forprobe_variables!(ws)and added:coerciveand:extremalcandidate orderings (#49, #50). - Added
is_integer_scaledandintegerize_scale(integerize_scale::Bool = falseonWorkspace/reset!to preserve rawexport_modelroundtrips, andintegerize_scale::Bool = (rules !== :identity)enabled by default inpreprocess) so decimal-scaled models use exact small-integer rational arithmetic (#51, #52).
Zenodo Archive:
- Version DOI (
v0.1.3):10.5281/zenodo.23768171 - Concept DOI:
10.5281/zenodo.23745876
Merged pull requests:
- feat: add conditioned coercive-field diagnostics, deterministic witness, and probing ordering (#50) (@bernalde)
- Factor decimal/dyadic denominators into model scale via integerize_scale (#52) (@bernalde)
- chore(release): prepare v0.1.3 (#53) (@bernalde)
Closed issues:
v0.1.2
QUBOPreprocessing v0.1.2
v0.1.2
- Bounded probing work on huge QUBO instances (
$n > 20{,}000$ ) and addedBigIntenclosure support so all 6,263QUBOLib.jl/QOBLIBinstances preprocess cleanly. - Fixed same-parity degree-2 tie-breaking on cycles in
:strongmode (src/identity.jl) to preserve at least one surviving optimum when all edges share equal slack. - Relaxed floating-point tolerance (
1e-5) forFloat64quadratic elimination bound enclosure on extreme-range instances. - Added the
QUBOLib.jl&QOBLIBCorpus Benchmark documentation page (docs/src/benchmarks.md) andCITATION.cff.
Merged pull requests:
- perf: eliminate NTuple specialization and O(m) exact fallbacks (#46) (#47) (@bernalde)
- chore(release): prepare v0.1.2 with QUBOLib/QOBLIB benchmark docs (#48) (@bernalde)
Closed issues:
- perf: eliminate NTuple specialization and O(m) exact fallbacks on large QUBOLib/QOBLIB instances (#46)
v0.1.1
QUBOPreprocessing v0.1.1
QUBOPreprocessing v0.1.1
Added
- Certified probing with reversible branch bounds and feasible witnesses (#34, #11).
- Optional certified roof-duality pass with strong persistency (#35, #12).
- Gauge-submodular component recognition and certified cut pass (#36, #19).
- Weighted Max-Cut preprocessing and exact reduction rules (#37, #18).
- Exact coefficient compression and sparsification audit (#44, #21).
- Native direct-backend,
QUBODrivers.jl, andToQUBO.jlevaluation and empirical decision matrices (#38–#43, #13–#17, #20).
Merged pull requests:
- build(deps): bump actions/checkout from 6 to 7 (#9) (@dependabot[bot])
- Certify QUBO–Ising conversion and spin gauge maps (#13) (#34) (@bernalde)
- feat: compose elimination, relation and persistency certificates (#14) (#35) (@bernalde)
- feat: degree-0/1/2 exact local elimination pass and queue (#36) (@bernalde)
- feat: add certified pair relations and reversible signed contractions (#16) (#37) (@bernalde)
- feat: implement guarded zero-field degree-three Ising star-triangle reduction (#17) (#38) (@bernalde)
- Add mixed exact reduction pass scheduling and 7-phase accounting (#20) (#39) (@bernalde)
- feat: add optional certified probing with reversible branch bounds and feasible witnesses (#11) (#40) (@bernalde)
- feat: add optional certified roof-duality pass with strong persistency (#12) (#41) (@bernalde)
- feat: add gauge-submodular component recognition and certified cut pass (#19) (#42) (@bernalde)
- feat: prototype certified weighted Max-Cut edge and triangle preprocessing (#18) (#43) (@bernalde)
- feat: audit exact coefficient compression and sparsification (#21) (#44) (@bernalde)
- chore(release): prepare v0.1.1 (#45) (@bernalde)
Closed issues:
- Bootstrap QUBOPreprocessing.jl and define its certified incremental API (#1)
- Deliver QUBOPreprocessing 0.1.0 documentation, install verification and ecosystem adoption (#7)
- Add optional certified probing with reversible branch bounds and feasible witnesses (#11)
- Evaluate an optional certified roof-duality pass with strong persistency (#12)
- Certify QUBO–Ising conversion and gauge maps for reusable preprocessing (#13)
- Compose exact elimination, relation and persistency certificates with reconstruction (#14)
- Eliminate degree-0/1/2 variables exactly with fields and reversible lifting (#15)
- Add certified pair relations and reversible signed contractions (#16)
- Implement guarded zero-field degree-three Ising star–triangle reduction (#17)
- Prototype certified weighted Max-Cut edge and triangle preprocessing (#18)
- Recognize gauge-submodular components and solve them with a certified optional cut pass (#19)
- Schedule mixed exact reduction passes with explicit incremental budgets and ablation benchmarks (#20)
- Audit exact coefficient compression and sparsification before certified adoption (#21)
- Roadmap: combine exact QUBO and Ising preprocessing — literature, dependencies and release boundaries (#22)
v0.1.0
QUBOPreprocessing v0.1.0
Changelog
First public release of QUBOPreprocessing 0.1.0: bounded certified strict-dominance preprocessing for finite Float64 QUBOTools models, identity-preserving exports, independently verifiable proof chains, reusable exact sparse conditioning, explicit assumptions, checkpoints, rollback, arbitrary-unfix rebuild/replay and resumable budgets. Optional QUBODrivers direct/MOI/ToQUBO consumers preserve scoped guarantees and qualified child statuses. Use the solver wrapper as QUBOPreprocessing.Optimizer; it is intentionally unexported to avoid solver namespace collisions. Documentation includes executable examples and the accepted measured operating envelope with no-benefit and refusal cases.
Breaking changes
Initial public release; there is no earlier registered version to migrate from. Assumptions certify a restricted scope. Stored-value proofs do not remove Float64 numerical-energy limitations, and approximate/local child results do not become global optima. Probing, roof duality and weak persistency are outside 0.1.0.
Requires Julia 1.10 and QUBOTools 0.16.2; optional consumers support QUBODrivers 0.6.5 or later within 0.6.
Merged pull requests:
- Bootstrap package and identity preprocessing runtime (#8) (@bernalde)
- Add reusable sparse conditioning with reversible assumption trails (#23) (@bernalde)
- Add sound dominance witnesses and independent scoped verification (#24) (@bernalde)
- Add bounded incremental strict-dominance propagation (#25) (@bernalde)
- Validate scoped branch workloads and capture rollback removals (#26) (@bernalde)
- Compose certified preprocessing with direct samplers and ToQUBO (#27) (@bernalde)
- Add source coverage and versioned documentation publishing (#28) (@bernalde)
- Document the 0.1.0 API and measured operating envelope (#29) (@bernalde)
- Address registration feedback on user docs and optimizer namespace (#31) (@bernalde)
Closed issues:
- Implement a reusable sparse preprocessing workspace with reversible conditioning (#2)
- Implement sound certificate arithmetic, proof scopes and independent verification (#3)
- Implement certified strict-dominance propagation with bounded incremental work (#4)
- Support scoped fix/unfix, certificate invalidation and resumable preprocessing (#5)
- Compose certified preprocessing with direct samplers and ToQUBO reconstruction (#6)