@hotdocx/endash-kernel 0.1.0-preview.0 → 0.1.0
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/LICENSE +9 -1
- package/README.md +24 -2
- package/bin/endash-cli.cjs +4 -0
- package/bin/endash-mcp.cjs +7 -0
- package/browser.d.ts +44 -0
- package/endash-browser.js +698 -0
- package/index.cjs +704 -14
- package/index.d.ts +19 -11
- package/index.mjs +704 -14
- package/node.cjs +116606 -0
- package/node.d.ts +8 -0
- package/node.mjs +53 -0
- package/package.json +51 -7
- package/types/ast.d.ts +964 -0
- package/types/book/book_compiler.d.ts +57 -0
- package/types/book/html_renderer.d.ts +27 -0
- package/types/book/literate_en.d.ts +40 -0
- package/types/book/schema.d.ts +279 -0
- package/types/browser.d.ts +44 -0
- package/types/builders.d.ts +191 -0
- package/types/cache/core_snapshot.d.ts +259 -0
- package/types/cas/bar_hochschild.d.ts +106 -0
- package/types/cas/cotangent_deformation.d.ts +100 -0
- package/types/cas/cyclic_homology.d.ts +100 -0
- package/types/cas/derham_hkr.d.ts +117 -0
- package/types/cas/ext_algebra.d.ts +112 -0
- package/types/cas/groebner_syzygy.d.ts +43 -0
- package/types/cas/hilbert_proj_ag.d.ts +97 -0
- package/types/cas/hnf_snf.d.ts +49 -0
- package/types/cas/lefschetz_weil.d.ts +114 -0
- package/types/cas/localization_cech.d.ts +201 -0
- package/types/cas/matrix.d.ts +45 -0
- package/types/cas/modules_complexes.d.ts +141 -0
- package/types/cas/perm_coset_cgt.d.ts +166 -0
- package/types/cas/poly.d.ts +66 -0
- package/types/cas/reify_proofs.d.ts +104 -0
- package/types/cas/resolutions_spectral_seq.d.ts +193 -0
- package/types/cas/rings.d.ts +70 -0
- package/types/cas/smith_resultant_gauss.d.ts +164 -0
- package/types/cas/theta_stepanov.d.ts +182 -0
- package/types/check.d.ts +65 -0
- package/types/cli/endash_cli.d.ts +19 -0
- package/types/context.d.ts +110 -0
- package/types/duality.d.ts +76 -0
- package/types/elab/elab_ast.d.ts +274 -0
- package/types/elab/elaborate.d.ts +106 -0
- package/types/elab/env.d.ts +170 -0
- package/types/elab/match.d.ts +123 -0
- package/types/elab/pretty.d.ts +14 -0
- package/types/elab/structure.d.ts +46 -0
- package/types/elab/tactics.d.ts +238 -0
- package/types/elab/typeclass.d.ts +31 -0
- package/types/elab/unify.d.ts +166 -0
- package/types/eval.d.ts +28 -0
- package/types/index.d.ts +98 -0
- package/types/kernel_ops.d.ts +196 -0
- package/types/mcp/endash_mcp_server.d.ts +63 -0
- package/types/module/comparator.d.ts +86 -0
- package/types/module/desugar.d.ts +94 -0
- package/types/module/goal_inspector.d.ts +104 -0
- package/types/module/loader.d.ts +105 -0
- package/types/module/node_fs_provider.d.ts +26 -0
- package/types/module/package_builder.d.ts +83 -0
- package/types/module/proof_graph.d.ts +80 -0
- package/types/module/quasiquote.d.ts +37 -0
- package/types/module/stdlib_fresh_builders.d.ts +10 -0
- package/types/module/stdlib_tactic_hooks.d.ts +20 -0
- package/types/parser/lexer.d.ts +12 -0
- package/types/parser/parser.d.ts +78 -0
- package/types/parser/pratt.d.ts +17 -0
- package/types/parser/span.d.ts +26 -0
- package/types/parser/surface_ast.d.ts +501 -0
- package/types/stdlib_types.d.ts +113 -0
- package/types/value.d.ts +942 -0
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zero-Trust LCF Core Snapshot Serializer & Verified Hydrator
|
|
3
|
+
* (`endash/src/cache/core_snapshot.ts`).
|
|
4
|
+
*
|
|
5
|
+
* Unlike binary module caches that trust disk files blindly, `core_snapshot.ts`
|
|
6
|
+
* serializes elaborated Core `Term`s + `ElabEnv` metadata into deterministic JSON
|
|
7
|
+
* (handling `BigInt` inside `Duality`) and reconstructs `GlobalEnv` **exclusively**
|
|
8
|
+
* by invoking `declareDef`, `declareTheorem`, and `declareAxiom` inside the trusted
|
|
9
|
+
* `endash` kernel (`src/check.ts`)!
|
|
10
|
+
*
|
|
11
|
+
* Soundness (`NC-12b`):
|
|
12
|
+
* - Mutating any `valueTerm` or `typeTerm` is deterministically rejected by
|
|
13
|
+
* `checkGrpd` / `checkTerm` (`EndashTypeError` / `EndashModeError`);
|
|
14
|
+
* - Scrambling topological order or injecting a forward/cyclic `global-ref` is
|
|
15
|
+
* rejected because `declareDef`/`declareTheorem` checks against the strictly
|
|
16
|
+
* preceding `GlobalEnv`;
|
|
17
|
+
* - Smuggling an `axiom` or `sorry`-tainted declaration when `requireAxiomFree`
|
|
18
|
+
* is enabled (`default: true`) is rejected with `EndashElabError('AXIOM_TAINTED')`.
|
|
19
|
+
* - 100% browser-safe (zero `node:*` built-in imports).
|
|
20
|
+
*/
|
|
21
|
+
import { Term } from '../ast';
|
|
22
|
+
import { GlobalDeclEntry } from '../context';
|
|
23
|
+
import { CrossRefTagEntry, DefTransparency, ElabDeclKind, ElabEnv, InstanceEntry, RegisteredBinder, SimpLemmaEntry, StructureInfo } from '../elab/env';
|
|
24
|
+
import '../elab/typeclass';
|
|
25
|
+
import { OperatorTable } from '../parser/pratt';
|
|
26
|
+
import { OperatorSpec } from '../parser/surface_ast';
|
|
27
|
+
export type GlobalDeclKind = GlobalDeclEntry['kind'];
|
|
28
|
+
export type EndashSnapshotErrorCode = 'INVALID_SNAPSHOT_FORMAT' | 'CACHE_KEY_MISMATCH' | 'MISSING_PROOF_TERM' | 'UNKNOWN_POOL_DECL' | 'UNKNOWN_STDLIB_MODULE';
|
|
29
|
+
export declare class EndashSnapshotError extends Error {
|
|
30
|
+
readonly code: EndashSnapshotErrorCode;
|
|
31
|
+
constructor(code: EndashSnapshotErrorCode, message: string);
|
|
32
|
+
}
|
|
33
|
+
export interface SerializedGlobalDecl {
|
|
34
|
+
readonly fullName: string;
|
|
35
|
+
readonly globalKind: GlobalDeclKind;
|
|
36
|
+
readonly elabKind: ElabDeclKind;
|
|
37
|
+
readonly binders: readonly RegisteredBinder[];
|
|
38
|
+
readonly typeTerm: Term;
|
|
39
|
+
readonly valueTerm?: Term;
|
|
40
|
+
readonly transparency?: DefTransparency;
|
|
41
|
+
}
|
|
42
|
+
export interface SerializedElabSnapshot {
|
|
43
|
+
readonly format: 'endash-core-snapshot-v1';
|
|
44
|
+
readonly moduleId?: string;
|
|
45
|
+
readonly decls: readonly SerializedGlobalDecl[];
|
|
46
|
+
readonly structures: readonly StructureInfo[];
|
|
47
|
+
readonly classes: readonly string[];
|
|
48
|
+
readonly instances: readonly InstanceEntry[];
|
|
49
|
+
readonly simpLemmas: readonly SimpLemmaEntry[];
|
|
50
|
+
readonly crossRefTags?: readonly CrossRefTagEntry[];
|
|
51
|
+
readonly operators: readonly OperatorSpec[];
|
|
52
|
+
}
|
|
53
|
+
export interface SerializedModuleManifest {
|
|
54
|
+
readonly moduleId: string;
|
|
55
|
+
readonly declNames: readonly string[];
|
|
56
|
+
readonly structures: readonly StructureInfo[];
|
|
57
|
+
readonly classes: readonly string[];
|
|
58
|
+
readonly instances: readonly InstanceEntry[];
|
|
59
|
+
readonly simpLemmas: readonly SimpLemmaEntry[];
|
|
60
|
+
readonly crossRefTags?: readonly CrossRefTagEntry[];
|
|
61
|
+
readonly operators: readonly OperatorSpec[];
|
|
62
|
+
}
|
|
63
|
+
export interface SerializedStdlibBundle {
|
|
64
|
+
readonly format: 'endash-stdlib-bundle-v1';
|
|
65
|
+
readonly poolDecls: readonly SerializedGlobalDecl[];
|
|
66
|
+
readonly modules: Readonly<Record<string, SerializedModuleManifest>>;
|
|
67
|
+
}
|
|
68
|
+
export interface SerializedModuleDeltaSnapshot {
|
|
69
|
+
readonly format: 'endash-module-ensnap-v1';
|
|
70
|
+
readonly moduleId: string;
|
|
71
|
+
readonly cacheKeySha256: string;
|
|
72
|
+
readonly kernelPinSha256: string;
|
|
73
|
+
readonly sourceSha256: string;
|
|
74
|
+
readonly imports: readonly {
|
|
75
|
+
readonly moduleId: string;
|
|
76
|
+
readonly cacheKeySha256: string;
|
|
77
|
+
}[];
|
|
78
|
+
readonly declaredNames: readonly string[];
|
|
79
|
+
readonly deltaDecls: readonly SerializedGlobalDecl[];
|
|
80
|
+
readonly deltaStructures: readonly StructureInfo[];
|
|
81
|
+
readonly deltaClasses: readonly string[];
|
|
82
|
+
readonly deltaInstances: readonly InstanceEntry[];
|
|
83
|
+
readonly deltaSimpLemmas: readonly SimpLemmaEntry[];
|
|
84
|
+
readonly deltaCrossRefTags: readonly CrossRefTagEntry[];
|
|
85
|
+
readonly deltaOperators: readonly OperatorSpec[];
|
|
86
|
+
}
|
|
87
|
+
export interface SerializedEnEnsnapBundle {
|
|
88
|
+
readonly format: 'endash-en-ensnap-bundle-v1';
|
|
89
|
+
readonly kernelPinSha256: string;
|
|
90
|
+
readonly modules: Readonly<Record<string, SerializedModuleDeltaSnapshot>>;
|
|
91
|
+
}
|
|
92
|
+
export interface LoadSnapshotOptions {
|
|
93
|
+
/** Reject any `axiom` or `axiomsUsed.size > 0` declaration (`default: true`). */
|
|
94
|
+
readonly requireAxiomFree?: boolean;
|
|
95
|
+
}
|
|
96
|
+
export declare function sha256HexPure(content: string): string;
|
|
97
|
+
export declare function computeEnsnapCacheKeyPure(params: {
|
|
98
|
+
readonly kernelPinSha256: string;
|
|
99
|
+
readonly moduleId: string;
|
|
100
|
+
readonly sourceSha256: string;
|
|
101
|
+
readonly imports: readonly {
|
|
102
|
+
readonly moduleId: string;
|
|
103
|
+
readonly cacheKeySha256: string;
|
|
104
|
+
}[];
|
|
105
|
+
}): string;
|
|
106
|
+
/**
|
|
107
|
+
* Bottom-up $O(1)$ topological pre-inflator for `dagNodes` (`NC-20a` Part 1a):
|
|
108
|
+
* Because `stringifySnapshotJson` emits `dagNodes` in strict post-order, every valid
|
|
109
|
+
* `{ __dagRef: idx }` inside `dagRawNodes[i]` MUST satisfy `0 <= idx < i`.
|
|
110
|
+
*
|
|
111
|
+
* Pre-inflating `dagRawNodes` once in index order:
|
|
112
|
+
* 1. Deterministically rejects out-of-bounds (`idx < 0 || idx >= n`), self-cyclic (`idx === i`),
|
|
113
|
+
* and forward/mutually-cyclic (`idx > i`) DAG references in $O(1)$;
|
|
114
|
+
* 2. Marks every shared DAG subtree with non-enumerable `DAG_INFLATED_SYM` so downstream
|
|
115
|
+
* module/declaration hydration resolves `{ __dagRef: idx }` in $O(1)$ without `WeakSet`s!
|
|
116
|
+
*/
|
|
117
|
+
export declare function preinflateSharedDagNodes(dagRawNodes: readonly unknown[]): {
|
|
118
|
+
readonly nodes: readonly unknown[];
|
|
119
|
+
readonly maxVarSymId: number;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Sharded structural AST graph interner (`64` hash-table shards, per-subtree `WeakMap`
|
|
123
|
+
* memoization, and non-enumerable `Symbol` canonical IDs) so multi-thousand-declaration
|
|
124
|
+
* `.en` library bundles never hit V8's single-`Map` / `WeakMap` `2^23..2^24` table-size cap!
|
|
125
|
+
*/
|
|
126
|
+
export declare class AstGraphInterner {
|
|
127
|
+
private _nextCanonId;
|
|
128
|
+
private readonly _canonSym;
|
|
129
|
+
private readonly _astPools;
|
|
130
|
+
constructor();
|
|
131
|
+
get maxCanonId(): number;
|
|
132
|
+
getCanonId(obj: object): number | undefined;
|
|
133
|
+
private _setCanonId;
|
|
134
|
+
private _valueStructuralKey;
|
|
135
|
+
intern<T>(subRoot: T): T;
|
|
136
|
+
}
|
|
137
|
+
export declare function stringifySnapshotJson(value: unknown, pretty?: boolean, existingInterner?: AstGraphInterner): string;
|
|
138
|
+
export declare function parseSnapshotJson<T>(rawJson: string): T;
|
|
139
|
+
export declare function extractSerializedDecl(env: ElabEnv, g: GlobalDeclEntry): SerializedGlobalDecl;
|
|
140
|
+
export declare function serializeElabSnapshotObject(env: ElabEnv, operators?: OperatorTable, moduleId?: string): SerializedElabSnapshot;
|
|
141
|
+
export declare function serializeElabSnapshot(env: ElabEnv, operators?: OperatorTable, moduleId?: string, pretty?: boolean): string;
|
|
142
|
+
export declare function loadVerifiedElabSnapshotObject(snap: SerializedElabSnapshot, opts?: LoadSnapshotOptions): {
|
|
143
|
+
readonly env: ElabEnv;
|
|
144
|
+
readonly operators: OperatorTable;
|
|
145
|
+
};
|
|
146
|
+
export declare function loadVerifiedElabSnapshot(rawJson: string, opts?: LoadSnapshotOptions): {
|
|
147
|
+
readonly env: ElabEnv;
|
|
148
|
+
readonly operators: OperatorTable;
|
|
149
|
+
};
|
|
150
|
+
export declare function serializeStdlibBundleObject(modulesInTopologicalOrder: readonly {
|
|
151
|
+
readonly moduleId: string;
|
|
152
|
+
readonly env: ElabEnv;
|
|
153
|
+
readonly operators?: OperatorTable;
|
|
154
|
+
}[]): SerializedStdlibBundle;
|
|
155
|
+
export declare function serializeStdlibBundle(modulesInTopologicalOrder: readonly {
|
|
156
|
+
readonly moduleId: string;
|
|
157
|
+
readonly env: ElabEnv;
|
|
158
|
+
readonly operators?: OperatorTable;
|
|
159
|
+
}[], pretty?: boolean): string;
|
|
160
|
+
/**
|
|
161
|
+
* Zero-Trust Verified Stdlib Bundle Cache:
|
|
162
|
+
* Verifies every declaration in `poolDecls` **through `declareDef`/`declareTheorem`**
|
|
163
|
+
* at most once, and materializes per-module `ElabEnv` clones in `< 1 ms`!
|
|
164
|
+
*/
|
|
165
|
+
export declare class VerifiedStdlibBundleCache {
|
|
166
|
+
private _poolGlobals;
|
|
167
|
+
private readonly _rawPoolByName;
|
|
168
|
+
private readonly _rawPoolOrder;
|
|
169
|
+
private readonly _requireAxiomFree;
|
|
170
|
+
private readonly _verifiedDecls;
|
|
171
|
+
private readonly _manifests;
|
|
172
|
+
private readonly _moduleEnvCache;
|
|
173
|
+
private readonly _lazyDecodeDecl?;
|
|
174
|
+
private constructor();
|
|
175
|
+
private _ensureDeclVerified;
|
|
176
|
+
/** Force kernel verification of every declaration in `poolDecls`. */
|
|
177
|
+
verifyAll(): this;
|
|
178
|
+
static fromBundleObject(bundle: SerializedStdlibBundle, opts?: LoadSnapshotOptions & {
|
|
179
|
+
readonly skipVarScan?: boolean;
|
|
180
|
+
readonly lazyDecodeDecl?: (d: SerializedGlobalDecl) => SerializedGlobalDecl;
|
|
181
|
+
}): VerifiedStdlibBundleCache;
|
|
182
|
+
static fromJson(rawJson: string, opts?: LoadSnapshotOptions): VerifiedStdlibBundleCache;
|
|
183
|
+
get verifiedDeclCount(): number;
|
|
184
|
+
hasModule(moduleId: string): boolean;
|
|
185
|
+
moduleIds(): readonly string[];
|
|
186
|
+
getModuleEnv(moduleId: string, attachRuntimeHooks?: (modId: string, env: ElabEnv) => void): ElabEnv | undefined;
|
|
187
|
+
}
|
|
188
|
+
export declare function serializeElabDeltaSnapshotObject(params: {
|
|
189
|
+
readonly moduleId: string;
|
|
190
|
+
readonly cacheKeySha256: string;
|
|
191
|
+
readonly kernelPinSha256: string;
|
|
192
|
+
readonly sourceSha256: string;
|
|
193
|
+
readonly imports: readonly {
|
|
194
|
+
readonly moduleId: string;
|
|
195
|
+
readonly cacheKeySha256: string;
|
|
196
|
+
}[];
|
|
197
|
+
readonly baseEnv: ElabEnv;
|
|
198
|
+
readonly baseOperators: OperatorTable;
|
|
199
|
+
readonly fullEnv: ElabEnv;
|
|
200
|
+
readonly fullOperators: OperatorTable;
|
|
201
|
+
readonly declaredNames: readonly string[];
|
|
202
|
+
}): SerializedModuleDeltaSnapshot;
|
|
203
|
+
export declare function serializeElabDeltaSnapshot(params: Parameters<typeof serializeElabDeltaSnapshotObject>[0], pretty?: boolean): string;
|
|
204
|
+
/**
|
|
205
|
+
* Zero-Trust Incremental Delta Loader (`NC-14a` Part 1):
|
|
206
|
+
* Re-checks every `deltaDecls` entry over `baseEnv.globals` exclusively through
|
|
207
|
+
* `declareDef`, `declareTheorem`, and `declareAxiom` in `src/check.ts`!
|
|
208
|
+
*/
|
|
209
|
+
export declare function loadVerifiedElabDeltaSnapshotObject(baseEnv: ElabEnv, baseOperators: OperatorTable, snap: SerializedModuleDeltaSnapshot, opts?: LoadSnapshotOptions & {
|
|
210
|
+
readonly skipVarScan?: boolean;
|
|
211
|
+
}): {
|
|
212
|
+
readonly env: ElabEnv;
|
|
213
|
+
readonly operators: OperatorTable;
|
|
214
|
+
readonly declaredNames: readonly string[];
|
|
215
|
+
};
|
|
216
|
+
export declare function loadVerifiedElabDeltaSnapshot(baseEnv: ElabEnv, baseOperators: OperatorTable, rawJson: string, opts?: LoadSnapshotOptions): {
|
|
217
|
+
readonly env: ElabEnv;
|
|
218
|
+
readonly operators: OperatorTable;
|
|
219
|
+
readonly declaredNames: readonly string[];
|
|
220
|
+
};
|
|
221
|
+
export declare function serializeEnEnsnapBundle(kernelPinSha256: string, modules: Readonly<Record<string, SerializedModuleDeltaSnapshot>>, pretty?: boolean, existingInterner?: AstGraphInterner): string;
|
|
222
|
+
/**
|
|
223
|
+
* Zero-Trust `.ensnap` Library Bundle Hydrator (`NC-16a` Part 1):
|
|
224
|
+
* Verifies transitive SHA-256 `sourceSha256` & `cacheKeySha256` headers before
|
|
225
|
+
* hydrating `.en` library modules exclusively through `declareDef`/`declareTheorem`!
|
|
226
|
+
*
|
|
227
|
+
* - If a `.en` file or any upstream `.en` import is modified (`cacheKeySha256` mismatch),
|
|
228
|
+
* `verifyAndHydrateModule` returns `null` so `ModuleLoader` transparently re-elaborates.
|
|
229
|
+
* - If a matching-header `.ensnap` entry has a tampered proof term, mutated type, or
|
|
230
|
+
* smuggled `sorry`/`axiom`, `loadVerifiedElabDeltaSnapshotObject` fails closed!
|
|
231
|
+
*/
|
|
232
|
+
export declare class VerifiedEnEnsnapBundleCache {
|
|
233
|
+
private readonly _kernelPinSha256;
|
|
234
|
+
private readonly _rawModules;
|
|
235
|
+
private readonly _requireAxiomFree;
|
|
236
|
+
private readonly _lazyDecodeDelta?;
|
|
237
|
+
private readonly _peekDeltaHeader?;
|
|
238
|
+
private readonly _everVerifiedModules;
|
|
239
|
+
private readonly _verifiedMemo;
|
|
240
|
+
private constructor();
|
|
241
|
+
get kernelPinSha256(): string;
|
|
242
|
+
hasModule(moduleId: string): boolean;
|
|
243
|
+
moduleIds(): readonly string[];
|
|
244
|
+
get verifiedModuleCount(): number;
|
|
245
|
+
clearHydratedEnvs(): void;
|
|
246
|
+
verifyAndHydrateModule(moduleId: string, expectedSourceSha256: string, expectedCacheKeySha256: string, buildBase: () => {
|
|
247
|
+
readonly baseEnv: ElabEnv;
|
|
248
|
+
readonly baseOperators: OperatorTable;
|
|
249
|
+
}, cloneResult?: boolean): {
|
|
250
|
+
readonly env: ElabEnv;
|
|
251
|
+
readonly operators: OperatorTable;
|
|
252
|
+
readonly declaredNames: readonly string[];
|
|
253
|
+
} | null;
|
|
254
|
+
static fromBundleObject(bundle: SerializedEnEnsnapBundle, opts?: LoadSnapshotOptions & {
|
|
255
|
+
readonly lazyDecodeDelta?: (d: SerializedModuleDeltaSnapshot) => SerializedModuleDeltaSnapshot;
|
|
256
|
+
readonly peekDeltaHeader?: (d: SerializedModuleDeltaSnapshot) => Partial<SerializedModuleDeltaSnapshot> | null;
|
|
257
|
+
}): VerifiedEnEnsnapBundleCache;
|
|
258
|
+
static fromJson(rawJson: string, opts?: LoadSnapshotOptions): VerifiedEnEnsnapBundleCache;
|
|
259
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Phase M5 LCF-Certified Two-Sided Bar Resolution, Derived Relative Tensor `Tor^A_*`,
|
|
3
|
+
* & Cyclic Hochschild Homology `HH_*(A)` CAS + Tactic Engine (`endash/src/cas/bar_hochschild.ts`).
|
|
4
|
+
*
|
|
5
|
+
* Implements normalized two-sided Bar complexes `B_*(M, A, N)` (Lurie *Higher Algebra* §4.4.2 & §5.2.2,
|
|
6
|
+
* Kerodon `01BA`) and normalized cyclic Hochschild complexes `\bar{C}_*(A, A)` (*Higher Algebra* §5.3.3,
|
|
7
|
+
* Stacks `09PF`, Loday §1.1.14) over arbitrary exact `EuclideanDomain<T>` rings (`F_2`, `Z`, `Q`),
|
|
8
|
+
* witness reification into `${ns}.BarTorCert` & `${ns}.HochschildCert`, and `.en` tactics
|
|
9
|
+
* **`cas_bar_tor`** and **`cas_hochschild`**.
|
|
10
|
+
*
|
|
11
|
+
* **`0 LOC` TCB delta**; **`0` axioms**; **`0` Node built-ins** (browser-safe!).
|
|
12
|
+
*/
|
|
13
|
+
import { Term } from '../ast';
|
|
14
|
+
import { ElabEnv } from '../elab/env';
|
|
15
|
+
import { DenseMatrix } from './matrix';
|
|
16
|
+
import { EuclideanDomain } from './rings';
|
|
17
|
+
import { ReifyRingSpec } from './reify_proofs';
|
|
18
|
+
import { CohomologyStepResult } from './resolutions_spectral_seq';
|
|
19
|
+
export interface FiniteAlgebra<T> {
|
|
20
|
+
readonly domain: EuclideanDomain<T>;
|
|
21
|
+
/** Rank `d >= 1` over `R`; basis `e_0 = 1_A`, `e_1 .. e_{d-1}` span `\bar{A} = A / (R * 1_A)`. */
|
|
22
|
+
readonly dim: number;
|
|
23
|
+
/** Left-multiplication matrices `L_a` (`d x d`): column `b` of `L_a` is `e_a * e_b`. */
|
|
24
|
+
readonly leftMats: readonly DenseMatrix<T>[];
|
|
25
|
+
/** Right-multiplication matrices `R_b` (`d x d`): column `a` of `R_b` is `e_a * e_b`. */
|
|
26
|
+
readonly rightMats: readonly DenseMatrix<T>[];
|
|
27
|
+
}
|
|
28
|
+
export interface RightFiniteModule<T> {
|
|
29
|
+
readonly domain: EuclideanDomain<T>;
|
|
30
|
+
readonly algDim: number;
|
|
31
|
+
readonly rank: number;
|
|
32
|
+
/** Right action matrices `\rho_a` (`r_M x r_M`): column `m` of `\rho_a` is `e_m * e_a`. */
|
|
33
|
+
readonly actRight: readonly DenseMatrix<T>[];
|
|
34
|
+
}
|
|
35
|
+
export interface LeftFiniteModule<T> {
|
|
36
|
+
readonly domain: EuclideanDomain<T>;
|
|
37
|
+
readonly algDim: number;
|
|
38
|
+
readonly rank: number;
|
|
39
|
+
/** Left action matrices `\lambda_a` (`r_N x r_N`): column `n` of `\lambda_a` is `e_a * f_n`. */
|
|
40
|
+
readonly actLeft: readonly DenseMatrix<T>[];
|
|
41
|
+
}
|
|
42
|
+
export declare function deriveRightMatsFromLeft<T>(dom: EuclideanDomain<T>, dim: number, leftMats: readonly DenseMatrix<T>[]): readonly DenseMatrix<T>[];
|
|
43
|
+
export declare function verifyFiniteAlgebraLaws<T>(alg: FiniteAlgebra<T>): void;
|
|
44
|
+
export declare function mkFiniteAlgebra<T>(dom: EuclideanDomain<T>, dim: number, leftMats: readonly DenseMatrix<T>[], opts?: {
|
|
45
|
+
readonly skipVerify?: boolean;
|
|
46
|
+
}): FiniteAlgebra<T>;
|
|
47
|
+
export declare function verifyRightModuleLaws<T>(alg: FiniteAlgebra<T>, mod: RightFiniteModule<T>): void;
|
|
48
|
+
export declare function verifyLeftModuleLaws<T>(alg: FiniteAlgebra<T>, mod: LeftFiniteModule<T>): void;
|
|
49
|
+
export declare function computeBarDifferential<T>(alg: FiniteAlgebra<T>, M: RightFiniteModule<T>, N: LeftFiniteModule<T>, deg: number): DenseMatrix<T>;
|
|
50
|
+
export declare function computeHochschildDifferential<T>(alg: FiniteAlgebra<T>, deg: number): DenseMatrix<T>;
|
|
51
|
+
export interface BarTorResult<T> {
|
|
52
|
+
readonly alg: FiniteAlgebra<T>;
|
|
53
|
+
readonly M: RightFiniteModule<T>;
|
|
54
|
+
readonly N: LeftFiniteModule<T>;
|
|
55
|
+
readonly degree: number;
|
|
56
|
+
readonly step: CohomologyStepResult<T>;
|
|
57
|
+
readonly zLeftInv: DenseMatrix<T>;
|
|
58
|
+
}
|
|
59
|
+
export declare function computeBarTor<T>(alg: FiniteAlgebra<T>, M: RightFiniteModule<T>, N: LeftFiniteModule<T>, degree: number, opts?: {
|
|
60
|
+
readonly skipLawCheck?: boolean;
|
|
61
|
+
}): BarTorResult<T>;
|
|
62
|
+
export interface HochschildHomologyResult<T> {
|
|
63
|
+
readonly alg: FiniteAlgebra<T>;
|
|
64
|
+
readonly degree: number;
|
|
65
|
+
readonly step: CohomologyStepResult<T>;
|
|
66
|
+
readonly zLeftInv: DenseMatrix<T>;
|
|
67
|
+
}
|
|
68
|
+
export declare function computeHochschildHomology<T>(alg: FiniteAlgebra<T>, degree: number, opts?: {
|
|
69
|
+
readonly skipLawCheck?: boolean;
|
|
70
|
+
}): HochschildHomologyResult<T>;
|
|
71
|
+
export declare function buildEtaleProductAlgebra<T>(dom: EuclideanDomain<T>): FiniteAlgebra<T>;
|
|
72
|
+
export declare function buildDualNumbersAlgebra<T>(dom: EuclideanDomain<T>): FiniteAlgebra<T>;
|
|
73
|
+
export declare function buildCyclic2GroupAlgebra<T>(dom: EuclideanDomain<T>): FiniteAlgebra<T>;
|
|
74
|
+
export declare function buildRank1ModulePair<T>(dom: EuclideanDomain<T>, scalarOnGen1: T): {
|
|
75
|
+
readonly right: RightFiniteModule<T>;
|
|
76
|
+
readonly left: LeftFiniteModule<T>;
|
|
77
|
+
};
|
|
78
|
+
export declare function buildNonAssociative3DAlgebra<T>(dom: EuclideanDomain<T>): FiniteAlgebra<T>;
|
|
79
|
+
export declare function reifyMatListForSpecNs<T>(spec: ReifyRingSpec<T>, mats: readonly DenseMatrix<T>[]): Term;
|
|
80
|
+
export declare function buildHochschildCertWitnessTerm<T>(spec: ReifyRingSpec<T>, res: HochschildHomologyResult<T>, overrides?: {
|
|
81
|
+
readonly leftMats?: readonly DenseMatrix<T>[];
|
|
82
|
+
readonly zCols?: number;
|
|
83
|
+
readonly zBasis?: DenseMatrix<T>;
|
|
84
|
+
readonly zLeftInv?: DenseMatrix<T>;
|
|
85
|
+
readonly rhMat?: DenseMatrix<T>;
|
|
86
|
+
readonly dOutDiag?: DenseMatrix<T>;
|
|
87
|
+
readonly dHDiag?: DenseMatrix<T>;
|
|
88
|
+
}): {
|
|
89
|
+
readonly certTypeTerm: Term;
|
|
90
|
+
readonly certProofTerm: Term;
|
|
91
|
+
};
|
|
92
|
+
export declare function buildBarTorCertWitnessTerm<T>(spec: ReifyRingSpec<T>, res: BarTorResult<T>, overrides?: {
|
|
93
|
+
readonly leftMats?: readonly DenseMatrix<T>[];
|
|
94
|
+
readonly actRight?: readonly DenseMatrix<T>[];
|
|
95
|
+
readonly actLeft?: readonly DenseMatrix<T>[];
|
|
96
|
+
readonly zCols?: number;
|
|
97
|
+
readonly zBasis?: DenseMatrix<T>;
|
|
98
|
+
readonly zLeftInv?: DenseMatrix<T>;
|
|
99
|
+
readonly rhMat?: DenseMatrix<T>;
|
|
100
|
+
readonly dOutDiag?: DenseMatrix<T>;
|
|
101
|
+
readonly dHDiag?: DenseMatrix<T>;
|
|
102
|
+
}): {
|
|
103
|
+
readonly certTypeTerm: Term;
|
|
104
|
+
readonly certProofTerm: Term;
|
|
105
|
+
};
|
|
106
|
+
export declare function installBarHochschildTacticsOnly(env: ElabEnv): ElabEnv;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Phase D5 LCF-Certified Symbolic Polynomial Jacobian, Kähler Differentials `Ω^1_{B/R}`,
|
|
3
|
+
* Naive Cotangent Complex `L_{B/R}`, Leibniz Derivations, & HKR Comparison CAS + Tactic Engine
|
|
4
|
+
* (`endash/src/cas/cotangent_deformation.ts`).
|
|
5
|
+
*
|
|
6
|
+
* Implements:
|
|
7
|
+
* 1. Exact multivariate polynomial presentations `B = R[x_1,...,x_n]/(f_1,...,f_m)` and
|
|
8
|
+
* symbolic partial differentiation `∂f_k / ∂x_j` over any `EuclideanDomain<T>` (`F_2`, `Z`, `Q`);
|
|
9
|
+
* 2. Evaluation at a commutative unital associative `R`-algebra point `(d, leftMats, genRows)`
|
|
10
|
+
* verifying relation annihilation `f_k(\bar{x}_1,...,\bar{x}_n) = 0` and constructing the
|
|
11
|
+
* exact `(n * d) x (m * d)` Conormal-to-Kähler Jacobian differential
|
|
12
|
+
* `d_{L} : A^{\oplus m} -> A^{\oplus n}`;
|
|
13
|
+
* 3. Saturated SNF homology certificates `CotangentCert` for `H_0(L_{B/R}) = Ω^1_{B/R}` (`deg = 0`)
|
|
14
|
+
* and `H_1(L_{B/R})` (`deg = 1`), plus `DerivationCert` verifying `D(1) = 0` and the matrix
|
|
15
|
+
* Leibniz rule `D(a * b) = a · D(b) + b · D(a)`;
|
|
16
|
+
* 4. `.en` tactic **`by cas_cotangent`** solving `{F2Field,IntRing,RatRing}.{CotangentCert,DerivationCert}`.
|
|
17
|
+
*
|
|
18
|
+
* **`0 LOC` TCB delta**; **`0` axioms**; **`0` Node built-ins** (browser-safe!).
|
|
19
|
+
*/
|
|
20
|
+
import { Term } from '../ast';
|
|
21
|
+
import { ElabEnv } from '../elab/env';
|
|
22
|
+
import { FiniteAlgebra, LeftFiniteModule } from './bar_hochschild';
|
|
23
|
+
import { DenseMatrix } from './matrix';
|
|
24
|
+
import { ReifyRingSpec } from './reify_proofs';
|
|
25
|
+
import { CohomologyStepResult } from './resolutions_spectral_seq';
|
|
26
|
+
import { EuclideanDomain } from './rings';
|
|
27
|
+
export interface CotangentMonomial<T> {
|
|
28
|
+
readonly coeff: T;
|
|
29
|
+
readonly exps: readonly number[];
|
|
30
|
+
}
|
|
31
|
+
export interface CotangentPoly<T> {
|
|
32
|
+
readonly nVars: number;
|
|
33
|
+
readonly terms: readonly CotangentMonomial<T>[];
|
|
34
|
+
}
|
|
35
|
+
export declare function mkCotangentPoly<T>(dom: EuclideanDomain<T>, nVars: number, rawTerms: readonly CotangentMonomial<T>[]): CotangentPoly<T>;
|
|
36
|
+
export declare function natScaleRingElem<T>(dom: EuclideanDomain<T>, k: number, c: T): T;
|
|
37
|
+
/** Symbolic formal partial derivative `∂f / ∂x_{varIdx}`. */
|
|
38
|
+
export declare function cotangentPolyPartial<T>(dom: EuclideanDomain<T>, poly: CotangentPoly<T>, varIdx: number): CotangentPoly<T>;
|
|
39
|
+
/** Symbolic `nVars x mRels` polynomial Jacobian transpose `(∂f_k / ∂x_j)_{0 <= j < nVars, 0 <= k < mRels}`. */
|
|
40
|
+
export declare function computeSymbolicJacobian<T>(dom: EuclideanDomain<T>, nVars: number, relations: readonly CotangentPoly<T>[]): readonly (readonly CotangentPoly<T>[])[];
|
|
41
|
+
export interface CotangentPresentation<T> {
|
|
42
|
+
readonly alg: FiniteAlgebra<T>;
|
|
43
|
+
readonly nVars: number;
|
|
44
|
+
readonly mRels: number;
|
|
45
|
+
/** `nVars x d` matrix whose row `j` gives the coordinates of `\bar{x}_j \in A` in basis `e_0=1, ..., e_{d-1}`. */
|
|
46
|
+
readonly genRows: DenseMatrix<T>;
|
|
47
|
+
/** Raw exponent tables `relExps[k][t][j]` matching the kernel representation `List (List (List Nat))`. */
|
|
48
|
+
readonly relExps: readonly (readonly (readonly number[])[])[];
|
|
49
|
+
/** `mRels`-row coefficient jagged/matrix `relCoeffs[k][t]` matching kernel `Mat`. */
|
|
50
|
+
readonly relCoeffs: readonly (readonly T[])[];
|
|
51
|
+
}
|
|
52
|
+
export interface CotangentHomologyResult<T> {
|
|
53
|
+
readonly pres: CotangentPresentation<T>;
|
|
54
|
+
readonly degree: 0 | 1;
|
|
55
|
+
readonly jacobianMat: DenseMatrix<T>;
|
|
56
|
+
readonly dOut: DenseMatrix<T>;
|
|
57
|
+
readonly dIn: DenseMatrix<T>;
|
|
58
|
+
readonly step: CohomologyStepResult<T>;
|
|
59
|
+
readonly zLeftInv: DenseMatrix<T>;
|
|
60
|
+
}
|
|
61
|
+
export declare function verifyCommutativeFiniteAlgebra<T>(alg: FiniteAlgebra<T>): void;
|
|
62
|
+
export declare function linCombAlgebraMat<T>(alg: FiniteAlgebra<T>, rowCoords: readonly T[]): DenseMatrix<T>;
|
|
63
|
+
export declare function matPowSquare<T>(dom: EuclideanDomain<T>, d: number, M: DenseMatrix<T>, e: number): DenseMatrix<T>;
|
|
64
|
+
export declare function evalMonomialInAlg<T>(alg: FiniteAlgebra<T>, nVars: number, genRows: DenseMatrix<T>, coeff: T, exps: readonly number[]): DenseMatrix<T>;
|
|
65
|
+
export declare function evalPolyInAlg<T>(alg: FiniteAlgebra<T>, nVars: number, genRows: DenseMatrix<T>, expList: readonly (readonly number[])[], coeffRow: readonly T[]): DenseMatrix<T>;
|
|
66
|
+
export declare function evalPartialInAlg<T>(alg: FiniteAlgebra<T>, nVars: number, genRows: DenseMatrix<T>, expList: readonly (readonly number[])[], coeffRow: readonly T[], varIdx: number): DenseMatrix<T>;
|
|
67
|
+
export declare function assembleJacobianBlockMat<T>(pres: CotangentPresentation<T>): DenseMatrix<T>;
|
|
68
|
+
export declare function verifyCotangentPresentation<T>(pres: CotangentPresentation<T>): void;
|
|
69
|
+
export declare function computeCotangentHomology<T>(pres: CotangentPresentation<T>, degree: 0 | 1, opts?: {
|
|
70
|
+
readonly skipLawCheck?: boolean;
|
|
71
|
+
}): CotangentHomologyResult<T>;
|
|
72
|
+
export declare function verifyDerivationOperator<T>(alg: FiniteAlgebra<T>, modM: LeftFiniteModule<T>, derMat: DenseMatrix<T>): void;
|
|
73
|
+
/** Étale separable idempotent algebra `B = R[e]/(e^2 - e) ≅ R × R` (`d = 2, n = 1, m = 1`). */
|
|
74
|
+
export declare function buildEtaleIdempotentCotangentPresentation<T>(dom: EuclideanDomain<T>): CotangentPresentation<T>;
|
|
75
|
+
/** Smooth Laurent hyperbola `B = R[x, y]/(x * y - 1)` pulled back to the smooth `R`-point `(x, y) = (1, 1)`. */
|
|
76
|
+
export declare function buildSmoothLaurentPointCotangentPresentation<T>(dom: EuclideanDomain<T>): CotangentPresentation<T>;
|
|
77
|
+
/** Singular dual numbers algebra `B = R[x]/(x^2)` (`d = 2, n = 1, m = 1`). */
|
|
78
|
+
export declare function buildDualNumbersCotangentPresentation<T>(dom: EuclideanDomain<T>): CotangentPresentation<T>;
|
|
79
|
+
export declare function reifyRelExpsTerm(relExps: readonly (readonly (readonly number[])[])[]): Term;
|
|
80
|
+
export declare function reifyRelCoeffsTerm<T>(spec: ReifyRingSpec<T>, relCoeffs: readonly (readonly T[])[]): Term;
|
|
81
|
+
export declare function buildCotangentCertWitnessTerm<T>(spec: ReifyRingSpec<T>, res: CotangentHomologyResult<T>, overrides?: {
|
|
82
|
+
readonly leftMats?: readonly DenseMatrix<T>[];
|
|
83
|
+
readonly genRows?: DenseMatrix<T>;
|
|
84
|
+
readonly relExps?: readonly (readonly (readonly number[])[])[];
|
|
85
|
+
readonly relCoeffs?: readonly (readonly T[])[];
|
|
86
|
+
readonly zCols?: number;
|
|
87
|
+
readonly zBasis?: DenseMatrix<T>;
|
|
88
|
+
readonly zLeftInv?: DenseMatrix<T>;
|
|
89
|
+
readonly rhMat?: DenseMatrix<T>;
|
|
90
|
+
readonly dOutDiag?: DenseMatrix<T>;
|
|
91
|
+
readonly dHDiag?: DenseMatrix<T>;
|
|
92
|
+
}): {
|
|
93
|
+
readonly certTypeTerm: Term;
|
|
94
|
+
readonly certProofTerm: Term;
|
|
95
|
+
};
|
|
96
|
+
export declare function buildDerivationCertWitnessTerm<T>(spec: ReifyRingSpec<T>, alg: FiniteAlgebra<T>, modM: LeftFiniteModule<T>, derMat: DenseMatrix<T>): {
|
|
97
|
+
readonly certTypeTerm: Term;
|
|
98
|
+
readonly certProofTerm: Term;
|
|
99
|
+
};
|
|
100
|
+
export declare function installCotangentTacticsOnly(env: ElabEnv): ElabEnv;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Phase W2 Browser-Safe Kassel–Loday Mixed Complexes, Cyclic / Negative / Periodic
|
|
3
|
+
* Homology (`HC, HC^-, HP`), Goodwillie Nilpotent Invariance, & `by cas_cyclic` Tactic
|
|
4
|
+
* (`endash/src/cas/cyclic_homology.ts`, `0` Node built-ins, `0` `src/stdlib/*` imports, `0` `any` casts).
|
|
5
|
+
*
|
|
6
|
+
* Certifies truncated 3-stage mixed complexes `(M_0, M_1, M_2; b_1, b_2; B_0, B_1)` over BOTH
|
|
7
|
+
* characteristic `0` (`charMod = 0`, exact `Q` via unimodular `Z`-SNF witnesses) and prime
|
|
8
|
+
* characteristic `p >= 2` (`charMod = p`, exact `GL(F_p)` Gauss–Jordan witnesses), verifying
|
|
9
|
+
* inside `src/check.ts` (`CyclicAlg.CyclicCert`):
|
|
10
|
+
* 1. Matrix shapes `b1 : m0 x m1`, `b2 : m1 x m2`, `B0 : m1 x m0`, `B1 : m2 x m1`, and
|
|
11
|
+
* 6-tuple `ranks = [hh0, hh1, hc0, hc1, hpEven, hpOdd]`;
|
|
12
|
+
* 2. Field characteristic validity (`charMod = 0` or `charMod >= 2` prime);
|
|
13
|
+
* 3. All 5 Kassel–Loday mixed-complex identities:
|
|
14
|
+
* - `b1 * b2 == 0` (`b^2 = 0`),
|
|
15
|
+
* - `B1 * B0 == 0` (`B^2 = 0`),
|
|
16
|
+
* - `b1 * B0 == 0` (degree-0 anti-commutation),
|
|
17
|
+
* - `B1 * b2 == 0` (truncated degree-2 anti-commutation),
|
|
18
|
+
* - `B0 * b1 + b2 * B1 == 0` (degree-1 anti-commutation `b B + B b = 0`!);
|
|
19
|
+
* 4. Exact invertible left/right change-of-basis matrices diagonalizing:
|
|
20
|
+
* - `b1` (`m0 x m1`) to rank `r_b1`,
|
|
21
|
+
* - `b2` (`m1 x m2`) to rank `r_b2`,
|
|
22
|
+
* - `D_even = [B0 | b2]` (`m1 x (m0 + m2)`) to rank `r_ev`,
|
|
23
|
+
* - `D_odd = [[b1]; [B1]]` (`(m0 + m2) x m1`) to rank `r_od`;
|
|
24
|
+
* 5. Simultaneous homology & cyclic / periodic rank equations:
|
|
25
|
+
* - `hh0 + r_b1 = m0`, `hh1 + r_b1 + r_b2 = m1`,
|
|
26
|
+
* - `hc0 = hh0`, `hc1 + r_b1 + r_ev = m1`,
|
|
27
|
+
* - `hpEven + r_ev + r_od = m0 + m2`, `hpOdd + r_od + r_ev = m1`!
|
|
28
|
+
*/
|
|
29
|
+
import { Term } from '../ast';
|
|
30
|
+
import { ElabEnv } from '../elab/env';
|
|
31
|
+
import { DeRhamRankWitness, IntMatrix2D } from './derham_hkr';
|
|
32
|
+
export interface CyclicCertResult {
|
|
33
|
+
readonly charMod: number;
|
|
34
|
+
readonly m0: number;
|
|
35
|
+
readonly m1: number;
|
|
36
|
+
readonly m2: number;
|
|
37
|
+
readonly b1: IntMatrix2D;
|
|
38
|
+
readonly b2: IntMatrix2D;
|
|
39
|
+
readonly B0: IntMatrix2D;
|
|
40
|
+
readonly B1: IntMatrix2D;
|
|
41
|
+
readonly rkB1: DeRhamRankWitness;
|
|
42
|
+
readonly rkB2: DeRhamRankWitness;
|
|
43
|
+
readonly rkEven: DeRhamRankWitness;
|
|
44
|
+
readonly rkOdd: DeRhamRankWitness;
|
|
45
|
+
/** `[hh0, hh1, hc0, hc1, hpEven, hpOdd]` */
|
|
46
|
+
readonly ranks: readonly [number, number, number, number, number, number];
|
|
47
|
+
}
|
|
48
|
+
export interface ForgedCyclicOverrides {
|
|
49
|
+
readonly charMod?: number;
|
|
50
|
+
readonly m0?: number;
|
|
51
|
+
readonly m1?: number;
|
|
52
|
+
readonly m2?: number;
|
|
53
|
+
readonly b1?: IntMatrix2D;
|
|
54
|
+
readonly b2?: IntMatrix2D;
|
|
55
|
+
readonly B0?: IntMatrix2D;
|
|
56
|
+
readonly B1?: IntMatrix2D;
|
|
57
|
+
readonly ranks?: readonly number[];
|
|
58
|
+
readonly rkB1?: Partial<DeRhamRankWitness>;
|
|
59
|
+
readonly rkB2?: Partial<DeRhamRankWitness>;
|
|
60
|
+
readonly rkEven?: Partial<DeRhamRankWitness>;
|
|
61
|
+
readonly rkOdd?: Partial<DeRhamRankWitness>;
|
|
62
|
+
}
|
|
63
|
+
export declare function computeCyclicCertData(charMod: number, m0: number, m1: number, m2: number, b1: IntMatrix2D, b2: IntMatrix2D, B0: IntMatrix2D, B1: IntMatrix2D): CyclicCertResult;
|
|
64
|
+
export declare function mkSingleRankWitnessTupleType(): Term;
|
|
65
|
+
export declare function mkCyclicWitnessDataTupleType(): Term;
|
|
66
|
+
export declare function buildCyclicCertWitnessTerm(solved: CyclicCertResult, overrides?: ForgedCyclicOverrides): {
|
|
67
|
+
readonly certTypeTerm: Term;
|
|
68
|
+
readonly certProofTerm: Term;
|
|
69
|
+
};
|
|
70
|
+
export interface CyclicMixedComplexSpec {
|
|
71
|
+
readonly charMod: number;
|
|
72
|
+
readonly m0: number;
|
|
73
|
+
readonly m1: number;
|
|
74
|
+
readonly m2: number;
|
|
75
|
+
readonly b1: IntMatrix2D;
|
|
76
|
+
readonly b2: IntMatrix2D;
|
|
77
|
+
readonly B0: IntMatrix2D;
|
|
78
|
+
readonly B1: IntMatrix2D;
|
|
79
|
+
}
|
|
80
|
+
/** 1. Base field `Q`: `[hh0, hh1, hc0, hc1, hpEven, hpOdd] = [1, 0, 1, 0, 1, 0]`. */
|
|
81
|
+
export declare function buildBaseFieldRatCyclicSpec(): CyclicMixedComplexSpec;
|
|
82
|
+
/**
|
|
83
|
+
* 2. Characteristic-0 Dual Numbers `Q[x]/(x^2)` on normalized chains `M_0 = {1, x}`,
|
|
84
|
+
* `M_1 = {1⊗x, x⊗x}`, `M_2 = {1⊗x⊗x}` (`b2(1⊗x⊗x) = 2(x⊗x)`, `B0(x) = 1⊗x`):
|
|
85
|
+
* Certifies `[2, 1, 2, 0, 1, 0]` — Goodwillie's nilpotent invariance `HP_*(Q[x]/(x^2)) = [1, 0] = HP_*(Q)`!
|
|
86
|
+
*/
|
|
87
|
+
export declare function buildDualNumbersRatGoodwillieSpec(): CyclicMixedComplexSpec;
|
|
88
|
+
/**
|
|
89
|
+
* 3. Characteristic-2 Dual Numbers `F_2[x]/(x^2)` on the EXACT SAME integral mixed complex (`charMod = 2`):
|
|
90
|
+
* Since `2 ≡ 0 (mod 2)`, `b2 ≡ 0` and `[x⊗x]` + `[1⊗x⊗x]` survive, certifying `[2, 2, 2, 1, 2, 1]`
|
|
91
|
+
* (failure of Goodwillie nilpotent invariance in positive characteristic)!
|
|
92
|
+
*/
|
|
93
|
+
export declare function buildChar2DualNumbersSurvivalSpec(): CyclicMixedComplexSpec;
|
|
94
|
+
/**
|
|
95
|
+
* 4. Punctured Multiplicative Group `G_{m,Q} = Spec Q[t, t^{-1}]` on Laurent HKR window `{t^{-1}, 1, t}`:
|
|
96
|
+
* `M_0 = span{t^{-1}, 1, t}`, `M_1 = span{t^{-2}dt, t^{-1}dt, dt}`, `M_2 = 0`, `B0 = diag(-1, 0, 1)`:
|
|
97
|
+
* Certifies `[3, 3, 3, 1, 1, 1]`, matching `HP_even(G_m) ≅ Q` and `HP_odd(G_m) ≅ Q·[dt/t]`!
|
|
98
|
+
*/
|
|
99
|
+
export declare function buildPuncturedGmLaurentCyclicSpec(): CyclicMixedComplexSpec;
|
|
100
|
+
export declare function installCyclicTacticsOnly(env: ElabEnv): ElabEnv;
|