Pipeline#
---
config:
flowchart:
nodeSpacing: 16
rankSpacing: 28
padding: 8
---
flowchart TB
accTitle: How OpenSymbolicRules rules are used and verified
accDescr: Source identities become conditional JSON rules. A CAS checks conditions before rewriting. Selected rules also receive a Lean statement and a verification report published in the findings registry.
source(["RUBI and other sources"]):::source
rule["OSR rule · JSON<br/>Pattern → replacement<br/>with conditions"]:::rule
source --> rule
rule --> cas{"CAS<br/>Conditions hold?"}:::check
cas -->|Yes| rewrite(["Apply rewrite"]):::applied
cas -->|Unknown or false| keep(["Keep expression"]):::pending
rule --> lean["Lean + Mathlib<br/>Check by domain"]:::proof
lean --> report["Report<br/>Proof, counterexample<br/>or open case"]:::proof
report --> registry(["v1 rules and findings"]):::published
classDef source fill:#e7eff5,stroke:#476981,color:#19364a
classDef rule fill:#fff0c9,stroke:#9a6912,color:#422b08,stroke-width:2px
classDef check fill:#e5f4ef,stroke:#347b65,color:#153e32
classDef applied fill:#d0eadf,stroke:#347b65,color:#153e32
classDef pending fill:#f3f3f3,stroke:#696d70,color:#34383b
classDef proof fill:#e7eff8,stroke:#53749a,color:#193550
classDef published fill:#d5e3f2,stroke:#53749a,color:#193550- Conversion. The Integration converter turns RUBI rules into the v0.1 JSON format; the faithfulness check compares every v1 rule with its source rule.
- Statement and proof. For each selected rule, Lean states a theorem with explicit hypotheses for a mathematical domain. The kernel checks completed proofs and counterexamples. Open cases keep their verification status.
- Export. The exporter writes the v1 rule sets, the verification reports and the conformance cases; two exports must be byte-identical.
- Publication. Each export becomes a Verification report named after the
source digest of the Lean checkout, and
scripts/recheck.shreproduces it byte for byte. Currently: Verification@3c604f9 (2026-11-29, 204 commits), with 204 reports. - Distribution. The domain repositories, the Conformance suites (6038 cases, Conformance@70349ef (2026-11-20, 110 commits)) and the client fixtures are copied from a published report and checked against it.
Rule status#
Read the diagram for one rule, with its stated hypotheses, in one mathematical domain. The exporter evaluates the available evidence for each report. A rule can enter the catalogue with a proof already checked, or acquire one in a later report.
stateDiagram-v2
direction LR
accTitle: Verification status of one rule in one domain
accDescr: An audit records proved for a checked proof, counterexample for a checked refutation, unproved for an open statement, or unsupported when the domain is outside scope. New evidence or domain support allows another audit.
state "Audit" as Audit
state "unsupported" as Unsupported
state "unproved" as Unproved
state "proved" as Proved
state "counterexample" as Refuted
[*] --> Audit
Audit --> Unsupported : Outside scope
Audit --> Unproved : Statement open
Audit --> Proved : Proof checked
Audit --> Refuted : Refutation checked
Unproved --> Audit : New evidence
Unsupported --> Audit : Support added
classDef openCase fill:#fff0c9,stroke:#946515,color:#422b08
classDef success fill:#d0eadf,stroke:#347b65,color:#153e32
classDef failure fill:#f8e3e2,stroke:#984d4a,color:#522321
classDef unavailable fill:#edf0f3,stroke:#67737e,color:#293744
class Unproved openCase
class Proved success
class Refuted failure
class Unsupported unavailableWhen is a proved rule certified? The record also carries a certified flag. It is true exactly when the status is proved and every symbol has a reviewed or formally_related interpretation in that domain. The same rule can have different records over ℝ and ℂ. An invalid theorem declaration or a forbidden axiom stops the export. Verification requirements V1-V-001–006
How does this appear in the findings registry? The domain columns display counterexample as refuted. A strengthened rule has its own ID and audit. Its proof applies to the added hypotheses, and the original retains its counterexample. Not migrated records a source rule considered before a v1 statement could be exported. Power rule example · Findings registry