Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
cff-version: 1.2.0
type: software
title: TheoremOS
license: AGPL-3.0-only
message: "When citing TheoremOS, please include the release tag or commit you used. Cite any third-party software, problems or datasets separately."
authors:
- family-names: Liu
given-names: Zhenhao
- name: TheoremOS contributors
repository-code: "https://github.com/HuggingMath/theorem-os"
url: "https://theoremos.top"
678 changes: 661 additions & 17 deletions LICENSE

Large diffs are not rendered by default.

661 changes: 661 additions & 0 deletions LICENSES/AGPL-3.0-only.txt

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions LICENSES/project-scope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# TheoremOS source license

The project-owned workbench, CLI and solver source are available under the [GNU Affero General Public License, version 3 only](../LICENSE) (SPDX: `AGPL-3.0-only`). The project and its contributors retain their copyright. Keep the notices applicable to the material you use. [CITATION.cff](../CITATION.cff) gives the preferred citation; scholarly citation is a request, not an additional license condition.

Release `v0.1.0` was distributed under AGPL-3.0-only. A subsequent revision used proprietary terms for project-owned material. This grant applies to the project-owned source and to the contributions listed below, including their publication in the preserved Git history. It does not assign copyright or replace any independent third-party terms.

## Contributions credited to yiran

On 2026-11-23, the project maintainer confirmed authority to publish the contributions credited to the Git author `yiran` in the following 18 commits under AGPL-3.0-only. This records the maintainer’s grant; it does not purport to be a statement signed by the contributor. Original author attribution and commit history are preserved. The grant covers the contributed work, not every pre-existing file touched by a commit.

| Author date (UTC+8) | Commit |
| --- | --- |
| 2026-11-01 | `29ccaff2e0b823d366c7cc98601547ad5c4fb888` |
| 2026-11-03 | `b43a03388ca7f53066199ef7f6ebf48f32102d32` |
| 2026-11-03 | `f72e58db4de922541cae8dafd82b50b6873cdf97` |
| 2026-11-04 | `b0ba49a7803a8cf3f82d825dabe94e407d9d5c64` |
| 2026-11-09 | `4444a4b6d3adcf206c7b066a3f63392e74b136a2` |
| 2026-11-09 | `ccb202fe5ba0235585423ae4f6a44a37bf6aab10` |
| 2026-11-09 | `68e68fa3ac155fb030643459c1b060a14465f828` |
| 2026-11-09 | `16ba269aba4ec29a56618c8d4d0f952eb7ff4450` |
| 2026-11-09 | `93712b89d834dd0a37333aa57356b6477da36789` |
| 2026-11-09 | `902025ff92d4389ccc3f4b0453781425ea4cb32a` |
| 2026-11-09 | `395795fa1dc5e6c9fc9d2625436ff3c42a9542af` |
| 2026-11-09 | `8612ad112d849c672fe3ba868b04589e290c9f31` |
| 2026-11-09 | `98519693e4e163ac030936f88cdfa3c59c4fe5ae` |
| 2026-11-09 | `6816e8a3ed60c3169d3ee5320265dcf47631a739` |
| 2026-11-10 | `682f652d2568305ef4312d91d3b4f7c4a3e6e690` |
| 2026-11-10 | `a4e34d1a0d30a9b17f36a450d835f482b3005a89` |
| 2026-11-10 | `1ae33e677fb362d9065dff471c211bd71b43fb04` |
| 2026-11-10 | `46b148517c54ecf08ee14d8a2f4833508497c171` |

## Materials with separate terms

- The [44 enumerated Lean modules and their listed adaptations](../resources/theorem-os-library/REDISTRIBUTION.md) have a separate AGPL-3.0-only grant. It does not relicense other contents of the upstream library, cited papers, or a research archive containing copies.
- DeepScientist and AionUi credits, the Apache-licensed files, and the modified OpenAI Codex backend retain their applicable notices. See [NOTICE](../NOTICE) and the [Codex backend attribution](../scripts/codex-backend/README.md).
- Problems, datasets, proofs supplied by third parties, fonts, icons and third-party packages remain subject to their respective terms. A recorded source URL, checksum, or author name identifies provenance; it does not itself grant redistribution rights.

When distributing copies or operating a modified network-accessible version, consult the license, particularly sections 4–6 and 13, for notice and corresponding-source obligations. Forks may identify their origin; they should not claim official endorsement.
43 changes: 40 additions & 3 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
TheoremOS

Copyright 2026 Zhenhao Liu. All rights reserved. See LICENSE.
Copyright 2026 Zhenhao Liu and the respective contributors.
Project-owned source code is licensed under the GNU Affero General Public
License, version 3 only (AGPL-3.0-only). See LICENSE. Authorship is
preserved in Git. LICENSES/project-scope.md describes the 18 contributions
credited to yiran and distinguishes separate third-party terms.

TheoremOS is the mathematical research runtime extracted from
DeepScientist (https://github.com/ResearAI/DeepScientist), of which the
TheoremOS author is a co-author. The files listed in extraction.json were
taken from DeepScientist at commit 232fd23 and have since been modified.
taken from the DeepScientist mathematics fork at commit 232fd23 and have
since been modified. That revision used AGPL-3.0-only by default, with
per-file and third-party exceptions. Its authors retain their rights.

Apache-2.0 material:
Files carrying "SPDX-License-Identifier: Apache-2.0" come from the
Expand All @@ -20,9 +26,40 @@ No endorsement:
AionUi, iOfficeAI, DeepScientist, ResearAI and their contributors do not
endorse TheoremOS unless expressly stated.

Project attribution:
TheoremOS is maintained at https://github.com/HuggingMath/theorem-os.
CITATION.cff supplies the preferred software citation. A citation is a
request for scholarly credit, not a separate software license. Preserve
the notices required by each component's license. Attribution to this
project does not imply that an independent fork is an official release
or that its maintainers endorse it.

Third-party components:
The formalization helpers adapted from LeanAide and autoform-bot have
additional attribution in third_party/LeanAide-LICENSE.txt and
third_party/autoform-bot-LICENSE.txt.

Dependencies, bundled fonts (Inter, Lora, Noto Serif SC, Noto Sans SC,
JetBrains Mono, Hanken Grotesk, Fira Code), icons (Lucide) and other
JetBrains Mono, Hanken Grotesk, Fira Code, Geist, Instrument Serif),
icons (Lucide) and other
files with their own license notices remain under their respective
terms; their license files ship with them (docs/assets/fonts,
docs/assets/licenses, or the package itself).

The 44 specified upstream Lean modules and their listed adaptations
are licensed under AGPL-3.0-only: see
resources/theorem-os-library/REDISTRIBUTION.md. The grant is limited
to those sources; citing a paper or problem does not license its text.

The modified Codex backend is based on OpenAI Codex. The pinned
revision, TheoremOS modifications and upstream notices, including
Ratatui credits, are in scripts/codex-backend/README.md,
LICENSE.codex and NOTICE.codex in that directory.

The First Proof batch 3 problem texts have their own attribution and
CC BY-SA 4.0 terms in examples/first-proof/batch3/DATA-LICENSE.md.
The six AxiomMath IMO 2026 formal statements carry the MIT license in
examples/imo2026/LICENSE.AxiomMath; see that directory's README for the
distinction between formal statements and original competition problems.
GSAP in the optional frontend has separate terms; see
docs/assets/licenses/gsap-NOTICE.txt. Neither is relicensed here.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
</div>

[![Lean 4 · Mathlib](https://img.shields.io/badge/Lean_4-Mathlib-315cf5.svg)](./docs/web-workbench.md)
[![License: proprietary](https://img.shields.io/badge/license-proprietary-555.svg)](./LICENSE)
[![License: AGPL-3.0-only](https://img.shields.io/badge/license-AGPL--3.0--only-blue.svg)](./LICENSE)

![原题输入、模型和预算设置的真实工作台界面](./docs/assets/workbench-desktop.png)

本仓库包含 TheoremOS 的内部工作台与 CLI。输入自然语言、TeX 或 Lean 题面后,可以查看生成的 Lean 陈述、候选证明和诊断,再下载证明及验收报告。研究者可在同一验收规则下比较不同的检索、上下文和协作策略。[TheoremOS 公开仓库](https://github.com/HuggingMath/TheoremOS)提供官网源码、公开证明档案和本地复核材料。两仓库各有自己的许可证。
本仓库包含 TheoremOS 的工作台与 CLI。输入自然语言、TeX 或 Lean 题面后,可以查看生成的 Lean 陈述、候选证明和诊断,再下载证明及验收报告。研究者可在同一验收规则下比较不同的检索、上下文和协作策略。[TheoremOS 官网仓库](https://github.com/HuggingMath/TheoremOS)提供官网源码、公开证明档案和本地复核材料。两仓库各有自己的许可证。

## 快速开始

Expand All @@ -22,7 +22,7 @@
| 在线看例题、回放或证明 | [工作台](https://app.theoremos.top/) · [公开档案](https://theoremos.top/archive.html) | 浏览器;登录工作台需获准邮箱 |
| 用自己的题目开始研究 | [工作台指南](./docs/web-workbench.md) | 获准邮箱、所选模型服务的 API Key |
| 在本机核验一次预设回放 | [小题示例](./examples/getting-started/README.md) | 本机 Lean;无需模型 Key |
| 维护部署或替换研究组件 | [运行指南](./docs/usage.md) · [组件示例](./examples/components/README.md) | 源码使用权限;模型调用另需认证 |
| 维护部署或替换研究组件 | [运行指南](./docs/usage.md) · [组件示例](./examples/components/README.md) | 本地运行环境;模型调用另需认证 |

工作台采用白名单 Beta,[官网](https://theoremos.top/)提供申请入口。提交前请设置模型和所需的预算限制;空白限制不生效,模型调用由服务商计费。Lean 能检查给定陈述的证明,原意是否准确仍应由研究者复核。编译通过后可以先查看陈述,后台语义审核单独提供意见。

Expand All @@ -45,7 +45,7 @@ bun run math inspect --run "$THEOREMOS_CASE/result.json"

### 部署网页工作台

供维护者和获授权的部署者使用。需要 Linux、Docker Compose 和用户命名空间支持;运行 Mathlib 任务还需要 `/dev/fuse`。
自行部署需要 Linux、Docker Compose 和用户命名空间支持;运行 Mathlib 任务还需要 `/dev/fuse`。

```bash
git clone https://github.com/HuggingMath/theorem-os.git
Expand Down Expand Up @@ -77,4 +77,8 @@ M1 在隔离工作区执行,M2 返回 Lean 证据,M3 选择就绪任务,M4

## 许可证与致谢

当前内部源码遵循专有 [LICENSE](./LICENSE)。较早发布的 AGPL-3.0-only 副本保留原有许可;带 Apache-2.0 标识的 DeepScientist 来源文件遵循 [Apache-2.0 条款](./LICENSES/Apache-2.0.txt)。[NOTICE](./NOTICE)记录代码谱系和第三方材料。感谢 [Lean](https://lean-lang.org/)、[Mathlib](https://github.com/leanprover-community/mathlib4) 和 [Lean-Eval](https://github.com/leanprover/lean-eval) 提供工具与评测资源。
TheoremOS 自有源码采用 [AGPL-3.0-only](./LICENSE)。[授权范围](./LICENSES/project-scope.md)列出保留原署名的贡献;Web 数学库的 [44 个上游 Lean 模块及其适配版本](./resources/theorem-os-library/REDISTRIBUTION.md)按同一许可证单独授权。题目、论文、数据和第三方组件保留各自条款,见 [NOTICE](./NOTICE) 和相应目录的说明。

在论文、报告或演示中使用 TheoremOS 时,建议按 [CITATION.cff](./CITATION.cff) 引用,并注明所用版本或提交。题目、数据和第三方软件请分别注明原作者与出处。独立修改版请说明与官方版本的关系,避免被误认为官方发布或得到上游背书。

感谢 [Lean](https://lean-lang.org/)、[Mathlib](https://github.com/leanprover-community/mathlib4) 和 [Lean-Eval](https://github.com/leanprover/lean-eval) 提供工具与评测资源。
14 changes: 9 additions & 5 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
</div>

[![Lean 4 · Mathlib](https://img.shields.io/badge/Lean_4-Mathlib-315cf5.svg)](./docs/web-workbench.md)
[![License: proprietary](https://img.shields.io/badge/license-proprietary-555.svg)](./LICENSE)
[![License: AGPL-3.0-only](https://img.shields.io/badge/license-AGPL--3.0--only-blue.svg)](./LICENSE)

![The TheoremOS workbench with problem input, model selection, and budget settings](./docs/assets/workbench-desktop.png)

This repository contains the internal TheoremOS workbench and CLI. Start with natural language, TeX, or Lean. Inspect the generated Lean statement, follow proof candidates and diagnostics, and download the proof and its acceptance report. Researchers can compare retrieval, context, and collaboration strategies against a fixed acceptance check. The [public TheoremOS repository](https://github.com/HuggingMath/TheoremOS) provides the website source, proof archive, and local verification materials. Each repository has its own license.
This repository contains the TheoremOS workbench and CLI. Start with natural language, TeX, or Lean. Inspect the generated Lean statement, follow proof candidates and diagnostics, and download the proof and its acceptance report. Researchers can compare retrieval, context, and collaboration strategies against a fixed acceptance check. The [TheoremOS website repository](https://github.com/HuggingMath/TheoremOS) provides the website source, proof archive, and local verification materials. Each repository has its own license.

## Quick start

Expand All @@ -22,7 +22,7 @@ This repository contains the internal TheoremOS workbench and CLI. Start with na
| Browse examples, replays, and published proofs | [Workbench](https://app.theoremos.top/) · [Public archive](https://theoremos.top/archive.html) | Browser; sign-in requires an approved email |
| Start research on a problem | [Workbench guide](./docs/web-workbench.md) | Approved email and an API key for your model provider |
| Check a prerecorded Lean replay locally | [Getting started example](./examples/getting-started/README.md) | Local Lean; no model key |
| Maintain a deployment or swap a research component | [CLI guide](./docs/usage.md) · [Component example](./examples/components/README.md) | Source access and separate credentials for model runs |
| Maintain a deployment or swap a research component | [CLI guide](./docs/usage.md) · [Component example](./examples/components/README.md) | Local runtime and separate credentials for model runs |

The hosted workbench is an allowlisted beta. The [project site](https://theoremos.top/) has an access request link. Set the model and any budget limits before submitting. Blank limits are not enforced, and the provider bills model requests to your API account. Lean checks the proof of the supplied statement; a researcher should still check that the statement captures the intended problem. You can inspect a compiled statement while a separate semantic review runs.

Expand All @@ -43,7 +43,7 @@ Choose an unused directory for the replay. The proof candidates are prerecorded;

### Deploy the workbench

For maintainers and authorized operators. Use Linux with Docker Compose and user namespace support. Mathlib jobs also require `/dev/fuse`.
Use Linux with Docker Compose and user namespace support. Mathlib jobs also require `/dev/fuse`.

```bash
git clone https://github.com/HuggingMath/theorem-os.git
Expand Down Expand Up @@ -74,4 +74,8 @@ M1 executes work in isolation, M2 returns Lean evidence, M3 chooses ready tasks,

## License and credits

The current internal source is governed by the proprietary [LICENSE](./LICENSE). Earlier AGPL-3.0-only copies retain their original license. DeepScientist-derived files marked Apache-2.0 remain under the [Apache-2.0 terms](./LICENSES/Apache-2.0.txt). See [NOTICE](./NOTICE) for provenance and third-party terms. Thanks to [Lean](https://lean-lang.org/), [Mathlib](https://github.com/leanprover-community/mathlib4), and [Lean-Eval](https://github.com/leanprover/lean-eval) for the tools and evaluation resources.
The project-owned source is licensed under [AGPL-3.0-only](./LICENSE). The [scope record](./LICENSES/project-scope.md) identifies contributions with their original attribution. A separate [grant for 44 upstream Lean modules and their adaptations](./resources/theorem-os-library/REDISTRIBUTION.md) uses the same license. Problem texts, papers, data and third-party components retain their own terms; see [NOTICE](./NOTICE) and their accompanying notices.

When using TheoremOS in a paper, report or demonstration, please cite [CITATION.cff](./CITATION.cff) and include the release tag or commit. Credit the original authors of problems, data and third-party software separately. Identify independent modifications so readers can distinguish them from official releases and understand who maintains them.

Thanks to [Lean](https://lean-lang.org/), [Mathlib](https://github.com/leanprover-community/mathlib4), and [Lean-Eval](https://github.com/leanprover/lean-eval) for the tools and evaluation resources.
4 changes: 3 additions & 1 deletion apps/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ COPY skills ./skills
COPY resources ./resources
COPY apps ./apps
COPY docs/assets ./docs/assets
COPY LICENSE ./LICENSE
COPY LICENSE NOTICE CITATION.cff ./
COPY LICENSES ./LICENSES
COPY third_party ./third_party

FROM base AS worker-tools
ENV ELAN_HOME=/opt/elan \
Expand Down
4 changes: 2 additions & 2 deletions docs/site-repo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ The following 18 proof records have been rigorously checked by our independent L

## Repository Contents

This repository publishes the official website pages, formal proof source files, and research process records; the TheoremOS runtime source code is proprietary.
This repository publishes the official website pages, formal proof source files, and research process records. The [TheoremOS runtime](https://github.com/HuggingMath/theorem-os) is maintained separately.

<details>
<summary><b>📂 Directory Structure & Licensing</b></summary>
Expand All @@ -223,6 +223,6 @@ This repository publishes the official website pages, formal proof source files,
| [data/catalog.json](data/catalog.json) | Proof archive catalog with links to progress logs and verification results |
| `index.html`, `archive.html`, `feedback.html`, `en/`, `assets/` | Website pages, English localization, and workbench screenshots |

All rights to the TheoremOS runtime are reserved. Third-party fonts and icons are distributed under their respective licenses in [assets/fonts/](assets/fonts/), [assets/licenses/](assets/licenses/), and [lucide-LICENSE.txt](lucide-LICENSE.txt).
The runtime has its [own license](https://github.com/HuggingMath/theorem-os/blob/main/LICENSE). Third-party fonts and icons are distributed under their respective licenses in [assets/fonts/](assets/fonts/), [assets/licenses/](assets/licenses/), and [lucide-LICENSE.txt](lucide-LICENSE.txt).

</details>
4 changes: 2 additions & 2 deletions docs/site-repo/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ TheoremOS 目前通过邮箱白名单机制开放研究内测。**内测期间

## 仓库内容

本仓库公开官网页面、证明源码和研究记录;TheoremOS 运行时的源码不公开。
本仓库公开官网页面、证明源码和研究记录。[TheoremOS 运行时](https://github.com/HuggingMath/theorem-os)在单独的仓库中维护。

<details>
<summary><b>📂 仓库目录与许可</b></summary>
Expand All @@ -224,6 +224,6 @@ TheoremOS 目前通过邮箱白名单机制开放研究内测。**内测期间
| [data/catalog.json](data/catalog.json) | 证明档案目录,含进展与检查结果链接 |
| `index.html`, `archive.html`, `feedback.html`, `en/`, `assets/` | 官网、英文页面和工作台截图 |

TheoremOS 保留运行时的所有权利。第三方字体与图标沿用 [assets/fonts/](assets/fonts/)、[assets/licenses/](assets/licenses/) 和 [lucide-LICENSE.txt](lucide-LICENSE.txt) 中随附的许可。
运行时有[独立的许可证](https://github.com/HuggingMath/theorem-os/blob/main/LICENSE)。第三方字体与图标沿用 [assets/fonts/](assets/fonts/)、[assets/licenses/](assets/licenses/) 和 [lucide-LICENSE.txt](lucide-LICENSE.txt) 中随附的许可。

</details>
Loading
Loading