{"id":50568423,"url":"https://github.com/leanprover/lp-backend-soplex-json","last_synced_at":"2026-06-04T17:00:25.523Z","repository":{"id":359327838,"uuid":"1245509682","full_name":"leanprover/lp-backend-soplex-json","owner":"leanprover","description":"LPBackend adapter: drives an external SoPlex binary through a JSON stdio protocol. Priority 50 for the by lp tactic registry.","archived":false,"fork":false,"pushed_at":"2026-06-04T04:53:04.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-04T06:22:28.365Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lean","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leanprover.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-21T09:35:44.000Z","updated_at":"2026-06-04T04:53:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/leanprover/lp-backend-soplex-json","commit_stats":null,"previous_names":["kim-em/lp-backend-soplex-json","leanprover/lp-backend-soplex-json"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leanprover/lp-backend-soplex-json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Flp-backend-soplex-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Flp-backend-soplex-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Flp-backend-soplex-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Flp-backend-soplex-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leanprover","download_url":"https://codeload.github.com/leanprover/lp-backend-soplex-json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Flp-backend-soplex-json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33914548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-04T17:00:17.601Z","updated_at":"2026-06-04T17:00:25.514Z","avatar_url":"https://github.com/leanprover.png","language":"Lean","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LPBackendSoplexJSON\n\n[![Lean](https://img.shields.io/badge/Lean-4.29.1-blue.svg)](./lean-toolchain)\n[![License](https://img.shields.io/github/license/leanprover/lp-backend-soplex-json.svg)](./LICENSE)\n\n\u003e **New here? Start at [`leanprover/lp`](https://github.com/leanprover/lp)** — the entry\n\u003e point for the `lp` / `maximize` tactics and the verified LP solver. This repository is one\n\u003e package of that family: the out-of-process SoPlex JSON backend adapter (scaffold).\n\nOut-of-process `LPBackend` adapter for the `by lp` tactic registry.\nDrives an external `soplex` binary on `$PATH` (or anywhere on disk\nvia `LP_BACKEND_SOPLEX_JSON_BIN`) through a JSON stdio protocol,\nand self-registers with the\n[`leanprover/lp-tactic`](https://github.com/leanprover/lp-tactic) registry\nunder priority 50 (\"subprocess band\") on import.\n\nThis is the \"I already have SoPlex installed, please don't rebuild\nit\" backend. The build graph carries *no* native deps — no GMP, no\nBoost, no SoPlex headers. SoPlex enters the picture at *runtime*,\nwhen `solveExact` is called and the backend spawns the binary. If\nyou'd rather pin a specific SoPlex build inside Lake, depend on\n[`leanprover/lp-backend-soplex-ffi`](https://github.com/leanprover/lp-backend-soplex-ffi)\ninstead.\n\nThe wire format ([`docs/json-contract.md`](./docs/json-contract.md))\nis the canonical interop spec. Any external tool that emits the\nsame JSON shape (a Python harness driving HiGHS, a Rust shim, the\n[soplex CLI](https://soplex.zib.de/) once a JSON-mode wrapper\nlands, etc.) can serve as a drop-in backend by editing the\n`solveExact` invocation to point at it.\n\n## Quickstart\n\n```lean\nrequire LPBackendSoplexJSON from git\n  \"https://github.com/leanprover/lp-backend-soplex-json\" @ \"main\"\n```\n\n```lean\nimport LPTactic\nimport LPBackendSoplexJSON  -- registers \"soplex-json\" at priority 50\n\n-- With `brew install soplex` (or the equivalent), `by lp` now\n-- dispatches to the out-of-process backend by default:\nexample (a b : Rat) (_ : 2 * a + b ≤ 5) (_ : a - b ≤ 1) :\n    3 * a ≤ 6 := by lp\n```\n\nOverride the binary location explicitly:\n\n```sh\nexport LP_BACKEND_SOPLEX_JSON_BIN=/opt/scip-suite/bin/soplex\n```\n\n## Status\n\nToday the backend ships a working `probe` (spawns\n`soplex --version`, captures exit code) and a placeholder\n`solveExact` that reports a structured \"JSON encoder/decoder not\nyet implemented\" error. The wire-format spec in\n[`docs/json-contract.md`](./docs/json-contract.md) is canonical;\nthe encoder/decoder connecting it to `Backend.lean`'s\n`solveExact` is the follow-up work. Importing the module today is\nalready meaningful: it registers the backend so\n`availableBackends` lists it, and the probe correctly reports\n\"is `soplex` installed?\" diagnostics.\n\n## Layout\n\n```\nLPBackendSoplexJSON.lean         # top-level import\nLPBackendSoplexJSON/\n  Backend.lean                   # def backend : LPBackend, probe, solveExact\n  Contract.lean                  # JSON encoder/decoder (TODO)\ndocs/json-contract.md            # the wire-format spec\n```\n\nThe backend lives under `namespace LP.Backend.SoplexJSON`,\nmirroring the layout of\n[`leanprover/lp-backend-soplex-ffi`](https://github.com/leanprover/lp-backend-soplex-ffi).\n\n## Licence\n\n[Apache License 2.0](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanprover%2Flp-backend-soplex-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleanprover%2Flp-backend-soplex-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanprover%2Flp-backend-soplex-json/lists"}