@cella-lang/cpp 0.1.202610121526 → 0.1.202610121703
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGES.md +2 -0
- package/cpp.cell +0 -0
- package/index.json +1383 -1383
- package/package.json +4 -4
package/CHANGES.md
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
## 未發佈
|
|
7
7
|
|
|
8
|
+
- 標準庫的定理改名(帶底線的改 lowerCamel,規則見 cella-lang 的 CHANGES):套件內的使用處一起改,名字與意思不變;`stable-defs.json` 裡雜湊改變的:`cpp.toInt_add`、`cpp.toInt_mul`、`cpp.toInt_sub`。
|
|
9
|
+
- **不相容**:定理與前置條件改證 `a = b`(原本是路徑 `≡`):`InRange` 的欄位是 `inRangeB bits v = true`、`NonZero b` 是 `isZeroInt (toInt b) = false`、`toInt_add` 等證 `=`,迴圈、記憶體、switch 的條件也是。名字不變;前置條件照舊寫 `refl` 或具名的洞,洞的型別照寫的印(`cpp.InRange 32 (…)`)。需要路徑的地方改寫 `Eq.toPath (…)`;範圍證明唯一改用 `DecEq.uip`(hlevel)。`stable-defs.json` 裡雜湊改變的 16 個:`cpp.InRange`、`cpp.NonZero`、`cpp.isPropInRange`、`cpp.lit`、`cpp.maxInt32`、`cpp.minInt32`、`cpp.mkCong`、`cpp.mkInj`、`cpp.toC`、`cpp.toInt_add`、`cpp.toInt_div`、`cpp.toInt_inj`、`cpp.toInt_mul`、`cpp.toInt_neg`、`cpp.toInt_rem`、`cpp.toInt_sub`。
|
|
8
10
|
- 標準庫 `int` 的定理改證 `a = b`:套件內需要路徑的地方改寫 `Eq.toPath (…)`(過渡);`twosModRange` 的前提直接收 `=`。用到的定義雜湊改變,意思不變;`stable-defs.json` 裡是 `cpp.toInt_add`、`cpp.toInt_sub`、`cpp.toInt_mul`。
|
|
9
11
|
- 標準庫定理名字裡的舊運算名跟著改(`ltNat_refl` → `blt_refl`、`modNatLt` → `modLt`……;規則見 cella-lang 的 CHANGES):套件內的使用處一起改。
|
|
10
12
|
- 標準庫的定理放進型別的 namespace(`addComm` → `Nat.addComm` 等;原始碼照舊寫裸名):用到它們的定義雜湊改變,意思不變。
|
package/cpp.cell
CHANGED
|
Binary file
|