---
title: "axiom 是状态谓词"
---

> Documentation Index
> Fetch the complete documentation index at: https://koine.systems/llms.txt
> Use this file to discover all available pages before exploring further.

# axiom 是状态谓词

## 背景

axiom 能不能表达“过去 30 天内”这类历史性质？如果 axiom 能看历史，世界就不能是纯快照。

## 选项

- axiom 是状态谓词。
- axiom 用时序逻辑。
- axiom 查询历史关系。

## 决定

axiom 是状态谓词，只检查当前世界。历史性质用时间关系记录。

## 理由

- 世界是快照，没有历史。
- 把“30 天窗口”写成状态不变式必然被违反；TLA+ 验证暴露了这一点。
- 记录 `refunded_at` 后，`refunded_at - paid_at <= 30 days` 才是状态谓词。

## 后果

需要历史时，显式加时间关系。axiom 不能表达“曾经发生过”，只能表达“当前记录显示发生过”。

Source: https://koine.systems/notes/decisions/0006-axiom-state-predicate/index.mdx
