Changelog

All notable changes to JacoPy are recorded here. The format follows Keep a Changelog, and the project uses PEP 440 version numbers. The version is defined once, in jacopy/__init__.py (__version__).

Finding labels such as P0-1 or M1X-5 refer to an independent audit of commit 0b00e1b (2026-09-30).

[Unreleased]

[0.1.0] - 2026-10-14

The first public release. It contains every change below since the internal version 0.0.1.

Changed: public release

  • License: JacoPy is now distributed under the BSD 3-Clause License (LICENSE, SPDX BSD-3-Clause in pyproject.toml and CITATION.cff). The earlier source-available terms no longer apply.

  • Version: 0.0.1 becomes 0.1.0, the first public release (published on PyPI). The version string is the only release number; internal codenames do not appear in it.

  • Repository: renamed to oselcukk/JacoPy (https://github.com/oselcukk/JacoPy); the project URLs in pyproject.toml and CITATION.cff follow the new name.

  • Documentation: a public documentation site (https://oselcukk.github.io/JacoPy/) with installation notes, tutorials, how-to guides, explanations, an API reference and development pages. docs/TESTING.md moved to docs/development/testing.md and docs/CITATIONS.md to docs/development/citations.md.

  • Sources: comments, docstrings, documentation and test names are in English only.

  • Project files for contributors: CONTRIBUTING.md, CODE_OF_CONDUCT.md (Contributor Covenant 2.1), SECURITY.md, issue forms, a pull request template, Dependabot configuration and a release workflow that publishes to PyPI through trusted publishing.

Display polish (fix/display-polish), 2026-10-02

Rendering and documentation only; no rule, role, tag or proof changes.

  • LaTeX: Greek letter names spelled in ASCII render as commands, as whole words — forms("omega") → \omega, omega_1 → \omega_1, alpha_ij → \alpha_{ij}, Pi → \Pi; omegax and the Latin-looking capitals (Alpha, Eta, Mu) stay as written. The ASCII renderer keeps the name as typed.

  • Step labels follow the role, in the terms ProofResult counts them with: (definition) / (assumption) / (theorem) (and (axiom) only for a step that records no role), in the ASCII, terminal, LaTeX, TikZ and Jupyter renderers and in ProofStep.format; engine justifications read apply definition: … / apply assumption: …. New: ProofStep.classification, jacopy.proof.step.classification_label. Before, print_chain labelled definition steps (axiom) … apply axiom while ProofResult called the proof assumption-free.

  • APA 7 in-text citations: one author–date–locator item per cited place, items separated by semicolons; only locator-free works of the same authors join years. The “Sub-steps cite” row of the anchor-morphism document read …, 2022, Definition 4.1, Eq. [4.4], Definition 4.1, 2025, Eq. [3.20]; … and now reads …, 2022, Definition 4.1, Eq. [4.4]; Çatal-Özer et al., 2025, Eq. [3.20]; …. A locator subsumed by a more specific one of the same work is dropped (bibliography.work_locators); biblatex \parencites emit one entry per place.

  • bibliography.in_text / apa_reference accept style="apa" (alias of "plain": the style selects markup, the format is always APA 7); an unknown style raises ValueError naming TEXT_STYLES.

  • central/tangent/cartan_rules.py docstrings: the four rules have role definition (as in tests/rule_roles_inventory.json); three are theorem-tagged because they carry a sub-proof builder. They were described as “THEOREM-classified”.

  • Docs: docs/explanation/architecture.md (measured numbers, notebook smoke 4/4, the deferred calculus → tangent edge inside central, the oracle hook edges of research/axiom_suite.py and poisson/koszul_jacobi.py, the metric_affine/rules.py, metric_affine/decomposition.py and generalized/_cited_rule.py modules), docs/development/testing.md counts, and the jacopy docstring’s layer order (display on top, as in the architecture map).

  • Changed test expectations: tests/test_display.py (the Cartan step is (definition)), tests/test_citations.py (two in-text strings, the C3/C5 (assumption) label). New tests: tests/test_display_greek.py, tests/test_display_step_labels.py, tests/test_citation_places.py, tests/test_cartan_rules_docs.py.

Example notebooks run 4/4 (fix/notebooks, merged at 8b46a5d), 2026-10-02

  • Operator sums inherit alternation (M2-1 follow-up, 273e18b): admits_alternation (default reject since M2-1) did not certify an operator Sum/Neg such as (L_U + L_Πω), which vector-slot linearity produces from L_{U+Πω}; the enclosing alternating MultiEval was rebuilt plain and DD (D.19) at p = 3 (Claim 6, bracket_twist_research_interface.ipynb §1.5) left a residual. An operator sum now inherits when every summand declares "inherit"; tensors, the d of a non-skew calculus and mixed sums stay rejected. D.19 at p = 3 closes again (913 steps); the wrong-sign variant does not (tests/test_audit_0b00e1b_notebooks.py).

  • algebroid_declarations_demo.ipynb cites the anchor-morphism record explicitly with allow_legacy=True (M1-5, 83ca05f): since d1b807b that record is requirements-derived but its chain does not replay, so cite() refuses it otherwise. The notebook prints the record status and the citing result’s requirements, including unreplayed; its outputs were re-executed in a clean kernel.

Documentation and test portability

  • README.md rewritten in English: what jacopy is, installation with the extras, a quick start through the top-level surface, the packages and their status (planned items marked), proof trust and the oracle, licence and citation.

  • docs/explanation/architecture.md rewritten for the current tree: measured layer map with the 29 deferred upward imports listed (T2-2), the proof flow, the trust model (requirement kinds, minting, replay, default-reject citation, the Scalar contract), the model oracle, extension points (Definition, StructureKind) with runnable examples, the support levels and known limits.

  • docs/development/testing.md: sympy is the oracle extra; --oracle, --oracle-report, the oracle_exempt and contract_table markers, the wheel run and the merge gate.

  • docs/development/citations.md: file paths follow the renamed modules.

  • The jacopy docstring names the cite / prove homonyms.

  • The fast suite runs from a sympy-free wheel (CI job wheel): the module-level sympy import of tests/test_audit_0b00e1b_metric_affine.py moved into the four tests that use it (pytest.importorskip), and the tests that call the oracle or need a repository file skip with a reason.

  • CITATION.cff keeps its version; tests/test_citation_metadata.py checks that it equals jacopy.__version__.

  • The research-interface notebook uses antisymmetrize_indices.

Unambiguous names, 2026-10-02

  • Module files that shared a basename were renamed; each old path is a compatibility alias that is the moved module: metric_affine/koszul.py → metric_affine/metric_koszul.py, poisson/koszul.py → poisson/koszul_forms.py, central/tangent/engine.py → central/tangent/tangent_expansion.py, central/algebroid/engine.py → central/algebroid/algebroid_expansion.py, metric_affine/engine.py → metric_affine/metric_affine_expansion.py.

  • A name that two different objects carried across subpackage __all__ lists has an unambiguous alias (same object) in the second package; the old name stays importable: research.ZeroOperator, research.antisymmetrize_indices, algorithms.rewrite_to_fixpoint, core.PropertyProvenance, central.tangent.prove_lie_jacobi, central.algebroid.prove_algebroid_*. The known collisions shrink from 11 to 2 (Metric / metric). The old names left their subpackage __all__ lists, so a star import (from jacopy.core import *, jacopy.research, jacopy.central.tangent, …) no longer brings them; import them by name, or use the new aliases.

  • Public names for private helpers used across packages and by the notebooks (same objects; the private names stay): poisson.tilde.normalized_by, drinfeld.tilde_calculus.nambu_tilde_engine, central.objects.frame.frame_index_str, drinfeld.double.evaluate_on_slots, drinfeld.double.double_engine, poisson.showcase.is_exact_form, drinfeld.twist_engine, generalized.exceptional_rotation_engine, algorithms.normalize_alternating.structural_sort_key, proof.search.node_count. Private from-imports inside the library: 150 → 80 (across subpackages 74 → 28); the notebooks import no private name.

  • jacopy.research.structure_kinds: the built-in families, family rules and kinds load before any user entry, whenever the user registers (a kind registered before first use no longer displaces Nambu–Poisson; first=True still puts a kind in front on purpose); families(), family_rules() and additive_slot_tags() load the built-ins; register_family_rule is idempotent for the same condition, builder, reason and order.

Architecture, merged 2026-10-02

  • Nine structure-free rule classes moved, byte-identical, into the central layer: central.tangent.cartan_rules (MagicFormulaDefinition, LieIotaCommutatorDefinition, DSquaredZeroDefinition, DWedgeLeibnizDefinition) and central.calculus.slot_rules (PairingArgSplitDefinition, FormProductToWedgeDefinition, WedgeSumScalarDefinition, WedgeZeroNegDefinition, TrivialZeroSumDefinition). The old modules (drinfeld.twist, drinfeld.tilde_calculus, poisson.nambu) re-export the same class objects; no engine changes which rules it registers or in which order.

  • assemble_engine and Scan no longer name Nambu–Poisson. They read a registry in jacopy.research.structure_kinds: node families (register_family), family rules (register_family_rule, explicit order) and structure kinds (StructureKind, register_structure_kind). The Nambu–Poisson kind lives in jacopy.research.nambu_kind. A structure without a registered kind raises a TypeError that names register_structure_kind.

Public surface and packaging

  • Top-level jacopy now exposes a stable, documented surface (jacopy.__all__, 66 names): the expression classes, the object factories, the tangent operators, the proof entry points (show_equal, prove, ProofChain, ProofResult, Theorem, …) and the display helpers. Names beyond the expression classes load lazily, so import jacopy.core costs what it did before. The module docstring states four support levels and the canonical binding of shared names.

  • Package facades aligned: jacopy.packages.drinfeld now covers all of its modules (twists, Roytenberg bracket, examples, tilde calculus, metric invariance, bracket morphisms); poisson, generalized and metric_affine gained their missing user-path entry points. Old deep import paths keep working.

  • Removed the empty placeholder packages jacopy.packages.algebroid_calculus (item 13 lives in jacopy.packages.drinfeld) and jacopy.packages.research (item 15 lives in jacopy.research).

  • Packaging: single version source; extras match real use (oracle = sympy replaces the unused components; the unused parallel/joblib extra and the unused nbformat/nbclient pins are gone); py.typed marker; [project.urls]; requirements.txt reduced to -e .[dev]; this changelog and CITATION.cff.

Fixed — findings of an independent audit, merged 2026-09-30 … 2026-10-02

  • Metric-affine (P0-6 / M7-1, M7-2): CoframeRecombinationDefinition no longer fires at non-linear positions (it closed a false equality); ComponentInput.set_anholonomy no longer swallows data given in a non-canonical index order.

  • Core product rule (P0-1 / K1-2, M1X-1; P0-2 / M1-3; K1-1 / M1X-5): the wedge Leibniz rule takes factor degrees, not the operator degree (sign on multivector factors); a degree-0 non-derivation operator is no longer treated as a multiplier; collect_pairings keeps non-scalar coefficients out of the pairing slot.

  • Algebroid d_E (P0-4 / M2-1, P0-5 / M2-2, M2-3, M7-1 root): no unconditional alternation of d_E on a non-antisymmetric bracket; LieDerivative needs a declared right Leibniz rule before using the product rule on sections; indexed-sum ordering.

  • Integration (P0-5 / M2-2 end to end): non-derivation section values, the metric-affine registry, ConnectionForm alternation, EndoForm kind.

  • Proof trust (P0-3 / M1X-2, K2-16; M1-5 group / M1-6, K2-7, M1X-4; M1X-3 / K2-13, M1-8): a theorem record carries the registry declarations it relied on as requirements, so citing it in another context cannot close a false identity; follow-ups add registry read propagation, end_reads by identity, the exact Theorem type in classification, a single minting gate, structure records and a cheap __copy__.

  • Rule matching (M1X-6 / K1-12, M1-4): payload-aware matching, cited theorem rules, LieZ Lemma 9.1, declaration gates and a narrow Σ-binder contract.

  • Citations (M8, M4-1, M4-2, T3-2 / K1-9): APA 7 rule sources (bibliography plus Definition/Theorem sources on proof steps), LaTeX rendering fixes, docs/development/citations.md.

  • Poisson (M3-1 / M3-2, M3-3): calculus-scoped TM rules (reserved Cartan-TM, belongs_to) and the Koszul–Jacobi certificate with replayed seeds.

  • Roadmap items (M7-4, M4-3): ADM Prop. 3.9 E-Cartan structure equations with Q_ab one-forms; Nambu double Jacobi via the twist (p = 1 form part); FISharpPairingSwap calculus scope.

  • Core contracts (K1-3 / K1-4, M1X-7; M1-1 / M1-2): Schouten and derived-bracket degree hooks; the “Scalar = R-constant” contract end to end (one predicate, specificity shadowing, raw-clash checks on every path, f·D on one plain symbol, an independent oracle restatement). The AoG-domain cases are deferred to their own lane and kept as strict-xfail known bugs.

Added — model oracle

  • Model oracle F0 + F1 (audit K4-2 direction): a coordinate falsifier for engine closures, off by default (jacopy.oracle).

  • Oracle F2: algebroid model families with self-checked axiom separation, E-form realizers, counter-model selection and leak checks.

  • oracle_exempt test marker (reasoned, reported as EXEMPT) and a strict-oracle CI job that uploads its JSON report.