Electric Support

Worked examples

Eight runs from Electric 2.21.1, from finding a single bad algebra step to proving that the medians of a triangle meet. Open any example to compare the input with Electric’s result.

Reading the result labels

Proved
An exact proof establishes the stated claim under its listed assumptions.
Certified
A checker verified a certificate for the stated result.
Evidence
The computation supports the claim within the range or samples tested.
Refuted
An exact counterexample breaks the claim.
Censored
A limit stopped the computation. The receipt records the work completed.

Exact algebra

Factor a polynomial

How does x⁶ − 1 factor over the rationals?

(x − 1)(x + 1)(x² − x + 1)(x² + x + 1)

Each factor occurs once. Electric multiplied them back together and recovered x⁶ − 1 exactly. FLINT supplies the irreducibility of each factor.

Run on Electric 2.21.1,

Compare input and result JSON

Input JSON

{
  "name": "electric_math",
  "arguments": {
    "operation_id": "polynomial-factor",
    "account_id": "examples",
    "budget": {
      "wall_ms": 20000,
      "cpu_ms": 20000,
      "nodes": 1000000,
      "results": 64,
      "output_bytes": 2097152,
      "memory_bytes": 268435456
    },
    "response_profile": "full_receipt",
    "action": "evaluate",
    "request": {
      "backend": "flint",
      "domain": "Q-polynomial",
      "format": "electric-general-math-request-1",
      "operation": "factor",
      "polynomial": {
        "sub": [
          {
            "pow": {
              "base": {
                "var": "x"
              },
              "exponent": 6
            }
          },
          "1"
        ]
      },
      "variables": [
        "x"
      ]
    }
  }
}
Download Input JSON

Result JSON

{
  "format": "electric-general-math-value-1",
  "result": {
    "backend": "flint",
    "backend_version": "3.4.0",
    "certificate_scope": "product reconstructed exactly; irreducibility supplied by FLINT, not independently proved",
    "coefficient_mode": "arbitrary-precision-rational",
    "domain": "Q-polynomial",
    "exact_arithmetic": true,
    "factors": [
      {
        "multiplicity": 1,
        "polynomial": {
          "terms": [
            {
              "coefficient": "-1",
              "powers": [
                0
              ]
            },
            {
              "coefficient": "1",
              "powers": [
                1
              ]
            }
          ]
        }
      },
      {
        "multiplicity": 1,
        "polynomial": {
          "terms": [
            {
              "coefficient": "1",
              "powers": [
                0
              ]
            },
            {
              "coefficient": "-1",
              "powers": [
                1
              ]
            },
            {
              "coefficient": "1",
              "powers": [
                2
              ]
            }
          ]
        }
      },
      {
        "multiplicity": 1,
        "polynomial": {
          "terms": [
            {
              "coefficient": "1",
              "powers": [
                0
              ]
            },
            {
              "coefficient": "1",
              "powers": [
                1
              ]
            },
            {
              "coefficient": "1",
              "powers": [
                2
              ]
            }
          ]
        }
      },
      {
        "multiplicity": 1,
        "polynomial": {
          "terms": [
            {
              "coefficient": "1",
              "powers": [
                0
              ]
            },
            {
              "coefficient": "1",
              "powers": [
                1
              ]
            }
          ]
        }
      }
    ],
    "format": "electric-general-math-result-1",
    "irreducibility": {
      "independently_checked": false,
      "source": "FLINT factor algorithm"
    },
    "operation": "factor",
    "request": {
      "backend": "flint",
      "domain": "Q-polynomial",
      "format": "electric-general-math-request-1",
      "operation": "factor",
      "polynomial": {
        "sub": [
          {
            "pow": {
              "base": {
                "var": "x"
              },
              "exponent": 6
            }
          },
          "1"
        ]
      },
      "variables": [
        "x"
      ]
    },
    "resource_scope": {
      "adapter_work": "Declared wrapper steps only, not internal FLINT instruction counts",
      "coefficient_bits": "Inputs, outputs and exposed wrapper intermediates only",
      "isolation_required": "Native worker wall/CPU/address-space/output limits; cancellation by terminating worker",
      "library_failures": "FLINT default allocation/error hooks may abort; termination is not a mathematical result",
      "opaque_intermediate_allocation_bounded": false,
      "threads": "Adapter creates no threads or global hooks; retain FLINT default one-thread allowance in an isolated worker"
    },
    "route_authority": false,
    "status": "computed",
    "unit": "1",
    "variables": [
      "x"
    ]
  },
  "route_authority": false,
  "status": "checked",
  "verification": {
    "backend": "flint",
    "backend_version": "3.4.0",
    "formal_proof": false,
    "format": "electric-general-math-check-1",
    "independent_backend": false,
    "method": "same-backend canonical recomputation plus declared algebraic checks",
    "ok": true,
    "route_authority": false
  }
}
Download Result JSON

Refuted

When does the prime pattern break?

At n = 0, 1 and 2, the polynomial n² + n + 41 gives 41, 43 and 47. Does it keep producing primes?

n = 40 gives 1,681 = 41².

Electric tested the integers in order, starting at zero. The first 40 values passed. The forty-first supplied a counterexample, which Electric rechecked.

Run on Electric 2.21.1,

Compare input and result JSON

Input JSON

{
  "name": "electric_math",
  "arguments": {
    "operation_id": "prime-pattern",
    "account_id": "examples",
    "budget": {
      "wall_ms": 20000,
      "cpu_ms": 20000,
      "nodes": 1000000,
      "results": 64,
      "output_bytes": 2097152,
      "memory_bytes": 268435456
    },
    "response_profile": "full_receipt",
    "action": "evaluate",
    "request": {
      "box": [
        {
          "hi": "50",
          "lo": "0"
        }
      ],
      "domain": "Z",
      "format": "electric-conjecture-check-request-1",
      "goal": {
        "is_prime": {
          "add": [
            {
              "pow": {
                "base": {
                  "var": "n"
                },
                "exponent": 2
              }
            },
            {
              "var": "n"
            },
            "41"
          ]
        }
      },
      "hypotheses": [],
      "mode": "integer_scan",
      "variables": [
        "n"
      ]
    }
  }
}
Download Input JSON

Result JSON

{
  "censored": false,
  "complete": true,
  "formal_proof": false,
  "format": "electric-general-math-value-1",
  "independent_backend": false,
  "request_sha256": "3f3b861f812a3c0266fae209633a861f684abf2af5aab045497b7d852aab0cfc",
  "result": {
    "ablated": false,
    "ablations": [],
    "candidate_check": null,
    "counterexample": {
      "assignment": [
        "40"
      ],
      "first_found": [
        "40"
      ],
      "recheck": {
        "domain_ok": true,
        "goal_violated": true,
        "hypotheses_ok": true,
        "kind": "exact_integer_recheck",
        "reason": "exact_recheck_passed",
        "veto": true
      },
      "shrink": {
        "accepted_steps": 0,
        "candidate_cap": 64,
        "candidates_tried": 40,
        "hypotheses_kept": true
      }
    },
    "coverage": {
      "axes": [
        {
          "count": 51,
          "hi": "50",
          "lo": "0",
          "variable": "n"
        }
      ],
      "box_tuples": 51,
      "complete": false,
      "enumerated_tuples": 41,
      "exact_tested_tuple_count": 41,
      "hypothesis_filtered_tuples": 0,
      "requested_tuple_cap": 1000000
    },
    "domain": "Z",
    "domain_distinction": {
      "inspected_domain": "integer_tuples",
      "real_statement_certified": false
    },
    "formal_proof": false,
    "format": "electric-conjecture-check-result-1",
    "mode": "integer_scan",
    "non_claims": [
      "universal_statement",
      "real_statement_from_inspected_rational_or_integer_points",
      "separate_radical_claim",
      "minimality",
      "formal_proof"
    ],
    "references": {
      "checker": "electric.conjecture_check.v1",
      "domain_sha256": "813f970071d737a6d7ed70ee9fb702a0fd789c5d0038aa67b7bae5e4faf920ce",
      "generator": {
        "id": "lexicographic_box_scan_v1",
        "order": "last_variable_fastest",
        "seed": null
      },
      "goal_sha256": "ca9b0185da65a23948a1ce3449332941ee63a40ab36ce1279a866400a47cc940",
      "hypotheses_sha256": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
    },
    "route_authority": false,
    "scope": "single_counterexample",
    "status": "refuted_with_counterexample",
    "termination": "counterexample_found",
    "uncertified_hits": [],
    "universal": false,
    "variables": [
      "n"
    ]
  },
  "route_authority": false,
  "status": "checked",
  "verification": {
    "ablations": [],
    "checker": "electric.conjecture_check.v1",
    "independent_backend": false,
    "ok": true,
    "replayed": true,
    "scope": "Same-component deterministic replay plus structural scope rules; not a Lean proof or independent CAS",
    "scope_guard": true
  }
}
Download Result JSON

Certified

Prove an inequality

For any real numbers a and b, why is a² + b² ≥ 2ab?

a² + b² − 2ab = (b − a)² ≥ 0.

The sum-of-squares certificate has just one square. An independent checker verified it. Electric also emitted a Lean theorem, which we compiled separately with Lean 4.29.1 and Electric’s mathlib bundle.

Download the Lean proof

Run on Electric 2.21.1,

Compare input and result JSON

Input JSON

{
  "name": "electric_language",
  "arguments": {
    "operation_id": "inequality",
    "account_id": "examples",
    "budget": {
      "wall_ms": 20000,
      "cpu_ms": 20000,
      "nodes": 1000000,
      "results": 64,
      "output_bytes": 2097152,
      "memory_bytes": 268435456
    },
    "response_profile": "full_receipt",
    "action": "macro",
    "input": "prove_inequality",
    "parameters": {
      "inequality": {
        "variables": [
          "a",
          "b"
        ],
        "goal": {
          "lhs": "a^2+b^2",
          "op": ">=",
          "rhs": "2*a*b"
        }
      }
    }
  }
}
Download Input JSON

Result JSON

{
  "answer": {
    "censored_steps": [],
    "first_refutation": null,
    "formal_proof": false,
    "macro": "prove_inequality",
    "scope": "verdicts: the steps' own, verbatim; the macro adds none. formal_proof: only a Lean step that succeeded. No counterexample found proves nothing",
    "skipped_steps": [
      "c[0].falsify",
      "lean"
    ],
    "steps": [
      {
        "censored": false,
        "operation": "electric_math",
        "outcome": "skipped",
        "reason": "FOR c IN $param.falsify has no item 0",
        "step": "c[0].falsify"
      },
      {
        "censored": false,
        "child": "/data/children/1",
        "complete": true,
        "formal_proof": false,
        "operation": "electric_math",
        "outcome": "completed",
        "reason": "completed",
        "receipt": {
          "account_id": "examples",
          "attempt_id": "script-13f6df6b8127927427d5d8b1-186baf11d84c145f28394ccbc76b2c60",
          "tool": "electric_account_show"
        },
        "step": "certificate",
        "summary": {
          "equality_locus_scope": "certified_rational_equality_points",
          "equality_points_count": 10,
          "route_authority": false,
          "verdict": "inequality_certified"
        },
        "verdict": {
          "field": "result.status",
          "value": "proved"
        }
      },
      {
        "censored": false,
        "operation": "electric_proof_check",
        "outcome": "skipped",
        "reason": "IF $param.lean_check is false",
        "step": "lean"
      }
    ],
    "text": "c[0].falsify: not run (FOR c IN $param.falsify has no item 0); certificate: result.status = proved (exact certificate checked; not a formal proof until the Lean check succeeds); lean: not run (IF $param.lean_check is false)"
  },
  "children": [
    {
      "outcome": "not_started",
      "step": "c[0].falsify"
    },
    {
      "outcome": "completed",
      "result": {
        "value": {
          "censored": false,
          "complete": true,
          "formal_proof": false,
          "format": "electric-general-math-value-1",
          "independent_backend": true,
          "lean": {
            "authority": "none until electric proof-check (bundle mathlib_tier1) accepts proof_check_request; the statement is an untrusted custom spec that needs human review",
            "bundle": "mathlib_tier1",
            "declaration": "m12_inequality",
            "formal_proof": false,
            "format": "electric-inequality-lean-1",
            "proof_check_request": {
              "candidate": {
                "declaration": "m12_inequality",
                "lean_source": "import ElectricMathlibTier1\n\ntheorem m12_inequality : ∀ a b : ℝ, ((a ^ 2) + (b ^ 2)) ≥ (((2:ℝ) * a) * b) := by\n  intro a b\n  have m12_q0 := (mul_nonneg (by norm_num : (0:ℝ) ≤ (1:ℝ)) (sq_nonneg (b - a)))\n  have m12_f1 : (0:ℝ) ≤ (b ^ 2 - (2:ℝ) * a * b + a ^ 2) := by linarith only [m12_q0]\n  linarith only [m12_f1]\n"
              },
              "format": "electric-proof-check-request-1",
              "goal_spec": {
                "domain": "Custom",
                "imports": [
                  "ElectricMathlibTier1"
                ],
                "kind": "untrusted_custom_lean",
                "lean_proposition": "∀ a b : ℝ, ((a ^ 2) + (b ^ 2)) ≥ (((2:ℝ) * a) * b)"
              }
            },
            "route_authority": false,
            "status": "emitted"
          },
          "request_sha256": "6f425eb905b0474819df02e60906839798231ead9cc963fd27e0818cf2270bf3",
          "result": {
            "censored": false,
            "certificate": {
              "certified_equality_points": [
                {
                  "a": "-1",
                  "b": "-1"
                },
                {
                  "a": "-1/2",
                  "b": "-1/2"
                },
                {
                  "a": "-2",
                  "b": "-2"
                },
                {
                  "a": "0",
                  "b": "0"
                },
                {
                  "a": "1",
                  "b": "1"
                },
                {
                  "a": "1/2",
                  "b": "1/2"
                },
                {
                  "a": "1/3",
                  "b": "1/3"
                },
                {
                  "a": "2",
                  "b": "2"
                },
                {
                  "a": "3",
                  "b": "3"
                },
                {
                  "a": "3/2",
                  "b": "3/2"
                }
              ],
              "equality_points_count": 10,
              "final_cone": {
                "constant_term": "0",
                "equality_cofactors": [],
                "gram_sos_terms": [
                  {
                    "D": [
                      "1"
                    ],
                    "L": [
                      [
                        "1"
                      ]
                    ],
                    "basis": [
                      "b - a"
                    ],
                    "hyp_factors": [],
                    "scale": "1"
                  }
                ],
                "hypothesis_products": [],
                "schur_terms": [],
                "target_poly": "b^2 - 2*a*b + a^2",
                "univariate_sturm_terms": []
              },
              "format": "electric-inequality-sos-certificate-1",
              "kind": "positivity_chain",
              "request_sha256": "6f425eb905b0474819df02e60906839798231ead9cc963fd27e0818cf2270bf3",
              "steps": [],
              "strict": false
            },
            "format": "electric-inequality-sos-result-1",
            "route_authority": false,
            "status": "proved",
            "summary": {
              "equality_locus_scope": "certified_rational_equality_points",
              "equality_points_count": 10,
              "route_authority": false,
              "verdict": "inequality_certified"
            }
          },
          "route_authority": false,
          "status": "checked",
          "verification": {
            "equality_locus_scope": "certified_rational_equality_points",
            "equality_points_count": 10,
            "format": "electric-inequality-sos-check-1",
            "kind": "positivity_chain",
            "ok": true,
            "request_sha256": "6f425eb905b0474819df02e60906839798231ead9cc963fd27e0818cf2270bf3",
            "route_authority": false,
            "status": "verified",
            "strict": false
          }
        }
      },
      "step": "certificate"
    },
    {
      "outcome": "not_started",
      "step": "lean"
    }
  ]
}
Download Result JSON

Refuted

Find the first bad step

An agent sends three equalities to verify_derivation. Which step loses a term?

  1. (x + 1)² = x² + 2x + 1
  2. x² + 2x + 1 = x² + 1
  3. x² + 1 = 1 + x²

Step 2 fails at x = −1. The two sides give 0 and 2.

The identity checks pass for steps 1 and 3. The result names the middle step as s[1].identity and records the exact counterexample in s[1].falsify.

Run on Electric 2.21.1,

Compare input and result JSON

Input JSON

{
  "name": "electric_language",
  "arguments": {
    "operation_id": "derivation",
    "account_id": "examples",
    "budget": {
      "wall_ms": 20000,
      "cpu_ms": 20000,
      "nodes": 1000000,
      "results": 64,
      "output_bytes": 2097152,
      "memory_bytes": 268435456
    },
    "response_profile": "full_receipt",
    "action": "macro",
    "input": "verify_derivation",
    "parameters": {
      "variables": [
        "x"
      ],
      "box": [
        {
          "lo": "-4",
          "hi": "4"
        }
      ],
      "steps": [
        {
          "lhs": {
            "pow": {
              "base": {
                "add": [
                  {
                    "var": "x"
                  },
                  "1"
                ]
              },
              "exponent": 2
            }
          },
          "rhs": {
            "add": [
              {
                "pow": {
                  "base": {
                    "var": "x"
                  },
                  "exponent": 2
                }
              },
              {
                "mul": [
                  "2",
                  {
                    "var": "x"
                  }
                ]
              },
              "1"
            ]
          }
        },
        {
          "lhs": {
            "add": [
              {
                "pow": {
                  "base": {
                    "var": "x"
                  },
                  "exponent": 2
                }
              },
              {
                "mul": [
                  "2",
                  {
                    "var": "x"
                  }
                ]
              },
              "1"
            ]
          },
          "rhs": {
            "add": [
              {
                "pow": {
                  "base": {
                    "var": "x"
                  },
                  "exponent": 2
                }
              },
              "1"
            ]
          }
        },
        {
          "lhs": {
            "add": [
              {
                "pow": {
                  "base": {
                    "var": "x"
                  },
                  "exponent": 2
                }
              },
              "1"
            ]
          },
          "rhs": {
            "add": [
              "1",
              {
                "pow": {
                  "base": {
                    "var": "x"
                  },
                  "exponent": 2
                }
              }
            ]
          }
        }
      ]
    }
  }
}
Download Input JSON

Result JSON

{
  "answer": {
    "censored_steps": [
      "s[0].falsify",
      "s[2].falsify"
    ],
    "first_refutation": {
      "refutes": "not an identity",
      "step": "s[1].identity",
      "verdict": {
        "field": "result.equal",
        "value": false
      }
    },
    "formal_proof": false,
    "macro": "verify_derivation",
    "scope": "verdicts: the steps' own, verbatim; the macro adds none. formal_proof: only a Lean step that succeeded. No counterexample found proves nothing",
    "skipped_steps": [],
    "steps": [
      {
        "censored": false,
        "child": "/data/children/0",
        "formal_proof": false,
        "operation": "electric_algebra",
        "outcome": "completed",
        "reason": "completed",
        "receipt": {
          "account_id": "examples",
          "attempt_id": "script-8abf01d3d4a7939f22ca115d-22622d96be964902dea89578cfb4edb3",
          "tool": "electric_account_show"
        },
        "step": "s[0].identity",
        "verdict": {
          "field": "result.equal",
          "value": true
        }
      },
      {
        "censored": true,
        "child": "/data/children/1",
        "complete": false,
        "formal_proof": false,
        "operation": "electric_math",
        "outcome": "completed",
        "reason": "completed",
        "receipt": {
          "account_id": "examples",
          "attempt_id": "script-8abf01d3d4a7939f22ca115d-d21be96b6d27669b5ce52068942b884f",
          "tool": "electric_account_show"
        },
        "scope": "evidence_only",
        "step": "s[0].falsify",
        "verdict": {
          "field": "result.status",
          "value": "evidence_only"
        }
      },
      {
        "censored": false,
        "child": "/data/children/2",
        "formal_proof": false,
        "operation": "electric_algebra",
        "outcome": "completed",
        "reason": "completed",
        "receipt": {
          "account_id": "examples",
          "attempt_id": "script-8abf01d3d4a7939f22ca115d-94f41cd0fb79b1519cecd9a5e7c143d8",
          "tool": "electric_account_show"
        },
        "step": "s[1].identity",
        "verdict": {
          "field": "result.equal",
          "value": false
        }
      },
      {
        "censored": false,
        "child": "/data/children/3",
        "complete": true,
        "counterexample": {
          "assignment": [
            "-1"
          ],
          "first_found": [
            "-4"
          ],
          "recheck": {
            "domain_ok": true,
            "goal": "violation_certified",
            "hypotheses": "certified",
            "kind": "arb_sign_rational_point_recheck",
            "point": [
              "-1"
            ],
            "reason": "exact_recheck_passed",
            "veto": true
          }
        },
        "formal_proof": false,
        "operation": "electric_math",
        "outcome": "completed",
        "reason": "completed",
        "receipt": {
          "account_id": "examples",
          "attempt_id": "script-8abf01d3d4a7939f22ca115d-1b08d403fafd9e3e0407d22858e96316",
          "tool": "electric_account_show"
        },
        "scope": "single_counterexample",
        "step": "s[1].falsify",
        "variables": [
          "x"
        ],
        "verdict": {
          "field": "result.status",
          "value": "refuted_with_counterexample"
        }
      },
      {
        "censored": false,
        "child": "/data/children/4",
        "formal_proof": false,
        "operation": "electric_algebra",
        "outcome": "completed",
        "reason": "completed",
        "receipt": {
          "account_id": "examples",
          "attempt_id": "script-8abf01d3d4a7939f22ca115d-d643d622ef0241080faba65ef81cde91",
          "tool": "electric_account_show"
        },
        "step": "s[2].identity",
        "verdict": {
          "field": "result.equal",
          "value": true
        }
      },
      {
        "censored": true,
        "child": "/data/children/5",
        "complete": false,
        "formal_proof": false,
        "operation": "electric_math",
        "outcome": "completed",
        "reason": "completed",
        "receipt": {
          "account_id": "examples",
          "attempt_id": "script-8abf01d3d4a7939f22ca115d-097ec7ffefe9304afc60d6f6e1a970e7",
          "tool": "electric_account_show"
        },
        "scope": "evidence_only",
        "step": "s[2].falsify",
        "verdict": {
          "field": "result.status",
          "value": "evidence_only"
        }
      }
    ],
    "text": "s[0].identity: result.equal = true (identity holds (exact)); s[0].falsify: result.status = evidence_only (no counterexample in the sampled points (evidence only)); censored: \"completed\"; s[1].identity: result.equal = false (not an identity (exact)); s[1].falsify: result.status = refuted_with_counterexample (exact counterexample point found); counterexample x = -1 (recheck exact_recheck_passed); s[2].identity: result.equal = true (identity holds (exact)); s[2].falsify: result.status = evidence_only (no counterexample in the sampled points (evidence only)); censored: \"completed\""
  },
  "children": [
    {
      "outcome": "completed",
      "result": {
        "value": {
          "result": {
            "domain": "Q-polynomial",
            "equal": true,
            "format": "electric-algebra-result-1",
            "lhs": {
              "terms": [
                {
                  "coefficient": "1",
                  "powers": [
                    0
                  ]
                },
                {
                  "coefficient": "2",
                  "powers": [
                    1
                  ]
                },
                {
                  "coefficient": "1",
                  "powers": [
                    2
                  ]
                }
              ]
            },
            "operation": "identity",
            "rhs": {
              "terms": [
                {
                  "coefficient": "1",
                  "powers": [
                    0
                  ]
                },
                {
                  "coefficient": "2",
                  "powers": [
                    1
                  ]
                },
                {
                  "coefficient": "1",
                  "powers": [
                    2
                  ]
                }
              ]
            },
            "status": "exact",
            "variables": [
              "x"
            ]
          },
          "verification": {
            "format": "electric-algebra-check-1",
            "method": "canonical rational/polynomial recomputation",
            "ok": true,
            "operation": "identity"
          }
        }
      },
      "step": "s[0].identity"
    },
    {
      "outcome": "completed",
      "result": {
        "value": {
          "censored": true,
          "complete": false,
          "formal_proof": false,
          "format": "electric-general-math-value-1",
          "independent_backend": false,
          "request_sha256": "c884ebb321568b9ecfaefbf6f61677c1c02837ff15eb3b30f537e888e2515ef2",
          "result": {
            "ablated": false,
            "ablations": [],
            "candidate_check": null,
            "counterexample": null,
            "coverage": {
              "certification_attempts": 32,
              "complete": false,
              "corner_samples": 2,
              "domain_rejected_hits": 0,
              "goal_holds_certified_hits": 32,
              "max_certify": 32,
              "note": "Random sampling of a continuum is never exhaustive coverage",
              "samples_drawn": 54,
              "samples_requested": 64,
              "screened_hits": 33,
              "uncertified_hit_count": 0
            },
            "domain": "R",
            "domain_distinction": {
              "inspected_domain": "exact_rational_points_of_real_box",
              "real_statement_certified": false
            },
            "formal_proof": false,
            "format": "electric-conjecture-check-result-1",
            "mode": "real_falsify",
            "non_claims": [
              "universal_statement",
              "real_statement_from_inspected_rational_or_integer_points",
              "separate_radical_claim",
              "minimality",
              "formal_proof"
            ],
            "references": {
              "checker": "electric.conjecture_check.v1",
              "domain_sha256": "247a69d2b43d96b639f03e82a6efac9049e6b46176e2e15d2fd2ca903525edab",
              "generator": {
                "corners_first": true,
                "grid_steps": 65535,
                "id": "seeded_splitmix64_rational_box_v1",
                "seed": "1"
              },
              "goal_sha256": "7207bf8f631863ef01e448b67578c5b7056648888871d8c6379ae9fed33429a7",
              "hypotheses_sha256": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
            },
            "route_authority": false,
            "scope": "evidence_only",
            "status": "evidence_only",
            "termination": "certification_cap",
            "uncertified_hits": [],
            "universal": false,
            "variables": [
              "x"
            ]
          },
          "route_authority": false,
          "status": "checked",
          "verification": {
            "ablations": [],
            "checker": "electric.conjecture_check.v1",
            "independent_backend": false,
            "ok": true,
            "replayed": true,
            "scope": "Same-component deterministic replay plus structural scope rules; not a Lean proof or independent CAS",
            "scope_guard": true
          }
        }
      },
      "step": "s[0].falsify"
    },
    {
      "outcome": "completed",
      "result": {
        "value": {
          "result": {
            "domain": "Q-polynomial",
            "equal": false,
            "format": "electric-algebra-result-1",
            "lhs": {
              "terms": [
                {
                  "coefficient": "1",
                  "powers": [
                    0
                  ]
                },
                {
                  "coefficient": "2",
                  "powers": [
                    1
                  ]
                },
                {
                  "coefficient": "1",
                  "powers": [
                    2
                  ]
                }
              ]
            },
            "operation": "identity",
            "rhs": {
              "terms": [
                {
                  "coefficient": "1",
                  "powers": [
                    0
                  ]
                },
                {
                  "coefficient": "1",
                  "powers": [
                    2
                  ]
                }
              ]
            },
            "status": "exact",
            "variables": [
              "x"
            ]
          },
          "verification": {
            "format": "electric-algebra-check-1",
            "method": "canonical rational/polynomial recomputation",
            "ok": true,
            "operation": "identity"
          }
        }
      },
      "step": "s[1].identity"
    },
    {
      "outcome": "completed",
      "result": {
        "value": {
          "censored": false,
          "complete": true,
          "formal_proof": false,
          "format": "electric-general-math-value-1",
          "independent_backend": false,
          "request_sha256": "7072dbaf0c69e6f4400290561a5455e7fb0d1b6c46bc320c41a8cbe13a40378f",
          "result": {
            "ablated": false,
            "ablations": [],
            "candidate_check": null,
            "counterexample": {
              "assignment": [
                "-1"
              ],
              "first_found": [
                "-4"
              ],
              "recheck": {
                "domain_ok": true,
                "goal": "violation_certified",
                "hypotheses": "certified",
                "kind": "arb_sign_rational_point_recheck",
                "point": [
                  "-1"
                ],
                "reason": "exact_recheck_passed",
                "veto": true
              },
              "shrink": {
                "accepted_steps": 1,
                "candidate_cap": 64,
                "candidates_tried": 3,
                "hypotheses_kept": true
              }
            },
            "coverage": {
              "certification_attempts": 1,
              "complete": false,
              "corner_samples": 1,
              "domain_rejected_hits": 0,
              "goal_holds_certified_hits": 0,
              "max_certify": 32,
              "note": "Random sampling of a continuum is never exhaustive coverage",
              "samples_drawn": 1,
              "samples_requested": 64,
              "screened_hits": 1,
              "uncertified_hit_count": 0
            },
            "domain": "R",
            "domain_distinction": {
              "inspected_domain": "exact_rational_points_of_real_box",
              "real_statement_certified": false
            },
            "formal_proof": false,
            "format": "electric-conjecture-check-result-1",
            "mode": "real_falsify",
            "non_claims": [
              "universal_statement",
              "real_statement_from_inspected_rational_or_integer_points",
              "separate_radical_claim",
              "minimality",
              "formal_proof"
            ],
            "references": {
              "checker": "electric.conjecture_check.v1",
              "domain_sha256": "247a69d2b43d96b639f03e82a6efac9049e6b46176e2e15d2fd2ca903525edab",
              "generator": {
                "corners_first": true,
                "grid_steps": 65535,
                "id": "seeded_splitmix64_rational_box_v1",
                "seed": "1"
              },
              "goal_sha256": "7fa9e0a2d2af92e52a5f5146b32f683cda3936f056d18dfc146c0facf587eb32",
              "hypotheses_sha256": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
            },
            "route_authority": false,
            "scope": "single_counterexample",
            "status": "refuted_with_counterexample",
            "termination": "counterexample_found",
            "uncertified_hits": [],
            "universal": false,
            "variables": [
              "x"
            ]
          },
          "route_authority": false,
          "status": "checked",
          "verification": {
            "ablations": [],
            "checker": "electric.conjecture_check.v1",
            "independent_backend": false,
            "ok": true,
            "replayed": true,
            "scope": "Same-component deterministic replay plus structural scope rules; not a Lean proof or independent CAS",
            "scope_guard": true
          }
        }
      },
      "step": "s[1].falsify"
    },
    {
      "outcome": "completed",
      "result": {
        "value": {
          "result": {
            "domain": "Q-polynomial",
            "equal": true,
            "format": "electric-algebra-result-1",
            "lhs": {
              "terms": [
                {
                  "coefficient": "1",
                  "powers": [
                    0
                  ]
                },
                {
                  "coefficient": "1",
                  "powers": [
                    2
                  ]
                }
              ]
            },
            "operation": "identity",
            "rhs": {
              "terms": [
                {
                  "coefficient": "1",
                  "powers": [
                    0
                  ]
                },
                {
                  "coefficient": "1",
                  "powers": [
                    2
                  ]
                }
              ]
            },
            "status": "exact",
            "variables": [
              "x"
            ]
          },
          "verification": {
            "format": "electric-algebra-check-1",
            "method": "canonical rational/polynomial recomputation",
            "ok": true,
            "operation": "identity"
          }
        }
      },
      "step": "s[2].identity"
    },
    {
      "outcome": "completed",
      "result": {
        "value": {
          "censored": true,
          "complete": false,
          "formal_proof": false,
          "format": "electric-general-math-value-1",
          "independent_backend": false,
          "request_sha256": "cb267d77e6ebc1786f89982336fb87669b1541f643f40b2304a4892f92f23d02",
          "result": {
            "ablated": false,
            "ablations": [],
            "candidate_check": null,
            "counterexample": null,
            "coverage": {
              "certification_attempts": 0,
              "complete": false,
              "corner_samples": 2,
              "domain_rejected_hits": 0,
              "goal_holds_certified_hits": 0,
              "max_certify": 32,
              "note": "Random sampling of a continuum is never exhaustive coverage",
              "samples_drawn": 64,
              "samples_requested": 64,
              "screened_hits": 0,
              "uncertified_hit_count": 0
            },
            "domain": "R",
            "domain_distinction": {
              "inspected_domain": "exact_rational_points_of_real_box",
              "real_statement_certified": false
            },
            "formal_proof": false,
            "format": "electric-conjecture-check-result-1",
            "mode": "real_falsify",
            "non_claims": [
              "universal_statement",
              "real_statement_from_inspected_rational_or_integer_points",
              "separate_radical_claim",
              "minimality",
              "formal_proof"
            ],
            "references": {
              "checker": "electric.conjecture_check.v1",
              "domain_sha256": "247a69d2b43d96b639f03e82a6efac9049e6b46176e2e15d2fd2ca903525edab",
              "generator": {
                "corners_first": true,
                "grid_steps": 65535,
                "id": "seeded_splitmix64_rational_box_v1",
                "seed": "1"
              },
              "goal_sha256": "336c7e7ea1007cde89c8f5705bedf04dd3f8d1a52adf3f7c1537e3f7092b0ba4",
              "hypotheses_sha256": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
            },
            "route_authority": false,
            "scope": "evidence_only",
            "status": "evidence_only",
            "termination": "samples_exhausted",
            "uncertified_hits": [],
            "universal": false,
            "variables": [
              "x"
            ]
          },
          "route_authority": false,
          "status": "checked",
          "verification": {
            "ablations": [],
            "checker": "electric.conjecture_check.v1",
            "independent_backend": false,
            "ok": true,
            "replayed": true,
            "scope": "Same-component deterministic replay plus structural scope rules; not a Lean proof or independent CAS",
            "scope_guard": true
          }
        }
      },
      "step": "s[2].falsify"
    },
    {
      "outcome": "not_started",
      "step": "s[3].identity"
    },
    {
      "outcome": "not_started",
      "step": "s[3].falsify"
    },
    {
      "outcome": "not_started",
      "step": "s[4].identity"
    },
    {
      "outcome": "not_started",
      "step": "s[4].falsify"
    },
    {
      "outcome": "not_started",
      "step": "s[5].identity"
    },
    {
      "outcome": "not_started",
      "step": "s[5].falsify"
    },
    {
      "outcome": "not_started",
      "step": "s[6].identity"
    },
    {
      "outcome": "not_started",
      "step": "s[6].falsify"
    },
    {
      "outcome": "not_started",
      "step": "s[7].identity"
    },
    {
      "outcome": "not_started",
      "step": "s[7].falsify"
    },
    {
      "outcome": "not_started",
      "step": "s[8].identity"
    },
    {
      "outcome": "not_started",
      "step": "s[8].falsify"
    },
    {
      "outcome": "not_started",
      "step": "s[9].identity"
    },
    {
      "outcome": "not_started",
      "step": "s[9].falsify"
    },
    {
      "outcome": "not_started",
      "step": "s[10].identity"
    },
    {
      "outcome": "not_started",
      "step": "s[10].falsify"
    },
    {
      "outcome": "not_started",
      "step": "s[11].identity"
    },
    {
      "outcome": "not_started",
      "step": "s[11].falsify"
    },
    {
      "outcome": "not_started",
      "step": "s[12].identity"
    },
    {
      "outcome": "not_started",
      "step": "s[12].falsify"
    },
    {
      "outcome": "not_started",
      "step": "s[13].identity"
    },
    {
      "outcome": "not_started",
      "step": "s[13].falsify"
    },
    {
      "outcome": "not_started",
      "step": "s[14].identity"
    },
    {
      "outcome": "not_started",
      "step": "s[14].falsify"
    },
    {
      "outcome": "not_started",
      "step": "s[15].identity"
    },
    {
      "outcome": "not_started",
      "step": "s[15].falsify"
    }
  ]
}
Download Result JSON

Certified

Rule out a nonzero integer solution

Can x² + y² = 3z² hold for integers other than (0, 0, 0)?

An odd z is impossible modulo 4.

We gave integer_claim the substitution z = 2k + 1. A square is 0 or 1 modulo 4, so two squares cannot add to 3 modulo 4. Electric checked a certificate covering every residue class.

To finish the proof, suppose a nonzero solution exists and choose one with the smallest positive |z|. If z is even, x² + y² is 0 modulo 4, forcing both x and y to be even. Halving all three gives another solution with smaller |z|. The case z = 0 forces x = y = 0.

Run on Electric 2.21.1,

Compare input and result JSON

Input JSON

{
  "name": "electric_language",
  "arguments": {
    "operation_id": "integer",
    "account_id": "examples",
    "budget": {
      "wall_ms": 20000,
      "cpu_ms": 20000,
      "nodes": 1000000,
      "results": 64,
      "output_bytes": 2097152,
      "memory_bytes": 268435456
    },
    "response_profile": "full_receipt",
    "action": "macro",
    "input": "integer_claim",
    "parameters": {
      "claim": {
        "variables": [
          "x",
          "y",
          "k"
        ],
        "polynomial": {
          "sub": [
            {
              "add": [
                {
                  "pow": {
                    "base": {
                      "var": "x"
                    },
                    "exponent": 2
                  }
                },
                {
                  "pow": {
                    "base": {
                      "var": "y"
                    },
                    "exponent": 2
                  }
                }
              ]
            },
            {
              "mul": [
                "3",
                {
                  "pow": {
                    "base": {
                      "add": [
                        {
                          "mul": [
                            "2",
                            {
                              "var": "k"
                            }
                          ]
                        },
                        "1"
                      ]
                    },
                    "exponent": 2
                  }
                }
              ]
            }
          ]
        },
        "box": [
          {
            "lo": "-2",
            "hi": "2"
          },
          {
            "lo": "-2",
            "hi": "2"
          },
          {
            "lo": "-2",
            "hi": "2"
          }
        ],
        "moduli": [
          4
        ]
      }
    }
  }
}
Download Input JSON

Result JSON

{
  "answer": {
    "censored_steps": [],
    "first_refutation": null,
    "formal_proof": false,
    "macro": "integer_claim",
    "scope": "verdicts: the steps' own, verbatim; the macro adds none. formal_proof: only a Lean step that succeeded. No counterexample found proves nothing",
    "skipped_steps": [],
    "steps": [
      {
        "censored": false,
        "child": "/data/children/0",
        "complete": true,
        "formal_proof": false,
        "operation": "electric_math",
        "outcome": "completed",
        "reason": "completed",
        "receipt": {
          "account_id": "examples",
          "attempt_id": "script-2dba2454d80024acf67141fe-a5037517df8b877c38f7b9c7d9132c53",
          "tool": "electric_account_show"
        },
        "scope": "finite_range_only",
        "step": "scan",
        "verdict": {
          "field": "result.status",
          "value": "confirmed_on_finite_range"
        }
      },
      {
        "censored": false,
        "child": "/data/children/1",
        "complete": true,
        "formal_proof": false,
        "operation": "electric_math",
        "outcome": "completed",
        "reason": "completed",
        "receipt": {
          "account_id": "examples",
          "attempt_id": "script-2dba2454d80024acf67141fe-5ec1746ea623f36f1ded4e218a648957",
          "tool": "electric_account_show"
        },
        "step": "obstruction",
        "summary": {
          "case_tree_node_count": 41,
          "survives_listed_moduli": false,
          "unsat_modulus": 4,
          "unsat_modulus_index": 0
        },
        "verdict": {
          "field": "result.status",
          "value": "locally_unsat"
        }
      }
    ],
    "text": "scan: result.status = confirmed_on_finite_range (no counterexample in the box (evidence only, not a proof)); obstruction: result.status = locally_unsat (proved: no integer solution (checked local obstruction certificate))"
  },
  "children": [
    {
      "outcome": "completed",
      "result": {
        "value": {
          "censored": false,
          "complete": true,
          "formal_proof": false,
          "format": "electric-general-math-value-1",
          "independent_backend": false,
          "request_sha256": "112ff96a1fa400d7508d6a6992d8e18793b4b211c97ede6815749fe07a90a9ee",
          "result": {
            "ablated": false,
            "ablations": [],
            "candidate_check": null,
            "counterexample": null,
            "coverage": {
              "axes": [
                {
                  "count": 5,
                  "hi": "2",
                  "lo": "-2",
                  "variable": "x"
                },
                {
                  "count": 5,
                  "hi": "2",
                  "lo": "-2",
                  "variable": "y"
                },
                {
                  "count": 5,
                  "hi": "2",
                  "lo": "-2",
                  "variable": "k"
                }
              ],
              "box_tuples": 125,
              "complete": true,
              "enumerated_tuples": 125,
              "exact_tested_tuple_count": 125,
              "hypothesis_filtered_tuples": 0,
              "requested_tuple_cap": 1000000
            },
            "domain": "Z",
            "domain_distinction": {
              "inspected_domain": "integer_tuples",
              "real_statement_certified": false
            },
            "formal_proof": false,
            "format": "electric-conjecture-check-result-1",
            "mode": "integer_scan",
            "non_claims": [
              "universal_statement",
              "real_statement_from_inspected_rational_or_integer_points",
              "separate_radical_claim",
              "minimality",
              "formal_proof"
            ],
            "references": {
              "checker": "electric.conjecture_check.v1",
              "domain_sha256": "93d0d537313b815cf04edef83da864d9813206c249942d62395d0904bdb47e65",
              "generator": {
                "id": "lexicographic_box_scan_v1",
                "order": "last_variable_fastest",
                "seed": null
              },
              "goal_sha256": "eacaef75f3456926479d4ddc51a7406c410984c8308c354796d03ee01ad9f8d6",
              "hypotheses_sha256": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
            },
            "route_authority": false,
            "scope": "finite_range_only",
            "status": "confirmed_on_finite_range",
            "termination": "complete",
            "uncertified_hits": [],
            "universal": false,
            "variables": [
              "x",
              "y",
              "k"
            ]
          },
          "route_authority": false,
          "status": "checked",
          "verification": {
            "ablations": [],
            "checker": "electric.conjecture_check.v1",
            "independent_backend": false,
            "ok": true,
            "replayed": true,
            "scope": "Same-component deterministic replay plus structural scope rules; not a Lean proof or independent CAS",
            "scope_guard": true
          }
        }
      },
      "step": "scan"
    },
    {
      "outcome": "completed",
      "result": {
        "value": {
          "censored": false,
          "complete": true,
          "formal_proof": false,
          "format": "electric-general-math-value-1",
          "independent_backend": true,
          "request_sha256": "24c43379d6e38882e9be5f593a53e8443441944a4e940e2d4e819905b520092c",
          "result": {
            "binding": {
              "equations": [
                [
                  {
                    "coeff": -3,
                    "exponents": [
                      0,
                      0,
                      0
                    ],
                    "term_index": 0
                  },
                  {
                    "coeff": -12,
                    "exponents": [
                      0,
                      0,
                      1
                    ],
                    "term_index": 1
                  },
                  {
                    "coeff": -12,
                    "exponents": [
                      0,
                      0,
                      2
                    ],
                    "term_index": 2
                  },
                  {
                    "coeff": 1,
                    "exponents": [
                      0,
                      2,
                      0
                    ],
                    "term_index": 3
                  },
                  {
                    "coeff": 1,
                    "exponents": [
                      2,
                      0,
                      0
                    ],
                    "term_index": 4
                  }
                ]
              ],
              "moduli": [
                4
              ],
              "operation": "local_obstruction_sieve",
              "square_expressions": [],
              "variables": [
                "x",
                "y",
                "k"
              ]
            },
            "censored": false,
            "certificate": {
              "certificate_kind": "local_unsat_case_tree",
              "declared_moduli": [
                4
              ],
              "prior_moduli_trees": [],
              "residue_case_tree": {
                "nodes": [
                  {
                    "children": [
                      {
                        "child_node": 1,
                        "delta": [
                          0,
                          0,
                          0
                        ],
                        "lift_index": 0
                      },
                      {
                        "child_node": 2,
                        "delta": [
                          0,
                          0,
                          1
                        ],
                        "lift_index": 1
                      },
                      {
                        "child_node": 3,
                        "delta": [
                          0,
                          1,
                          0
                        ],
                        "lift_index": 2
                      },
                      {
                        "child_node": 12,
                        "delta": [
                          0,
                          1,
                          1
                        ],
                        "lift_index": 3
                      },
                      {
                        "child_node": 21,
                        "delta": [
                          1,
                          0,
                          0
                        ],
                        "lift_index": 4
                      },
                      {
                        "child_node": 30,
                        "delta": [
                          1,
                          0,
                          1
                        ],
                        "lift_index": 5
                      },
                      {
                        "child_node": 39,
                        "delta": [
                          1,
                          1,
                          0
                        ],
                        "lift_index": 6
                      },
                      {
                        "child_node": 40,
                        "delta": [
                          1,
                          1,
                          1
                        ],
                        "lift_index": 7
                      }
                    ],
                    "level": 0,
                    "modulus": 1,
                    "node_index": 0,
                    "node_kind": "refine",
                    "radix": 2,
                    "residue": [
                      0,
                      0,
                      0
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 1,
                    "level": 1,
                    "modulus": 2,
                    "node_index": 1,
                    "node_kind": "refuted_equation",
                    "residue": [
                      0,
                      0,
                      0
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 1,
                    "level": 1,
                    "modulus": 2,
                    "node_index": 2,
                    "node_kind": "refuted_equation",
                    "residue": [
                      0,
                      0,
                      1
                    ]
                  },
                  {
                    "children": [
                      {
                        "child_node": 4,
                        "delta": [
                          0,
                          0,
                          0
                        ],
                        "lift_index": 0
                      },
                      {
                        "child_node": 5,
                        "delta": [
                          0,
                          0,
                          1
                        ],
                        "lift_index": 1
                      },
                      {
                        "child_node": 6,
                        "delta": [
                          0,
                          1,
                          0
                        ],
                        "lift_index": 2
                      },
                      {
                        "child_node": 7,
                        "delta": [
                          0,
                          1,
                          1
                        ],
                        "lift_index": 3
                      },
                      {
                        "child_node": 8,
                        "delta": [
                          1,
                          0,
                          0
                        ],
                        "lift_index": 4
                      },
                      {
                        "child_node": 9,
                        "delta": [
                          1,
                          0,
                          1
                        ],
                        "lift_index": 5
                      },
                      {
                        "child_node": 10,
                        "delta": [
                          1,
                          1,
                          0
                        ],
                        "lift_index": 6
                      },
                      {
                        "child_node": 11,
                        "delta": [
                          1,
                          1,
                          1
                        ],
                        "lift_index": 7
                      }
                    ],
                    "level": 1,
                    "modulus": 2,
                    "node_index": 3,
                    "node_kind": "refine",
                    "radix": 2,
                    "residue": [
                      0,
                      1,
                      0
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 4,
                    "node_kind": "refuted_equation",
                    "residue": [
                      0,
                      1,
                      0
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 5,
                    "node_kind": "refuted_equation",
                    "residue": [
                      0,
                      1,
                      2
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 6,
                    "node_kind": "refuted_equation",
                    "residue": [
                      0,
                      3,
                      0
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 7,
                    "node_kind": "refuted_equation",
                    "residue": [
                      0,
                      3,
                      2
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 8,
                    "node_kind": "refuted_equation",
                    "residue": [
                      2,
                      1,
                      0
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 9,
                    "node_kind": "refuted_equation",
                    "residue": [
                      2,
                      1,
                      2
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 10,
                    "node_kind": "refuted_equation",
                    "residue": [
                      2,
                      3,
                      0
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 11,
                    "node_kind": "refuted_equation",
                    "residue": [
                      2,
                      3,
                      2
                    ]
                  },
                  {
                    "children": [
                      {
                        "child_node": 13,
                        "delta": [
                          0,
                          0,
                          0
                        ],
                        "lift_index": 0
                      },
                      {
                        "child_node": 14,
                        "delta": [
                          0,
                          0,
                          1
                        ],
                        "lift_index": 1
                      },
                      {
                        "child_node": 15,
                        "delta": [
                          0,
                          1,
                          0
                        ],
                        "lift_index": 2
                      },
                      {
                        "child_node": 16,
                        "delta": [
                          0,
                          1,
                          1
                        ],
                        "lift_index": 3
                      },
                      {
                        "child_node": 17,
                        "delta": [
                          1,
                          0,
                          0
                        ],
                        "lift_index": 4
                      },
                      {
                        "child_node": 18,
                        "delta": [
                          1,
                          0,
                          1
                        ],
                        "lift_index": 5
                      },
                      {
                        "child_node": 19,
                        "delta": [
                          1,
                          1,
                          0
                        ],
                        "lift_index": 6
                      },
                      {
                        "child_node": 20,
                        "delta": [
                          1,
                          1,
                          1
                        ],
                        "lift_index": 7
                      }
                    ],
                    "level": 1,
                    "modulus": 2,
                    "node_index": 12,
                    "node_kind": "refine",
                    "radix": 2,
                    "residue": [
                      0,
                      1,
                      1
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 13,
                    "node_kind": "refuted_equation",
                    "residue": [
                      0,
                      1,
                      1
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 14,
                    "node_kind": "refuted_equation",
                    "residue": [
                      0,
                      1,
                      3
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 15,
                    "node_kind": "refuted_equation",
                    "residue": [
                      0,
                      3,
                      1
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 16,
                    "node_kind": "refuted_equation",
                    "residue": [
                      0,
                      3,
                      3
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 17,
                    "node_kind": "refuted_equation",
                    "residue": [
                      2,
                      1,
                      1
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 18,
                    "node_kind": "refuted_equation",
                    "residue": [
                      2,
                      1,
                      3
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 19,
                    "node_kind": "refuted_equation",
                    "residue": [
                      2,
                      3,
                      1
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 20,
                    "node_kind": "refuted_equation",
                    "residue": [
                      2,
                      3,
                      3
                    ]
                  },
                  {
                    "children": [
                      {
                        "child_node": 22,
                        "delta": [
                          0,
                          0,
                          0
                        ],
                        "lift_index": 0
                      },
                      {
                        "child_node": 23,
                        "delta": [
                          0,
                          0,
                          1
                        ],
                        "lift_index": 1
                      },
                      {
                        "child_node": 24,
                        "delta": [
                          0,
                          1,
                          0
                        ],
                        "lift_index": 2
                      },
                      {
                        "child_node": 25,
                        "delta": [
                          0,
                          1,
                          1
                        ],
                        "lift_index": 3
                      },
                      {
                        "child_node": 26,
                        "delta": [
                          1,
                          0,
                          0
                        ],
                        "lift_index": 4
                      },
                      {
                        "child_node": 27,
                        "delta": [
                          1,
                          0,
                          1
                        ],
                        "lift_index": 5
                      },
                      {
                        "child_node": 28,
                        "delta": [
                          1,
                          1,
                          0
                        ],
                        "lift_index": 6
                      },
                      {
                        "child_node": 29,
                        "delta": [
                          1,
                          1,
                          1
                        ],
                        "lift_index": 7
                      }
                    ],
                    "level": 1,
                    "modulus": 2,
                    "node_index": 21,
                    "node_kind": "refine",
                    "radix": 2,
                    "residue": [
                      1,
                      0,
                      0
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 22,
                    "node_kind": "refuted_equation",
                    "residue": [
                      1,
                      0,
                      0
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 23,
                    "node_kind": "refuted_equation",
                    "residue": [
                      1,
                      0,
                      2
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 24,
                    "node_kind": "refuted_equation",
                    "residue": [
                      1,
                      2,
                      0
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 25,
                    "node_kind": "refuted_equation",
                    "residue": [
                      1,
                      2,
                      2
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 26,
                    "node_kind": "refuted_equation",
                    "residue": [
                      3,
                      0,
                      0
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 27,
                    "node_kind": "refuted_equation",
                    "residue": [
                      3,
                      0,
                      2
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 28,
                    "node_kind": "refuted_equation",
                    "residue": [
                      3,
                      2,
                      0
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 29,
                    "node_kind": "refuted_equation",
                    "residue": [
                      3,
                      2,
                      2
                    ]
                  },
                  {
                    "children": [
                      {
                        "child_node": 31,
                        "delta": [
                          0,
                          0,
                          0
                        ],
                        "lift_index": 0
                      },
                      {
                        "child_node": 32,
                        "delta": [
                          0,
                          0,
                          1
                        ],
                        "lift_index": 1
                      },
                      {
                        "child_node": 33,
                        "delta": [
                          0,
                          1,
                          0
                        ],
                        "lift_index": 2
                      },
                      {
                        "child_node": 34,
                        "delta": [
                          0,
                          1,
                          1
                        ],
                        "lift_index": 3
                      },
                      {
                        "child_node": 35,
                        "delta": [
                          1,
                          0,
                          0
                        ],
                        "lift_index": 4
                      },
                      {
                        "child_node": 36,
                        "delta": [
                          1,
                          0,
                          1
                        ],
                        "lift_index": 5
                      },
                      {
                        "child_node": 37,
                        "delta": [
                          1,
                          1,
                          0
                        ],
                        "lift_index": 6
                      },
                      {
                        "child_node": 38,
                        "delta": [
                          1,
                          1,
                          1
                        ],
                        "lift_index": 7
                      }
                    ],
                    "level": 1,
                    "modulus": 2,
                    "node_index": 30,
                    "node_kind": "refine",
                    "radix": 2,
                    "residue": [
                      1,
                      0,
                      1
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 31,
                    "node_kind": "refuted_equation",
                    "residue": [
                      1,
                      0,
                      1
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 32,
                    "node_kind": "refuted_equation",
                    "residue": [
                      1,
                      0,
                      3
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 33,
                    "node_kind": "refuted_equation",
                    "residue": [
                      1,
                      2,
                      1
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 34,
                    "node_kind": "refuted_equation",
                    "residue": [
                      1,
                      2,
                      3
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 35,
                    "node_kind": "refuted_equation",
                    "residue": [
                      3,
                      0,
                      1
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 36,
                    "node_kind": "refuted_equation",
                    "residue": [
                      3,
                      0,
                      3
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 37,
                    "node_kind": "refuted_equation",
                    "residue": [
                      3,
                      2,
                      1
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 2,
                    "level": 2,
                    "modulus": 4,
                    "node_index": 38,
                    "node_kind": "refuted_equation",
                    "residue": [
                      3,
                      2,
                      3
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 1,
                    "level": 1,
                    "modulus": 2,
                    "node_index": 39,
                    "node_kind": "refuted_equation",
                    "residue": [
                      1,
                      1,
                      0
                    ]
                  },
                  {
                    "equation_index": 0,
                    "evaluated_residue": 1,
                    "level": 1,
                    "modulus": 2,
                    "node_index": 40,
                    "node_kind": "refuted_equation",
                    "residue": [
                      1,
                      1,
                      1
                    ]
                  }
                ],
                "radices": [
                  {
                    "level": 0,
                    "radix": 2
                  },
                  {
                    "level": 1,
                    "radix": 2
                  }
                ],
                "target_modulus": 4
              },
              "unsat_modulus": 4,
              "unsat_modulus_index": 0
            },
            "complete": true,
            "operation": "local_obstruction_sieve",
            "route_authority": false,
            "schema_version": "electric.nt_obstruction.v1",
            "status": "locally_unsat",
            "summary": {
              "case_tree_node_count": 41,
              "survives_listed_moduli": false,
              "unsat_modulus": 4,
              "unsat_modulus_index": 0
            }
          },
          "route_authority": false,
          "status": "checked",
          "verification": {
            "certificate_kind": "local_unsat_case_tree",
            "operation": "local_obstruction_sieve",
            "route_authority": false,
            "schema_version": "electric.nt_obstruction.v1",
            "status": "locally_unsat",
            "valid": true
          }
        }
      },
      "step": "obstruction"
    }
  ]
}
Download Result JSON

Proved

Do the three medians meet?

Take any noncollinear triangle ABC. Let D, E and F be the midpoints of BC, CA and AB. Where does the third median go?

G = AD ∩ BE lies on CF.

Electric represented the vertices by free coordinates, constructed the midpoints and the intersection, then checked that the collinearity polynomial vanishes identically. The certificate’s one condition is that the triangle has nonzero area.

Run on Electric 2.21.1,

Compare input and result JSON

Input JSON

{
  "name": "electric_language",
  "arguments": {
    "operation_id": "medians",
    "account_id": "examples",
    "budget": {
      "wall_ms": 20000,
      "cpu_ms": 20000,
      "nodes": 1000000,
      "results": 64,
      "output_bytes": 2097152,
      "memory_bytes": 268435456
    },
    "response_profile": "full_receipt",
    "action": "macro",
    "input": "geometry_claim",
    "parameters": {
      "geometry": {
        "points": [
          {
            "name": "A",
            "kind": "free"
          },
          {
            "name": "B",
            "kind": "free"
          },
          {
            "name": "C",
            "kind": "free"
          }
        ],
        "constructions": [
          {
            "name": "D",
            "op": "midpoint",
            "args": [
              "B",
              "C"
            ]
          },
          {
            "name": "E",
            "op": "midpoint",
            "args": [
              "C",
              "A"
            ]
          },
          {
            "name": "F",
            "op": "midpoint",
            "args": [
              "A",
              "B"
            ]
          },
          {
            "name": "G",
            "op": "intersect",
            "args": [
              "A",
              "D",
              "B",
              "E"
            ]
          }
        ],
        "goal": {
          "predicate": "collinear",
          "args": [
            "C",
            "G",
            "F"
          ]
        }
      },
      "screen_points": 4
    }
  }
}
Download Input JSON

Result JSON

{
  "answer": {
    "censored_steps": [
      "screen"
    ],
    "first_refutation": null,
    "formal_proof": false,
    "macro": "geometry_claim",
    "scope": "verdicts: the steps' own, verbatim; the macro adds none. formal_proof: only a Lean step that succeeded. No counterexample found proves nothing",
    "skipped_steps": [],
    "steps": [
      {
        "censored": true,
        "child": "/data/children/0",
        "complete": false,
        "formal_proof": false,
        "operation": "electric_math",
        "outcome": "completed",
        "reason": "completed",
        "receipt": {
          "account_id": "examples",
          "attempt_id": "script-afe93ee255e7ec1d5ba68c99-dcedd985ce05d80b009ece9f46a7b968",
          "tool": "electric_account_show"
        },
        "step": "screen",
        "verdict": {
          "field": "result.status",
          "value": "censored"
        }
      },
      {
        "censored": false,
        "child": "/data/children/1",
        "complete": true,
        "formal_proof": false,
        "operation": "electric_math",
        "outcome": "completed",
        "reason": "completed",
        "receipt": {
          "account_id": "examples",
          "attempt_id": "script-afe93ee255e7ec1d5ba68c99-5e69c1cd636f2a844aefd69b165e2300",
          "tool": "electric_account_show"
        },
        "step": "exact",
        "summary": {
          "conditions": [
            "A*B_bar - A*C_bar - A_bar*B + A_bar*C + B*C_bar - B_bar*C != 0"
          ],
          "identities": 1,
          "note": "unverified rendering; check the certificate with check_geometry_certificate"
        },
        "verdict": {
          "field": "result.status",
          "value": "proved"
        }
      }
    ],
    "text": "screen: result.status = censored (screen found no counterexample; nothing certified); censored: \"completed\"; exact: result.status = proved (proved where the listed non-degeneracy conditions hold)"
  },
  "children": [
    {
      "outcome": "completed",
      "result": {
        "value": {
          "censored": true,
          "complete": false,
          "formal_proof": false,
          "format": "electric-general-math-value-1",
          "independent_backend": true,
          "reason": "term_cap",
          "request_sha256": "87a6e9a85ee51df4e41f0bbc28391ca216badf3081e85a8e35b25e1d0131a441",
          "result": {
            "format": "electric-geometry-result-1",
            "reason": "term_cap",
            "status": "censored",
            "work": {
              "cpu_ms": 2,
              "nodes": 62,
              "output_bytes": 0,
              "results": 0,
              "wall_ms": 1
            }
          },
          "route_authority": false,
          "status": "censored"
        }
      },
      "step": "screen"
    },
    {
      "outcome": "completed",
      "result": {
        "value": {
          "censored": false,
          "complete": true,
          "formal_proof": false,
          "format": "electric-general-math-value-1",
          "independent_backend": true,
          "request_sha256": "fa402abc2d47cfce5e0c0fe5ba8a904daa3ec8cdf24c4522c4b6482aed400c58",
          "result": {
            "certificate": {
              "claim": "the predicate polynomials vanish identically in the free parameters, hence the theorem holds for every configuration in which all listed non-degeneracy polynomials are nonzero",
              "conditions": [
                {
                  "terms": [
                    {
                      "coefficient": "1",
                      "powers": [
                        1,
                        0,
                        0,
                        1,
                        0,
                        0
                      ]
                    },
                    {
                      "coefficient": "-1",
                      "powers": [
                        1,
                        0,
                        0,
                        0,
                        0,
                        1
                      ]
                    },
                    {
                      "coefficient": "-1",
                      "powers": [
                        0,
                        1,
                        1,
                        0,
                        0,
                        0
                      ]
                    },
                    {
                      "coefficient": "1",
                      "powers": [
                        0,
                        1,
                        0,
                        0,
                        1,
                        0
                      ]
                    },
                    {
                      "coefficient": "1",
                      "powers": [
                        0,
                        0,
                        1,
                        0,
                        0,
                        1
                      ]
                    },
                    {
                      "coefficient": "-1",
                      "powers": [
                        0,
                        0,
                        0,
                        1,
                        1,
                        0
                      ]
                    }
                  ]
                }
              ],
              "format": "electric-geometry-certificate-1",
              "identities": 1,
              "outcome": "proved",
              "request_sha256": "fa402abc2d47cfce5e0c0fe5ba8a904daa3ec8cdf24c4522c4b6482aed400c58",
              "steps": [
                {
                  "name": "D",
                  "z": {
                    "den": {
                      "terms": [
                        {
                          "coefficient": "1",
                          "powers": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                          ]
                        }
                      ]
                    },
                    "num": {
                      "terms": [
                        {
                          "coefficient": "1/2",
                          "powers": [
                            0,
                            0,
                            1,
                            0,
                            0,
                            0
                          ]
                        },
                        {
                          "coefficient": "1/2",
                          "powers": [
                            0,
                            0,
                            0,
                            0,
                            1,
                            0
                          ]
                        }
                      ]
                    }
                  },
                  "zbar": {
                    "den": {
                      "terms": [
                        {
                          "coefficient": "1",
                          "powers": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                          ]
                        }
                      ]
                    },
                    "num": {
                      "terms": [
                        {
                          "coefficient": "1/2",
                          "powers": [
                            0,
                            0,
                            0,
                            1,
                            0,
                            0
                          ]
                        },
                        {
                          "coefficient": "1/2",
                          "powers": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            1
                          ]
                        }
                      ]
                    }
                  }
                },
                {
                  "name": "E",
                  "z": {
                    "den": {
                      "terms": [
                        {
                          "coefficient": "1",
                          "powers": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                          ]
                        }
                      ]
                    },
                    "num": {
                      "terms": [
                        {
                          "coefficient": "1/2",
                          "powers": [
                            1,
                            0,
                            0,
                            0,
                            0,
                            0
                          ]
                        },
                        {
                          "coefficient": "1/2",
                          "powers": [
                            0,
                            0,
                            0,
                            0,
                            1,
                            0
                          ]
                        }
                      ]
                    }
                  },
                  "zbar": {
                    "den": {
                      "terms": [
                        {
                          "coefficient": "1",
                          "powers": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                          ]
                        }
                      ]
                    },
                    "num": {
                      "terms": [
                        {
                          "coefficient": "1/2",
                          "powers": [
                            0,
                            1,
                            0,
                            0,
                            0,
                            0
                          ]
                        },
                        {
                          "coefficient": "1/2",
                          "powers": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            1
                          ]
                        }
                      ]
                    }
                  }
                },
                {
                  "name": "F",
                  "z": {
                    "den": {
                      "terms": [
                        {
                          "coefficient": "1",
                          "powers": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                          ]
                        }
                      ]
                    },
                    "num": {
                      "terms": [
                        {
                          "coefficient": "1/2",
                          "powers": [
                            1,
                            0,
                            0,
                            0,
                            0,
                            0
                          ]
                        },
                        {
                          "coefficient": "1/2",
                          "powers": [
                            0,
                            0,
                            1,
                            0,
                            0,
                            0
                          ]
                        }
                      ]
                    }
                  },
                  "zbar": {
                    "den": {
                      "terms": [
                        {
                          "coefficient": "1",
                          "powers": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                          ]
                        }
                      ]
                    },
                    "num": {
                      "terms": [
                        {
                          "coefficient": "1/2",
                          "powers": [
                            0,
                            1,
                            0,
                            0,
                            0,
                            0
                          ]
                        },
                        {
                          "coefficient": "1/2",
                          "powers": [
                            0,
                            0,
                            0,
                            1,
                            0,
                            0
                          ]
                        }
                      ]
                    }
                  }
                },
                {
                  "name": "G",
                  "z": {
                    "den": {
                      "terms": [
                        {
                          "coefficient": "1",
                          "powers": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                          ]
                        }
                      ]
                    },
                    "num": {
                      "terms": [
                        {
                          "coefficient": "1/3",
                          "powers": [
                            1,
                            0,
                            0,
                            0,
                            0,
                            0
                          ]
                        },
                        {
                          "coefficient": "1/3",
                          "powers": [
                            0,
                            0,
                            1,
                            0,
                            0,
                            0
                          ]
                        },
                        {
                          "coefficient": "1/3",
                          "powers": [
                            0,
                            0,
                            0,
                            0,
                            1,
                            0
                          ]
                        }
                      ]
                    }
                  },
                  "zbar": {
                    "den": {
                      "terms": [
                        {
                          "coefficient": "1",
                          "powers": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                          ]
                        }
                      ]
                    },
                    "num": {
                      "terms": [
                        {
                          "coefficient": "1/3",
                          "powers": [
                            0,
                            1,
                            0,
                            0,
                            0,
                            0
                          ]
                        },
                        {
                          "coefficient": "1/3",
                          "powers": [
                            0,
                            0,
                            0,
                            1,
                            0,
                            0
                          ]
                        },
                        {
                          "coefficient": "1/3",
                          "powers": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            1
                          ]
                        }
                      ]
                    }
                  }
                }
              ],
              "variables": [
                "A",
                "A_bar",
                "B",
                "B_bar",
                "C",
                "C_bar"
              ]
            },
            "format": "electric-geometry-result-1",
            "stage": 2,
            "status": "proved",
            "summary": {
              "conditions": [
                "A*B_bar - A*C_bar - A_bar*B + A_bar*C + B*C_bar - B_bar*C != 0"
              ],
              "identities": 1,
              "note": "unverified rendering; check the certificate with check_geometry_certificate"
            },
            "work": {
              "cpu_ms": 2,
              "nodes": 2049,
              "output_bytes": 2524,
              "results": 1,
              "wall_ms": 1
            }
          },
          "route_authority": false,
          "status": "checked",
          "verification": {
            "censored": false,
            "certified": {
              "claim": "the predicate polynomials vanish identically in the free parameters, hence the theorem holds for every configuration in which all listed non-degeneracy polynomials are nonzero",
              "conditions": [
                {
                  "terms": [
                    {
                      "coefficient": "1",
                      "powers": [
                        1,
                        0,
                        0,
                        1,
                        0,
                        0
                      ]
                    },
                    {
                      "coefficient": "-1",
                      "powers": [
                        1,
                        0,
                        0,
                        0,
                        0,
                        1
                      ]
                    },
                    {
                      "coefficient": "-1",
                      "powers": [
                        0,
                        1,
                        1,
                        0,
                        0,
                        0
                      ]
                    },
                    {
                      "coefficient": "1",
                      "powers": [
                        0,
                        1,
                        0,
                        0,
                        1,
                        0
                      ]
                    },
                    {
                      "coefficient": "1",
                      "powers": [
                        0,
                        0,
                        1,
                        0,
                        0,
                        1
                      ]
                    },
                    {
                      "coefficient": "-1",
                      "powers": [
                        0,
                        0,
                        0,
                        1,
                        1,
                        0
                      ]
                    }
                  ]
                }
              ],
              "goal_check": "each identity's numerator over the goal points' common denominators is zero",
              "identities": 1,
              "outcome": "proved",
              "reading": "z and zbar independent (complexification); unit-circle points have zbar = 1/z; free points are read with zbar = conj(z)",
              "steps_check": "each step satisfies its two defining equations and their determinant is covered",
              "variables": [
                "A",
                "A_bar",
                "B",
                "B_bar",
                "C",
                "C_bar"
              ]
            },
            "format": "electric-geometry-check-1",
            "status": "verified",
            "work": {
              "cpu_ms": 2,
              "nodes": 3187,
              "output_bytes": 3490,
              "results": 1,
              "wall_ms": 2
            }
          }
        }
      },
      "step": "exact"
    }
  ]
}
Download Result JSON

Censored

Read a search that ran out of budget

How many cells of a 6 × 6 grid can you fill if each 2 × 2 square contains at most two filled cells? Give the search a budget of 160 states.

160 states visited. Rows 0–1 covered. Four rows still open.

Electric finished two whole rows before reaching the state cap. The result records rows_completed = 2, complete = false and certificate = null. The optimum is still unknown from this run.

Run on Electric 2.21.1,

Compare input and result JSON

Input JSON

{
  "name": "electric_math",
  "arguments": {
    "operation_id": "censored-grid",
    "account_id": "examples",
    "budget": {
      "wall_ms": 20000,
      "cpu_ms": 20000,
      "nodes": 1000000,
      "results": 64,
      "output_bytes": 2097152,
      "memory_bytes": 268435456
    },
    "response_profile": "full_receipt",
    "action": "evaluate",
    "request": {
      "format": "electric-finite-combinatorics-request-1",
      "operation": "grid_window_dp",
      "rows": 6,
      "cols": 6,
      "window_rows": 2,
      "window_cols": 2,
      "max_per_window": 2,
      "max_dp_states": 160
    }
  }
}
Download Input JSON

Result JSON

{
  "censored": true,
  "complete": false,
  "coverage": {
    "dp_states_visited": 160,
    "max_dp_states": 160,
    "rows_completed": 2,
    "total_rows": 6
  },
  "formal_proof": false,
  "format": "electric-general-math-value-1",
  "independent_backend": true,
  "request_sha256": "bf6b3a2a51df6cd836f6dbf4bd8fc85f0c9017876cf260becc83257817193c6f",
  "result": {
    "binding": {
      "cell_weights": [
        [
          1,
          1,
          1,
          1,
          1,
          1
        ],
        [
          1,
          1,
          1,
          1,
          1,
          1
        ],
        [
          1,
          1,
          1,
          1,
          1,
          1
        ],
        [
          1,
          1,
          1,
          1,
          1,
          1
        ],
        [
          1,
          1,
          1,
          1,
          1,
          1
        ],
        [
          1,
          1,
          1,
          1,
          1,
          1
        ]
      ],
      "cols": 6,
      "forbidden_cells": [],
      "max_per_window": 2,
      "min_per_window": 0,
      "operation": "grid_window_dp",
      "rows": 6,
      "window_cols": 2,
      "window_rows": 2
    },
    "censored": true,
    "certificate": null,
    "complete": false,
    "coverage": {
      "dp_states_visited": 160,
      "max_dp_states": 160,
      "rows_completed": 2,
      "total_rows": 6
    },
    "operation": "grid_window_dp",
    "route_authority": false,
    "schema_version": "electric.finite_combinatorics.v1",
    "status": "censored"
  },
  "route_authority": false,
  "status": "censored"
}
Download Result JSON

Exact replay

Replay three group moves

Start with the made-up presentation ⟨x, y | xyyy, y⟩. Can you reach the pair (x, y) using the same move three times?

(xyyy, y) → (xyy, y) → (xy, y) → (x, y)

Move 3 multiplies the first relator on the right by the inverse of the second. One y cancels each time. The replay lists all four states, and the official Andrews–Curtis verifier also accepts the three moves for this starting pair.

Run on Electric 2.21.1,

Compare input and result JSON

Input JSON

{
  "name": "electric_language",
  "arguments": {
    "operation_id": "move-replay",
    "account_id": "examples",
    "budget": {
      "wall_ms": 20000,
      "cpu_ms": 20000,
      "nodes": 1000000,
      "results": 64,
      "output_bytes": 2097152,
      "memory_bytes": 268435456
    },
    "response_profile": "full_receipt",
    "action": "replay",
    "input": {
      "move_spec": "ac-r2-v1",
      "start": [
        "xyyy",
        "y"
      ],
      "moves": [
        3,
        3,
        3
      ],
      "trace": "all"
    }
  }
}
Download Input JSON

Result JSON

{
  "assertions_passed": null,
  "board_eligibility": "unchecked",
  "board_excesses": [],
  "board_resource_status": "within_board_caps",
  "effective_limits": {
    "letters": 10000,
    "moves": 100000,
    "work": 5000000
  },
  "expected_state": null,
  "expected_state_matched": null,
  "failed_move_index": null,
  "final": {
    "goal": true,
    "peak": 5,
    "spent_moves": 3,
    "state": [
      "x",
      "y"
    ],
    "work": 14
  },
  "final_lengths": [
    1,
    1
  ],
  "goal_reached": true,
  "last_verified": {
    "goal": true,
    "peak": 5,
    "spent_moves": 3,
    "state": [
      "x",
      "y"
    ],
    "work": 14
  },
  "last_verified_state_step": 3,
  "move_spec": "ac-r2-v1",
  "profile": "board",
  "replay_complete": true,
  "route_authority": false,
  "source_binding": "literal_entry_with_asserted_inherited_labels",
  "start": {
    "goal": false,
    "peak": 5,
    "spent_moves": 0,
    "state": [
      "xyyy",
      "y"
    ],
    "work": 5
  },
  "stop": null,
  "trace": [
    {
      "goal": false,
      "move": null,
      "peak": 5,
      "spent_moves": 0,
      "state": [
        "xyyy",
        "y"
      ],
      "step": 0,
      "total_length": 5,
      "work": 5
    },
    {
      "goal": false,
      "move": 3,
      "peak": 5,
      "spent_moves": 1,
      "state": [
        "xyy",
        "y"
      ],
      "step": 1,
      "total_length": 4,
      "work": 9
    },
    {
      "goal": false,
      "move": 3,
      "peak": 5,
      "spent_moves": 2,
      "state": [
        "xy",
        "y"
      ],
      "step": 2,
      "total_length": 3,
      "work": 12
    },
    {
      "goal": true,
      "move": 3,
      "peak": 5,
      "spent_moves": 3,
      "state": [
        "x",
        "y"
      ],
      "step": 3,
      "total_length": 2,
      "work": 14
    }
  ],
  "trace_byte_limit": 1048576,
  "trace_bytes": 414,
  "trace_complete": true,
  "trace_executed": 4,
  "trace_indexing": "state step 0 is entry; state step k follows k moves; failed_move_index is zero-based",
  "trace_limit": 256,
  "trace_limiting_cap": null,
  "trace_next_step": null,
  "trace_omitted": 0,
  "trace_selected": 4,
  "trace_unexecuted": 0,
  "verdict": "SOLVED_TRIVIAL_GOAL"
}
Download Result JSON

Electric 3.0 preview · development build

The same factorization through compute

Ask for the factors of x⁶ − 1 again. The development build returns the product, a reference you can use in the next call, and the exact operation it routed to.

compute({"op":"factor","expr":"x^6-1","vars":["x"]})

@1 = (x - 1)*(x^2 - x + 1)*(x^2 + x + 1)*(x + 1)
routed: factor("x^6-1", backend=flint)

Run on the Electric 3.0 development build,

Compare input and result JSON

Input JSON

{
  "name": "compute",
  "arguments": {
    "op": "factor",
    "expr": "x^6-1",
    "vars": [
      "x"
    ]
  }
}
Download Input JSON

Result JSON

{
  "answer": {
    "certificate_scope": "product reconstructed exactly; irreducibility supplied by FLINT, not independently proved",
    "exact_arithmetic": true,
    "factors": [
      {
        "multiplicity": 1,
        "polynomial": "x - 1"
      },
      {
        "multiplicity": 1,
        "polynomial": "x^2 - x + 1"
      },
      {
        "multiplicity": 1,
        "polynomial": "x^2 + x + 1"
      },
      {
        "multiplicity": 1,
        "polynomial": "x + 1"
      }
    ],
    "status": "computed",
    "unit": "1"
  },
  "cost": {
    "complete": true,
    "termination": "completed"
  },
  "echo": {
    "assume": [],
    "changed": [
      "infix_to_ast"
    ],
    "domain": "Q-polynomial",
    "op": "factor",
    "read": "x^6 - 1",
    "vars": [
      "x"
    ]
  },
  "flags": {
    "assumption_added": false,
    "censored": false,
    "certified": false,
    "condition_refused": false,
    "proved": false,
    "refuted": false,
    "typed_copy": false
  },
  "label": "evidence",
  "ref": {
    "id": "@1",
    "read": "(x - 1)*(x^2 - x + 1)*(x^2 + x + 1)*(x + 1)"
  },
  "routed": "factor(\"x^6-1\", backend=flint)",
  "status": "ok",
  "verdict": {
    "class": "ok",
    "status": "computed"
  }
}
Download Result JSON

How to run these

If you already have Electric 2.21.1, add this entry to your MCP client. For early access, contact us about beta testing. Replace the workspace path with an absolute path to a new directory. The client must be able to find electric on its PATH.

{"mcpServers": {
  "electric": {"command": "electric", "args": ["mcp", "--workspace", "/absolute/path/to/electric-examples"]}
}}

Connect, then send the example account setup JSON once. Each input file gives the MCP tool name and its arguments for a tools/call request. A fresh workspace lets you repeat the runs with the same operation IDs.

The paired result files show the mathematical output. For macros they include the answer and each step’s result. Account ledgers and worker logs stay local.