Repository navigation
Expand file tree
/
Copy pathprocess.json
More file actions
369 lines (369 loc) · 61.1 KB
/
Copy pathprocess.json
File metadata and controls
369 lines (369 loc) · 61.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
{
"runs": [
{
"runId": "4e840397-550b-489c-9faa-31ebcf7dd86d",
"startedAt": "2026-10-22T16:56:43.250Z",
"finishedAt": "2026-10-22T17:02:25.893Z",
"phase": "finished",
"resultStatus": "limit_reached",
"turns": 10,
"workers": 4,
"tasks": [
{
"id": "initial_goal_1",
"theorem": "OAI.SmallCM.candidate_ring_properties",
"objective": "Prove the frozen original target OAI.SmallCM.candidate_ring_properties; use researcher findings as advisory guidance.",
"status": "blocked",
"attempts": 4,
"dependencies": [],
"receiptIds": []
},
{
"id": "initial_research_1",
"objective": "Investigate proof routes and difficult library connections for OAI.SmallCM.candidate_ring_properties. Report concrete evidence and unresolved gaps; findings are advisory.",
"status": "pending",
"attempts": 0,
"dependencies": [],
"receiptIds": []
},
{
"id": "initial_research_2",
"objective": "Investigate proof routes and difficult library connections for the original targets. Report concrete evidence and unresolved gaps; findings are advisory.",
"status": "pending",
"attempts": 5,
"dependencies": [],
"receiptIds": []
}
],
"events": [
{
"at": "2026-10-22T15:38:12.657Z",
"kind": "baseline",
"status": "not-assessed",
"message": ""
},
{
"at": "2026-10-22T15:40:12.933Z",
"kind": "transition",
"status": "not-assessed",
"message": ""
}
],
"checks": [
{
"id": "check-a0fc98d5d696917a3675",
"at": "2026-10-22T16:59:43.761Z",
"scope": "task",
"taskId": "initial_goal_1",
"commit": "fdd111af6abcf7a8b86104f9f68141e65ac59750",
"status": "failed",
"receiptIds": [
"lean-e0dd161451e51fda741aa07e"
],
"diagnostics": "Proof source contains sorry or admit.",
"sourceDigest": "e2bfc0ec12a62167b4683a09344ef563489b561f6fc85825bee38900b1d24192"
}
],
"deliveries": [
{
"id": "29d16e09-de6f-407c-b42d-1c22c791e407",
"at": "2026-10-22T15:40:12.929Z",
"kind": "progress",
"status": "advisory",
"workerId": "solver",
"role": "lead",
"commit": "8228ebbb5118723de7bb3a41ad0ce5b25313b961",
"summary": "Saved Lead draft pending integration: math_math-plan_missing_or_too_large. Inspect git show 8228ebbb5118723de7bb3a41ad0ce5b25313b961:PROJECT_RELATIVE_PATH and reapply the useful declarations against the current canonical sources. This draft has no proof acceptance."
}
]
},
{
"runId": "cbfa1f3c-2760-4d7e-987a-97b48698fd49",
"startedAt": "2026-10-22T18:44:51.457Z",
"finishedAt": "2026-10-22T19:19:24.949Z",
"phase": "finished",
"resultStatus": "evaluated_passed",
"turns": 10,
"workers": 4,
"tasks": [
{
"id": "initial_goal_1",
"theorem": "OAI.SmallCM.candidate_ring_properties",
"objective": "Deliver the full frozen original theorem immediately using the following complete externally assisted candidate, already independently checked under the fixed Lean 4.34.1 and Mathlib (exit 0, final theorem axioms only propext/Classical.choice/Quot.sound) and the unchanged assertSolverProjectSources guard (passed). This is reference input, not host acceptance. Replace only your owned Submission.lean with these exact complete bytes or merge retaining all current valid helpers, then invoke check-lean with raw exit and publish a normal fixed proof delivery. The original theorem header, imports/namespaces and protected sources must remain unchanged. All mathematical subgoals are covered; do not restart broad library search or delete checked helper proof work. No external file imports, no added #print command in delivered source. External assistance is explicitly recorded. Full candidate follows:\nimport Mathlib",
"status": "integrated",
"attempts": 2,
"dependencies": [],
"proofCommit": "f22f19c314879c05fc88e6cbaff80ea5217db97a",
"checkStatus": "kernel_verified",
"receiptIds": [
"lean-a64dfc07566599fb4dc09b36"
]
}
],
"knowledgeApplications": [],
"review": {
"status": "accepted",
"summary": "Reviewed the frozen target OAI.SmallCM.candidate_ring_properties at HEAD 210cac97c7c7bfec226ebafc32049f7b077eb0d6. The owned Submission.lean compiles under the pinned Lean/Mathlib environment via check-lean with exit code 0, no errors, and only style/deprecation warnings. The declaration name, kind, and exact frozen type are preserved, and the source contains no sorry, admit, native_decide, unsafe, axiom, or extra imports. A fresh audit importing Submission.lean re-elaborates the exact frozen existential type and reports the theorem's axioms as only propext, Classical.choice, and Quot.sound. The witness R = MvPowerSeries (Fin 3) ℂ establishes the required adic completeness, Krull dimension 3, residue-field bijectivity, domain, Noetherian, local, algebra, and integrally-closed properties. The protected seed files match their expected digests."
},
"events": [
{
"at": "2026-10-22T18:44:51.462Z",
"kind": "baseline",
"status": "not-assessed",
"message": ""
},
{
"at": "2026-10-22T18:51:19.556Z",
"kind": "plan-edit",
"status": "applied",
"message": "initial_research_1, initial_research_2"
},
{
"at": "2026-10-22T18:51:19.556Z",
"kind": "transition",
"status": "not-assessed",
"message": ""
},
{
"at": "2026-10-22T18:53:52.932Z",
"kind": "plan-edit",
"status": "applied",
"message": "initial_research_1"
},
{
"at": "2026-10-22T18:53:52.932Z",
"kind": "transition",
"status": "not-assessed",
"message": ""
},
{
"at": "2026-10-22T18:54:34.793Z",
"kind": "plan-edit",
"status": "applied",
"message": "surface_residue"
},
{
"at": "2026-10-22T18:54:34.794Z",
"kind": "transition",
"status": "not-assessed",
"message": ""
},
{
"at": "2026-10-22T18:55:46.623Z",
"kind": "plan-edit",
"status": "applied",
"message": "surface_complete"
},
{
"at": "2026-10-22T18:55:46.624Z",
"kind": "transition",
"status": "not-assessed",
"message": ""
},
{
"at": "2026-10-22T18:57:24.856Z",
"kind": "plan-edit",
"status": "applied",
"message": "initial_research_2"
},
{
"at": "2026-10-22T18:57:24.856Z",
"kind": "transition",
"status": "not-assessed",
"message": ""
},
{
"at": "2026-10-22T18:59:57.346Z",
"kind": "plan-edit",
"status": "applied",
"message": "initial_goal_1, initial_research_1, initial_research_2, surface_residue, surface_complete"
},
{
"at": "2026-10-22T18:59:57.347Z",
"kind": "transition",
"status": "not-assessed",
"message": ""
},
{
"at": "2026-10-22T19:02:27.741Z",
"kind": "transition",
"status": "not-assessed",
"message": ""
},
{
"at": "2026-10-22T19:02:51.136Z",
"kind": "lean-check",
"taskId": "initial_goal_1",
"status": "kernel_verified"
},
{
"at": "2026-10-22T19:02:51.206Z",
"kind": "transition",
"status": "not-assessed",
"message": ""
}
],
"checks": [
{
"id": "check-56fa34199f74bfec07e8",
"at": "2026-10-22T19:02:27.671Z",
"scope": "task",
"taskId": "initial_goal_1",
"commit": "515888e8f295e662a9bf41843bd7a8864eb691a0",
"status": "kernel_verified",
"receiptIds": [
"lean-12fb0f5665acf8125c0220d6"
],
"diagnostics": "OAI.SmallCM.candidate_ring_properties :\n ∃ R x,\n ∃ (_ : IsDomain R) (_ : IsNoetherianRing R) (_ : IsIntegrallyClosed R) (x_4 : IsLocalRing R),\n ∃ x_5,\n IsAdicComplete (IsLocalRing.maximalIdeal R) R ∧\n ringKrullDim R = 3 ∧ Function.Bijective ⇑(algebraMap ℂ (IsLocalRing.ResidueField R))\n'OAI.SmallCM.candidate_ring_properties' depends on axioms: [propext, Classical.choice, Quot.sound]\n\nSubmission.lean:18:4: warning: try 'simp' instead of 'simpa'\n\nNote: This linter can be disabled with `set_option linter.unnecessarySimpa false`\nSubmission.lean:65:2: warning: Try this: \n letI̵\n\nThe goal is a proposition, so `let` is preferred over `letI`.\nThe difference between `let` and `letI` is that `letI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:156:78: warning: `if_neg` has been deprecated: Use `ite_eq_right` instead\nSubmission.lean:202:2: warning: Try this: \n haveI̵\n\nThe goal is a proposition, so `have` is preferred over `haveI`.\nThe difference between `have` and `haveI` is that `haveI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:227:4: warning: Try this: \n letI̵\n\nThe goal is a proposition, so `let` is preferred over `letI`.\nThe difference between `let` and `letI` is that `letI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:228:4: warning: Try this: \n haveI̵\n\nThe goal is a proposition, so `have` is preferred over `haveI`.\nThe difference between `have` and `haveI` is that `haveI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:229:4: warning: Try this: \n letI̵\n\nThe goal is a proposition, so `let` is preferred over `letI`.\nThe difference between `let` and `letI` is that `letI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:243:2: warning: Try this: \n letI̵\n\nThe goal is a proposition, so `let` is preferred over `letI`.\nThe difference between `let` and `letI` is that `letI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:244:2: warning: Try this: \n letI̵\n\nThe goal is a proposition, so `let` is preferred over `letI`.\nThe difference between `let` and `letI` is that `letI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`",
"sourceDigest": "7b4b8a651c920d30b830d0e513f4516d5ca9f9dc7ab443e172b7188b387f1c4e"
},
{
"id": "check-2fff657ae81a33b18484",
"at": "2026-10-22T19:02:51.136Z",
"scope": "task",
"taskId": "initial_goal_1",
"commit": "930fc816c72067348f6505c74cdf7fcac892a23b",
"status": "kernel_verified",
"receiptIds": [
"lean-a64dfc07566599fb4dc09b36"
],
"diagnostics": "OAI.SmallCM.candidate_ring_properties :\n ∃ R x,\n ∃ (_ : IsDomain R) (_ : IsNoetherianRing R) (_ : IsIntegrallyClosed R) (x_4 : IsLocalRing R),\n ∃ x_5,\n IsAdicComplete (IsLocalRing.maximalIdeal R) R ∧\n ringKrullDim R = 3 ∧ Function.Bijective ⇑(algebraMap ℂ (IsLocalRing.ResidueField R))\n'OAI.SmallCM.candidate_ring_properties' depends on axioms: [propext, Classical.choice, Quot.sound]\n\nSubmission.lean:18:4: warning: try 'simp' instead of 'simpa'\n\nNote: This linter can be disabled with `set_option linter.unnecessarySimpa false`\nSubmission.lean:61:2: warning: Try this: \n letI̵\n\nThe goal is a proposition, so `let` is preferred over `letI`.\nThe difference between `let` and `letI` is that `letI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:146:78: warning: `if_neg` has been deprecated: Use `ite_eq_right` instead\nSubmission.lean:189:2: warning: Try this: \n haveI̵\n\nThe goal is a proposition, so `have` is preferred over `haveI`.\nThe difference between `have` and `haveI` is that `haveI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:213:4: warning: Try this: \n letI̵\n\nThe goal is a proposition, so `let` is preferred over `letI`.\nThe difference between `let` and `letI` is that `letI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:214:4: warning: Try this: \n haveI̵\n\nThe goal is a proposition, so `have` is preferred over `haveI`.\nThe difference between `have` and `haveI` is that `haveI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:215:4: warning: Try this: \n letI̵\n\nThe goal is a proposition, so `let` is preferred over `letI`.\nThe difference between `let` and `letI` is that `letI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:226:2: warning: Try this: \n letI̵\n\nThe goal is a proposition, so `let` is preferred over `letI`.\nThe difference between `let` and `letI` is that `letI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:227:2: warning: Try this: \n letI̵\n\nThe goal is a proposition, so `let` is preferred over `letI`.\nThe difference between `let` and `letI` is that `letI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`",
"sourceDigest": "9c91274281d45d1fca9280eaa9c52952e9ff14e48a8bfa11dffdd017172ec16d"
},
{
"id": "check-73969943b30b55dacdb8",
"at": "2026-10-22T19:03:14.597Z",
"scope": "original",
"commit": "2ef811423f23eea4d7bea4bc2b74b49f436a706e",
"status": "kernel_verified",
"receiptIds": [
"lean-19a2a6295419e03112cc5e18"
],
"diagnostics": "OAI.SmallCM.candidate_ring_properties :\n ∃ R x,\n ∃ (_ : IsDomain R) (_ : IsNoetherianRing R) (_ : IsIntegrallyClosed R) (x_4 : IsLocalRing R),\n ∃ x_5,\n IsAdicComplete (IsLocalRing.maximalIdeal R) R ∧\n ringKrullDim R = 3 ∧ Function.Bijective ⇑(algebraMap ℂ (IsLocalRing.ResidueField R))\n'OAI.SmallCM.candidate_ring_properties' depends on axioms: [propext, Classical.choice, Quot.sound]\n\nSubmission.lean:18:4: warning: try 'simp' instead of 'simpa'\n\nNote: This linter can be disabled with `set_option linter.unnecessarySimpa false`\nSubmission.lean:61:2: warning: Try this: \n letI̵\n\nThe goal is a proposition, so `let` is preferred over `letI`.\nThe difference between `let` and `letI` is that `letI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:146:78: warning: `if_neg` has been deprecated: Use `ite_eq_right` instead\nSubmission.lean:189:2: warning: Try this: \n haveI̵\n\nThe goal is a proposition, so `have` is preferred over `haveI`.\nThe difference between `have` and `haveI` is that `haveI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:213:4: warning: Try this: \n letI̵\n\nThe goal is a proposition, so `let` is preferred over `letI`.\nThe difference between `let` and `letI` is that `letI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:214:4: warning: Try this: \n haveI̵\n\nThe goal is a proposition, so `have` is preferred over `haveI`.\nThe difference between `have` and `haveI` is that `haveI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:215:4: warning: Try this: \n letI̵\n\nThe goal is a proposition, so `let` is preferred over `letI`.\nThe difference between `let` and `letI` is that `letI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:226:2: warning: Try this: \n letI̵\n\nThe goal is a proposition, so `let` is preferred over `letI`.\nThe difference between `let` and `letI` is that `letI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`\nSubmission.lean:227:2: warning: Try this: \n letI̵\n\nThe goal is a proposition, so `let` is preferred over `letI`.\nThe difference between `let` and `letI` is that `letI` inlines the value.\nBut this is not relevant for proofs because of proof irrelevance.\n\nNote: This linter can be disabled with `set_option linter.style.haveILetI false`",
"sourceDigest": "bc4a1cec74196b46dd726a46dc467c40b8657527dbd235a49a3cf0b5e4355ac9"
}
],
"deliveries": [
{
"id": "cec95043-4a57-49e6-b6a1-1adc79f0839e",
"at": "2026-10-22T18:51:19.666Z",
"kind": "research",
"status": "superseded",
"taskId": "initial_research_2",
"workerId": "researcher-2",
"role": "researcher",
"commit": "8e1150cc68bac042f69955434c2078dfc28f3838",
"summary": "Delivery belongs to a superseded assignment."
},
{
"id": "2da86b57-83e9-4ddb-b104-c0d5dec488a3",
"at": "2026-10-22T18:53:52.965Z",
"kind": "proof",
"status": "superseded",
"taskId": "initial_research_1",
"workerId": "engineer",
"role": "engineer",
"commit": "30fee513dbdcfd2541a9df18327ec2bde639dff9",
"summary": "Delivery belongs to a superseded assignment."
},
{
"id": "ba5aa33f-8039-4870-a8ab-f5ef087ae98f",
"at": "2026-10-22T18:57:24.889Z",
"kind": "proof",
"status": "superseded",
"taskId": "initial_research_2",
"workerId": "researcher-2",
"role": "researcher",
"commit": "8e1150cc68bac042f69955434c2078dfc28f3838",
"summary": "Delivery belongs to a superseded assignment."
},
{
"id": "81e5bc37-255a-4b5b-afbc-78b94c0efa1b",
"at": "2026-10-22T18:59:57.379Z",
"kind": "proof",
"status": "superseded",
"taskId": "initial_research_2",
"workerId": "researcher-2",
"role": "researcher",
"commit": "8e1150cc68bac042f69955434c2078dfc28f3838",
"summary": "Delivery belongs to a superseded assignment."
},
{
"id": "79198969-246b-4875-964c-01f45ca6232b",
"at": "2026-10-22T18:59:57.401Z",
"kind": "proof",
"status": "superseded",
"taskId": "initial_research_1",
"workerId": "engineer",
"role": "engineer",
"commit": "6d68973e912e3736a739cd8c6c2eb7e4a96825b4",
"summary": "Delivery belongs to a superseded assignment."
},
{
"id": "ffd52a4e-c480-4f6f-9788-697fea386a16",
"at": "2026-10-22T18:59:57.413Z",
"kind": "proof",
"status": "superseded",
"taskId": "initial_goal_1",
"workerId": "researcher-1",
"role": "researcher",
"commit": "8228ebbb5118723de7bb3a41ad0ce5b25313b961",
"summary": "Delivery belongs to a superseded assignment."
},
{
"id": "f563eecb-70f5-4bfc-80b2-ccf2bd1e7a33",
"at": "2026-10-22T19:01:53.702Z",
"kind": "progress",
"status": "advisory",
"taskId": "initial_goal_1",
"workerId": "researcher-2",
"role": "researcher",
"summary": "progress"
},
{
"id": "c9b0cc90-85c3-4a66-8d3c-6b0689618e42",
"at": "2026-10-22T19:03:14.629Z",
"kind": "proof",
"status": "verified",
"taskId": "initial_goal_1",
"workerId": "researcher-2",
"role": "researcher",
"commit": "f22f19c314879c05fc88e6cbaff80ea5217db97a",
"summary": "Fixed declaration checked; unresolved lemma assumptions remain obligations."
},
{
"id": "6c910d4a-c51a-46b3-8735-9e4d0916f523",
"at": "2026-10-22T19:19:24.877Z",
"kind": "review",
"status": "accepted",
"workerId": "researcher-1",
"role": "researcher",
"commit": "2ef811423f23eea4d7bea4bc2b74b49f436a706e",
"summary": "Reviewed the frozen target OAI.SmallCM.candidate_ring_properties at HEAD 210cac97c7c7bfec226ebafc32049f7b077eb0d6. The owned Submission.lean compiles under the pinned Lean/Mathlib environment via check-lean with exit code 0, no errors, and only style/deprecation warnings. The declaration name, kind, and exact frozen type are preserved, and the source contains no sorry, admit, native_decide, unsafe, axiom, or extra imports. A fresh audit importing Submission.lean re-elaborates the exact frozen existential type and reports the theorem's axioms as only propext, Classical.choice, and Quot.sound. The witness R = MvPowerSeries (Fin 3) ℂ establishes the required adic completeness, Krull dimension 3, residue-field bijectivity, domain, Noetherian, local, algebra, and integrally-closed properties. The protected seed files match their expected digests."
}
]
}
],
"sources": {
"e2bfc0ec12a62167b4683a09344ef563489b561f6fc85825bee38900b1d24192": {
"path": "Submission.lean",
"code": "import Mathlib\n\nnamespace OAI\n\nnamespace SmallCM\n\n \ntheorem candidate_ring_properties :\n ∃ (R : Type) (_ : CommRing R) (_ : IsDomain R) (_ : IsNoetherianRing R)\n (_ : IsIntegrallyClosed R) (_ : IsLocalRing R) (_ : Algebra ℂ R),\n IsAdicComplete (IsLocalRing.maximalIdeal R) R ∧\n ringKrullDim R = 3 ∧\n Function.Bijective (algebraMap ℂ (IsLocalRing.ResidueField R)) := by\n sorry\nend SmallCM\n\n\nend OAI\n",
"sha256": "e2bfc0ec12a62167b4683a09344ef563489b561f6fc85825bee38900b1d24192"
},
"7b4b8a651c920d30b830d0e513f4516d5ca9f9dc7ab443e172b7188b387f1c4e": {
"path": "Submission.lean",
"code": "import Mathlib\n\nnamespace OAI\n\nnamespace SmallCM\n\nlemma powerseries_ker_constantCoeff (R : Type*) [CommRing R] :\n RingHom.ker (PowerSeries.constantCoeff (R := R)) =\n Ideal.span ({PowerSeries.X} : Set (PowerSeries R)) := by\n ext f\n rw [RingHom.mem_ker, Ideal.mem_span_singleton, PowerSeries.X_dvd_iff]\n\nlemma powerseries_dim (R : Type*) [CommRing R] [IsNoetherianRing R] [IsLocalRing R] :\n ringKrullDim (PowerSeries R) = ringKrullDim R + 1 := by\n have hx : (PowerSeries.X : PowerSeries R) ∈ IsLocalRing.maximalIdeal (PowerSeries R) := by\n rw [IsLocalRing.mem_maximalIdeal, mem_nonunits_iff,\n PowerSeries.isUnit_iff_constantCoeff]\n simpa using (not_isUnit_zero (M₀ := R))\n have h := ringKrullDim_quotient_span_singleton_succ_eq_ringKrullDim_of_mem_nonZeroDivisors\n (R := PowerSeries R) (x := PowerSeries.X)\n MvPowerSeries.X_mem_nonzeroDivisors hx\n rw [ringKrullDim_eq_of_ringEquiv\n ((Ideal.quotEquivOfEq (powerseries_ker_constantCoeff R).symm).trans\n (RingHom.quotientKerEquivOfSurjective PowerSeries.constantCoeff_surj))] at h\n exact h.symm\n\nlemma mvPowerSeries_dim (n : ℕ) :\n ringKrullDim (MvPowerSeries (Fin n) ℂ) = n := by\n induction n with\n | zero =>\n rw [ringKrullDim_eq_of_ringEquiv (MvPowerSeries.isEmptyEquiv (Fin 0) ℂ).toRingEquiv]\n simp\n | succ n ih =>\n rw [ringKrullDim_eq_of_ringEquiv (MvPowerSeries.finSuccEquiv ℂ n).toRingEquiv,\n powerseries_dim, ih]\n simp\n\nlemma mvPowerSeries_three_dim :\n ringKrullDim (MvPowerSeries (Fin 3) ℂ) = 3 := by\n simpa using mvPowerSeries_dim 3\n\nlemma polynomial_vars_eq_ker (σ k : Type*) [Field k] :\n MvPolynomial.idealOfVars σ k = RingHom.ker (MvPolynomial.constantCoeff (σ := σ) (R := k)) := by\n ext p\n change p ∈ MvPolynomial.idealOfVars σ k ↔ p.constantCoeff = 0\n rw [← pow_one (MvPolynomial.idealOfVars σ k), MvPolynomial.mem_pow_idealOfVars_iff']\n constructor\n · intro h\n exact h 0 (by simp)\n · intro h x hx\n have hx0 : x = 0 := (Finsupp.degree_eq_zero_iff x).1 (by omega)\n subst x\n exact h\n\nlemma IsLocalRing.maximalIdeal_eq_span_vars (σ k : Type*) [Finite σ] [Field k] :\n IsLocalRing.maximalIdeal (MvPowerSeries σ k) =\n Ideal.span (Set.range (MvPowerSeries.X (σ := σ) (R := k))) := by\n let I : Ideal (MvPolynomial σ k) := MvPolynomial.idealOfVars σ k\n let e := (MvPowerSeries.toAdicCompletionAlgEquiv σ k).toRingEquiv\n have hI : I.IsMaximal := by\n change (MvPolynomial.idealOfVars σ k).IsMaximal\n rw [polynomial_vars_eq_ker]\n apply RingHom.ker_isMaximal_of_surjective\n exact fun x => ⟨MvPolynomial.C x, by simp⟩\n letI : I.IsMaximal := hI\n have hmap : Ideal.map e\n (Ideal.span (Set.range (MvPowerSeries.X (σ := σ) (R := k)))) =\n I.map (algebraMap (MvPolynomial σ k) (AdicCompletion I (MvPolynomial σ k))) := by\n dsimp only [I]\n simp_rw [MvPolynomial.idealOfVars, Ideal.map_span, ← Set.range_comp]\n congr 2\n ext i\n simp [e, I, AdicCompletion.algebraMap_apply, ← MvPolynomial.coe_X,\n MvPowerSeries.toAdicCompletion_coe]\n have hm : (Ideal.map e\n (Ideal.span (Set.range (MvPowerSeries.X (σ := σ) (R := k))))).IsMaximal := by\n rw [hmap]\n exact AdicCompletion.isMaximal_map_of_le I I le_rfl (MvPolynomial.idealOfVars_fg σ k)\n have hm' : (Ideal.span (Set.range (MvPowerSeries.X (σ := σ) (R := k)))).IsMaximal :=\n (Ideal.isMaximal_map_iff_of_bijective e e.bijective).1 hm\n exact (IsLocalRing.eq_maximalIdeal hm').symm\n\nlemma mvPowerSeries_complete (σ k : Type*) [Finite σ] [Field k] :\n IsAdicComplete (IsLocalRing.maximalIdeal (MvPowerSeries σ k)) (MvPowerSeries σ k) := by\n rw [IsLocalRing.maximalIdeal_eq_span_vars]\n infer_instance\n\nlemma mvPowerSeries_three_complete :\n IsAdicComplete (IsLocalRing.maximalIdeal (MvPowerSeries (Fin 3) ℂ)) (MvPowerSeries (Fin 3) ℂ) :=\n mvPowerSeries_complete (Fin 3) ℂ\n\nlemma mvPowerSeries_ker_constantCoeff_maximal (n : ℕ) :\n RingHom.ker (MvPowerSeries.constantCoeff (σ := Fin n) (R := ℂ)) =\n IsLocalRing.maximalIdeal (MvPowerSeries (Fin n) ℂ) := by\n apply IsLocalRing.ker_eq_maximalIdeal\n intro c\n exact ⟨MvPowerSeries.C c, MvPowerSeries.constantCoeff_C c⟩\n\nlemma mvPowerSeries_residue_bijective (n : ℕ) :\n Function.Bijective (algebraMap ℂ (IsLocalRing.ResidueField (MvPowerSeries (Fin n) ℂ))) := by\n constructor\n · exact (algebraMap ℂ (IsLocalRing.ResidueField (MvPowerSeries (Fin n) ℂ))).injective\n · intro z\n obtain ⟨f, rfl⟩ := IsLocalRing.residue_surjective z\n refine ⟨MvPowerSeries.constantCoeff f, ?_⟩\n change Ideal.Quotient.mk _ (MvPowerSeries.C (MvPowerSeries.constantCoeff f)) =\n Ideal.Quotient.mk _ f\n apply Ideal.Quotient.eq.mpr\n rw [← mvPowerSeries_ker_constantCoeff_maximal n, RingHom.mem_ker]\n simp\n\nlemma constantCoeff_almost {R K : Type*} [CommRing R] [IsDomain R] [Field K] [Algebra R K] [IsFractionRing R K] (f : (PowerSeries K)) (h : IsAlmostIntegral (PowerSeries R) f) :\n IsAlmostIntegral R (PowerSeries.constantCoeff f) := by\n obtain ⟨b, hb, hh⟩ := h\n have hb0 : b ≠ 0 := nonZeroDivisors.ne_zero hb\n refine ⟨PowerSeries.coeff b.order.toNat b, ?_, fun n ↦ ?_⟩\n · exact mem_nonZeroDivisors_iff_ne_zero.mpr (PowerSeries.coeff_order hb0)\n obtain ⟨q, hq⟩ := hh n\n refine ⟨PowerSeries.coeff b.order.toNat q, ?_⟩\n change algebraMap R K _ = _\n have heq : PowerSeries.map (algebraMap R K) q =\n PowerSeries.map (algebraMap R K) b * f ^ n := by\n simpa [Algebra.smul_def, PowerSeries.algebraMap_apply''] using hq\n have hbFact : PowerSeries.map (algebraMap R K) b =\n PowerSeries.X ^ b.order.toNat * PowerSeries.map (algebraMap R K) b.divXPowOrder := by\n simpa only [map_mul, map_pow, PowerSeries.map_X] using\n congrArg (PowerSeries.map (algebraMap R K))\n (PowerSeries.X_pow_order_mul_divXPowOrder (f := b)).symm\n rw [hbFact, mul_assoc] at heq\n have hc := congrArg (PowerSeries.coeff b.order.toNat) heq\n rw [PowerSeries.coeff_map] at hc\n have hx := PowerSeries.coeff_X_pow_mul\n (PowerSeries.map (algebraMap R K) b.divXPowOrder * f ^ n) b.order.toNat 0\n simp only [zero_add] at hx\n rw [hx] at hc\n rw [PowerSeries.coeff_zero_eq_constantCoeff] at hc\n simp only [map_mul, map_pow] at hc\n have hcc : PowerSeries.constantCoeff (PowerSeries.map (algebraMap R K) b.divXPowOrder) =\n algebraMap R K (PowerSeries.coeff b.order.toNat b) := by\n rw [← PowerSeries.coeff_zero_eq_constantCoeff, PowerSeries.coeff_map,\n PowerSeries.coeff_divXPowOrder, zero_add]\n simpa only [hcc, Algebra.smul_def] using hc\n\nlemma almost_div_X {R K : Type*} [CommRing R] [IsDomain R] [Field K] [Algebra R K] [IsFractionRing R K] (f : (PowerSeries K))\n (h : IsAlmostIntegral (PowerSeries R) (PowerSeries.X * f)) : IsAlmostIntegral (PowerSeries R) f := by\n obtain ⟨b, hb, hh⟩ := h\n refine ⟨b, hb, fun n ↦ ?_⟩\n obtain ⟨q, hq⟩ := hh n\n have heq : PowerSeries.map (algebraMap R K) q =\n PowerSeries.X ^ n * (PowerSeries.map (algebraMap R K) b * f ^ n) := by\n simpa [Algebra.smul_def, PowerSeries.algebraMap_apply'', mul_pow, mul_left_comm, mul_assoc]\n using hq\n have hqd : PowerSeries.X ^ n ∣ q := PowerSeries.X_pow_dvd_iff.mpr <| by\n intro i hi\n apply IsFractionRing.injective R K\n rw [map_zero, ← PowerSeries.coeff_map, heq, PowerSeries.coeff_X_pow_mul', if_neg]\n omega\n obtain ⟨q', hq'⟩ := hqd\n refine ⟨q', ?_⟩\n change PowerSeries.map (algebraMap R K) q' =\n PowerSeries.map (algebraMap R K) b * f ^ n\n rw [hq', map_mul, map_pow, PowerSeries.map_X] at heq\n exact PowerSeries.X_pow_mul_cancel heq\n\nlemma coeff_mem_of_almost {R K : Type*} [CommRing R] [IsDomain R] [Field K] [Algebra R K] [IsFractionRing R K] [IsNoetherianRing R] [IsIntegrallyClosed R]\n (f : (PowerSeries K)) (h : IsAlmostIntegral (PowerSeries R) f) (i : ℕ) :\n ∃ a : R, algebraMap R K a = PowerSeries.coeff i f := by\n induction i generalizing f with\n | zero =>\n simpa only [PowerSeries.coeff_zero_eq_constantCoeff] using\n (IsIntegrallyClosed.isIntegral_iff.mp ((constantCoeff_almost f h).isIntegral))\n | succ i ih =>\n have hc := IsIntegrallyClosed.isIntegral_iff.mp ((constantCoeff_almost f h).isIntegral)\n obtain ⟨a, ha⟩ := hc\n let g : (PowerSeries K) := PowerSeries.mk (fun n ↦ PowerSeries.coeff (n + 1) f)\n have hg : IsAlmostIntegral (PowerSeries R) (PowerSeries.X * g) := by\n have heq : PowerSeries.X * g = f - algebraMap (PowerSeries R) (PowerSeries K) (PowerSeries.C a) := by\n simpa [g, ha, PowerSeries.algebraMap_apply''] using\n (PowerSeries.sub_const_eq_X_mul_shift f).symm\n rw [heq]\n exact sub_mem h (algebraMap_mem (completeIntegralClosure (PowerSeries R) (PowerSeries K)) _)\n simpa [g] using ih g (almost_div_X g hg)\n\nlemma mem_range_of_almost {R K : Type*} [CommRing R] [IsDomain R] [Field K] [Algebra R K] [IsFractionRing R K] [IsNoetherianRing R] [IsIntegrallyClosed R]\n (f : (PowerSeries K)) (h : IsAlmostIntegral (PowerSeries R) f) :\n ∃ a : (PowerSeries R), algebraMap (PowerSeries R) (PowerSeries K) a = f := by\n choose a ha using coeff_mem_of_almost f h\n refine ⟨PowerSeries.mk a, ?_⟩\n ext i\n simpa only [PowerSeries.algebraMap_apply'', PowerSeries.coeff_map, PowerSeries.coeff_mk] using ha i\n\nlemma powerSeries_isIntegrallyClosed {R : Type*} [CommRing R] [IsDomain R] [IsNoetherianRing R] [IsIntegrallyClosed R] :\n IsIntegrallyClosed (PowerSeries R) := by\n let K := FractionRing R\n let B := (PowerSeries K)\n let L := FractionRing B\n let F := FractionRing (PowerSeries R)\n let g : (PowerSeries R) →+* L := (algebraMap B L).comp (algebraMap (PowerSeries R) B)\n have hg : Function.Injective g :=\n (IsFractionRing.injective B L).comp\n (PowerSeries.map_injective (algebraMap R K) (IsFractionRing.injective R K))\n haveI : IsScalarTower (PowerSeries R) B L := inferInstance\n let φ : F →ₐ[(PowerSeries R)] L := IsFractionRing.liftAlgHom (g := Algebra.ofId _ _) hg\n apply (isIntegrallyClosed_iff F).mpr\n intro x hx\n have hy : IsIntegral B (φ x) := (hx.map φ).tower_top\n obtain ⟨f, hf⟩ := IsIntegrallyClosed.isIntegral_iff.mp hy\n have hfa : IsAlmostIntegral (PowerSeries R) f := by\n obtain ⟨b, hb, hh⟩ := hx.isAlmostIntegral\n refine ⟨b, hb, fun n ↦ ?_⟩\n obtain ⟨q, hq⟩ := hh n\n refine ⟨q, ?_⟩\n apply IsFractionRing.injective B L\n have heq := congrArg φ hq\n simpa [Algebra.smul_def, hf, map_mul, map_pow, IsScalarTower.algebraMap_apply (PowerSeries R) B L]\n using heq\n obtain ⟨a, ha⟩ := mem_range_of_almost f hfa\n refine ⟨a, φ.injective ?_⟩\n change φ (algebraMap (PowerSeries R) F a) = φ x\n rw [φ.commutes, ← hf, ← ha, IsScalarTower.algebraMap_apply (PowerSeries R) B L]\n\nlemma mvPowerSeries_fin_integrallyClosed {R : Type*} [CommRing R] [IsDomain R] [IsNoetherianRing R] [IsIntegrallyClosed R]\n (n : ℕ) : IsIntegrallyClosed (MvPowerSeries (Fin n) R) := by\n induction n with\n | zero => exact IsIntegrallyClosed.of_equiv (MvPowerSeries.isEmptyEquiv (Fin 0) R).toRingEquiv.symm\n | succ n ih =>\n letI := ih\n haveI : IsDomain (MvPowerSeries (Fin n) R) := NoZeroDivisors.to_isDomain _\n letI : IsIntegrallyClosed (PowerSeries (MvPowerSeries (Fin n) R)) := powerSeries_isIntegrallyClosed\n exact IsIntegrallyClosed.of_equiv (MvPowerSeries.finSuccEquiv R n).toRingEquiv.symm\n\nlemma complex_fin_three_integrallyClosed : IsIntegrallyClosed (MvPowerSeries (Fin 3) ℂ) :=\n mvPowerSeries_fin_integrallyClosed 3\n\n \ntheorem candidate_ring_properties :\n ∃ (R : Type) (_ : CommRing R) (_ : IsDomain R) (_ : IsNoetherianRing R)\n (_ : IsIntegrallyClosed R) (_ : IsLocalRing R) (_ : Algebra ℂ R),\n IsAdicComplete (IsLocalRing.maximalIdeal R) R ∧\n ringKrullDim R = 3 ∧\n Function.Bijective (algebraMap ℂ (IsLocalRing.ResidueField R)) := by\n let R := MvPowerSeries (Fin 3) ℂ\n letI : IsDomain R := NoZeroDivisors.to_isDomain _\n letI : IsIntegrallyClosed R := complex_fin_three_integrallyClosed\n refine ⟨R, inferInstance, inferInstance, inferInstance, inferInstance,\n inferInstance, inferInstance, ?_, ?_, ?_⟩\n · exact mvPowerSeries_three_complete\n · exact mvPowerSeries_three_dim\n · exact mvPowerSeries_residue_bijective 3\nend SmallCM\n\n\nend OAI\n",
"sha256": "7b4b8a651c920d30b830d0e513f4516d5ca9f9dc7ab443e172b7188b387f1c4e"
},
"9c91274281d45d1fca9280eaa9c52952e9ff14e48a8bfa11dffdd017172ec16d": {
"path": "Submission.lean",
"code": "import Mathlib\n\nnamespace OAI\n\nnamespace SmallCM\n\n \nlemma powerseries_ker_constantCoeff (R : Type*) [CommRing R] :\n RingHom.ker (PowerSeries.constantCoeff (R := R)) =\n Ideal.span ({PowerSeries.X} : Set (PowerSeries R)) := by\n ext f\n rw [RingHom.mem_ker, Ideal.mem_span_singleton, PowerSeries.X_dvd_iff]\nlemma powerseries_dim (R : Type*) [CommRing R] [IsNoetherianRing R] [IsLocalRing R] :\n ringKrullDim (PowerSeries R) = ringKrullDim R + 1 := by\n have hx : (PowerSeries.X : PowerSeries R) ∈ IsLocalRing.maximalIdeal (PowerSeries R) := by\n rw [IsLocalRing.mem_maximalIdeal, mem_nonunits_iff,\n PowerSeries.isUnit_iff_constantCoeff]\n simpa using (not_isUnit_zero (M₀ := R))\n have h := ringKrullDim_quotient_span_singleton_succ_eq_ringKrullDim_of_mem_nonZeroDivisors\n (R := PowerSeries R) (x := PowerSeries.X)\n MvPowerSeries.X_mem_nonzeroDivisors hx\n rw [ringKrullDim_eq_of_ringEquiv\n ((Ideal.quotEquivOfEq (powerseries_ker_constantCoeff R).symm).trans\n (RingHom.quotientKerEquivOfSurjective PowerSeries.constantCoeff_surj))] at h\n exact h.symm\nlemma mvPowerSeries_dim (n : ℕ) :\n ringKrullDim (MvPowerSeries (Fin n) ℂ) = n := by\n induction n with\n | zero =>\n rw [ringKrullDim_eq_of_ringEquiv (MvPowerSeries.isEmptyEquiv (Fin 0) ℂ).toRingEquiv]\n simp\n | succ n ih =>\n rw [ringKrullDim_eq_of_ringEquiv (MvPowerSeries.finSuccEquiv ℂ n).toRingEquiv,\n powerseries_dim, ih]\n simp\nlemma mvPowerSeries_three_dim :\n ringKrullDim (MvPowerSeries (Fin 3) ℂ) = 3 := by\n simpa using mvPowerSeries_dim 3\nlemma polynomial_vars_eq_ker (σ k : Type*) [Field k] :\n MvPolynomial.idealOfVars σ k = RingHom.ker (MvPolynomial.constantCoeff (σ := σ) (R := k)) := by\n ext p\n change p ∈ MvPolynomial.idealOfVars σ k ↔ p.constantCoeff = 0\n rw [← pow_one (MvPolynomial.idealOfVars σ k), MvPolynomial.mem_pow_idealOfVars_iff']\n constructor\n · intro h\n exact h 0 (by simp)\n · intro h x hx\n have hx0 : x = 0 := (Finsupp.degree_eq_zero_iff x).1 (by omega)\n subst x\n exact h\nlemma IsLocalRing.maximalIdeal_eq_span_vars (σ k : Type*) [Finite σ] [Field k] :\n IsLocalRing.maximalIdeal (MvPowerSeries σ k) =\n Ideal.span (Set.range (MvPowerSeries.X (σ := σ) (R := k))) := by\n let I : Ideal (MvPolynomial σ k) := MvPolynomial.idealOfVars σ k\n let e := (MvPowerSeries.toAdicCompletionAlgEquiv σ k).toRingEquiv\n have hI : I.IsMaximal := by\n change (MvPolynomial.idealOfVars σ k).IsMaximal\n rw [polynomial_vars_eq_ker]\n apply RingHom.ker_isMaximal_of_surjective\n exact fun x => ⟨MvPolynomial.C x, by simp⟩\n letI : I.IsMaximal := hI\n have hmap : Ideal.map e\n (Ideal.span (Set.range (MvPowerSeries.X (σ := σ) (R := k)))) =\n I.map (algebraMap (MvPolynomial σ k) (AdicCompletion I (MvPolynomial σ k))) := by\n dsimp only [I]\n simp_rw [MvPolynomial.idealOfVars, Ideal.map_span, ← Set.range_comp]\n congr 2\n ext i\n simp [e, I, AdicCompletion.algebraMap_apply, ← MvPolynomial.coe_X,\n MvPowerSeries.toAdicCompletion_coe]\n have hm : (Ideal.map e\n (Ideal.span (Set.range (MvPowerSeries.X (σ := σ) (R := k))))).IsMaximal := by\n rw [hmap]\n exact AdicCompletion.isMaximal_map_of_le I I le_rfl (MvPolynomial.idealOfVars_fg σ k)\n have hm' : (Ideal.span (Set.range (MvPowerSeries.X (σ := σ) (R := k)))).IsMaximal :=\n (Ideal.isMaximal_map_iff_of_bijective e e.bijective).1 hm\n exact (IsLocalRing.eq_maximalIdeal hm').symm\nlemma mvPowerSeries_complete (σ k : Type*) [Finite σ] [Field k] :\n IsAdicComplete (IsLocalRing.maximalIdeal (MvPowerSeries σ k)) (MvPowerSeries σ k) := by\n rw [IsLocalRing.maximalIdeal_eq_span_vars]\n infer_instance\nlemma mvPowerSeries_three_complete :\n IsAdicComplete (IsLocalRing.maximalIdeal (MvPowerSeries (Fin 3) ℂ)) (MvPowerSeries (Fin 3) ℂ) :=\n mvPowerSeries_complete (Fin 3) ℂ\nlemma mvPowerSeries_ker_constantCoeff_maximal (n : ℕ) :\n RingHom.ker (MvPowerSeries.constantCoeff (σ := Fin n) (R := ℂ)) =\n IsLocalRing.maximalIdeal (MvPowerSeries (Fin n) ℂ) := by\n apply IsLocalRing.ker_eq_maximalIdeal\n intro c\n exact ⟨MvPowerSeries.C c, MvPowerSeries.constantCoeff_C c⟩\nlemma mvPowerSeries_residue_bijective (n : ℕ) :\n Function.Bijective (algebraMap ℂ (IsLocalRing.ResidueField (MvPowerSeries (Fin n) ℂ))) := by\n constructor\n · exact (algebraMap ℂ (IsLocalRing.ResidueField (MvPowerSeries (Fin n) ℂ))).injective\n · intro z\n obtain ⟨f, rfl⟩ := IsLocalRing.residue_surjective z\n refine ⟨MvPowerSeries.constantCoeff f, ?_⟩\n change Ideal.Quotient.mk _ (MvPowerSeries.C (MvPowerSeries.constantCoeff f)) =\n Ideal.Quotient.mk _ f\n apply Ideal.Quotient.eq.mpr\n rw [← mvPowerSeries_ker_constantCoeff_maximal n, RingHom.mem_ker]\n simp\nlemma constantCoeff_almost {R K : Type*} [CommRing R] [IsDomain R] [Field K] [Algebra R K] [IsFractionRing R K] (f : (PowerSeries K)) (h : IsAlmostIntegral (PowerSeries R) f) :\n IsAlmostIntegral R (PowerSeries.constantCoeff f) := by\n obtain ⟨b, hb, hh⟩ := h\n have hb0 : b ≠ 0 := nonZeroDivisors.ne_zero hb\n refine ⟨PowerSeries.coeff b.order.toNat b, ?_, fun n ↦ ?_⟩\n · exact mem_nonZeroDivisors_iff_ne_zero.mpr (PowerSeries.coeff_order hb0)\n obtain ⟨q, hq⟩ := hh n\n refine ⟨PowerSeries.coeff b.order.toNat q, ?_⟩\n change algebraMap R K _ = _\n have heq : PowerSeries.map (algebraMap R K) q =\n PowerSeries.map (algebraMap R K) b * f ^ n := by\n simpa [Algebra.smul_def, PowerSeries.algebraMap_apply''] using hq\n have hbFact : PowerSeries.map (algebraMap R K) b =\n PowerSeries.X ^ b.order.toNat * PowerSeries.map (algebraMap R K) b.divXPowOrder := by\n simpa only [map_mul, map_pow, PowerSeries.map_X] using\n congrArg (PowerSeries.map (algebraMap R K))\n (PowerSeries.X_pow_order_mul_divXPowOrder (f := b)).symm\n rw [hbFact, mul_assoc] at heq\n have hc := congrArg (PowerSeries.coeff b.order.toNat) heq\n rw [PowerSeries.coeff_map] at hc\n have hx := PowerSeries.coeff_X_pow_mul\n (PowerSeries.map (algebraMap R K) b.divXPowOrder * f ^ n) b.order.toNat 0\n simp only [zero_add] at hx\n rw [hx] at hc\n rw [PowerSeries.coeff_zero_eq_constantCoeff] at hc\n simp only [map_mul, map_pow] at hc\n have hcc : PowerSeries.constantCoeff (PowerSeries.map (algebraMap R K) b.divXPowOrder) =\n algebraMap R K (PowerSeries.coeff b.order.toNat b) := by\n rw [← PowerSeries.coeff_zero_eq_constantCoeff, PowerSeries.coeff_map,\n PowerSeries.coeff_divXPowOrder, zero_add]\n simpa only [hcc, Algebra.smul_def] using hc\nlemma almost_div_X {R K : Type*} [CommRing R] [IsDomain R] [Field K] [Algebra R K] [IsFractionRing R K] (f : (PowerSeries K))\n (h : IsAlmostIntegral (PowerSeries R) (PowerSeries.X * f)) : IsAlmostIntegral (PowerSeries R) f := by\n obtain ⟨b, hb, hh⟩ := h\n refine ⟨b, hb, fun n ↦ ?_⟩\n obtain ⟨q, hq⟩ := hh n\n have heq : PowerSeries.map (algebraMap R K) q =\n PowerSeries.X ^ n * (PowerSeries.map (algebraMap R K) b * f ^ n) := by\n simpa [Algebra.smul_def, PowerSeries.algebraMap_apply'', mul_pow, mul_left_comm, mul_assoc]\n using hq\n have hqd : PowerSeries.X ^ n ∣ q := PowerSeries.X_pow_dvd_iff.mpr <| by\n intro i hi\n apply IsFractionRing.injective R K\n rw [map_zero, ← PowerSeries.coeff_map, heq, PowerSeries.coeff_X_pow_mul', if_neg]\n omega\n obtain ⟨q', hq'⟩ := hqd\n refine ⟨q', ?_⟩\n change PowerSeries.map (algebraMap R K) q' =\n PowerSeries.map (algebraMap R K) b * f ^ n\n rw [hq', map_mul, map_pow, PowerSeries.map_X] at heq\n exact PowerSeries.X_pow_mul_cancel heq\nlemma coeff_mem_of_almost {R K : Type*} [CommRing R] [IsDomain R] [Field K] [Algebra R K] [IsFractionRing R K] [IsNoetherianRing R] [IsIntegrallyClosed R]\n (f : (PowerSeries K)) (h : IsAlmostIntegral (PowerSeries R) f) (i : ℕ) :\n ∃ a : R, algebraMap R K a = PowerSeries.coeff i f := by\n induction i generalizing f with\n | zero =>\n simpa only [PowerSeries.coeff_zero_eq_constantCoeff] using\n (IsIntegrallyClosed.isIntegral_iff.mp ((constantCoeff_almost f h).isIntegral))\n | succ i ih =>\n have hc := IsIntegrallyClosed.isIntegral_iff.mp ((constantCoeff_almost f h).isIntegral)\n obtain ⟨a, ha⟩ := hc\n let g : (PowerSeries K) := PowerSeries.mk (fun n ↦ PowerSeries.coeff (n + 1) f)\n have hg : IsAlmostIntegral (PowerSeries R) (PowerSeries.X * g) := by\n have heq : PowerSeries.X * g = f - algebraMap (PowerSeries R) (PowerSeries K) (PowerSeries.C a) := by\n simpa [g, ha, PowerSeries.algebraMap_apply''] using\n (PowerSeries.sub_const_eq_X_mul_shift f).symm\n rw [heq]\n exact sub_mem h (algebraMap_mem (completeIntegralClosure (PowerSeries R) (PowerSeries K)) _)\n simpa [g] using ih g (almost_div_X g hg)\nlemma mem_range_of_almost {R K : Type*} [CommRing R] [IsDomain R] [Field K] [Algebra R K] [IsFractionRing R K] [IsNoetherianRing R] [IsIntegrallyClosed R]\n (f : (PowerSeries K)) (h : IsAlmostIntegral (PowerSeries R) f) :\n ∃ a : (PowerSeries R), algebraMap (PowerSeries R) (PowerSeries K) a = f := by\n choose a ha using coeff_mem_of_almost f h\n refine ⟨PowerSeries.mk a, ?_⟩\n ext i\n simpa only [PowerSeries.algebraMap_apply'', PowerSeries.coeff_map, PowerSeries.coeff_mk] using ha i\nlemma powerSeries_isIntegrallyClosed {R : Type*} [CommRing R] [IsDomain R] [IsNoetherianRing R] [IsIntegrallyClosed R] :\n IsIntegrallyClosed (PowerSeries R) := by\n let K := FractionRing R\n let B := (PowerSeries K)\n let L := FractionRing B\n let F := FractionRing (PowerSeries R)\n let g : (PowerSeries R) →+* L := (algebraMap B L).comp (algebraMap (PowerSeries R) B)\n have hg : Function.Injective g :=\n (IsFractionRing.injective B L).comp\n (PowerSeries.map_injective (algebraMap R K) (IsFractionRing.injective R K))\n haveI : IsScalarTower (PowerSeries R) B L := inferInstance\n let φ : F →ₐ[(PowerSeries R)] L := IsFractionRing.liftAlgHom (g := Algebra.ofId _ _) hg\n apply (isIntegrallyClosed_iff F).mpr\n intro x hx\n have hy : IsIntegral B (φ x) := (hx.map φ).tower_top\n obtain ⟨f, hf⟩ := IsIntegrallyClosed.isIntegral_iff.mp hy\n have hfa : IsAlmostIntegral (PowerSeries R) f := by\n obtain ⟨b, hb, hh⟩ := hx.isAlmostIntegral\n refine ⟨b, hb, fun n ↦ ?_⟩\n obtain ⟨q, hq⟩ := hh n\n refine ⟨q, ?_⟩\n apply IsFractionRing.injective B L\n have heq := congrArg φ hq\n simpa [Algebra.smul_def, hf, map_mul, map_pow, IsScalarTower.algebraMap_apply (PowerSeries R) B L]\n using heq\n obtain ⟨a, ha⟩ := mem_range_of_almost f hfa\n refine ⟨a, φ.injective ?_⟩\n change φ (algebraMap (PowerSeries R) F a) = φ x\n rw [φ.commutes, ← hf, ← ha, IsScalarTower.algebraMap_apply (PowerSeries R) B L]\nlemma mvPowerSeries_fin_integrallyClosed {R : Type*} [CommRing R] [IsDomain R] [IsNoetherianRing R] [IsIntegrallyClosed R]\n (n : ℕ) : IsIntegrallyClosed (MvPowerSeries (Fin n) R) := by\n induction n with\n | zero => exact IsIntegrallyClosed.of_equiv (MvPowerSeries.isEmptyEquiv (Fin 0) R).toRingEquiv.symm\n | succ n ih =>\n letI := ih\n haveI : IsDomain (MvPowerSeries (Fin n) R) := NoZeroDivisors.to_isDomain _\n letI : IsIntegrallyClosed (PowerSeries (MvPowerSeries (Fin n) R)) := powerSeries_isIntegrallyClosed\n exact IsIntegrallyClosed.of_equiv (MvPowerSeries.finSuccEquiv R n).toRingEquiv.symm\nlemma complex_fin_three_integrallyClosed : IsIntegrallyClosed (MvPowerSeries (Fin 3) ℂ) :=\n mvPowerSeries_fin_integrallyClosed 3\ntheorem candidate_ring_properties :\n ∃ (R : Type) (_ : CommRing R) (_ : IsDomain R) (_ : IsNoetherianRing R)\n (_ : IsIntegrallyClosed R) (_ : IsLocalRing R) (_ : Algebra ℂ R),\n IsAdicComplete (IsLocalRing.maximalIdeal R) R ∧\n ringKrullDim R = 3 ∧\n Function.Bijective (algebraMap ℂ (IsLocalRing.ResidueField R)) := by\n let R := MvPowerSeries (Fin 3) ℂ\n letI : IsDomain R := NoZeroDivisors.to_isDomain _\n letI : IsIntegrallyClosed R := complex_fin_three_integrallyClosed\n refine ⟨R, inferInstance, inferInstance, inferInstance, inferInstance,\n inferInstance, inferInstance, ?_, ?_, ?_⟩\n · exact mvPowerSeries_three_complete\n · exact mvPowerSeries_three_dim\n · exact mvPowerSeries_residue_bijective 3\nend SmallCM\n\n\nend OAI\n",
"sha256": "9c91274281d45d1fca9280eaa9c52952e9ff14e48a8bfa11dffdd017172ec16d"
},
"bc4a1cec74196b46dd726a46dc467c40b8657527dbd235a49a3cf0b5e4355ac9": {
"path": "Submission.lean",
"code": "import Mathlib\n\nnamespace OAI\n\nnamespace SmallCM\n\n/-- Ring-theoretic properties of the completed surface cone. -/\nlemma powerseries_ker_constantCoeff (R : Type*) [CommRing R] :\n RingHom.ker (PowerSeries.constantCoeff (R := R)) =\n Ideal.span ({PowerSeries.X} : Set (PowerSeries R)) := by\n ext f\n rw [RingHom.mem_ker, Ideal.mem_span_singleton, PowerSeries.X_dvd_iff]\nlemma powerseries_dim (R : Type*) [CommRing R] [IsNoetherianRing R] [IsLocalRing R] :\n ringKrullDim (PowerSeries R) = ringKrullDim R + 1 := by\n have hx : (PowerSeries.X : PowerSeries R) ∈ IsLocalRing.maximalIdeal (PowerSeries R) := by\n rw [IsLocalRing.mem_maximalIdeal, mem_nonunits_iff,\n PowerSeries.isUnit_iff_constantCoeff]\n simpa using (not_isUnit_zero (M₀ := R))\n have h := ringKrullDim_quotient_span_singleton_succ_eq_ringKrullDim_of_mem_nonZeroDivisors\n (R := PowerSeries R) (x := PowerSeries.X)\n MvPowerSeries.X_mem_nonzeroDivisors hx\n rw [ringKrullDim_eq_of_ringEquiv\n ((Ideal.quotEquivOfEq (powerseries_ker_constantCoeff R).symm).trans\n (RingHom.quotientKerEquivOfSurjective PowerSeries.constantCoeff_surj))] at h\n exact h.symm\nlemma mvPowerSeries_dim (n : ℕ) :\n ringKrullDim (MvPowerSeries (Fin n) ℂ) = n := by\n induction n with\n | zero =>\n rw [ringKrullDim_eq_of_ringEquiv (MvPowerSeries.isEmptyEquiv (Fin 0) ℂ).toRingEquiv]\n simp\n | succ n ih =>\n rw [ringKrullDim_eq_of_ringEquiv (MvPowerSeries.finSuccEquiv ℂ n).toRingEquiv,\n powerseries_dim, ih]\n simp\nlemma mvPowerSeries_three_dim :\n ringKrullDim (MvPowerSeries (Fin 3) ℂ) = 3 := by\n simpa using mvPowerSeries_dim 3\nlemma polynomial_vars_eq_ker (σ k : Type*) [Field k] :\n MvPolynomial.idealOfVars σ k = RingHom.ker (MvPolynomial.constantCoeff (σ := σ) (R := k)) := by\n ext p\n change p ∈ MvPolynomial.idealOfVars σ k ↔ p.constantCoeff = 0\n rw [← pow_one (MvPolynomial.idealOfVars σ k), MvPolynomial.mem_pow_idealOfVars_iff']\n constructor\n · intro h\n exact h 0 (by simp)\n · intro h x hx\n have hx0 : x = 0 := (Finsupp.degree_eq_zero_iff x).1 (by omega)\n subst x\n exact h\nlemma IsLocalRing.maximalIdeal_eq_span_vars (σ k : Type*) [Finite σ] [Field k] :\n IsLocalRing.maximalIdeal (MvPowerSeries σ k) =\n Ideal.span (Set.range (MvPowerSeries.X (σ := σ) (R := k))) := by\n let I : Ideal (MvPolynomial σ k) := MvPolynomial.idealOfVars σ k\n let e := (MvPowerSeries.toAdicCompletionAlgEquiv σ k).toRingEquiv\n have hI : I.IsMaximal := by\n change (MvPolynomial.idealOfVars σ k).IsMaximal\n rw [polynomial_vars_eq_ker]\n apply RingHom.ker_isMaximal_of_surjective\n exact fun x => ⟨MvPolynomial.C x, by simp⟩\n letI : I.IsMaximal := hI\n have hmap : Ideal.map e\n (Ideal.span (Set.range (MvPowerSeries.X (σ := σ) (R := k)))) =\n I.map (algebraMap (MvPolynomial σ k) (AdicCompletion I (MvPolynomial σ k))) := by\n dsimp only [I]\n simp_rw [MvPolynomial.idealOfVars, Ideal.map_span, ← Set.range_comp]\n congr 2\n ext i\n simp [e, I, AdicCompletion.algebraMap_apply, ← MvPolynomial.coe_X,\n MvPowerSeries.toAdicCompletion_coe]\n have hm : (Ideal.map e\n (Ideal.span (Set.range (MvPowerSeries.X (σ := σ) (R := k))))).IsMaximal := by\n rw [hmap]\n exact AdicCompletion.isMaximal_map_of_le I I le_rfl (MvPolynomial.idealOfVars_fg σ k)\n have hm' : (Ideal.span (Set.range (MvPowerSeries.X (σ := σ) (R := k)))).IsMaximal :=\n (Ideal.isMaximal_map_iff_of_bijective e e.bijective).1 hm\n exact (IsLocalRing.eq_maximalIdeal hm').symm\nlemma mvPowerSeries_complete (σ k : Type*) [Finite σ] [Field k] :\n IsAdicComplete (IsLocalRing.maximalIdeal (MvPowerSeries σ k)) (MvPowerSeries σ k) := by\n rw [IsLocalRing.maximalIdeal_eq_span_vars]\n infer_instance\nlemma mvPowerSeries_three_complete :\n IsAdicComplete (IsLocalRing.maximalIdeal (MvPowerSeries (Fin 3) ℂ)) (MvPowerSeries (Fin 3) ℂ) :=\n mvPowerSeries_complete (Fin 3) ℂ\nlemma mvPowerSeries_ker_constantCoeff_maximal (n : ℕ) :\n RingHom.ker (MvPowerSeries.constantCoeff (σ := Fin n) (R := ℂ)) =\n IsLocalRing.maximalIdeal (MvPowerSeries (Fin n) ℂ) := by\n apply IsLocalRing.ker_eq_maximalIdeal\n intro c\n exact ⟨MvPowerSeries.C c, MvPowerSeries.constantCoeff_C c⟩\nlemma mvPowerSeries_residue_bijective (n : ℕ) :\n Function.Bijective (algebraMap ℂ (IsLocalRing.ResidueField (MvPowerSeries (Fin n) ℂ))) := by\n constructor\n · exact (algebraMap ℂ (IsLocalRing.ResidueField (MvPowerSeries (Fin n) ℂ))).injective\n · intro z\n obtain ⟨f, rfl⟩ := IsLocalRing.residue_surjective z\n refine ⟨MvPowerSeries.constantCoeff f, ?_⟩\n change Ideal.Quotient.mk _ (MvPowerSeries.C (MvPowerSeries.constantCoeff f)) =\n Ideal.Quotient.mk _ f\n apply Ideal.Quotient.eq.mpr\n rw [← mvPowerSeries_ker_constantCoeff_maximal n, RingHom.mem_ker]\n simp\nlemma constantCoeff_almost {R K : Type*} [CommRing R] [IsDomain R] [Field K] [Algebra R K] [IsFractionRing R K] (f : (PowerSeries K)) (h : IsAlmostIntegral (PowerSeries R) f) :\n IsAlmostIntegral R (PowerSeries.constantCoeff f) := by\n obtain ⟨b, hb, hh⟩ := h\n have hb0 : b ≠ 0 := nonZeroDivisors.ne_zero hb\n refine ⟨PowerSeries.coeff b.order.toNat b, ?_, fun n ↦ ?_⟩\n · exact mem_nonZeroDivisors_iff_ne_zero.mpr (PowerSeries.coeff_order hb0)\n obtain ⟨q, hq⟩ := hh n\n refine ⟨PowerSeries.coeff b.order.toNat q, ?_⟩\n change algebraMap R K _ = _\n have heq : PowerSeries.map (algebraMap R K) q =\n PowerSeries.map (algebraMap R K) b * f ^ n := by\n simpa [Algebra.smul_def, PowerSeries.algebraMap_apply''] using hq\n have hbFact : PowerSeries.map (algebraMap R K) b =\n PowerSeries.X ^ b.order.toNat * PowerSeries.map (algebraMap R K) b.divXPowOrder := by\n simpa only [map_mul, map_pow, PowerSeries.map_X] using\n congrArg (PowerSeries.map (algebraMap R K))\n (PowerSeries.X_pow_order_mul_divXPowOrder (f := b)).symm\n rw [hbFact, mul_assoc] at heq\n have hc := congrArg (PowerSeries.coeff b.order.toNat) heq\n rw [PowerSeries.coeff_map] at hc\n have hx := PowerSeries.coeff_X_pow_mul\n (PowerSeries.map (algebraMap R K) b.divXPowOrder * f ^ n) b.order.toNat 0\n simp only [zero_add] at hx\n rw [hx] at hc\n rw [PowerSeries.coeff_zero_eq_constantCoeff] at hc\n simp only [map_mul, map_pow] at hc\n have hcc : PowerSeries.constantCoeff (PowerSeries.map (algebraMap R K) b.divXPowOrder) =\n algebraMap R K (PowerSeries.coeff b.order.toNat b) := by\n rw [← PowerSeries.coeff_zero_eq_constantCoeff, PowerSeries.coeff_map,\n PowerSeries.coeff_divXPowOrder, zero_add]\n simpa only [hcc, Algebra.smul_def] using hc\nlemma almost_div_X {R K : Type*} [CommRing R] [IsDomain R] [Field K] [Algebra R K] [IsFractionRing R K] (f : (PowerSeries K))\n (h : IsAlmostIntegral (PowerSeries R) (PowerSeries.X * f)) : IsAlmostIntegral (PowerSeries R) f := by\n obtain ⟨b, hb, hh⟩ := h\n refine ⟨b, hb, fun n ↦ ?_⟩\n obtain ⟨q, hq⟩ := hh n\n have heq : PowerSeries.map (algebraMap R K) q =\n PowerSeries.X ^ n * (PowerSeries.map (algebraMap R K) b * f ^ n) := by\n simpa [Algebra.smul_def, PowerSeries.algebraMap_apply'', mul_pow, mul_left_comm, mul_assoc]\n using hq\n have hqd : PowerSeries.X ^ n ∣ q := PowerSeries.X_pow_dvd_iff.mpr <| by\n intro i hi\n apply IsFractionRing.injective R K\n rw [map_zero, ← PowerSeries.coeff_map, heq, PowerSeries.coeff_X_pow_mul', if_neg]\n omega\n obtain ⟨q', hq'⟩ := hqd\n refine ⟨q', ?_⟩\n change PowerSeries.map (algebraMap R K) q' =\n PowerSeries.map (algebraMap R K) b * f ^ n\n rw [hq', map_mul, map_pow, PowerSeries.map_X] at heq\n exact PowerSeries.X_pow_mul_cancel heq\nlemma coeff_mem_of_almost {R K : Type*} [CommRing R] [IsDomain R] [Field K] [Algebra R K] [IsFractionRing R K] [IsNoetherianRing R] [IsIntegrallyClosed R]\n (f : (PowerSeries K)) (h : IsAlmostIntegral (PowerSeries R) f) (i : ℕ) :\n ∃ a : R, algebraMap R K a = PowerSeries.coeff i f := by\n induction i generalizing f with\n | zero =>\n simpa only [PowerSeries.coeff_zero_eq_constantCoeff] using\n (IsIntegrallyClosed.isIntegral_iff.mp ((constantCoeff_almost f h).isIntegral))\n | succ i ih =>\n have hc := IsIntegrallyClosed.isIntegral_iff.mp ((constantCoeff_almost f h).isIntegral)\n obtain ⟨a, ha⟩ := hc\n let g : (PowerSeries K) := PowerSeries.mk (fun n ↦ PowerSeries.coeff (n + 1) f)\n have hg : IsAlmostIntegral (PowerSeries R) (PowerSeries.X * g) := by\n have heq : PowerSeries.X * g = f - algebraMap (PowerSeries R) (PowerSeries K) (PowerSeries.C a) := by\n simpa [g, ha, PowerSeries.algebraMap_apply''] using\n (PowerSeries.sub_const_eq_X_mul_shift f).symm\n rw [heq]\n exact sub_mem h (algebraMap_mem (completeIntegralClosure (PowerSeries R) (PowerSeries K)) _)\n simpa [g] using ih g (almost_div_X g hg)\nlemma mem_range_of_almost {R K : Type*} [CommRing R] [IsDomain R] [Field K] [Algebra R K] [IsFractionRing R K] [IsNoetherianRing R] [IsIntegrallyClosed R]\n (f : (PowerSeries K)) (h : IsAlmostIntegral (PowerSeries R) f) :\n ∃ a : (PowerSeries R), algebraMap (PowerSeries R) (PowerSeries K) a = f := by\n choose a ha using coeff_mem_of_almost f h\n refine ⟨PowerSeries.mk a, ?_⟩\n ext i\n simpa only [PowerSeries.algebraMap_apply'', PowerSeries.coeff_map, PowerSeries.coeff_mk] using ha i\nlemma powerSeries_isIntegrallyClosed {R : Type*} [CommRing R] [IsDomain R] [IsNoetherianRing R] [IsIntegrallyClosed R] :\n IsIntegrallyClosed (PowerSeries R) := by\n let K := FractionRing R\n let B := (PowerSeries K)\n let L := FractionRing B\n let F := FractionRing (PowerSeries R)\n let g : (PowerSeries R) →+* L := (algebraMap B L).comp (algebraMap (PowerSeries R) B)\n have hg : Function.Injective g :=\n (IsFractionRing.injective B L).comp\n (PowerSeries.map_injective (algebraMap R K) (IsFractionRing.injective R K))\n haveI : IsScalarTower (PowerSeries R) B L := inferInstance\n let φ : F →ₐ[(PowerSeries R)] L := IsFractionRing.liftAlgHom (g := Algebra.ofId _ _) hg\n apply (isIntegrallyClosed_iff F).mpr\n intro x hx\n have hy : IsIntegral B (φ x) := (hx.map φ).tower_top\n obtain ⟨f, hf⟩ := IsIntegrallyClosed.isIntegral_iff.mp hy\n have hfa : IsAlmostIntegral (PowerSeries R) f := by\n obtain ⟨b, hb, hh⟩ := hx.isAlmostIntegral\n refine ⟨b, hb, fun n ↦ ?_⟩\n obtain ⟨q, hq⟩ := hh n\n refine ⟨q, ?_⟩\n apply IsFractionRing.injective B L\n have heq := congrArg φ hq\n simpa [Algebra.smul_def, hf, map_mul, map_pow, IsScalarTower.algebraMap_apply (PowerSeries R) B L]\n using heq\n obtain ⟨a, ha⟩ := mem_range_of_almost f hfa\n refine ⟨a, φ.injective ?_⟩\n change φ (algebraMap (PowerSeries R) F a) = φ x\n rw [φ.commutes, ← hf, ← ha, IsScalarTower.algebraMap_apply (PowerSeries R) B L]\nlemma mvPowerSeries_fin_integrallyClosed {R : Type*} [CommRing R] [IsDomain R] [IsNoetherianRing R] [IsIntegrallyClosed R]\n (n : ℕ) : IsIntegrallyClosed (MvPowerSeries (Fin n) R) := by\n induction n with\n | zero => exact IsIntegrallyClosed.of_equiv (MvPowerSeries.isEmptyEquiv (Fin 0) R).toRingEquiv.symm\n | succ n ih =>\n letI := ih\n haveI : IsDomain (MvPowerSeries (Fin n) R) := NoZeroDivisors.to_isDomain _\n letI : IsIntegrallyClosed (PowerSeries (MvPowerSeries (Fin n) R)) := powerSeries_isIntegrallyClosed\n exact IsIntegrallyClosed.of_equiv (MvPowerSeries.finSuccEquiv R n).toRingEquiv.symm\nlemma complex_fin_three_integrallyClosed : IsIntegrallyClosed (MvPowerSeries (Fin 3) ℂ) :=\n mvPowerSeries_fin_integrallyClosed 3\ntheorem candidate_ring_properties :\n ∃ (R : Type) (_ : CommRing R) (_ : IsDomain R) (_ : IsNoetherianRing R)\n (_ : IsIntegrallyClosed R) (_ : IsLocalRing R) (_ : Algebra ℂ R),\n IsAdicComplete (IsLocalRing.maximalIdeal R) R ∧\n ringKrullDim R = 3 ∧\n Function.Bijective (algebraMap ℂ (IsLocalRing.ResidueField R)) := by\n let R := MvPowerSeries (Fin 3) ℂ\n letI : IsDomain R := NoZeroDivisors.to_isDomain _\n letI : IsIntegrallyClosed R := complex_fin_three_integrallyClosed\n refine ⟨R, inferInstance, inferInstance, inferInstance, inferInstance,\n inferInstance, inferInstance, ?_, ?_, ?_⟩\n · exact mvPowerSeries_three_complete\n · exact mvPowerSeries_three_dim\n · exact mvPowerSeries_residue_bijective 3\nend SmallCM\n\n\nend OAI\n",
"sha256": "bc4a1cec74196b46dd726a46dc467c40b8657527dbd235a49a3cf0b5e4355ac9"
}
}
}