Skip to content

Cross-library validation plan ​

Historical route, English content. This URL is kept for existing links. The original Spanish working notebook is archived outside the documentation tree; the maintained quantitative report is Scientific validation, and the raw rows are in the full matrix.

Index

  1. Purpose
  2. Validation levels
  3. Comparison rules
  4. Tolerance guide
  5. Method families and gates
  6. Traceability
  7. Execution phases
  8. Risks and anti-false-positive rules
  9. Current status
  10. Where the numbers live

Purpose ​

For every capability in sci-form, the plan records:

  1. which tested program or library performs the same task;
  2. which test compares the two implementations;
  3. which fixture or dataset stores the reference values;
  4. how large the measured separation is, and where that measurement holds.

The plan is deliberately separate from the release narrative. A green row means the observable agrees with the named reference inside the stated confidence region. It does not mean the two methods are the same theory.

Validation levels ​

LevelWhat it provesExample
L0An invariant that must always holdcharge conservation; DOS integrates to the orbital count; analytic gradient equals a finite difference
L1The same result on another surfaceRust vs Python vs WASM vs CLI with the same seed
L2Same method, canonical implementationUFF vs RDKit UFF; GFN2 vs tblite; PM3 vs MOPAC
L3Same observable, independent theorysTDA vs TD-SCF; EHT trends vs HF
L4Experiment or a frozen datasetIR frequencies vs experiment; NMR shifts vs a database

Release-blocking rows are L0–L2. L3 and L4 rows document accuracy and method gaps; they are not used to claim parity with a different theory.

Comparison rules ​

  1. Same geometry first. Energies, charges and gradients are compared on the same frozen coordinates. If both sides optimize, compare after re-optimizing with the same method.
  2. Explicit units. EHT in eV, PM3 heat of formation in kcal/mol, xTB/HF/DFT in eV or Hartree, UFF/MMFF in kcal/mol, frequencies in cm⁻¹, shifts in ppm. Convert before comparing.
  3. Eigenstates. Compare magnitudes or project degenerate subspaces. Never compare element-by-element signatures without aligning phase and order.
  4. Atom permutation. Align by graph isomorphism, not by file index.
  5. Orientation and centre. Use Kabsch/RMSD or compare internal distance matrices when global alignment is ambiguous.
  6. Randomness. Fix the seed on every side; repeat 20–50 seeds and compare distributions, not a single draw.
  7. Non-uniqueness. SSSR is not unique (compare the size multiset). Canonical SMILES is not bit-identical across toolkits (compare isomorphism and idempotence).
  8. Topology first. Before comparing a property, verify that elements, bonds, bond orders and formal charges agree.

Tolerance guide ​

ObservableLevelTarget toleranceNote
Coordinates vs another surface, same seedL1bit-identical when the path is identical; ≤1e-12 Å otherwisecompare internal coordinates
Conformers vs ETKDGL4median heavy-atom RMSD ≤0.25 Å; P90 ≤0.5 Åindependent random streams
Bond lengths vs experiment/CSDL4≤0.02–0.03 Å after optimisationnot raw embedding
Overlap matrix, same STO-3G basisL21e-10 abs vs PySCFGaussian integrals
EHT Hamiltonian, same VSIP tableL21e-8 absK = 1.75
Electron-repulsion integralsL21e-10 rel vs PySCF/libcints, p, d shells
HF eigenvaluesL21e-6 Ha vs PySCFsame basis
HF total energyL21e-7 Ha vs PySCF
DFT total energyL21e-5 Ha vs PySCFsame grid
EHT orbital energy / gapL21e-6 eV
PM3 heat of formationL2≤0.5 kcal/mol vs MOPACsame geometry
GFN1/GFN2 energyL2≤0.5 kcal/mol vs tblitesame geometry
GFN0 energyL2≤1 kcal/mol vs xtb
D3/D4 dispersionL21e-3 kcal/mol vs dftd3/dftd4same parameters
UFF/MMFF energyL2≤0.01 kcal/mol vs RDKitsame topology
Analytic gradient vs finite differenceL0relative error ≤1e-4h = 1e-3 Å
Gasteiger chargesL2≤0.02 e vs RDKitsame iteration count
Mulliken chargesL2≤0.005 esame definition
DipoleL4≤0.1 D or 5% vs NIST/CCBDB
SASAL2≤1% vs FreeSASAsame radii and probe
ESP gridL2RMSE ≤1e-3 a.u. vs same density
DOS/PDOSL2MSE ≤0.01 vs exact diagonalizationKPM: ≤2–5%
Harmonic frequencies, same methodL2≤2 cm⁻¹
Frequencies vs experimentL4±20 cm⁻¹ harmonic; ±10 cm⁻¹ scaleddocument the scale factor
UV-Vis sTDA vs TD-DFTL3≤0.3 eV per dominant transition
NMR GIAO vs ORCAL2≤0.5 ppmsame basis
NMR HOSE vs experimentL4MAE ¹H ≤0.3 ppm; ¹³C ≤3 ppm
J coupling vs experimentL4≤1 Hzensemble-averaged conformers
ANI energy/forces vs torchaniL2≤1e-4 eV/atom; ≤1e-3 eV/Åsame weights
Descriptors vs RDKit/mordredL2exact where definitions coincide; ±0.1 logP Crippen
ECFP TanimotoL2same invariants; ±1e-9 similarityranking is the gate
KPM DOS vs diagonalizationL2L2 relative ≤5%order 100–500

Method families and gates ​

Parsing, topology and conformers ​

GateCapabilityReferenceFixture or testStatus
F01SMILES graph invariantsRDKit 2026.09.1tests/cross_validation.rsPASS
F05Ring-size multisetRDKitsamePASS
F75SMARTS match setsRDKit GetSubstructMatches837 CSD torsion patterns × 10 moleculesPASS
F81CIP stereo labelsRDKit CIP labellersame 3D geometryPASS
F83Canonical SMILESRDKit MolToSmilesisomorphism and round-tripPASS with definition caveat
F71Distance boundsRDKit GetMoleculeBoundsMatrixper topological classPASS with class tolerances
F72EmbeddingRDKit ETKDGv329 moleculesPASS in distribution
F73ETKDG force fieldRDKit force field19 shared geometriesPASS
F74BFGS minimisationRDKit ForceField::minimize28 molecules, same startPASS

Force fields and gradients ​

GateCapabilityReferenceFixture or testStatus
F16UFF energyRDKit UFF400 moleculesPASS
F17UFF atom typesRDKit AtomTyper33641 labelsPASS
F70UFF minimisationRDKit UFF optimiser10 moleculesPASS
F100MMFF94 energy and chargesRDKit MMFF947 moleculesPASS
F80Analytic gradientscentral differencesH₂O₂, OH, term levelPASS
F78ReaxFF bond ordersLAMMPS reaxffpublished pointsPASS
F42PM3 energyMOPAC 23.2.524 moleculesPASS
F43GFN0 energyxtb 6.7.118 casesPASS
F44GFN1 energytblite 0.7.018 closed-shell + 5 open-shellPASS
F45GFN2 energytblite 0.7.018 closed-shell + 5 open-shellPASS
F46D3/D4 dispersiondftd4 4.3.025 moleculesPASS with standalone D4 gap

Charges, electrostatics and solvation ​

GateCapabilityReferenceFixture or testStatus
F21Gasteiger chargesRDKit251 moleculesPASS
F22EEQ charges and CNmulticharge 0.6.023 moleculesPASS
F87-EEQ2019EEQ2019 chargesindependent NumPy oracle14 casesPASS
F23Mulliken chargesPySCF 2.14.011 moleculesPASS
F26SCF dipolePySCF11 moleculesPASS
F28SASAFreeSASA60 moleculesPASS
F84ALPB solvationtblite 0.7.016 solutes in waterPASS with model caveat
F78ESP gridPySCF densityfar-field pointsPASS
F59ECFP similarity rankingRDKit Morgan/ECFP4780 pairsPASS

Electronic structure ​

GateCapabilityReferenceFixture or testStatus
F86-EHTEHT overlap, Hamiltonian, orbitalsindependent NumPy EHT9 moleculesPASS
F31EHT metal parametersYAeHMOP table76 parametersPASS
F36HF/SCF matrices and energyPySCF11 molecules, STO-3GPASS
F37Electron-repulsion integralsPySCF/libcint13074 elementsPASS
F38UHF/ROHF energy and S²PySCF8 casesPASS
F39AO→MO transformPySCF ao2mo.full13058 elementsPASS
F41CIS/TDA excitationsPySCF8 moleculesPASS
F77sTDA UV-VisPySCF TDA/TDHF7 moleculesPASS with method gap
F77Kohn-Sham DFTPySCF6 molecules, SVWN/PBEPASS with target gap
F79ML descriptors and forcesindependent NumPy BP oracle8 moleculesPASS with weight gap

Spectroscopy ​

GateCapabilityReferenceFixture or testStatus
F48IR frequenciesxtb GFN2 vibspectrum39 modesPASS
F79bIR intensitiesPySCF Hessian/dipoles2 moleculesPASS with reference caveat
F54NMR J couplingsreference HLA calculator7 + 49 casesPASS
F77UV-VisPySCF TDA/TDHF7 moleculesPASS with method gap
F47EAS site rankingtextbook/DFT rules8 substratesPASS

Materials and periodic systems ​

GateCapabilityReferenceFixture or testStatus
F64Space groupsspglib 2.8.0230 cellsPASS
F65CIF round-trippymatgen 2026.9.244 structuresPASS
F66Minimum-image distanceASE 3.29.04 cellsPASS
F67MOF-5 assembly and topologypormake / RCSRone framework, 16 topologiesPASS
F68Porositypyzeo / Zeo++MOF-5PASS with one-framework limit
F69Powder XRDpymatgen4 structuresPASS
F85Variable-cell stressASE Lennard-Jones + UnitCellFilter3 cellsPASS with convention note

Dynamics, reaction paths and electrochemistry ​

GateCapabilityReferenceFixture or testStatus
F82Growing String MethodASE CI-NEB and analytic surfacesMüller-Brown + 5 wellsPASS
F87Kinetics / transition-state theoryEyring and SciPy solve_ivpsmall networksPASS
F84Live molecular dynamicsRDKit UFF forcesUFF systemsPASS
F86Electrical double layeranalytic Gouy-Chapman/Stern3T × 3I × 6 potentialsPASS
F95Constant Potential MethodLAMMPS electrode/conpgraphene bilayerPASS with hardness gap
F92Mobile Block Hessiananalytic diatomic + full Hessiandiatomic/benzenePASS with experimental gap

Experimental modules promoted to core ​

ModuleCore pathPromotion evidenceMain limitation
Conformal geometric algebracgamotors 3.4e-15; dihedrals 6.6e-15refinement and MOF assembly not covered
Semidefinite relaxationsdrprojections 4.4e-16; embeds 7e-15SDP scaling not benchmarked
Kernel Polynomial Methodkpmmoments 3.5e-15; DOS 1.7e-14T=0 gapless Gibbs
Randomized eigensolverrand_nlarank-N/4 3.8e-4; N=600 9.6e-4full-spectrum fallback
Riemannian geometryriemannianprojection 8.2e-12Frobenius proxy, first-order retraction
Growing String Methodgsmbarrier 1.6e-3 vs ASEno pyGSM parity
KineticskineticsEyring 1.9e-16no Cantera I/O
Periodic adaptersperiodic_linearphases 3.6e-16; bands 4.4e-16complex H(k) not implemented
Live MDdynamics_liveforces 3.6e-13 vs RDKitshort trajectories

Traceability ​

The maintained traceability record is the full validation matrix: 129 rows, 122 PASS, 7 method or provenance gaps, 0 FAIL. Each row names the gate, the observable, the reference, the metric, the measured value, the tolerance, the level and the owning test.

The curated interpretation is in Scientific validation. It groups the rows by method family and states the confidence region and limitation of each method.

Execution phases ​

PhaseWorkOutput
1Pin reference versions and build the oracle environmentvalidation/refs.lock.json
2Write independent oracles for the observablesscripts/validation/oracle_*.py
3Regenerate fixtures and run the Rust gatestests/*_validation.rs, tests/cross_validation.rs
4Collect the rows and review failuresreports/validation/summary.json
5Publish the report and the full matrixthis documentation site

Risks and anti-false-positive rules ​

  • Same-method first. Compare against the canonical implementation of the same method before comparing against experiment.
  • Frozen geometry. A different optimiser path is not a method failure.
  • Degenerate subspaces. Compare projected subspaces, not arbitrary eigenvector order.
  • Random seeds. A single draw is not a distribution.
  • Unit conversion. Most historical false alarms were unit mismatches, not missing physics.
  • Definition drift. Canonical SMILES, HBA counts and IR intensities are definition-dependent; record the definition next to the number.

Current status ​

ItemValue
Release auditedsci-form 2.0.0
Recorded rows129
Passing gates122
Method or provenance gaps7
Failing gates0
Oracle scripts36/36
Rust validation gates117/117
Oracle runtimePython 3.14.4

The seven non-passing rows are provenance or method-gap markers, not silent failures. Their reasons are listed in Scientific validation.

Where the numbers live ​

  • Scientific validation — curated report with reference, deviation, confidence region and limitation.
  • Full matrix — 129 recorded rows with tolerances.
  • reports/validation/summary.json — machine-readable source of truth.
  • validation/refs.lock.json — pinned reference versions.

Released under the MIT License.