Publish sanitized OProver training datasets
Browse files- .gitattributes +1 -0
- LICENSE +201 -0
- NOTICE +2 -0
- README.md +73 -0
- dpo-2000/artifact.json +17 -0
- dpo-2000/holdout.jsonl +0 -0
- dpo-2000/source-manifest.json +1 -0
- dpo-2000/train.jsonl +0 -0
- dpo-2000/validation.jsonl +0 -0
- provenance/manifest.json +63 -0
- repair-2800/artifact.json +13 -0
- repair-2800/source-manifest.json +1 -0
- repair-2800/train.jsonl +3 -0
- repair-2800/validation.jsonl +0 -0
- sft-1000/artifact.json +17 -0
- sft-1000/holdout.jsonl +0 -0
- sft-1000/source-manifest.json +1 -0
- sft-1000/train.jsonl +0 -0
- sft-1000/validation.jsonl +0 -0
- sft-90/artifact.json +17 -0
- sft-90/holdout.jsonl +0 -0
- sft-90/train.jsonl +0 -0
- sft-90/validation.jsonl +9 -0
- strict-evaluation-22/results.json +35 -0
- strict-evaluation-22/test.jsonl +22 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
repair-2800/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright {yyyy} {name of copyright owner}
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
NOTICE
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Dataset derivative and curation: 2026 FluffyAIcode.
|
| 2 |
+
Source proof material: leanprover-community/mathlib4, Apache-2.0, revision 360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56.
|
README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- lean
|
| 7 |
+
- lean4
|
| 8 |
+
- theorem-proving
|
| 9 |
+
- mathlib
|
| 10 |
+
configs:
|
| 11 |
+
- config_name: sft-90
|
| 12 |
+
data_files:
|
| 13 |
+
- split: train
|
| 14 |
+
path: sft-90/train.jsonl
|
| 15 |
+
- split: validation
|
| 16 |
+
path: sft-90/validation.jsonl
|
| 17 |
+
- split: holdout
|
| 18 |
+
path: sft-90/holdout.jsonl
|
| 19 |
+
- config_name: sft-1000
|
| 20 |
+
data_files:
|
| 21 |
+
- split: train
|
| 22 |
+
path: sft-1000/train.jsonl
|
| 23 |
+
- split: validation
|
| 24 |
+
path: sft-1000/validation.jsonl
|
| 25 |
+
- split: holdout
|
| 26 |
+
path: sft-1000/holdout.jsonl
|
| 27 |
+
- config_name: dpo-2000
|
| 28 |
+
data_files:
|
| 29 |
+
- split: train
|
| 30 |
+
path: dpo-2000/train.jsonl
|
| 31 |
+
- split: validation
|
| 32 |
+
path: dpo-2000/validation.jsonl
|
| 33 |
+
- split: holdout
|
| 34 |
+
path: dpo-2000/holdout.jsonl
|
| 35 |
+
- config_name: repair-2800
|
| 36 |
+
data_files:
|
| 37 |
+
- split: train
|
| 38 |
+
path: repair-2800/train.jsonl
|
| 39 |
+
- split: validation
|
| 40 |
+
path: repair-2800/validation.jsonl
|
| 41 |
+
- config_name: strict-evaluation-22
|
| 42 |
+
data_files:
|
| 43 |
+
- split: test
|
| 44 |
+
path: strict-evaluation-22/test.jsonl
|
| 45 |
+
---
|
| 46 |
+
|
| 47 |
+
# Kakeya OProver Training
|
| 48 |
+
|
| 49 |
+
Apache-2.0 training and evaluation assets for the four-stage Kakeya OProver LoRA journey.
|
| 50 |
+
|
| 51 |
+
## Configs and split counts
|
| 52 |
+
|
| 53 |
+
- `sft-90`: 63 train / 9 validation / 18 holdout
|
| 54 |
+
- `sft-1000`: 700 train / 100 validation / 200 holdout
|
| 55 |
+
- `dpo-2000`: 1,400 train / 200 validation / 400 holdout preference pairs
|
| 56 |
+
- `repair-2800`: 2,800 train / 400 validation (train: 2,100 repair + 700 rehearsal; validation: 300 + 100)
|
| 57 |
+
- `strict-evaluation-22`: 22 public-safe task identifiers and split metadata only (18 holdout + 4 canary); aggregate outcomes are in `strict-evaluation-22/results.json`
|
| 58 |
+
|
| 59 |
+
## Schema
|
| 60 |
+
|
| 61 |
+
SFT records include the exact public Lean context, target, and verified proof body. DPO records include `prompt`, `chosen`, `rejected`, rejection metadata, and source bindings. Repair records include the public context, failed proof, structured compiler diagnostic, and corrected proof. Strict evaluation records intentionally omit prompts and candidate proof bodies.
|
| 62 |
+
|
| 63 |
+
## Provenance and compile validation
|
| 64 |
+
|
| 65 |
+
All proof-bearing samples are pure Mathlib material or derived negatives/repairs bound to Mathlib revision `360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56` and Lean `v4.32.0-rc1`. Source manifests report compile validation and zero cross-split family overlap where applicable. Provenance-incomplete OProofs mixed samples were excluded.
|
| 66 |
+
|
| 67 |
+
## Leakage and release policy
|
| 68 |
+
|
| 69 |
+
Holdout splits were excluded from training. The strict 22-task release contains metadata and aggregates only. No production Jensen prompt, raw candidate proof body, private chain-of-thought, credential, or local path is included.
|
| 70 |
+
|
| 71 |
+
## License and attribution
|
| 72 |
+
|
| 73 |
+
Apache-2.0. Mathlib copyright and author notices remain embedded in source contexts. See `LICENSE` and `NOTICE`.
|
dpo-2000/artifact.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_sha256": "2de80cfbb1c5e14c89611810e02b9f432ec2643a203e4c983cd48b1e6ad919a3",
|
| 3 |
+
"files": {
|
| 4 |
+
"dpo-2000/train.jsonl": {
|
| 5 |
+
"sha256": "0e2a0a15d7ff03b5347a2e91da83c6c6d85539a44746c1d2d9662bc3e8ddde29",
|
| 6 |
+
"records": 1400
|
| 7 |
+
},
|
| 8 |
+
"dpo-2000/validation.jsonl": {
|
| 9 |
+
"sha256": "e478670e03df4af61532cf5954b06135816a2c7e8ea2bfab3e7109bac229c51c",
|
| 10 |
+
"records": 200
|
| 11 |
+
},
|
| 12 |
+
"dpo-2000/holdout.jsonl": {
|
| 13 |
+
"sha256": "1c97353d19ffe60dd436888123750c1d7f05a34445644ae8ad6f6ab23931c5f9",
|
| 14 |
+
"records": 400
|
| 15 |
+
}
|
| 16 |
+
}
|
| 17 |
+
}
|
dpo-2000/holdout.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
dpo-2000/source-manifest.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"artifact_hash":"2de80cfbb1c5e14c89611810e02b9f432ec2643a203e4c983cd48b1e6ad919a3","category_distribution":{"by_exact_placeholder":300,"circular_dependency":200,"invalid_tactic":200,"markdown_preamble_trailing":300,"missing_wrong_import":100,"sorry_admit_sorryAx_proof_hole":300,"unknown_identifier":200,"unsolved_goals":200,"wrong_namespace_qualification":200},"counts":{"chosen_recompiled_zero_warning":1000,"holdout":400,"rejected_strictly_rejected":2000,"source_positives":1000,"train":1400,"validation":200},"cross_split_overlap":{"train_holdout":0,"train_validation":0,"validation_holdout":0},"dataset_kind":"oprover-strict-lean-dpo","distribution_report":{"category_counts":{"by_exact_placeholder":300,"circular_dependency":200,"invalid_tactic":200,"markdown_preamble_trailing":300,"missing_wrong_import":100,"sorry_admit_sorryAx_proof_hole":300,"unknown_identifier":200,"unsolved_goals":200,"wrong_namespace_qualification":200},"hard_negative_count":1000,"hard_negative_fraction":0.5,"hole_or_fence_shortcut_fraction":0.35,"length_ratio_median":0.142857,"length_ratio_p10":0.023622,"length_ratio_p90":1.178571,"mode_counts":{"admit":100,"by?":100,"circular_dependency":200,"exact?":100,"fence":100,"import":100,"invalid_tactic":200,"placeholder":100,"preamble":100,"sorry":100,"sorryAx":100,"trailing":100,"unknown_identifier":200,"unsolved_goals":200,"wrong_namespace_qualification":200},"pairs":2000,"split_counts":{"holdout":400,"train":1400,"validation":200},"token_jaccard_median":0.071429,"token_jaccard_p10":0.026316,"token_jaccard_p90":0.882353},"file_sha256":{"LICENSE":"b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1","NOTICE":"1ff27ef7d95c75376df39931a90ccd7c19762d45b9bb8b1b68c93d0db365f3ee","build-config.json":"e3869f564ae1e4ac18e23a0a080539037a54070aef7c144f1a73b84982f1af53","compile-report.jsonl":"a0c476310ab51ca119bcd148dc2624a611385c82dbe6c35ec2cc043df49c8b5c","distribution-report.json":"3a7568c1d2cd1896ec834dd8b7a216113a301022f67cde1e3318144a80ff88db","holdout.jsonl":"1c97353d19ffe60dd436888123750c1d7f05a34445644ae8ad6f6ab23931c5f9","provenance.json":"7a85331beadde91f16590d09fb69f537394d43d233eba5df0e6cb064861e412c","rejection-report.jsonl":"4ccb0c2ddcda0328eb866556a746cfa257bb58d16e030316795e33c2438f4d87","train.jsonl":"0e2a0a15d7ff03b5347a2e91da83c6c6d85539a44746c1d2d9662bc3e8ddde29","validation.jsonl":"e478670e03df4af61532cf5954b06135816a2c7e8ea2bfab3e7109bac229c51c"},"holdout_trained":false,"reattested_from_artifact_hash":"1190f6c2aa0ea23409d5ba05f1f67716fd860fbf8f2af7871176b7c6622573f9","schema_version":1,"source_artifact_hash":"5ebec3f7ed71d0af202924ea9d5ca12a857c5363b89b028dbf74268bf2e32f24","stage3_data_go":true}
|
dpo-2000/train.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
dpo-2000/validation.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
provenance/manifest.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"public_repo": "FluffyAIcode/Kakeya-OProver-Training",
|
| 4 |
+
"mathlib_revision": "360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56",
|
| 5 |
+
"configs": [
|
| 6 |
+
"sft-90",
|
| 7 |
+
"sft-1000",
|
| 8 |
+
"dpo-2000",
|
| 9 |
+
"repair-2800",
|
| 10 |
+
"strict-evaluation-22"
|
| 11 |
+
],
|
| 12 |
+
"files": {
|
| 13 |
+
"sft-90/train.jsonl": {
|
| 14 |
+
"sha256": "7bd6d0822d80545ce2163aface7ba54484167394fdb38a4b11a3cd96e025b690",
|
| 15 |
+
"records": 63
|
| 16 |
+
},
|
| 17 |
+
"sft-90/validation.jsonl": {
|
| 18 |
+
"sha256": "f3eb510950b84d6cd52df91dce73b5314738f80d90b52ecf075276f09c34bd02",
|
| 19 |
+
"records": 9
|
| 20 |
+
},
|
| 21 |
+
"sft-90/holdout.jsonl": {
|
| 22 |
+
"sha256": "bfda01582726fe1a99daea87e7a7d1ba86e65526705a6fba8eb9e471df4680ab",
|
| 23 |
+
"records": 18
|
| 24 |
+
},
|
| 25 |
+
"sft-1000/train.jsonl": {
|
| 26 |
+
"sha256": "066b34aafe87c0da820c83781f6254d5c6a363bc93e5e44a65a501d8284885c5",
|
| 27 |
+
"records": 700
|
| 28 |
+
},
|
| 29 |
+
"sft-1000/validation.jsonl": {
|
| 30 |
+
"sha256": "804214d63ca01ad7abf3b2931147dc43057f6b2e7449480286cc89860ab592da",
|
| 31 |
+
"records": 100
|
| 32 |
+
},
|
| 33 |
+
"sft-1000/holdout.jsonl": {
|
| 34 |
+
"sha256": "7befdd6831a2b1e62a89b871022391565c0e965d83c2c9eac3f08741a37e8978",
|
| 35 |
+
"records": 200
|
| 36 |
+
},
|
| 37 |
+
"dpo-2000/train.jsonl": {
|
| 38 |
+
"sha256": "0e2a0a15d7ff03b5347a2e91da83c6c6d85539a44746c1d2d9662bc3e8ddde29",
|
| 39 |
+
"records": 1400
|
| 40 |
+
},
|
| 41 |
+
"dpo-2000/validation.jsonl": {
|
| 42 |
+
"sha256": "e478670e03df4af61532cf5954b06135816a2c7e8ea2bfab3e7109bac229c51c",
|
| 43 |
+
"records": 200
|
| 44 |
+
},
|
| 45 |
+
"dpo-2000/holdout.jsonl": {
|
| 46 |
+
"sha256": "1c97353d19ffe60dd436888123750c1d7f05a34445644ae8ad6f6ab23931c5f9",
|
| 47 |
+
"records": 400
|
| 48 |
+
},
|
| 49 |
+
"repair-2800/train.jsonl": {
|
| 50 |
+
"sha256": "1d4224ce24a29ec1069b8f56a0cb24598cc8c945ed0dfb74544428c4f5fba9d1",
|
| 51 |
+
"records": 2800
|
| 52 |
+
},
|
| 53 |
+
"repair-2800/validation.jsonl": {
|
| 54 |
+
"sha256": "f2a82d37dadf8a37fc20175339c9eea8ad0af91b7f2d32b3476a5a4abb90a6a6",
|
| 55 |
+
"records": 400
|
| 56 |
+
}
|
| 57 |
+
},
|
| 58 |
+
"excluded": [
|
| 59 |
+
"OProofs mixed/provenance-incomplete samples",
|
| 60 |
+
"production Jensen prompts and candidates",
|
| 61 |
+
"private reasoning and raw candidate-bearing audits"
|
| 62 |
+
]
|
| 63 |
+
}
|
repair-2800/artifact.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_sha256": "54944619e3625f8a9db88b7c2a84507b86ea1dfc55f43d68f240dd9609244389",
|
| 3 |
+
"files": {
|
| 4 |
+
"repair-2800/train.jsonl": {
|
| 5 |
+
"sha256": "1d4224ce24a29ec1069b8f56a0cb24598cc8c945ed0dfb74544428c4f5fba9d1",
|
| 6 |
+
"records": 2800
|
| 7 |
+
},
|
| 8 |
+
"repair-2800/validation.jsonl": {
|
| 9 |
+
"sha256": "f2a82d37dadf8a37fc20175339c9eea8ad0af91b7f2d32b3476a5a4abb90a6a6",
|
| 10 |
+
"records": 400
|
| 11 |
+
}
|
| 12 |
+
}
|
| 13 |
+
}
|
repair-2800/source-manifest.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"artifact_hash":"54944619e3625f8a9db88b7c2a84507b86ea1dfc55f43d68f240dd9609244389","category_counts":{"invalid_projection":342,"length_overlong":342,"rewrite_no_match":344,"type_mismatch_wrong_shape":344,"typeclass_synthesis":343,"unknown_identifier_namespace_import":343,"unsolved_goals_multistep_planning":342},"counts":{"corrected_exact_lean_zero_warning":2400,"failed_parser_passed_lean_rejected":2400,"source_train":700,"source_validation":100,"train_rehearsal":700,"train_repair":2100,"train_total":2800,"validation_rehearsal":100,"validation_repair":300,"validation_total":400},"dataset_kind":"oprover-compile-feedback-repair-sft","diagnostic_type_counts":{"invalid_projection":339,"rewrite_no_match":342,"type_mismatch_wrong_shape":343,"typeclass_synthesis":337,"unknown_identifier_namespace_import":704,"unsolved_goals_multistep_planning":335},"file_sha256":{"LICENSE":"b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1","NOTICE":"1f455f63e52fdfb88ca5fdf5bb581209aa9a3290301b24f1a1723c49ceba5e23","build-config.json":"886236fc62554fa5dc8516f643748922fddc014711eb39490b34961becbfbc36","corrected-compile-report.jsonl":"256a0cf55575e94665b5cd961abfcda4b64eb5f6a95eea59130bbc612e7f5e0d","error-taxonomy.json":"630e1a9882ff43e9c801dcbac450d37d28da5c9a946fec7881ae970e7597be4b","failed-compile-report.jsonl":"8944884950d23635c85ae994f7ea6d9cbedb13550f2994f64a84d349339d2692","provenance.json":"f43f194e8f7c8e56118b4ef45c37580483f8ff4a508de2a4c15545fe013d6223","train.jsonl":"1d4224ce24a29ec1069b8f56a0cb24598cc8c945ed0dfb74544428c4f5fba9d1","validation.jsonl":"f2a82d37dadf8a37fc20175339c9eea8ad0af91b7f2d32b3476a5a4abb90a6a6"},"holdout_trained":false,"schema_version":1,"source_artifact_hash":"5ebec3f7ed71d0af202924ea9d5ca12a857c5363b89b028dbf74268bf2e32f24","split_leakage":{"train_validation_dependency_family_id_overlap":0,"train_validation_family_id_overlap":0,"train_validation_file_id_overlap":0},"stage4_data_go":true}
|
repair-2800/train.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d4224ce24a29ec1069b8f56a0cb24598cc8c945ed0dfb74544428c4f5fba9d1
|
| 3 |
+
size 38801172
|
repair-2800/validation.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
sft-1000/artifact.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_sha256": "5ebec3f7ed71d0af202924ea9d5ca12a857c5363b89b028dbf74268bf2e32f24",
|
| 3 |
+
"files": {
|
| 4 |
+
"sft-1000/train.jsonl": {
|
| 5 |
+
"sha256": "066b34aafe87c0da820c83781f6254d5c6a363bc93e5e44a65a501d8284885c5",
|
| 6 |
+
"records": 700
|
| 7 |
+
},
|
| 8 |
+
"sft-1000/validation.jsonl": {
|
| 9 |
+
"sha256": "804214d63ca01ad7abf3b2931147dc43057f6b2e7449480286cc89860ab592da",
|
| 10 |
+
"records": 100
|
| 11 |
+
},
|
| 12 |
+
"sft-1000/holdout.jsonl": {
|
| 13 |
+
"sha256": "7befdd6831a2b1e62a89b871022391565c0e965d83c2c9eac3f08741a37e8978",
|
| 14 |
+
"records": 200
|
| 15 |
+
}
|
| 16 |
+
}
|
| 17 |
+
}
|
sft-1000/holdout.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
sft-1000/source-manifest.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"artifact_hash":"5ebec3f7ed71d0af202924ea9d5ca12a857c5363b89b028dbf74268bf2e32f24","candidate_token_summary":{"completion_tokens":{"max":589,"median":67,"min":4,"p90":241,"p95":325},"over_2048":1721,"over_4096":64,"prompt_tokens":{"max":4683,"median":1522,"min":159,"p90":3255,"p95":3621},"tokenizer_sha256":"217e7242c0cafb50790f703bb14e062966b997a1bc8dc980e11240f5f1d06d27","total_tokens":{"max":4734,"median":1620,"min":200,"p90":3363,"p95":3743}},"counts":{"candidate_compiled":1336,"candidate_strict_passed":1003,"candidates":4541,"duplicate_or_near_duplicate_rejected":1182,"holdout":200,"holdout_neighbor_rejected":231,"overlength_rejected":64,"reserved_prior_holdout_in_train":0,"reserved_prior_holdout_mathlib":18,"selected":1000,"source_candidates_selected":6000,"source_declarations_considered":122817,"source_prefilter_rejected":116817,"train":700,"validation":100},"cross_split_overlap":{"train_holdout_dependency_families":0,"train_holdout_families":0,"train_holdout_files":0,"train_validation_dependency_families":0,"train_validation_families":0,"train_validation_files":0,"validation_holdout_dependency_families":0,"validation_holdout_families":0,"validation_holdout_files":0},"dataset_kind":"mathlib-only-strict-sft","distribution_summary":{"domain_counts":{"Algebra":1,"Algebra/AddConstMap":2,"Algebra/AffineMonoid":1,"Algebra/Algebra":18,"Algebra/Azumaya":1,"Algebra/BigOperators":3,"Algebra/BrauerGroup":1,"Algebra/Category":2,"Algebra/Central":3,"Algebra/CharP":1,"Algebra/CharZero":3,"Algebra/Colimit":2,"Algebra/ContinuedFractions":1,"Algebra/DirectSum":2,"Algebra/Divisibility":2,"Algebra/EuclideanDomain":4,"Algebra/Field":2,"Algebra/FiniteSupport":2,"Algebra/FreeAbelianGroup":2,"Algebra/FreeAlgebra":2,"Algebra/FreeMonoid":2,"Algebra/GCDMonoid":2,"Algebra/Group":1,"Algebra/Homology":2,"Algebra/Jordan":1,"Algebra/Lie":3,"Algebra/Module":2,"Algebra/MonoidAlgebra":3,"Algebra/MvPolynomial":3,"Algebra/NoZeroSMulDivisors":1,"Algebra/Notation":1,"Algebra/Order":3,"Algebra/Pointwise":3,"Algebra/Polynomial":2,"Algebra/PresentedMonoid":2,"Algebra/Prime":1,"Algebra/QuadraticAlgebra":1,"Algebra/Regular":1,"Algebra/Ring":2,"Algebra/SkewMonoidAlgebra":2,"Algebra/SkewPolynomial":2,"Algebra/Squarefree":3,"Algebra/Star":1,"Algebra/TrivSqZeroExt":1,"Algebra/Tropical":1,"Algebra/Vertex":3,"AlgebraicGeometry":2,"AlgebraicGeometry/AlgClosed":2,"AlgebraicGeometry/Birational":1,"AlgebraicGeometry/Cover":2,"AlgebraicGeometry/EllipticCurve":2,"AlgebraicGeometry/Geometrically":2,"AlgebraicGeometry/Group":2,"AlgebraicGeometry/IdealSheaf":4,"AlgebraicGeometry/Modules":3,"AlgebraicGeometry/Morphisms":3,"AlgebraicGeometry/ProjectiveSpectrum":1,"AlgebraicGeometry/Sites":2,"AlgebraicTopology":2,"AlgebraicTopology/DoldKan":2,"AlgebraicTopology/FundamentalGroupoid":4,"AlgebraicTopology/ModelCategory":2,"AlgebraicTopology/Quasicategory":2,"AlgebraicTopology/RelativeCellComplex":2,"AlgebraicTopology/SimplexCategory":2,"AlgebraicTopology/SimplicialObject":2,"AlgebraicTopology/SimplicialSet":3,"AlgebraicTopology/SingularHomology":1,"Analysis":2,"Analysis/AbsoluteValue":1,"Analysis/Analytic":2,"Analysis/AperiodicOrder":2,"Analysis/Asymptotics":2,"Analysis/BoxIntegral":1,"Analysis/CStarAlgebra":3,"Analysis/Calculus":1,"Analysis/Complex":3,"Analysis/Convex":2,"Analysis/Distribution":3,"Analysis/Fourier":3,"Analysis/InnerProductSpace":2,"Analysis/LocallyConvex":2,"Analysis/Matrix":2,"Analysis/Meromorphic":1,"Analysis/Normed":2,"Analysis/ODE":1,"Analysis/Polynomial":1,"Analysis/RCLike":2,"Analysis/Rat":2,"Analysis/Real":3,"Analysis/SpecialFunctions":2,"Analysis/SpecificLimits":1,"Analysis/VonNeumannAlgebra":3,"CategoryTheory":3,"CategoryTheory/Abelian":2,"CategoryTheory/Action":2,"CategoryTheory/Adhesive":2,"CategoryTheory/Adjunction":3,"CategoryTheory/Bicategory":3,"CategoryTheory/Center":3,"CategoryTheory/Comma":1,"CategoryTheory/ComposableArrows":1,"CategoryTheory/ConcreteCategory":1,"CategoryTheory/Dialectica":2,"CategoryTheory/Discrete":1,"CategoryTheory/EffectiveEpi":2,"CategoryTheory/Endofunctor":1,"CategoryTheory/Enriched":1,"CategoryTheory/FiberedCategory":1,"CategoryTheory/Functor":3,"CategoryTheory/Galois":1,"CategoryTheory/Generator":4,"CategoryTheory/GradedObject":2,"CategoryTheory/Groupoid":3,"CategoryTheory/GuitartExact":2,"CategoryTheory/Idempotents":1,"CategoryTheory/Join":1,"CategoryTheory/LiftingProperties":2,"CategoryTheory/Limits":1,"CategoryTheory/Linear":2,"CategoryTheory/LocallyCartesianClosed":2,"CategoryTheory/Monoidal":3,"CategoryTheory/MorphismProperty":2,"CategoryTheory/ObjectProperty":2,"CategoryTheory/Pi":1,"CategoryTheory/Preadditive":2,"CategoryTheory/Presentable":4,"CategoryTheory/Products":2,"CategoryTheory/Profunctor":1,"CategoryTheory/RegularCategory":1,"CategoryTheory/Shift":3,"CategoryTheory/Sites":3,"CategoryTheory/SmallObject":1,"CategoryTheory/Subfunctor":1,"CategoryTheory/Subobject":2,"CategoryTheory/Topos":3,"CategoryTheory/Triangulated":2,"CategoryTheory/Types":1,"Combinatorics":2,"Combinatorics/Additive":1,"Combinatorics/Derangements":2,"Combinatorics/Digraph":2,"Combinatorics/Enumerative":2,"Combinatorics/Extremal":2,"Combinatorics/Graph":1,"Combinatorics/Hall":3,"Combinatorics/Hypergraph":1,"Combinatorics/Matroid":2,"Combinatorics/Optimization":2,"Combinatorics/Quiver":3,"Combinatorics/SetFamily":3,"Combinatorics/SimpleGraph":2,"Combinatorics/Tiling":2,"Combinatorics/Young":2,"Computability":3,"Computability/AkraBazzi":3,"Computability/Primrec":2,"Computability/TuringMachine":1,"Condensed":2,"Condensed/Discrete":3,"Condensed/Light":2,"Control":1,"Control/Bitraversable":2,"Control/Functor":3,"Control/Monad":3,"Control/Traversable":2,"Data":3,"Data/Analysis":2,"Data/Bool":1,"Data/Complex":1,"Data/Countable":2,"Data/DFinsupp":3,"Data/ENNReal":1,"Data/ENat":2,"Data/FinEnum":1,"Data/Finite":4,"Data/Finset":3,"Data/Finsupp":3,"Data/Fintype":4,"Data/FunLike":1,"Data/Int":2,"Data/List":3,"Data/Matrix":1,"Data/Multiset":2,"Data/NNRat":2,"Data/NNReal":2,"Data/Nat":1,"Data/Option":2,"Data/Ordering":3,"Data/Ordmap":1,"Data/PFunctor":2,"Data/PNat":1,"Data/Prod":3,"Data/QPF":1,"Data/Rat":2,"Data/Real":3,"Data/Rel":2,"Data/Seq":3,"Data/Set":1,"Data/SetLike":2,"Data/Sigma":1,"Data/Sign":3,"Data/Stream":3,"Data/String":3,"Data/Sum":4,"Data/Sym":1,"Data/Tree":3,"Data/Vector":2,"Data/W":1,"Data/WSeq":1,"Data/ZMod":4,"Dynamics":2,"Dynamics/Circle":3,"Dynamics/Ergodic":2,"Dynamics/FixedPoints":2,"Dynamics/PeriodicPts":4,"Dynamics/SymbolicDynamics":2,"Dynamics/TopologicalEntropy":2,"FieldTheory":2,"FieldTheory/Differential":3,"FieldTheory/Finite":1,"FieldTheory/Galois":1,"FieldTheory/IntermediateField":1,"FieldTheory/IsAlgClosed":1,"FieldTheory/IsRealClosed":3,"FieldTheory/Minpoly":1,"FieldTheory/MvRatFunc":1,"FieldTheory/Normal":3,"FieldTheory/PurelyInseparable":1,"FieldTheory/RatFunc":3,"FieldTheory/SplittingField":2,"Geometry/Euclidean":2,"Geometry/Group":2,"Geometry/Manifold":1,"Geometry/Polygon":2,"Geometry/RingedSpace":4,"GroupTheory":1,"GroupTheory/Commutator":4,"GroupTheory/Coprod":2,"GroupTheory/Coset":4,"GroupTheory/FiniteAbelian":2,"GroupTheory/FreeGroup":3,"GroupTheory/GroupAction":1,"GroupTheory/GroupExtension":1,"GroupTheory/MonoidLocalization":2,"GroupTheory/Order":2,"GroupTheory/OreLocalization":2,"GroupTheory/Perm":1,"GroupTheory/QuotientGroup":2,"GroupTheory/SpecificGroups":1,"GroupTheory/Subgroup":1,"GroupTheory/Submonoid":3,"InformationTheory":1,"InformationTheory/Coding":2,"InformationTheory/KullbackLeibler":2,"LinearAlgebra":2,"LinearAlgebra/AffineSpace":2,"LinearAlgebra/Alternating":3,"LinearAlgebra/Basis":3,"LinearAlgebra/BilinearForm":2,"LinearAlgebra/Charpoly":2,"LinearAlgebra/CliffordAlgebra":1,"LinearAlgebra/Complex":1,"LinearAlgebra/Dimension":1,"LinearAlgebra/DirectSum":1,"LinearAlgebra/Dual":1,"LinearAlgebra/Eigenspace":1,"LinearAlgebra/ExteriorAlgebra":2,"LinearAlgebra/ExteriorPower":3,"LinearAlgebra/FiniteDimensional":2,"LinearAlgebra/Finsupp":1,"LinearAlgebra/FreeModule":2,"LinearAlgebra/LinearIndependent":3,"LinearAlgebra/Matrix":3,"LinearAlgebra/Multilinear":1,"LinearAlgebra/PerfectPairing":2,"LinearAlgebra/PiTensorProduct":3,"LinearAlgebra/Projectivization":2,"LinearAlgebra/QuadraticForm":3,"LinearAlgebra/Quotient":2,"LinearAlgebra/RootSystem":2,"LinearAlgebra/SModEq":3,"LinearAlgebra/SesquilinearForm":3,"LinearAlgebra/Span":2,"LinearAlgebra/SymmetricAlgebra":1,"LinearAlgebra/TensorAlgebra":3,"LinearAlgebra/Transvection":2,"Logic":1,"Logic/Encodable":1,"Logic/Equiv":2,"Logic/Function":1,"Logic/Godel":2,"Logic/IsEmpty":2,"Logic/Nontrivial":2,"Logic/Small":3,"MeasureTheory":3,"MeasureTheory/Constructions":2,"MeasureTheory/Covering":3,"MeasureTheory/Function":2,"MeasureTheory/Group":3,"MeasureTheory/Integral":3,"MeasureTheory/MeasurableSpace":3,"MeasureTheory/Measure":1,"MeasureTheory/Order":3,"MeasureTheory/OuterMeasure":2,"MeasureTheory/SpecificCodomains":2,"MeasureTheory/VectorMeasure":1,"ModelTheory":2,"ModelTheory/Algebra":1,"ModelTheory/Arithmetic":2,"NumberTheory":2,"NumberTheory/ArithmeticFunction":1,"NumberTheory/ClassNumber":3,"NumberTheory/Cyclotomic":3,"NumberTheory/DiophantineApproximation":2,"NumberTheory/DirichletCharacter":1,"NumberTheory/EulerProduct":4,"NumberTheory/FLT":1,"NumberTheory/Harmonic":2,"NumberTheory/Height":3,"NumberTheory/JacobiSum":1,"NumberTheory/LSeries":2,"NumberTheory/LegendreSymbol":1,"NumberTheory/ModularForms":2,"NumberTheory/MulChar":1,"NumberTheory/NumberField":2,"NumberTheory/Padics":3,"NumberTheory/RamificationInertia":1,"NumberTheory/RatFunc":3,"NumberTheory/Real":3,"NumberTheory/Transcendental":2,"NumberTheory/Zsqrtd":3,"Order":3,"Order/Atoms":3,"Order/BooleanAlgebra":2,"Order/BoundedOrder":1,"Order/Bounds":2,"Order/CompactlyGenerated":4,"Order/CompleteLattice":2,"Order/ConditionallyCompleteLattice":2,"Order/ConditionallyCompletePartialOrder":2,"Order/Defs":3,"Order/Filter":3,"Order/Fin":3,"Order/GaloisConnection":1,"Order/Heyting":2,"Order/Hom":1,"Order/Interval":3,"Order/Lattice":2,"Order/Partition":2,"Order/Preorder":3,"Order/Rel":1,"Order/RelIso":2,"Order/ScottContinuity":3,"Order/SuccPred":1,"Order/UpperLower":1,"Probability":3,"Probability/BrownianMotion":1,"Probability/Combinatorics":1,"Probability/Decision":2,"Probability/Distributions":4,"Probability/Kernel":2,"Probability/Martingale":1,"Probability/Moments":2,"Probability/ProbabilityMassFunction":1,"Probability/Process":3,"RepresentationTheory":2,"RepresentationTheory/AlgebraRepresentation":2,"RepresentationTheory/Continuous":1,"RepresentationTheory/Homological":3,"RingTheory":2,"RingTheory/AdicCompletion":1,"RingTheory/Adjoin":1,"RingTheory/Algebraic":1,"RingTheory/AlgebraicIndependent":3,"RingTheory/Artinian":2,"RingTheory/Bialgebra":1,"RingTheory/ClassGroup":3,"RingTheory/Coalgebra":2,"RingTheory/Congruence":2,"RingTheory/Coprime":2,"RingTheory/DedekindDomain":3,"RingTheory/Derivation":2,"RingTheory/DiscreteValuationRing":2,"RingTheory/DividedPowerAlgebra":3,"RingTheory/DividedPowers":1,"RingTheory/Etale":3,"RingTheory/Extension":2,"RingTheory/Finiteness":2,"RingTheory/Flat":2,"RingTheory/FractionalIdeal":3,"RingTheory/GradedAlgebra":3,"RingTheory/HahnSeries":1,"RingTheory/HopfAlgebra":1,"RingTheory/Ideal":3,"RingTheory/IdealFilter":2,"RingTheory/Int":2,"RingTheory/IntegralClosure":3,"RingTheory/Invariant":1,"RingTheory/Jacobson":2,"RingTheory/Kaehler":2,"RingTheory/KrullDimension":3,"RingTheory/LocalProperties":2,"RingTheory/LocalRing":2,"RingTheory/Localization":2,"RingTheory/MvPolynomial":2,"RingTheory/MvPowerSeries":3,"RingTheory/Nilpotent":2,"RingTheory/Noetherian":2,"RingTheory/NonUnitalSubring":2,"RingTheory/Norm":1,"RingTheory/OrderOfVanishing":1,"RingTheory/OreLocalization":1,"RingTheory/Perfectoid":2,"RingTheory/Polynomial":3,"RingTheory/PolynomialLaw":3,"RingTheory/PowerSeries":1,"RingTheory/QuasiFinite":1,"RingTheory/Radical":2,"RingTheory/RamificationInertia":2,"RingTheory/Regular":2,"RingTheory/RegularLocalRing":2,"RingTheory/RingHom":1,"RingTheory/RootsOfUnity":2,"RingTheory/SimpleModule":3,"RingTheory/SimpleRing":1,"RingTheory/Smooth":1,"RingTheory/Spectrum":2,"RingTheory/TensorProduct":2,"RingTheory/Trace":3,"RingTheory/TwoSidedIdeal":2,"RingTheory/Unramified":3,"RingTheory/Valuation":2,"RingTheory/WittVector":2,"RingTheory/ZMod":1,"SetTheory":3,"SetTheory/Cardinal":2,"SetTheory/Descriptive":4,"SetTheory/Ordinal":3,"Tactic":2,"Tactic/Algebra":3,"Tactic/CancelDenoms":3,"Tactic/CategoryTheory":1,"Tactic/ComputeAsymptotics":4,"Tactic/Linarith":2,"Tactic/NormNum":2,"Tactic/Order":3,"Tactic/Positivity":2,"Testing/Plausible":4,"Topology":1,"Topology/Algebra":2,"Topology/Baire":1,"Topology/Bornology":3,"Topology/CWComplex":3,"Topology/Category":2,"Topology/Compactification":2,"Topology/Compactness":2,"Topology/Connected":2,"Topology/Constructions":2,"Topology/ContinuousMap":3,"Topology/Convenient":2,"Topology/Covering":1,"Topology/EMetricSpace":2,"Topology/FiberBundle":2,"Topology/Hom":1,"Topology/Homeomorph":1,"Topology/Homotopy":1,"Topology/Instances":2,"Topology/LocallyConstant":3,"Topology/LocallyFinsupp":2,"Topology/Maps":2,"Topology/MetricSpace":2,"Topology/Metrizable":1,"Topology/OpenPartialHomeomorph":3,"Topology/Order":1,"Topology/Semicontinuity":2,"Topology/Separation":2,"Topology/Sets":2,"Topology/Sheaves":2,"Topology/Spectral":4,"Topology/UniformSpace":1,"Topology/VectorBundle":2},"exact_proof_ast_duplicate_rate":0.003,"exact_proof_token_duplicate_rate":0.002,"max_samples_per_file":6,"proof_family_counts":{"aesop":1,"apply":9,"apply+aesop+induction":1,"apply+cases":1,"apply+ext":1,"apply+ext+cases":1,"apply+induction":1,"cases":12,"constructor":2,"exact":56,"exact+aesop":1,"exact+apply":5,"exact+apply+ext":3,"exact+apply+refine":4,"exact+by_contra":2,"exact+cases":2,"exact+constructor":3,"exact+ext":8,"exact+ext+tauto":1,"exact+funext":1,"exact+induction":3,"exact+refine":14,"exact+refine+aesop":1,"exact+refine+by_contra":1,"exact+refine+cases":1,"exact+refine+ext":2,"exact+refine+induction":1,"ext":2,"ext+induction":1,"induction":1,"refine":5,"refine+funext":1,"rw":103,"rw+aesop":2,"rw+apply":7,"rw+apply+ext":1,"rw+apply+refine":5,"rw+apply+ring":1,"rw+cases":2,"rw+constructor":1,"rw+exact":82,"rw+exact+apply":26,"rw+exact+cases":1,"rw+exact+constructor":9,"rw+exact+funext":1,"rw+exact+refine":30,"rw+ext":5,"rw+funext":1,"rw+induction":6,"rw+refine":5,"rw+refine+aesop":1,"rw+refine+constructor":1,"rw+refine+ext":1,"rw+ring":2,"simp":96,"simp+aesop":1,"simp+apply":7,"simp+apply+ext":8,"simp+cases":3,"simp+constructor":3,"simp+constructor+cases":1,"simp+exact":19,"simp+exact+apply":5,"simp+exact+by_contra":1,"simp+exact+cases":1,"simp+exact+constructor":2,"simp+exact+induction":2,"simp+exact+refine":17,"simp+exact+ring":1,"simp+ext":26,"simp+induction":5,"simp+induction+cases":1,"simp+nlinarith":1,"simp+refine":8,"simp+refine+cases":1,"simp+refine+ext":2,"simp+refine+induction":1,"simp+refine+norm_num":1,"simp+refine+positivity":1,"simp+ring":1,"simp+rw":41,"simp+rw+aesop":1,"simp+rw+apply":14,"simp+rw+cases":4,"simp+rw+constructor":1,"simp+rw+exact":50,"simp+rw+ext":13,"simp+rw+refine":15,"simp+rw+ring":2,"simp+rw+tauto":1,"simp+simpa":12,"simp+simpa+aesop":1,"simp+simpa+apply":1,"simp+simpa+by_contra":1,"simp+simpa+exact":9,"simp+simpa+ext":1,"simp+simpa+funext":1,"simp+simpa+induction":2,"simp+simpa+refine":3,"simp+simpa+rw":24,"simp+tauto":1,"simpa":48,"simpa+aesop+cases":1,"simpa+apply":2,"simpa+apply+ext":1,"simpa+cases":2,"simpa+exact":5,"simpa+exact+apply":2,"simpa+exact+induction":3,"simpa+exact+refine":6,"simpa+ext":2,"simpa+induction":2,"simpa+refine":7,"simpa+rw":2,"simpa+rw+apply":4,"simpa+rw+exact":8,"simpa+rw+refine":5,"term_or_other":46},"record_count":1000,"unique_files":762,"unique_proof_ast_hashes":997,"unique_proof_token_hashes":998},"environment":{"environment_hash":"08dda26699fe1025520aeb9450ff1df6b58e8ef0aa8100ae158997e8a703b831","file_hashes":{"lake-manifest.json":"43af94ac36ff8eac8d07bb78651b4a93eb319cd1e338e3b2631c0069165bafda","lakefile.lean":"6e27a586129e3f0386e660b3320a6adcd8ee81e561509eb79cbb211da008ac8c","lean-toolchain":"72681913b978b3f7c2f48229836771f736f6e97d833917726b2263afbc6108ed"},"lean_toolchain":"leanprover/lean4:v4.32.0-rc1","mathlib_revision":"360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56"},"file_sha256":{"LICENSE":"b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1","NOTICE":"b706a26dd9492049912d51ce115e7b878e01a3fee9fb46d89e22941299da2ee7","build-config.json":"f6fa02d13c54d9a576f7cf8af5924fc562dd697e07cf2971f33fb1be6f511da8","candidate-compile-report.jsonl":"10099cda17c3db353e37120d9c8c394c84a210b79c2955c44b19be6316404b97","candidate-manifest.jsonl":"515dcd85886172e1a0e4283a3671674234f3284d2283ba8722ac416660e7dba8","compile-report.jsonl":"1cd88b86c18f63cdc57a02d7afc8a5610fca7e9ad8812005d36ec1da232882f7","distribution-report.json":"6e09600266b4e2665bc966bd809eec263512acc9dc884a6ba17e751dabf8c7d6","holdout.jsonl":"7befdd6831a2b1e62a89b871022391565c0e965d83c2c9eac3f08741a37e8978","leakage-report.json":"2d0b7c36c50c120d649ca6638a07e544c5636bc4e33bce42faf7cf3d8cd837c1","overlength-excluded.jsonl":"fe195830713362c57e9e185e79be940c6c6ca75353fa7601ac42d22caf297e0c","production-holdouts.jsonl":"7bd29ebd2b1c10879478d7b19ed091b947893960c6a927863b02405a4fc1aab8","source-manifest.json":"f6de1bd1d25f3179fe99e344e9533886e5a4259d4e1d8269657447ba0d304d1b","token-report.jsonl":"709ea6949a8efba339c58329adb5910341f9069c8f8e04fb99d499985d3bc0b5","train.jsonl":"066b34aafe87c0da820c83781f6254d5c6a363bc93e5e44a65a501d8284885c5","validation.jsonl":"804214d63ca01ad7abf3b2931147dc43057f6b2e7449480286cc89860ab592da"},"full_compile_ok":true,"holdout_fraction":0.2,"leakage_scanner_policy_sha256":"7198e9f1a01d2fd8e85ea4eb7fa4a8925724caa1812be6da88bf16b53df9347a","license":"Apache-2.0","parent_artifact_hash":"8c94d572747fe753ee8ab814f5c47e8158b793b9e6b4a9884ca7bd83ea52358b","production_holdouts_sha256":"78e888d6ce6164ed98dc05729c2f69a9db58daba42b7bd66e0ac48f9158e896d","recommended_stage2":{"excluded_split":"holdout","max_length":4096,"packing":false,"seed":20260806,"train_split":"train","validation_split":"validation"},"redistribution":"GO subject to bundled LICENSE/NOTICE attribution","reserved_holdout_artifact_hash":"eacefeab327a0d8c4b66e90b9afe9f7b8eb1df62c87abc9a1166f6b3e5ba8ced","schema_version":1,"shape_validation":{"failure_count":0,"failures":[],"lean_recompiled":false,"record_count":1000,"schema_version":1,"stage0_go":false,"valid_count":1000},"source":{"commit":"360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56","repo":"leanprover-community/mathlib4"},"stage2_data_go":true,"token_summary":{"completion_tokens":{"max":584,"median":52,"min":4,"p90":206,"p95":293},"over_2048":319,"over_4096":0,"prompt_tokens":{"max":4078,"median":1381,"min":178,"p90":3012,"p95":3398},"tokenizer_sha256":"217e7242c0cafb50790f703bb14e062966b997a1bc8dc980e11240f5f1d06d27","total_tokens":{"max":4092,"median":1451,"min":209,"p90":3174,"p95":3483}}}
|
sft-1000/train.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
sft-1000/validation.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
sft-90/artifact.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_sha256": "eacefeab327a0d8c4b66e90b9afe9f7b8eb1df62c87abc9a1166f6b3e5ba8ced",
|
| 3 |
+
"files": {
|
| 4 |
+
"sft-90/train.jsonl": {
|
| 5 |
+
"sha256": "7bd6d0822d80545ce2163aface7ba54484167394fdb38a4b11a3cd96e025b690",
|
| 6 |
+
"records": 63
|
| 7 |
+
},
|
| 8 |
+
"sft-90/validation.jsonl": {
|
| 9 |
+
"sha256": "f3eb510950b84d6cd52df91dce73b5314738f80d90b52ecf075276f09c34bd02",
|
| 10 |
+
"records": 9
|
| 11 |
+
},
|
| 12 |
+
"sft-90/holdout.jsonl": {
|
| 13 |
+
"sha256": "bfda01582726fe1a99daea87e7a7d1ba86e65526705a6fba8eb9e471df4680ab",
|
| 14 |
+
"records": 18
|
| 15 |
+
}
|
| 16 |
+
}
|
| 17 |
+
}
|
sft-90/holdout.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
sft-90/train.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
sft-90/validation.jsonl
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"completion":"by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toPi κ), Pi.isUnit_iff]\n congr!","context_contains_namespace":false,"context_suffix":"end quasiregular","dependency_ids":["import:Mathlib.Algebra.Algebra.Spectrum.Quasispectrum","import:Mathlib.Algebra.Algebra.Pi","import:Mathlib.Algebra.Algebra.Prod","import:Mathlib.Algebra.Group.Pi.Units"],"family_id":"isquasiregular_pi_iff","file_id":"mathlib/Mathlib/Algebra/Algebra/Spectrum/Pi.lean","imports":["public import Mathlib.Algebra.Algebra.Spectrum.Quasispectrum","public import Mathlib.Algebra.Algebra.Pi","public import Mathlib.Algebra.Algebra.Prod","public import Mathlib.Algebra.Group.Pi.Units"],"local_context":"/-\nCopyright (c) 2025 Frédéric Dupuis. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Frédéric Dupuis\n-/\n/-!\n# Spectrum and quasispectrum of products\n\nThis file contains results regarding the spectra and quasispectra of (indexed) products of\nelements of a (non-unital) ring. The main result is that the (quasi)spectrum of a product is the\nunion of the (quasi)spectra.\n\n## Main declarations\n\n+ `Pi.spectrum_eq`: `spectrum R a = ⋃ i, spectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.spectrum_eq`: `spectrum R ⟨a, b⟩ = spectrum R a ∪ spectrum R b`\n+ `Pi.quasispectrum_eq`: `quasispectrum R a = ⋃ i, quasispectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.quasispectrum_eq`: `quasispectrum R ⟨a, b⟩ = quasispectrum R a ∪ quasispectrum R b`\n\n## TODO\n\n+ Apply these results to block matrices.\n\n-/\n\n@[expose] public section\n\nvariable {ι A B R : Type*} {κ : ι → Type*}\n\nsection quasiregular\n\nvariable (κ) in\n/-- The equivalence between pre-quasiregular elements of an indexed product and the indexed product\nof pre-quasiregular elements. -/\ndef PreQuasiregular.toPi [∀ i, NonUnitalSemiring (κ i)] :\n PreQuasiregular (∀ i, κ i) ≃* ∀ i, PreQuasiregular (κ i) where\n toFun := fun x i => .mk <| x.val i\n invFun := fun x => .mk <| fun i => (x i).val\n map_mul' _ _ := rfl\n\nvariable (A B) in\n/-- The equivalence between pre-quasiregular elements of a product and the product of\npre-quasiregular elements. -/\ndef PreQuasiregular.toProd [NonUnitalSemiring A] [NonUnitalSemiring B] :\n PreQuasiregular (A × B) ≃* PreQuasiregular A × PreQuasiregular B where\n toFun := fun p => ⟨.mk p.val.1, .mk p.val.2⟩\n invFun := fun ⟨a, b⟩ => .mk ⟨a.val, b.val⟩\n map_mul' _ _ := rfl","module_header":true,"namespace":"","prompt":"Return exactly one Lean proof body beginning with `by`. Do not emit prose, fences, declarations, sorry, admit, by?, or warnings.\n\nImports:\npublic import Mathlib.Algebra.Algebra.Spectrum.Quasispectrum\npublic import Mathlib.Algebra.Algebra.Pi\npublic import Mathlib.Algebra.Algebra.Prod\npublic import Mathlib.Algebra.Group.Pi.Units\n\nNamespace:\n(root)\n\nLocal context:\n/-\nCopyright (c) 2025 Frédéric Dupuis. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Frédéric Dupuis\n-/\n/-!\n# Spectrum and quasispectrum of products\n\nThis file contains results regarding the spectra and quasispectra of (indexed) products of\nelements of a (non-unital) ring. The main result is that the (quasi)spectrum of a product is the\nunion of the (quasi)spectra.\n\n## Main declarations\n\n+ `Pi.spectrum_eq`: `spectrum R a = ⋃ i, spectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.spectrum_eq`: `spectrum R ⟨a, b⟩ = spectrum R a ∪ spectrum R b`\n+ `Pi.quasispectrum_eq`: `quasispectrum R a = ⋃ i, quasispectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.quasispectrum_eq`: `quasispectrum R ⟨a, b⟩ = quasispectrum R a ∪ quasispectrum R b`\n\n## TODO\n\n+ Apply these results to block matrices.\n\n-/\n\n@[expose] public section\n\nvariable {ι A B R : Type*} {κ : ι → Type*}\n\nsection quasiregular\n\nvariable (κ) in\n/-- The equivalence between pre-quasiregular elements of an indexed product and the indexed product\nof pre-quasiregular elements. -/\ndef PreQuasiregular.toPi [∀ i, NonUnitalSemiring (κ i)] :\n PreQuasiregular (∀ i, κ i) ≃* ∀ i, PreQuasiregular (κ i) where\n toFun := fun x i => .mk <| x.val i\n invFun := fun x => .mk <| fun i => (x i).val\n map_mul' _ _ := rfl\n\nvariable (A B) in\n/-- The equivalence between pre-quasiregular elements of a product and the product of\npre-quasiregular elements. -/\ndef PreQuasiregular.toProd [NonUnitalSemiring A] [NonUnitalSemiring B] :\n PreQuasiregular (A × B) ≃* PreQuasiregular A × PreQuasiregular B where\n toFun := fun p => ⟨.mk p.val.1, .mk p.val.2⟩\n invFun := fun ⟨a, b⟩ => .mk ⟨a.val, b.val⟩\n map_mul' _ _ := rfl\n\nTarget:\nlemma isQuasiregular_pi_iff [∀ i, NonUnitalSemiring (κ i)] (x : ∀ i, κ i) :\n IsQuasiregular x ↔ ∀ i, IsQuasiregular (x i) :=\n\nProof body:\n","proof_body":"by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toPi κ), Pi.isUnit_iff]\n congr!","provenance":{"declaration_index":0,"environment_hash":"08dda26699fe1025520aeb9450ff1df6b58e8ef0aa8100ae158997e8a703b831","lean_toolchain":"leanprover/lean4:v4.32.0-rc1","license":"Apache-2.0","original_import_scope":"module-specific","source_revision":"360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56","source_sha256":"0d65cd408ba3ccaf81729c961d8511b6d67a96ec0a7074d049183ed008f4c88f","source_uri":"https://github.com/leanprover-community/mathlib4/blob/360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56/Mathlib/Algebra/Algebra/Spectrum/Pi.lean"},"sample_id":"4024a4dcd540f6620a8b7e2ac2034ecad1d4afdd6c9e862f185cba25d72fc1bc","schema_version":1,"split":"validation","theorem_statement":"lemma isQuasiregular_pi_iff [∀ i, NonUnitalSemiring (κ i)] (x : ∀ i, κ i) :\n IsQuasiregular x ↔ ∀ i, IsQuasiregular (x i) :="}
|
| 2 |
+
{"completion":"by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toProd A B), Prod.isUnit_iff]\n congr!","context_contains_namespace":false,"context_suffix":"end quasiregular","dependency_ids":["import:Mathlib.Algebra.Algebra.Spectrum.Quasispectrum","import:Mathlib.Algebra.Algebra.Pi","import:Mathlib.Algebra.Algebra.Prod","import:Mathlib.Algebra.Group.Pi.Units"],"family_id":"isquasiregular_prod_iff","file_id":"mathlib/Mathlib/Algebra/Algebra/Spectrum/Pi.lean","imports":["public import Mathlib.Algebra.Algebra.Spectrum.Quasispectrum","public import Mathlib.Algebra.Algebra.Pi","public import Mathlib.Algebra.Algebra.Prod","public import Mathlib.Algebra.Group.Pi.Units"],"local_context":"/-\nCopyright (c) 2025 Frédéric Dupuis. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Frédéric Dupuis\n-/\n/-!\n# Spectrum and quasispectrum of products\n\nThis file contains results regarding the spectra and quasispectra of (indexed) products of\nelements of a (non-unital) ring. The main result is that the (quasi)spectrum of a product is the\nunion of the (quasi)spectra.\n\n## Main declarations\n\n+ `Pi.spectrum_eq`: `spectrum R a = ⋃ i, spectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.spectrum_eq`: `spectrum R ⟨a, b⟩ = spectrum R a ∪ spectrum R b`\n+ `Pi.quasispectrum_eq`: `quasispectrum R a = ⋃ i, quasispectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.quasispectrum_eq`: `quasispectrum R ⟨a, b⟩ = quasispectrum R a ∪ quasispectrum R b`\n\n## TODO\n\n+ Apply these results to block matrices.\n\n-/\n\n@[expose] public section\n\nvariable {ι A B R : Type*} {κ : ι → Type*}\n\nsection quasiregular\n\nvariable (κ) in\n/-- The equivalence between pre-quasiregular elements of an indexed product and the indexed product\nof pre-quasiregular elements. -/\ndef PreQuasiregular.toPi [∀ i, NonUnitalSemiring (κ i)] :\n PreQuasiregular (∀ i, κ i) ≃* ∀ i, PreQuasiregular (κ i) where\n toFun := fun x i => .mk <| x.val i\n invFun := fun x => .mk <| fun i => (x i).val\n map_mul' _ _ := rfl\n\nvariable (A B) in\n/-- The equivalence between pre-quasiregular elements of a product and the product of\npre-quasiregular elements. -/\ndef PreQuasiregular.toProd [NonUnitalSemiring A] [NonUnitalSemiring B] :\n PreQuasiregular (A × B) ≃* PreQuasiregular A × PreQuasiregular B where\n toFun := fun p => ⟨.mk p.val.1, .mk p.val.2⟩\n invFun := fun ⟨a, b⟩ => .mk ⟨a.val, b.val⟩\n map_mul' _ _ := rfl\n\nlemma isQuasiregular_pi_iff [∀ i, NonUnitalSemiring (κ i)] (x : ∀ i, κ i) :\n IsQuasiregular x ↔ ∀ i, IsQuasiregular (x i) := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toPi κ), Pi.isUnit_iff]\n congr!","module_header":true,"namespace":"","prompt":"Return exactly one Lean proof body beginning with `by`. Do not emit prose, fences, declarations, sorry, admit, by?, or warnings.\n\nImports:\npublic import Mathlib.Algebra.Algebra.Spectrum.Quasispectrum\npublic import Mathlib.Algebra.Algebra.Pi\npublic import Mathlib.Algebra.Algebra.Prod\npublic import Mathlib.Algebra.Group.Pi.Units\n\nNamespace:\n(root)\n\nLocal context:\n/-\nCopyright (c) 2025 Frédéric Dupuis. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Frédéric Dupuis\n-/\n/-!\n# Spectrum and quasispectrum of products\n\nThis file contains results regarding the spectra and quasispectra of (indexed) products of\nelements of a (non-unital) ring. The main result is that the (quasi)spectrum of a product is the\nunion of the (quasi)spectra.\n\n## Main declarations\n\n+ `Pi.spectrum_eq`: `spectrum R a = ⋃ i, spectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.spectrum_eq`: `spectrum R ⟨a, b⟩ = spectrum R a ∪ spectrum R b`\n+ `Pi.quasispectrum_eq`: `quasispectrum R a = ⋃ i, quasispectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.quasispectrum_eq`: `quasispectrum R ⟨a, b⟩ = quasispectrum R a ∪ quasispectrum R b`\n\n## TODO\n\n+ Apply these results to block matrices.\n\n-/\n\n@[expose] public section\n\nvariable {ι A B R : Type*} {κ : ι → Type*}\n\nsection quasiregular\n\nvariable (κ) in\n/-- The equivalence between pre-quasiregular elements of an indexed product and the indexed product\nof pre-quasiregular elements. -/\ndef PreQuasiregular.toPi [∀ i, NonUnitalSemiring (κ i)] :\n PreQuasiregular (∀ i, κ i) ≃* ∀ i, PreQuasiregular (κ i) where\n toFun := fun x i => .mk <| x.val i\n invFun := fun x => .mk <| fun i => (x i).val\n map_mul' _ _ := rfl\n\nvariable (A B) in\n/-- The equivalence between pre-quasiregular elements of a product and the product of\npre-quasiregular elements. -/\ndef PreQuasiregular.toProd [NonUnitalSemiring A] [NonUnitalSemiring B] :\n PreQuasiregular (A × B) ≃* PreQuasiregular A × PreQuasiregular B where\n toFun := fun p => ⟨.mk p.val.1, .mk p.val.2⟩\n invFun := fun ⟨a, b⟩ => .mk ⟨a.val, b.val⟩\n map_mul' _ _ := rfl\n\nlemma isQuasiregular_pi_iff [∀ i, NonUnitalSemiring (κ i)] (x : ∀ i, κ i) :\n IsQuasiregular x ↔ ∀ i, IsQuasiregular (x i) := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toPi κ), Pi.isUnit_iff]\n congr!\n\nTarget:\nlemma isQuasiregular_prod_iff [NonUnitalSemiring A] [NonUnitalSemiring B] (a : A) (b : B) :\n IsQuasiregular (⟨a, b⟩ : A × B) ↔ IsQuasiregular a ∧ IsQuasiregular b :=\n\nProof body:\n","proof_body":"by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toProd A B), Prod.isUnit_iff]\n congr!","provenance":{"declaration_index":1,"environment_hash":"08dda26699fe1025520aeb9450ff1df6b58e8ef0aa8100ae158997e8a703b831","lean_toolchain":"leanprover/lean4:v4.32.0-rc1","license":"Apache-2.0","original_import_scope":"module-specific","source_revision":"360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56","source_sha256":"0d65cd408ba3ccaf81729c961d8511b6d67a96ec0a7074d049183ed008f4c88f","source_uri":"https://github.com/leanprover-community/mathlib4/blob/360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56/Mathlib/Algebra/Algebra/Spectrum/Pi.lean"},"sample_id":"61d7949ded691c61064e5f5f7f7aef53bfd78684169bf75dc611ea98f02c35e4","schema_version":1,"split":"validation","theorem_statement":"lemma isQuasiregular_prod_iff [NonUnitalSemiring A] [NonUnitalSemiring B] (a : A) (b : B) :\n IsQuasiregular (⟨a, b⟩ : A × B) ↔ IsQuasiregular a ∧ IsQuasiregular b :="}
|
| 3 |
+
{"completion":"by\n apply compl_injective\n simp_rw [spectrum, Set.compl_iUnion, compl_compl, resolventSet, Set.iInter_setOf,\n Pi.isUnit_iff, sub_apply, algebraMap_apply]","context_contains_namespace":false,"context_suffix":"end spectrum","dependency_ids":["import:Mathlib.Algebra.Algebra.Spectrum.Quasispectrum","import:Mathlib.Algebra.Algebra.Pi","import:Mathlib.Algebra.Algebra.Prod","import:Mathlib.Algebra.Group.Pi.Units"],"family_id":"pi","file_id":"mathlib/Mathlib/Algebra/Algebra/Spectrum/Pi.lean","imports":["public import Mathlib.Algebra.Algebra.Spectrum.Quasispectrum","public import Mathlib.Algebra.Algebra.Pi","public import Mathlib.Algebra.Algebra.Prod","public import Mathlib.Algebra.Group.Pi.Units"],"local_context":"/-\nCopyright (c) 2025 Frédéric Dupuis. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Frédéric Dupuis\n-/\n/-!\n# Spectrum and quasispectrum of products\n\nThis file contains results regarding the spectra and quasispectra of (indexed) products of\nelements of a (non-unital) ring. The main result is that the (quasi)spectrum of a product is the\nunion of the (quasi)spectra.\n\n## Main declarations\n\n+ `Pi.spectrum_eq`: `spectrum R a = ⋃ i, spectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.spectrum_eq`: `spectrum R ⟨a, b⟩ = spectrum R a ∪ spectrum R b`\n+ `Pi.quasispectrum_eq`: `quasispectrum R a = ⋃ i, quasispectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.quasispectrum_eq`: `quasispectrum R ⟨a, b⟩ = quasispectrum R a ∪ quasispectrum R b`\n\n## TODO\n\n+ Apply these results to block matrices.\n\n-/\n\n@[expose] public section\n\nvariable {ι A B R : Type*} {κ : ι → Type*}\n\nsection quasiregular\n\nvariable (κ) in\n/-- The equivalence between pre-quasiregular elements of an indexed product and the indexed product\nof pre-quasiregular elements. -/\ndef PreQuasiregular.toPi [∀ i, NonUnitalSemiring (κ i)] :\n PreQuasiregular (∀ i, κ i) ≃* ∀ i, PreQuasiregular (κ i) where\n toFun := fun x i => .mk <| x.val i\n invFun := fun x => .mk <| fun i => (x i).val\n map_mul' _ _ := rfl\n\nvariable (A B) in\n/-- The equivalence between pre-quasiregular elements of a product and the product of\npre-quasiregular elements. -/\ndef PreQuasiregular.toProd [NonUnitalSemiring A] [NonUnitalSemiring B] :\n PreQuasiregular (A × B) ≃* PreQuasiregular A × PreQuasiregular B where\n toFun := fun p => ⟨.mk p.val.1, .mk p.val.2⟩\n invFun := fun ⟨a, b⟩ => .mk ⟨a.val, b.val⟩\n map_mul' _ _ := rfl\n\nlemma isQuasiregular_pi_iff [∀ i, NonUnitalSemiring (κ i)] (x : ∀ i, κ i) :\n IsQuasiregular x ↔ ∀ i, IsQuasiregular (x i) := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toPi κ), Pi.isUnit_iff]\n congr!\n\nlemma isQuasiregular_prod_iff [NonUnitalSemiring A] [NonUnitalSemiring B] (a : A) (b : B) :\n IsQuasiregular (⟨a, b⟩ : A × B) ↔ IsQuasiregular a ∧ IsQuasiregular b := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toProd A B), Prod.isUnit_iff]\n congr!\n\nlemma quasispectrum.mem_iff_of_isUnit [CommSemiring R] [NonUnitalRing A]\n [Module R A] {a : A} {r : R} (hr : IsUnit r) :\n r ∈ quasispectrum R a ↔ ¬ IsQuasiregular (-(hr.unit⁻¹ • a)) :=\n ⟨fun h => h hr, fun h _ => h⟩\n\nend quasiregular\n\nsection spectrum","module_header":true,"namespace":"","prompt":"Return exactly one Lean proof body beginning with `by`. Do not emit prose, fences, declarations, sorry, admit, by?, or warnings.\n\nImports:\npublic import Mathlib.Algebra.Algebra.Spectrum.Quasispectrum\npublic import Mathlib.Algebra.Algebra.Pi\npublic import Mathlib.Algebra.Algebra.Prod\npublic import Mathlib.Algebra.Group.Pi.Units\n\nNamespace:\n(root)\n\nLocal context:\n/-\nCopyright (c) 2025 Frédéric Dupuis. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Frédéric Dupuis\n-/\n/-!\n# Spectrum and quasispectrum of products\n\nThis file contains results regarding the spectra and quasispectra of (indexed) products of\nelements of a (non-unital) ring. The main result is that the (quasi)spectrum of a product is the\nunion of the (quasi)spectra.\n\n## Main declarations\n\n+ `Pi.spectrum_eq`: `spectrum R a = ⋃ i, spectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.spectrum_eq`: `spectrum R ⟨a, b⟩ = spectrum R a ∪ spectrum R b`\n+ `Pi.quasispectrum_eq`: `quasispectrum R a = ⋃ i, quasispectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.quasispectrum_eq`: `quasispectrum R ⟨a, b⟩ = quasispectrum R a ∪ quasispectrum R b`\n\n## TODO\n\n+ Apply these results to block matrices.\n\n-/\n\n@[expose] public section\n\nvariable {ι A B R : Type*} {κ : ι → Type*}\n\nsection quasiregular\n\nvariable (κ) in\n/-- The equivalence between pre-quasiregular elements of an indexed product and the indexed product\nof pre-quasiregular elements. -/\ndef PreQuasiregular.toPi [∀ i, NonUnitalSemiring (κ i)] :\n PreQuasiregular (∀ i, κ i) ≃* ∀ i, PreQuasiregular (κ i) where\n toFun := fun x i => .mk <| x.val i\n invFun := fun x => .mk <| fun i => (x i).val\n map_mul' _ _ := rfl\n\nvariable (A B) in\n/-- The equivalence between pre-quasiregular elements of a product and the product of\npre-quasiregular elements. -/\ndef PreQuasiregular.toProd [NonUnitalSemiring A] [NonUnitalSemiring B] :\n PreQuasiregular (A × B) ≃* PreQuasiregular A × PreQuasiregular B where\n toFun := fun p => ⟨.mk p.val.1, .mk p.val.2⟩\n invFun := fun ⟨a, b⟩ => .mk ⟨a.val, b.val⟩\n map_mul' _ _ := rfl\n\nlemma isQuasiregular_pi_iff [∀ i, NonUnitalSemiring (κ i)] (x : ∀ i, κ i) :\n IsQuasiregular x ↔ ∀ i, IsQuasiregular (x i) := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toPi κ), Pi.isUnit_iff]\n congr!\n\nlemma isQuasiregular_prod_iff [NonUnitalSemiring A] [NonUnitalSemiring B] (a : A) (b : B) :\n IsQuasiregular (⟨a, b⟩ : A × B) ↔ IsQuasiregular a ∧ IsQuasiregular b := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toProd A B), Prod.isUnit_iff]\n congr!\n\nlemma quasispectrum.mem_iff_of_isUnit [CommSemiring R] [NonUnitalRing A]\n [Module R A] {a : A} {r : R} (hr : IsUnit r) :\n r ∈ quasispectrum R a ↔ ¬ IsQuasiregular (-(hr.unit⁻¹ • a)) :=\n ⟨fun h => h hr, fun h _ => h⟩\n\nend quasiregular\n\nsection spectrum\n\nTarget:\nlemma Pi.spectrum_eq [CommSemiring R] [∀ i, Ring (κ i)] [∀ i, Algebra R (κ i)]\n (a : ∀ i, κ i) : spectrum R a = ⋃ i, spectrum R (a i) :=\n\nProof body:\n","proof_body":"by\n apply compl_injective\n simp_rw [spectrum, Set.compl_iUnion, compl_compl, resolventSet, Set.iInter_setOf,\n Pi.isUnit_iff, sub_apply, algebraMap_apply]","provenance":{"declaration_index":3,"environment_hash":"08dda26699fe1025520aeb9450ff1df6b58e8ef0aa8100ae158997e8a703b831","lean_toolchain":"leanprover/lean4:v4.32.0-rc1","license":"Apache-2.0","original_import_scope":"module-specific","source_revision":"360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56","source_sha256":"0d65cd408ba3ccaf81729c961d8511b6d67a96ec0a7074d049183ed008f4c88f","source_uri":"https://github.com/leanprover-community/mathlib4/blob/360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56/Mathlib/Algebra/Algebra/Spectrum/Pi.lean"},"sample_id":"bfee226e057d62c552cf41ddbea5b350d21ef5193441f05a0e7ff513e6424579","schema_version":1,"split":"validation","theorem_statement":"lemma Pi.spectrum_eq [CommSemiring R] [∀ i, Ring (κ i)] [∀ i, Algebra R (κ i)]\n (a : ∀ i, κ i) : spectrum R a = ⋃ i, spectrum R (a i) :="}
|
| 4 |
+
{"completion":"by\n apply compl_injective\n simp_rw [spectrum, Set.compl_union, compl_compl, resolventSet, ← Set.setOf_and,\n Prod.isUnit_iff, algebraMap_apply, mk_sub_mk]","context_contains_namespace":false,"context_suffix":"end spectrum","dependency_ids":["import:Mathlib.Algebra.Algebra.Spectrum.Quasispectrum","import:Mathlib.Algebra.Algebra.Pi","import:Mathlib.Algebra.Algebra.Prod","import:Mathlib.Algebra.Group.Pi.Units"],"family_id":"prod","file_id":"mathlib/Mathlib/Algebra/Algebra/Spectrum/Pi.lean","imports":["public import Mathlib.Algebra.Algebra.Spectrum.Quasispectrum","public import Mathlib.Algebra.Algebra.Pi","public import Mathlib.Algebra.Algebra.Prod","public import Mathlib.Algebra.Group.Pi.Units"],"local_context":"/-\nCopyright (c) 2025 Frédéric Dupuis. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Frédéric Dupuis\n-/\n/-!\n# Spectrum and quasispectrum of products\n\nThis file contains results regarding the spectra and quasispectra of (indexed) products of\nelements of a (non-unital) ring. The main result is that the (quasi)spectrum of a product is the\nunion of the (quasi)spectra.\n\n## Main declarations\n\n+ `Pi.spectrum_eq`: `spectrum R a = ⋃ i, spectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.spectrum_eq`: `spectrum R ⟨a, b⟩ = spectrum R a ∪ spectrum R b`\n+ `Pi.quasispectrum_eq`: `quasispectrum R a = ⋃ i, quasispectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.quasispectrum_eq`: `quasispectrum R ⟨a, b⟩ = quasispectrum R a ∪ quasispectrum R b`\n\n## TODO\n\n+ Apply these results to block matrices.\n\n-/\n\n@[expose] public section\n\nvariable {ι A B R : Type*} {κ : ι → Type*}\n\nsection quasiregular\n\nvariable (κ) in\n/-- The equivalence between pre-quasiregular elements of an indexed product and the indexed product\nof pre-quasiregular elements. -/\ndef PreQuasiregular.toPi [∀ i, NonUnitalSemiring (κ i)] :\n PreQuasiregular (∀ i, κ i) ≃* ∀ i, PreQuasiregular (κ i) where\n toFun := fun x i => .mk <| x.val i\n invFun := fun x => .mk <| fun i => (x i).val\n map_mul' _ _ := rfl\n\nvariable (A B) in\n/-- The equivalence between pre-quasiregular elements of a product and the product of\npre-quasiregular elements. -/\ndef PreQuasiregular.toProd [NonUnitalSemiring A] [NonUnitalSemiring B] :\n PreQuasiregular (A × B) ≃* PreQuasiregular A × PreQuasiregular B where\n toFun := fun p => ⟨.mk p.val.1, .mk p.val.2⟩\n invFun := fun ⟨a, b⟩ => .mk ⟨a.val, b.val⟩\n map_mul' _ _ := rfl\n\nlemma isQuasiregular_pi_iff [∀ i, NonUnitalSemiring (κ i)] (x : ∀ i, κ i) :\n IsQuasiregular x ↔ ∀ i, IsQuasiregular (x i) := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toPi κ), Pi.isUnit_iff]\n congr!\n\nlemma isQuasiregular_prod_iff [NonUnitalSemiring A] [NonUnitalSemiring B] (a : A) (b : B) :\n IsQuasiregular (⟨a, b⟩ : A × B) ↔ IsQuasiregular a ∧ IsQuasiregular b := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toProd A B), Prod.isUnit_iff]\n congr!\n\nlemma quasispectrum.mem_iff_of_isUnit [CommSemiring R] [NonUnitalRing A]\n [Module R A] {a : A} {r : R} (hr : IsUnit r) :\n r ∈ quasispectrum R a ↔ ¬ IsQuasiregular (-(hr.unit⁻¹ • a)) :=\n ⟨fun h => h hr, fun h _ => h⟩\n\nend quasiregular\n\nsection spectrum\n\nlemma Pi.spectrum_eq [CommSemiring R] [∀ i, Ring (κ i)] [∀ i, Algebra R (κ i)]\n (a : ∀ i, κ i) : spectrum R a = ⋃ i, spectrum R (a i) := by\n apply compl_injective\n simp_rw [spectrum, Set.compl_iUnion, compl_compl, resolventSet, Set.iInter_setOf,\n Pi.isUnit_iff, sub_apply, algebraMap_apply]","module_header":true,"namespace":"","prompt":"Return exactly one Lean proof body beginning with `by`. Do not emit prose, fences, declarations, sorry, admit, by?, or warnings.\n\nImports:\npublic import Mathlib.Algebra.Algebra.Spectrum.Quasispectrum\npublic import Mathlib.Algebra.Algebra.Pi\npublic import Mathlib.Algebra.Algebra.Prod\npublic import Mathlib.Algebra.Group.Pi.Units\n\nNamespace:\n(root)\n\nLocal context:\n/-\nCopyright (c) 2025 Frédéric Dupuis. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Frédéric Dupuis\n-/\n/-!\n# Spectrum and quasispectrum of products\n\nThis file contains results regarding the spectra and quasispectra of (indexed) products of\nelements of a (non-unital) ring. The main result is that the (quasi)spectrum of a product is the\nunion of the (quasi)spectra.\n\n## Main declarations\n\n+ `Pi.spectrum_eq`: `spectrum R a = ⋃ i, spectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.spectrum_eq`: `spectrum R ⟨a, b⟩ = spectrum R a ∪ spectrum R b`\n+ `Pi.quasispectrum_eq`: `quasispectrum R a = ⋃ i, quasispectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.quasispectrum_eq`: `quasispectrum R ⟨a, b⟩ = quasispectrum R a ∪ quasispectrum R b`\n\n## TODO\n\n+ Apply these results to block matrices.\n\n-/\n\n@[expose] public section\n\nvariable {ι A B R : Type*} {κ : ι → Type*}\n\nsection quasiregular\n\nvariable (κ) in\n/-- The equivalence between pre-quasiregular elements of an indexed product and the indexed product\nof pre-quasiregular elements. -/\ndef PreQuasiregular.toPi [∀ i, NonUnitalSemiring (κ i)] :\n PreQuasiregular (∀ i, κ i) ≃* ∀ i, PreQuasiregular (κ i) where\n toFun := fun x i => .mk <| x.val i\n invFun := fun x => .mk <| fun i => (x i).val\n map_mul' _ _ := rfl\n\nvariable (A B) in\n/-- The equivalence between pre-quasiregular elements of a product and the product of\npre-quasiregular elements. -/\ndef PreQuasiregular.toProd [NonUnitalSemiring A] [NonUnitalSemiring B] :\n PreQuasiregular (A × B) ≃* PreQuasiregular A × PreQuasiregular B where\n toFun := fun p => ⟨.mk p.val.1, .mk p.val.2⟩\n invFun := fun ⟨a, b⟩ => .mk ⟨a.val, b.val⟩\n map_mul' _ _ := rfl\n\nlemma isQuasiregular_pi_iff [∀ i, NonUnitalSemiring (κ i)] (x : ∀ i, κ i) :\n IsQuasiregular x ↔ ∀ i, IsQuasiregular (x i) := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toPi κ), Pi.isUnit_iff]\n congr!\n\nlemma isQuasiregular_prod_iff [NonUnitalSemiring A] [NonUnitalSemiring B] (a : A) (b : B) :\n IsQuasiregular (⟨a, b⟩ : A × B) ↔ IsQuasiregular a ∧ IsQuasiregular b := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toProd A B), Prod.isUnit_iff]\n congr!\n\nlemma quasispectrum.mem_iff_of_isUnit [CommSemiring R] [NonUnitalRing A]\n [Module R A] {a : A} {r : R} (hr : IsUnit r) :\n r ∈ quasispectrum R a ↔ ¬ IsQuasiregular (-(hr.unit⁻¹ • a)) :=\n ⟨fun h => h hr, fun h _ => h⟩\n\nend quasiregular\n\nsection spectrum\n\nlemma Pi.spectrum_eq [CommSemiring R] [∀ i, Ring (κ i)] [∀ i, Algebra R (κ i)]\n (a : ∀ i, κ i) : spectrum R a = ⋃ i, spectrum R (a i) := by\n apply compl_injective\n simp_rw [spectrum, Set.compl_iUnion, compl_compl, resolventSet, Set.iInter_setOf,\n Pi.isUnit_iff, sub_apply, algebraMap_apply]\n\nTarget:\nlemma Prod.spectrum_eq [CommSemiring R] [Ring A] [Ring B] [Algebra R A] [Algebra R B]\n (a : A) (b : B) : spectrum R (⟨a, b⟩ : A × B) = spectrum R a ∪ spectrum R b :=\n\nProof body:\n","proof_body":"by\n apply compl_injective\n simp_rw [spectrum, Set.compl_union, compl_compl, resolventSet, ← Set.setOf_and,\n Prod.isUnit_iff, algebraMap_apply, mk_sub_mk]","provenance":{"declaration_index":4,"environment_hash":"08dda26699fe1025520aeb9450ff1df6b58e8ef0aa8100ae158997e8a703b831","lean_toolchain":"leanprover/lean4:v4.32.0-rc1","license":"Apache-2.0","original_import_scope":"module-specific","source_revision":"360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56","source_sha256":"0d65cd408ba3ccaf81729c961d8511b6d67a96ec0a7074d049183ed008f4c88f","source_uri":"https://github.com/leanprover-community/mathlib4/blob/360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56/Mathlib/Algebra/Algebra/Spectrum/Pi.lean"},"sample_id":"4437f79f0831fed1db68e57eb2c705b73f9c07100caaf60fb856e078d7bd6ebf","schema_version":1,"split":"validation","theorem_statement":"lemma Prod.spectrum_eq [CommSemiring R] [Ring A] [Ring B] [Algebra R A] [Algebra R B]\n (a : A) (b : B) : spectrum R (⟨a, b⟩ : A × B) = spectrum R a ∪ spectrum R b :="}
|
| 5 |
+
{"completion":"by\n ext r\n simp only [quasispectrum, Set.mem_setOf_eq, Set.mem_iUnion]\n by_cases hr : IsUnit r\n · lift r to Rˣ using hr with r' hr'\n simp [isQuasiregular_pi_iff]\n · simp [hr]","context_contains_namespace":false,"context_suffix":"end spectrum","dependency_ids":["import:Mathlib.Algebra.Algebra.Spectrum.Quasispectrum","import:Mathlib.Algebra.Algebra.Pi","import:Mathlib.Algebra.Algebra.Prod","import:Mathlib.Algebra.Group.Pi.Units"],"family_id":"pi","file_id":"mathlib/Mathlib/Algebra/Algebra/Spectrum/Pi.lean","imports":["public import Mathlib.Algebra.Algebra.Spectrum.Quasispectrum","public import Mathlib.Algebra.Algebra.Pi","public import Mathlib.Algebra.Algebra.Prod","public import Mathlib.Algebra.Group.Pi.Units"],"local_context":"/-\nCopyright (c) 2025 Frédéric Dupuis. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Frédéric Dupuis\n-/\n/-!\n# Spectrum and quasispectrum of products\n\nThis file contains results regarding the spectra and quasispectra of (indexed) products of\nelements of a (non-unital) ring. The main result is that the (quasi)spectrum of a product is the\nunion of the (quasi)spectra.\n\n## Main declarations\n\n+ `Pi.spectrum_eq`: `spectrum R a = ⋃ i, spectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.spectrum_eq`: `spectrum R ⟨a, b⟩ = spectrum R a ∪ spectrum R b`\n+ `Pi.quasispectrum_eq`: `quasispectrum R a = ⋃ i, quasispectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.quasispectrum_eq`: `quasispectrum R ⟨a, b⟩ = quasispectrum R a ∪ quasispectrum R b`\n\n## TODO\n\n+ Apply these results to block matrices.\n\n-/\n\n@[expose] public section\n\nvariable {ι A B R : Type*} {κ : ι → Type*}\n\nsection quasiregular\n\nvariable (κ) in\n/-- The equivalence between pre-quasiregular elements of an indexed product and the indexed product\nof pre-quasiregular elements. -/\ndef PreQuasiregular.toPi [∀ i, NonUnitalSemiring (κ i)] :\n PreQuasiregular (∀ i, κ i) ≃* ∀ i, PreQuasiregular (κ i) where\n toFun := fun x i => .mk <| x.val i\n invFun := fun x => .mk <| fun i => (x i).val\n map_mul' _ _ := rfl\n\nvariable (A B) in\n/-- The equivalence between pre-quasiregular elements of a product and the product of\npre-quasiregular elements. -/\ndef PreQuasiregular.toProd [NonUnitalSemiring A] [NonUnitalSemiring B] :\n PreQuasiregular (A × B) ≃* PreQuasiregular A × PreQuasiregular B where\n toFun := fun p => ⟨.mk p.val.1, .mk p.val.2⟩\n invFun := fun ⟨a, b⟩ => .mk ⟨a.val, b.val⟩\n map_mul' _ _ := rfl\n\nlemma isQuasiregular_pi_iff [∀ i, NonUnitalSemiring (κ i)] (x : ∀ i, κ i) :\n IsQuasiregular x ↔ ∀ i, IsQuasiregular (x i) := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toPi κ), Pi.isUnit_iff]\n congr!\n\nlemma isQuasiregular_prod_iff [NonUnitalSemiring A] [NonUnitalSemiring B] (a : A) (b : B) :\n IsQuasiregular (⟨a, b⟩ : A × B) ↔ IsQuasiregular a ∧ IsQuasiregular b := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toProd A B), Prod.isUnit_iff]\n congr!\n\nlemma quasispectrum.mem_iff_of_isUnit [CommSemiring R] [NonUnitalRing A]\n [Module R A] {a : A} {r : R} (hr : IsUnit r) :\n r ∈ quasispectrum R a ↔ ¬ IsQuasiregular (-(hr.unit⁻¹ • a)) :=\n ⟨fun h => h hr, fun h _ => h⟩\n\nend quasiregular\n\nsection spectrum\n\nlemma Pi.spectrum_eq [CommSemiring R] [∀ i, Ring (κ i)] [∀ i, Algebra R (κ i)]\n (a : ∀ i, κ i) : spectrum R a = ⋃ i, spectrum R (a i) := by\n apply compl_injective\n simp_rw [spectrum, Set.compl_iUnion, compl_compl, resolventSet, Set.iInter_setOf,\n Pi.isUnit_iff, sub_apply, algebraMap_apply]\n\nlemma Prod.spectrum_eq [CommSemiring R] [Ring A] [Ring B] [Algebra R A] [Algebra R B]\n (a : A) (b : B) : spectrum R (⟨a, b⟩ : A × B) = spectrum R a ∪ spectrum R b := by\n apply compl_injective\n simp_rw [spectrum, Set.compl_union, compl_compl, resolventSet, ← Set.setOf_and,\n Prod.isUnit_iff, algebraMap_apply, mk_sub_mk]","module_header":true,"namespace":"","prompt":"Return exactly one Lean proof body beginning with `by`. Do not emit prose, fences, declarations, sorry, admit, by?, or warnings.\n\nImports:\npublic import Mathlib.Algebra.Algebra.Spectrum.Quasispectrum\npublic import Mathlib.Algebra.Algebra.Pi\npublic import Mathlib.Algebra.Algebra.Prod\npublic import Mathlib.Algebra.Group.Pi.Units\n\nNamespace:\n(root)\n\nLocal context:\n/-\nCopyright (c) 2025 Frédéric Dupuis. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Frédéric Dupuis\n-/\n/-!\n# Spectrum and quasispectrum of products\n\nThis file contains results regarding the spectra and quasispectra of (indexed) products of\nelements of a (non-unital) ring. The main result is that the (quasi)spectrum of a product is the\nunion of the (quasi)spectra.\n\n## Main declarations\n\n+ `Pi.spectrum_eq`: `spectrum R a = ⋃ i, spectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.spectrum_eq`: `spectrum R ⟨a, b⟩ = spectrum R a ∪ spectrum R b`\n+ `Pi.quasispectrum_eq`: `quasispectrum R a = ⋃ i, quasispectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.quasispectrum_eq`: `quasispectrum R ⟨a, b⟩ = quasispectrum R a ∪ quasispectrum R b`\n\n## TODO\n\n+ Apply these results to block matrices.\n\n-/\n\n@[expose] public section\n\nvariable {ι A B R : Type*} {κ : ι → Type*}\n\nsection quasiregular\n\nvariable (κ) in\n/-- The equivalence between pre-quasiregular elements of an indexed product and the indexed product\nof pre-quasiregular elements. -/\ndef PreQuasiregular.toPi [∀ i, NonUnitalSemiring (κ i)] :\n PreQuasiregular (∀ i, κ i) ≃* ∀ i, PreQuasiregular (κ i) where\n toFun := fun x i => .mk <| x.val i\n invFun := fun x => .mk <| fun i => (x i).val\n map_mul' _ _ := rfl\n\nvariable (A B) in\n/-- The equivalence between pre-quasiregular elements of a product and the product of\npre-quasiregular elements. -/\ndef PreQuasiregular.toProd [NonUnitalSemiring A] [NonUnitalSemiring B] :\n PreQuasiregular (A × B) ≃* PreQuasiregular A × PreQuasiregular B where\n toFun := fun p => ⟨.mk p.val.1, .mk p.val.2⟩\n invFun := fun ⟨a, b⟩ => .mk ⟨a.val, b.val⟩\n map_mul' _ _ := rfl\n\nlemma isQuasiregular_pi_iff [∀ i, NonUnitalSemiring (κ i)] (x : ∀ i, κ i) :\n IsQuasiregular x ↔ ∀ i, IsQuasiregular (x i) := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toPi κ), Pi.isUnit_iff]\n congr!\n\nlemma isQuasiregular_prod_iff [NonUnitalSemiring A] [NonUnitalSemiring B] (a : A) (b : B) :\n IsQuasiregular (⟨a, b⟩ : A × B) ↔ IsQuasiregular a ∧ IsQuasiregular b := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toProd A B), Prod.isUnit_iff]\n congr!\n\nlemma quasispectrum.mem_iff_of_isUnit [CommSemiring R] [NonUnitalRing A]\n [Module R A] {a : A} {r : R} (hr : IsUnit r) :\n r ∈ quasispectrum R a ↔ ¬ IsQuasiregular (-(hr.unit⁻¹ • a)) :=\n ⟨fun h => h hr, fun h _ => h⟩\n\nend quasiregular\n\nsection spectrum\n\nlemma Pi.spectrum_eq [CommSemiring R] [∀ i, Ring (κ i)] [∀ i, Algebra R (κ i)]\n (a : ∀ i, κ i) : spectrum R a = ⋃ i, spectrum R (a i) := by\n apply compl_injective\n simp_rw [spectrum, Set.compl_iUnion, compl_compl, resolventSet, Set.iInter_setOf,\n Pi.isUnit_iff, sub_apply, algebraMap_apply]\n\nlemma Prod.spectrum_eq [CommSemiring R] [Ring A] [Ring B] [Algebra R A] [Algebra R B]\n (a : A) (b : B) : spectrum R (⟨a, b⟩ : A × B) = spectrum R a ∪ spectrum R b := by\n apply compl_injective\n simp_rw [spectrum, Set.compl_union, compl_compl, resolventSet, ← Set.setOf_and,\n Prod.isUnit_iff, algebraMap_apply, mk_sub_mk]\n\nTarget:\nlemma Pi.quasispectrum_eq [Nonempty ι] [CommSemiring R] [∀ i, NonUnitalRing (κ i)]\n [∀ i, Module R (κ i)] (a : ∀ i, κ i) :\n quasispectrum R a = ⋃ i, quasispectrum R (a i) :=\n\nProof body:\n","proof_body":"by\n ext r\n simp only [quasispectrum, Set.mem_setOf_eq, Set.mem_iUnion]\n by_cases hr : IsUnit r\n · lift r to Rˣ using hr with r' hr'\n simp [isQuasiregular_pi_iff]\n · simp [hr]","provenance":{"declaration_index":5,"environment_hash":"08dda26699fe1025520aeb9450ff1df6b58e8ef0aa8100ae158997e8a703b831","lean_toolchain":"leanprover/lean4:v4.32.0-rc1","license":"Apache-2.0","original_import_scope":"module-specific","source_revision":"360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56","source_sha256":"0d65cd408ba3ccaf81729c961d8511b6d67a96ec0a7074d049183ed008f4c88f","source_uri":"https://github.com/leanprover-community/mathlib4/blob/360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56/Mathlib/Algebra/Algebra/Spectrum/Pi.lean"},"sample_id":"919deb7237f6b3557e2cec7139da36e4fd10b803914962db235f3290255c1da9","schema_version":1,"split":"validation","theorem_statement":"lemma Pi.quasispectrum_eq [Nonempty ι] [CommSemiring R] [∀ i, NonUnitalRing (κ i)]\n [∀ i, Module R (κ i)] (a : ∀ i, κ i) :\n quasispectrum R a = ⋃ i, quasispectrum R (a i) :="}
|
| 6 |
+
{"completion":"by\n apply compl_injective\n ext r\n simp only [quasispectrum, Set.mem_compl_iff, Set.mem_setOf_eq, not_forall, not_not, Set.mem_union]\n by_cases hr : IsUnit r\n · lift r to Rˣ using hr with r' hr'\n simp [isQuasiregular_prod_iff]\n · simp [hr]","context_contains_namespace":false,"context_suffix":"end spectrum","dependency_ids":["import:Mathlib.Algebra.Algebra.Spectrum.Quasispectrum","import:Mathlib.Algebra.Algebra.Pi","import:Mathlib.Algebra.Algebra.Prod","import:Mathlib.Algebra.Group.Pi.Units"],"family_id":"prod","file_id":"mathlib/Mathlib/Algebra/Algebra/Spectrum/Pi.lean","imports":["public import Mathlib.Algebra.Algebra.Spectrum.Quasispectrum","public import Mathlib.Algebra.Algebra.Pi","public import Mathlib.Algebra.Algebra.Prod","public import Mathlib.Algebra.Group.Pi.Units"],"local_context":"/-\nCopyright (c) 2025 Frédéric Dupuis. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Frédéric Dupuis\n-/\n/-!\n# Spectrum and quasispectrum of products\n\nThis file contains results regarding the spectra and quasispectra of (indexed) products of\nelements of a (non-unital) ring. The main result is that the (quasi)spectrum of a product is the\nunion of the (quasi)spectra.\n\n## Main declarations\n\n+ `Pi.spectrum_eq`: `spectrum R a = ⋃ i, spectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.spectrum_eq`: `spectrum R ⟨a, b⟩ = spectrum R a ∪ spectrum R b`\n+ `Pi.quasispectrum_eq`: `quasispectrum R a = ⋃ i, quasispectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.quasispectrum_eq`: `quasispectrum R ⟨a, b⟩ = quasispectrum R a ∪ quasispectrum R b`\n\n## TODO\n\n+ Apply these results to block matrices.\n\n-/\n\n@[expose] public section\n\nvariable {ι A B R : Type*} {κ : ι → Type*}\n\nsection quasiregular\n\nvariable (κ) in\n/-- The equivalence between pre-quasiregular elements of an indexed product and the indexed product\nof pre-quasiregular elements. -/\ndef PreQuasiregular.toPi [∀ i, NonUnitalSemiring (κ i)] :\n PreQuasiregular (∀ i, κ i) ≃* ∀ i, PreQuasiregular (κ i) where\n toFun := fun x i => .mk <| x.val i\n invFun := fun x => .mk <| fun i => (x i).val\n map_mul' _ _ := rfl\n\nvariable (A B) in\n/-- The equivalence between pre-quasiregular elements of a product and the product of\npre-quasiregular elements. -/\ndef PreQuasiregular.toProd [NonUnitalSemiring A] [NonUnitalSemiring B] :\n PreQuasiregular (A × B) ≃* PreQuasiregular A × PreQuasiregular B where\n toFun := fun p => ⟨.mk p.val.1, .mk p.val.2⟩\n invFun := fun ⟨a, b⟩ => .mk ⟨a.val, b.val⟩\n map_mul' _ _ := rfl\n\nlemma isQuasiregular_pi_iff [∀ i, NonUnitalSemiring (κ i)] (x : ∀ i, κ i) :\n IsQuasiregular x ↔ ∀ i, IsQuasiregular (x i) := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toPi κ), Pi.isUnit_iff]\n congr!\n\nlemma isQuasiregular_prod_iff [NonUnitalSemiring A] [NonUnitalSemiring B] (a : A) (b : B) :\n IsQuasiregular (⟨a, b⟩ : A × B) ↔ IsQuasiregular a ∧ IsQuasiregular b := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toProd A B), Prod.isUnit_iff]\n congr!\n\nlemma quasispectrum.mem_iff_of_isUnit [CommSemiring R] [NonUnitalRing A]\n [Module R A] {a : A} {r : R} (hr : IsUnit r) :\n r ∈ quasispectrum R a ↔ ¬ IsQuasiregular (-(hr.unit⁻¹ • a)) :=\n ⟨fun h => h hr, fun h _ => h⟩\n\nend quasiregular\n\nsection spectrum\n\nlemma Pi.spectrum_eq [CommSemiring R] [∀ i, Ring (κ i)] [∀ i, Algebra R (κ i)]\n (a : ∀ i, κ i) : spectrum R a = ⋃ i, spectrum R (a i) := by\n apply compl_injective\n simp_rw [spectrum, Set.compl_iUnion, compl_compl, resolventSet, Set.iInter_setOf,\n Pi.isUnit_iff, sub_apply, algebraMap_apply]\n\nlemma Prod.spectrum_eq [CommSemiring R] [Ring A] [Ring B] [Algebra R A] [Algebra R B]\n (a : A) (b : B) : spectrum R (⟨a, b⟩ : A × B) = spectrum R a ∪ spectrum R b := by\n apply compl_injective\n simp_rw [spectrum, Set.compl_union, compl_compl, resolventSet, ← Set.setOf_and,\n Prod.isUnit_iff, algebraMap_apply, mk_sub_mk]\n\nlemma Pi.quasispectrum_eq [Nonempty ι] [CommSemiring R] [∀ i, NonUnitalRing (κ i)]\n [∀ i, Module R (κ i)] (a : ∀ i, κ i) :\n quasispectrum R a = ⋃ i, quasispectrum R (a i) := by\n ext r\n simp only [quasispectrum, Set.mem_setOf_eq, Set.mem_iUnion]\n by_cases hr : IsUnit r\n · lift r to Rˣ using hr with r' hr'\n simp [isQuasiregular_pi_iff]\n · simp [hr]","module_header":true,"namespace":"","prompt":"Return exactly one Lean proof body beginning with `by`. Do not emit prose, fences, declarations, sorry, admit, by?, or warnings.\n\nImports:\npublic import Mathlib.Algebra.Algebra.Spectrum.Quasispectrum\npublic import Mathlib.Algebra.Algebra.Pi\npublic import Mathlib.Algebra.Algebra.Prod\npublic import Mathlib.Algebra.Group.Pi.Units\n\nNamespace:\n(root)\n\nLocal context:\n/-\nCopyright (c) 2025 Frédéric Dupuis. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Frédéric Dupuis\n-/\n/-!\n# Spectrum and quasispectrum of products\n\nThis file contains results regarding the spectra and quasispectra of (indexed) products of\nelements of a (non-unital) ring. The main result is that the (quasi)spectrum of a product is the\nunion of the (quasi)spectra.\n\n## Main declarations\n\n+ `Pi.spectrum_eq`: `spectrum R a = ⋃ i, spectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.spectrum_eq`: `spectrum R ⟨a, b⟩ = spectrum R a ∪ spectrum R b`\n+ `Pi.quasispectrum_eq`: `quasispectrum R a = ⋃ i, quasispectrum R (a i)` for `a : ∀ i, κ i`\n+ `Prod.quasispectrum_eq`: `quasispectrum R ⟨a, b⟩ = quasispectrum R a ∪ quasispectrum R b`\n\n## TODO\n\n+ Apply these results to block matrices.\n\n-/\n\n@[expose] public section\n\nvariable {ι A B R : Type*} {κ : ι → Type*}\n\nsection quasiregular\n\nvariable (κ) in\n/-- The equivalence between pre-quasiregular elements of an indexed product and the indexed product\nof pre-quasiregular elements. -/\ndef PreQuasiregular.toPi [∀ i, NonUnitalSemiring (κ i)] :\n PreQuasiregular (∀ i, κ i) ≃* ∀ i, PreQuasiregular (κ i) where\n toFun := fun x i => .mk <| x.val i\n invFun := fun x => .mk <| fun i => (x i).val\n map_mul' _ _ := rfl\n\nvariable (A B) in\n/-- The equivalence between pre-quasiregular elements of a product and the product of\npre-quasiregular elements. -/\ndef PreQuasiregular.toProd [NonUnitalSemiring A] [NonUnitalSemiring B] :\n PreQuasiregular (A × B) ≃* PreQuasiregular A × PreQuasiregular B where\n toFun := fun p => ⟨.mk p.val.1, .mk p.val.2⟩\n invFun := fun ⟨a, b⟩ => .mk ⟨a.val, b.val⟩\n map_mul' _ _ := rfl\n\nlemma isQuasiregular_pi_iff [∀ i, NonUnitalSemiring (κ i)] (x : ∀ i, κ i) :\n IsQuasiregular x ↔ ∀ i, IsQuasiregular (x i) := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toPi κ), Pi.isUnit_iff]\n congr!\n\nlemma isQuasiregular_prod_iff [NonUnitalSemiring A] [NonUnitalSemiring B] (a : A) (b : B) :\n IsQuasiregular (⟨a, b⟩ : A × B) ↔ IsQuasiregular a ∧ IsQuasiregular b := by\n simp only [isQuasiregular_iff', ← isUnit_map_iff (PreQuasiregular.toProd A B), Prod.isUnit_iff]\n congr!\n\nlemma quasispectrum.mem_iff_of_isUnit [CommSemiring R] [NonUnitalRing A]\n [Module R A] {a : A} {r : R} (hr : IsUnit r) :\n r ∈ quasispectrum R a ↔ ¬ IsQuasiregular (-(hr.unit⁻¹ • a)) :=\n ⟨fun h => h hr, fun h _ => h⟩\n\nend quasiregular\n\nsection spectrum\n\nlemma Pi.spectrum_eq [CommSemiring R] [∀ i, Ring (κ i)] [∀ i, Algebra R (κ i)]\n (a : ∀ i, κ i) : spectrum R a = ⋃ i, spectrum R (a i) := by\n apply compl_injective\n simp_rw [spectrum, Set.compl_iUnion, compl_compl, resolventSet, Set.iInter_setOf,\n Pi.isUnit_iff, sub_apply, algebraMap_apply]\n\nlemma Prod.spectrum_eq [CommSemiring R] [Ring A] [Ring B] [Algebra R A] [Algebra R B]\n (a : A) (b : B) : spectrum R (⟨a, b⟩ : A × B) = spectrum R a ∪ spectrum R b := by\n apply compl_injective\n simp_rw [spectrum, Set.compl_union, compl_compl, resolventSet, ← Set.setOf_and,\n Prod.isUnit_iff, algebraMap_apply, mk_sub_mk]\n\nlemma Pi.quasispectrum_eq [Nonempty ι] [CommSemiring R] [∀ i, NonUnitalRing (κ i)]\n [∀ i, Module R (κ i)] (a : ∀ i, κ i) :\n quasispectrum R a = ⋃ i, quasispectrum R (a i) := by\n ext r\n simp only [quasispectrum, Set.mem_setOf_eq, Set.mem_iUnion]\n by_cases hr : IsUnit r\n · lift r to Rˣ using hr with r' hr'\n simp [isQuasiregular_pi_iff]\n · simp [hr]\n\nTarget:\nlemma Prod.quasispectrum_eq [CommSemiring R] [NonUnitalRing A] [NonUnitalRing B]\n [Module R A] [Module R B] (a : A) (b : B) :\n quasispectrum R (⟨a, b⟩ : A × B) = quasispectrum R a ∪ quasispectrum R b :=\n\nProof body:\n","proof_body":"by\n apply compl_injective\n ext r\n simp only [quasispectrum, Set.mem_compl_iff, Set.mem_setOf_eq, not_forall, not_not, Set.mem_union]\n by_cases hr : IsUnit r\n · lift r to Rˣ using hr with r' hr'\n simp [isQuasiregular_prod_iff]\n · simp [hr]","provenance":{"declaration_index":6,"environment_hash":"08dda26699fe1025520aeb9450ff1df6b58e8ef0aa8100ae158997e8a703b831","lean_toolchain":"leanprover/lean4:v4.32.0-rc1","license":"Apache-2.0","original_import_scope":"module-specific","source_revision":"360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56","source_sha256":"0d65cd408ba3ccaf81729c961d8511b6d67a96ec0a7074d049183ed008f4c88f","source_uri":"https://github.com/leanprover-community/mathlib4/blob/360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56/Mathlib/Algebra/Algebra/Spectrum/Pi.lean"},"sample_id":"400b378bc830b056c88b2825fa673b3207daaf0827ad62b8040c13bb2173ff40","schema_version":1,"split":"validation","theorem_statement":"lemma Prod.quasispectrum_eq [CommSemiring R] [NonUnitalRing A] [NonUnitalRing B]\n [Module R A] [Module R B] (a : A) (b : B) :\n quasispectrum R (⟨a, b⟩ : A × B) = quasispectrum R a ∪ quasispectrum R b :="}
|
| 7 |
+
{"completion":"by ext; rfl","context_contains_namespace":true,"context_suffix":"end AlgHom","dependency_ids":["import:Mathlib.Algebra.Algebra.Equiv","import:Mathlib.Algebra.Algebra.Hom","import:Mathlib.Algebra.Module.Prod"],"family_id":"fst_prod","file_id":"mathlib/Mathlib/Algebra/Algebra/Prod.lean","imports":["public import Mathlib.Algebra.Algebra.Equiv","public import Mathlib.Algebra.Algebra.Hom","public import Mathlib.Algebra.Module.Prod"],"local_context":"/-\nCopyright (c) 2018 Kenny Lau. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Kenny Lau, Yury Kudryashov\n-/\n/-!\n# The R-algebra structure on products of R-algebras\n\nThe R-algebra structure on `(i : I) → A i` when each `A i` is an R-algebra.\n\n## Main definitions\n\n* `Prod.algebra`\n* `AlgHom.fst`\n* `AlgHom.snd`\n* `AlgHom.prod`\n* `AlgEquiv.prodUnique` and `AlgEquiv.uniqueProd`\n-/\n\n@[expose] public section\n\n\nvariable {R A B C : Type*}\nvariable [CommSemiring R]\nvariable [Semiring A] [Algebra R A] [Semiring B] [Algebra R B] [Semiring C] [Algebra R C]\n\nnamespace Prod\n\nvariable (R A B)\n\nopen Algebra\n\ninstance algebra : Algebra R (A × B) where\n algebraMap := RingHom.prod (algebraMap R A) (algebraMap R B)\n commutes' := by\n rintro r ⟨a, b⟩\n dsimp\n rw [commutes r a, commutes r b]\n smul_def' := by\n rintro r ⟨a, b⟩\n dsimp\n rw [Algebra.smul_def r a, Algebra.smul_def r b]\n\nvariable {R A B}\n\n@[simp]\ntheorem algebraMap_apply (r : R) : algebraMap R (A × B) r = (algebraMap R A r, algebraMap R B r) :=\n rfl\n\nend Prod\n\nnamespace AlgHom\n\nvariable (R A B)\n\n/-- First projection as `AlgHom`. -/\ndef fst : A × B →ₐ[R] A :=\n { RingHom.fst A B with commutes' := fun _r => rfl }\n\n/-- Second projection as `AlgHom`. -/\ndef snd : A × B →ₐ[R] B :=\n { RingHom.snd A B with commutes' := fun _r => rfl }\n\nvariable {A B}\n\n@[simp]\ntheorem fst_apply (a) : fst R A B a = a.1 := rfl\n\n@[simp]\ntheorem snd_apply (a) : snd R A B a = a.2 := rfl\n\nvariable {R}\n\n/-- The `Function.prod` of two morphisms is a morphism. -/\n@[simps!]\ndef prod (f : A →ₐ[R] B) (g : A →ₐ[R] C) : A →ₐ[R] B × C :=\n { f.toRingHom.prod g.toRingHom with\n commutes' := fun r => by\n simp only [toRingHom_eq_coe, RingHom.toFun_eq_coe, RingHom.prod_apply, coe_toRingHom,\n commutes, Prod.algebraMap_apply] }\n\ntheorem coe_prod (f : A →ₐ[R] B) (g : A →ₐ[R] C) : ⇑(f.prod g) = Function.prod f g :=\n rfl\n\n@[simp]","module_header":true,"namespace":"AlgHom","prompt":"Return exactly one Lean proof body beginning with `by`. Do not emit prose, fences, declarations, sorry, admit, by?, or warnings.\n\nImports:\npublic import Mathlib.Algebra.Algebra.Equiv\npublic import Mathlib.Algebra.Algebra.Hom\npublic import Mathlib.Algebra.Module.Prod\n\nNamespace:\nAlgHom\n\nLocal context:\n/-\nCopyright (c) 2018 Kenny Lau. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Kenny Lau, Yury Kudryashov\n-/\n/-!\n# The R-algebra structure on products of R-algebras\n\nThe R-algebra structure on `(i : I) → A i` when each `A i` is an R-algebra.\n\n## Main definitions\n\n* `Prod.algebra`\n* `AlgHom.fst`\n* `AlgHom.snd`\n* `AlgHom.prod`\n* `AlgEquiv.prodUnique` and `AlgEquiv.uniqueProd`\n-/\n\n@[expose] public section\n\n\nvariable {R A B C : Type*}\nvariable [CommSemiring R]\nvariable [Semiring A] [Algebra R A] [Semiring B] [Algebra R B] [Semiring C] [Algebra R C]\n\nnamespace Prod\n\nvariable (R A B)\n\nopen Algebra\n\ninstance algebra : Algebra R (A × B) where\n algebraMap := RingHom.prod (algebraMap R A) (algebraMap R B)\n commutes' := by\n rintro r ⟨a, b⟩\n dsimp\n rw [commutes r a, commutes r b]\n smul_def' := by\n rintro r ⟨a, b⟩\n dsimp\n rw [Algebra.smul_def r a, Algebra.smul_def r b]\n\nvariable {R A B}\n\n@[simp]\ntheorem algebraMap_apply (r : R) : algebraMap R (A × B) r = (algebraMap R A r, algebraMap R B r) :=\n rfl\n\nend Prod\n\nnamespace AlgHom\n\nvariable (R A B)\n\n/-- First projection as `AlgHom`. -/\ndef fst : A × B →ₐ[R] A :=\n { RingHom.fst A B with commutes' := fun _r => rfl }\n\n/-- Second projection as `AlgHom`. -/\ndef snd : A × B →ₐ[R] B :=\n { RingHom.snd A B with commutes' := fun _r => rfl }\n\nvariable {A B}\n\n@[simp]\ntheorem fst_apply (a) : fst R A B a = a.1 := rfl\n\n@[simp]\ntheorem snd_apply (a) : snd R A B a = a.2 := rfl\n\nvariable {R}\n\n/-- The `Function.prod` of two morphisms is a morphism. -/\n@[simps!]\ndef prod (f : A →ₐ[R] B) (g : A →ₐ[R] C) : A →ₐ[R] B × C :=\n { f.toRingHom.prod g.toRingHom with\n commutes' := fun r => by\n simp only [toRingHom_eq_coe, RingHom.toFun_eq_coe, RingHom.prod_apply, coe_toRingHom,\n commutes, Prod.algebraMap_apply] }\n\ntheorem coe_prod (f : A →ₐ[R] B) (g : A →ₐ[R] C) : ⇑(f.prod g) = Function.prod f g :=\n rfl\n\n@[simp]\n\nTarget:\ntheorem fst_prod (f : A →ₐ[R] B) (g : A →ₐ[R] C) : (fst R B C).comp (prod f g) = f :=\n\nProof body:\n","proof_body":"by ext; rfl","provenance":{"declaration_index":4,"environment_hash":"08dda26699fe1025520aeb9450ff1df6b58e8ef0aa8100ae158997e8a703b831","lean_toolchain":"leanprover/lean4:v4.32.0-rc1","license":"Apache-2.0","original_import_scope":"module-specific","source_revision":"360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56","source_sha256":"b6134f22a0e156e48f481972775e2d71b8277abd8965b433c4b00b89d0f5061b","source_uri":"https://github.com/leanprover-community/mathlib4/blob/360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56/Mathlib/Algebra/Algebra/Prod.lean"},"sample_id":"920ed1863115de5c18fdbca61d160068dd409915ea6c39b91c25eaa01238c167","schema_version":1,"split":"validation","theorem_statement":"theorem fst_prod (f : A →ₐ[R] B) (g : A →ₐ[R] C) : (fst R B C).comp (prod f g) = f :="}
|
| 8 |
+
{"completion":"by ext; rfl","context_contains_namespace":true,"context_suffix":"end AlgHom","dependency_ids":["import:Mathlib.Algebra.Algebra.Equiv","import:Mathlib.Algebra.Algebra.Hom","import:Mathlib.Algebra.Module.Prod"],"family_id":"snd_prod","file_id":"mathlib/Mathlib/Algebra/Algebra/Prod.lean","imports":["public import Mathlib.Algebra.Algebra.Equiv","public import Mathlib.Algebra.Algebra.Hom","public import Mathlib.Algebra.Module.Prod"],"local_context":"/-\nCopyright (c) 2018 Kenny Lau. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Kenny Lau, Yury Kudryashov\n-/\n/-!\n# The R-algebra structure on products of R-algebras\n\nThe R-algebra structure on `(i : I) → A i` when each `A i` is an R-algebra.\n\n## Main definitions\n\n* `Prod.algebra`\n* `AlgHom.fst`\n* `AlgHom.snd`\n* `AlgHom.prod`\n* `AlgEquiv.prodUnique` and `AlgEquiv.uniqueProd`\n-/\n\n@[expose] public section\n\n\nvariable {R A B C : Type*}\nvariable [CommSemiring R]\nvariable [Semiring A] [Algebra R A] [Semiring B] [Algebra R B] [Semiring C] [Algebra R C]\n\nnamespace Prod\n\nvariable (R A B)\n\nopen Algebra\n\ninstance algebra : Algebra R (A × B) where\n algebraMap := RingHom.prod (algebraMap R A) (algebraMap R B)\n commutes' := by\n rintro r ⟨a, b⟩\n dsimp\n rw [commutes r a, commutes r b]\n smul_def' := by\n rintro r ⟨a, b⟩\n dsimp\n rw [Algebra.smul_def r a, Algebra.smul_def r b]\n\nvariable {R A B}\n\n@[simp]\ntheorem algebraMap_apply (r : R) : algebraMap R (A × B) r = (algebraMap R A r, algebraMap R B r) :=\n rfl\n\nend Prod\n\nnamespace AlgHom\n\nvariable (R A B)\n\n/-- First projection as `AlgHom`. -/\ndef fst : A × B →ₐ[R] A :=\n { RingHom.fst A B with commutes' := fun _r => rfl }\n\n/-- Second projection as `AlgHom`. -/\ndef snd : A × B →ₐ[R] B :=\n { RingHom.snd A B with commutes' := fun _r => rfl }\n\nvariable {A B}\n\n@[simp]\ntheorem fst_apply (a) : fst R A B a = a.1 := rfl\n\n@[simp]\ntheorem snd_apply (a) : snd R A B a = a.2 := rfl\n\nvariable {R}\n\n/-- The `Function.prod` of two morphisms is a morphism. -/\n@[simps!]\ndef prod (f : A →ₐ[R] B) (g : A →ₐ[R] C) : A →ₐ[R] B × C :=\n { f.toRingHom.prod g.toRingHom with\n commutes' := fun r => by\n simp only [toRingHom_eq_coe, RingHom.toFun_eq_coe, RingHom.prod_apply, coe_toRingHom,\n commutes, Prod.algebraMap_apply] }\n\ntheorem coe_prod (f : A →ₐ[R] B) (g : A →ₐ[R] C) : ⇑(f.prod g) = Function.prod f g :=\n rfl\n\n@[simp]\ntheorem fst_prod (f : A →ₐ[R] B) (g : A →ₐ[R] C) : (fst R B C).comp (prod f g) = f := by ext; rfl\n\n@[simp]","module_header":true,"namespace":"AlgHom","prompt":"Return exactly one Lean proof body beginning with `by`. Do not emit prose, fences, declarations, sorry, admit, by?, or warnings.\n\nImports:\npublic import Mathlib.Algebra.Algebra.Equiv\npublic import Mathlib.Algebra.Algebra.Hom\npublic import Mathlib.Algebra.Module.Prod\n\nNamespace:\nAlgHom\n\nLocal context:\n/-\nCopyright (c) 2018 Kenny Lau. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Kenny Lau, Yury Kudryashov\n-/\n/-!\n# The R-algebra structure on products of R-algebras\n\nThe R-algebra structure on `(i : I) → A i` when each `A i` is an R-algebra.\n\n## Main definitions\n\n* `Prod.algebra`\n* `AlgHom.fst`\n* `AlgHom.snd`\n* `AlgHom.prod`\n* `AlgEquiv.prodUnique` and `AlgEquiv.uniqueProd`\n-/\n\n@[expose] public section\n\n\nvariable {R A B C : Type*}\nvariable [CommSemiring R]\nvariable [Semiring A] [Algebra R A] [Semiring B] [Algebra R B] [Semiring C] [Algebra R C]\n\nnamespace Prod\n\nvariable (R A B)\n\nopen Algebra\n\ninstance algebra : Algebra R (A × B) where\n algebraMap := RingHom.prod (algebraMap R A) (algebraMap R B)\n commutes' := by\n rintro r ⟨a, b⟩\n dsimp\n rw [commutes r a, commutes r b]\n smul_def' := by\n rintro r ⟨a, b⟩\n dsimp\n rw [Algebra.smul_def r a, Algebra.smul_def r b]\n\nvariable {R A B}\n\n@[simp]\ntheorem algebraMap_apply (r : R) : algebraMap R (A × B) r = (algebraMap R A r, algebraMap R B r) :=\n rfl\n\nend Prod\n\nnamespace AlgHom\n\nvariable (R A B)\n\n/-- First projection as `AlgHom`. -/\ndef fst : A × B →ₐ[R] A :=\n { RingHom.fst A B with commutes' := fun _r => rfl }\n\n/-- Second projection as `AlgHom`. -/\ndef snd : A × B →ₐ[R] B :=\n { RingHom.snd A B with commutes' := fun _r => rfl }\n\nvariable {A B}\n\n@[simp]\ntheorem fst_apply (a) : fst R A B a = a.1 := rfl\n\n@[simp]\ntheorem snd_apply (a) : snd R A B a = a.2 := rfl\n\nvariable {R}\n\n/-- The `Function.prod` of two morphisms is a morphism. -/\n@[simps!]\ndef prod (f : A →ₐ[R] B) (g : A →ₐ[R] C) : A →ₐ[R] B × C :=\n { f.toRingHom.prod g.toRingHom with\n commutes' := fun r => by\n simp only [toRingHom_eq_coe, RingHom.toFun_eq_coe, RingHom.prod_apply, coe_toRingHom,\n commutes, Prod.algebraMap_apply] }\n\ntheorem coe_prod (f : A →ₐ[R] B) (g : A →ₐ[R] C) : ⇑(f.prod g) = Function.prod f g :=\n rfl\n\n@[simp]\ntheorem fst_prod (f : A →ₐ[R] B) (g : A →ₐ[R] C) : (fst R B C).comp (prod f g) = f := by ext; rfl\n\n@[simp]\n\nTarget:\ntheorem snd_prod (f : A →ₐ[R] B) (g : A →ₐ[R] C) : (snd R B C).comp (prod f g) = g :=\n\nProof body:\n","proof_body":"by ext; rfl","provenance":{"declaration_index":5,"environment_hash":"08dda26699fe1025520aeb9450ff1df6b58e8ef0aa8100ae158997e8a703b831","lean_toolchain":"leanprover/lean4:v4.32.0-rc1","license":"Apache-2.0","original_import_scope":"module-specific","source_revision":"360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56","source_sha256":"b6134f22a0e156e48f481972775e2d71b8277abd8965b433c4b00b89d0f5061b","source_uri":"https://github.com/leanprover-community/mathlib4/blob/360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56/Mathlib/Algebra/Algebra/Prod.lean"},"sample_id":"84dddb62d48013cc8ea28dcef48771d278e0205dd0db71debdf4070e9dcfe32a","schema_version":1,"split":"validation","theorem_statement":"theorem snd_prod (f : A →ₐ[R] B) (g : A →ₐ[R] C) : (snd R B C).comp (prod f g) = g :="}
|
| 9 |
+
{"completion":"by\n ext\n simp","context_contains_namespace":true,"context_suffix":"end symm\nend Semiring\nend AlgEquiv","dependency_ids":["import:Mathlib.Algebra.Algebra.Hom","import:Mathlib.Algebra.Ring.Action.Group"],"family_id":"comp_symm","file_id":"mathlib/Mathlib/Algebra/Algebra/Equiv.lean","imports":["public import Mathlib.Algebra.Algebra.Hom","public import Mathlib.Algebra.Ring.Action.Group"],"local_context":"/-\nCopyright (c) 2018 Kenny Lau. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Kenny Lau, Yury Kudryashov\n-/\n/-!\n# Isomorphisms of `R`-algebras\n\nThis file defines bundled isomorphisms of `R`-algebras.\n\n## Main definitions\n\n* `AlgEquiv R A B`: the type of `R`-algebra isomorphisms between `A` and `B`.\n\n## Notation\n\n* `A ≃ₐ[R] B` : `R`-algebra equivalence from `A` to `B`.\n-/\n\n@[expose] public section\n\nuniverse u v w u₁ v₁ u₂ u₃\n\n/-- An equivalence of algebras (denoted as `A ≃ₐ[R] B`)\nis an equivalence of rings commuting with the actions of scalars. -/\nstructure AlgEquiv (R : Type u) (A : Type v) (B : Type w) [CommSemiring R] [Semiring A] [Semiring B]\n [Algebra R A] [Algebra R B] extends A ≃ B, A ≃* B, A ≃+ B, A ≃+* B where\n /-- An equivalence of algebras commutes with the action of scalars. -/\n protected commutes' : ∀ r : R, toFun (algebraMap R A r) = algebraMap R B r\n\nattribute [nolint docBlame] AlgEquiv.toRingEquiv\nattribute [nolint docBlame] AlgEquiv.toEquiv\nattribute [nolint docBlame] AlgEquiv.toAddEquiv\nattribute [nolint docBlame] AlgEquiv.toMulEquiv\n\n@[inherit_doc]\nnotation:50 A \" ≃ₐ[\" R \"] \" A' => AlgEquiv R A A'\n\n/-- `AlgEquivClass F R A B` states that `F` is a type of algebra structure preserving\n equivalences. You should extend this class when you extend `AlgEquiv`. -/\nclass AlgEquivClass (F : Type*) (R A B : outParam Type*) [CommSemiring R] [Semiring A]\n [Semiring B] [Algebra R A] [Algebra R B] [EquivLike F A B] : Prop\n extends RingEquivClass F A B where\n /-- An equivalence of algebras commutes with the action of scalars. -/\n commutes : ∀ (f : F) (r : R), f (algebraMap R A r) = algebraMap R B r\n\nnamespace AlgEquivClass\n\n-- See note [lower instance priority]\ninstance (priority := 100) toAlgHomClass (F R A B : Type*) [CommSemiring R] [Semiring A]\n [Semiring B] [Algebra R A] [Algebra R B] [EquivLike F A B] [h : AlgEquivClass F R A B] :\n AlgHomClass F R A B :=\n { h with }\n\ninstance (priority := 100) toLinearEquivClass (F R A B : Type*) [CommSemiring R]\n [Semiring A] [Semiring B] [Algebra R A] [Algebra R B]\n [EquivLike F A B] [h : AlgEquivClass F R A B] : LinearEquivClass F R A B :=\n { h with map_smulₛₗ := fun f => map_smulₛₗ f }\n\n/-- Turn an element of a type `F` satisfying `AlgEquivClass F R A B` into an actual `AlgEquiv`.\nThis is declared as the default coercion from `F` to `A ≃ₐ[R] B`. -/\n@[coe]\ndef toAlgEquiv {F R A B : Type*} [CommSemiring R] [Semiring A] [Semiring B] [Algebra R A]\n [Algebra R B] [EquivLike F A B] [AlgEquivClass F R A B] (f : F) : A ≃ₐ[R] B :=\n { (f : A ≃ B), (RingEquivClass.toRingEquiv f : A ≃+* B) with commutes' := commutes f }\n\nend AlgEquivClass\n\nnamespace AlgEquiv\n\nuniverse uR uA₁ uA₂ uA₃ uA₁' uA₂' uA₃'\nvariable {R : Type uR}\nvariable {A₁ : Type uA₁} {A₂ : Type uA₂} {A₃ : Type uA₃}\nvariable {A₁' : Type uA₁'} {A₂' : Type uA₂'} {A₃' : Type uA₃'}\n\nsection Semiring\n\nvariable [CommSemiring R] [Semiring A₁] [Semiring A₂] [Semiring A₃]\nvariable [Semiring A₁'] [Semiring A₂'] [Semiring A₃']\nvariable [Algebra R A₁] [Algebra R A₂] [Algebra R A₃]\nvariable [Algebra R A₁'] [Algebra R A₂'] [Algebra R A₃']\nvariable (e : A₁ ≃ₐ[R] A₂)\n\nsection coe\n\ninstance : EquivLike (A₁ ≃ₐ[R] A₂) A₁ A₂ where\n coe f := f.toFun\n inv f := f.invFun\n left_inv f := f.left_inv\n right_inv f := f.right_inv\n coe_injective' f g h₁ h₂ := by\n obtain ⟨⟨f, _⟩, _⟩ := f\n obtain ⟨⟨g, _⟩, _⟩ := g\n congr\n\n/-- Helper instance since the coercion is not always found. -/\ninstance : FunLike (A₁ ≃ₐ[R] A₂) A₁ A₂ where\n coe := DFunLike.coe\n coe_injective := DFunLike.coe_injective\n\ninstance : AlgEquivClass (A₁ ≃ₐ[R] A₂) R A₁ A₂ where\n map_add f := f.map_add'\n map_mul f := f.map_mul'\n commutes f := f.commutes'\n\n@[ext]\ntheorem ext {f g : A₁ ≃ₐ[R] A₂} (h : ∀ a, f a = g a) : f = g :=\n DFunLike.ext f g h\n\nprotected theorem congr_arg {f : A₁ ≃ₐ[R] A₂} {x x' : A₁} : x = x' → f x = f x' :=\n DFunLike.congr_arg f\n\nprotected theorem congr_fun {f g : A₁ ≃ₐ[R] A₂} (h : f = g) (x : A₁) : f x = g x :=\n DFunLike.congr_fun h x\n\n@[simp]\ntheorem coe_mk {toEquiv map_mul map_add commutes} :\n ⇑(⟨toEquiv, map_mul, map_add, commutes⟩ : A₁ ≃ₐ[R] A₂) = toEquiv :=\n rfl\n\n@[simp]\ntheorem mk_coe (e : A₁ ≃ₐ[R] A₂) (e' h₁ h₂ h₃ h₄ h₅) :\n (⟨⟨e, e', h₁, h₂⟩, h₃, h₄, h₅⟩ : A₁ ≃ₐ[R] A₂) = e :=\n ext fun _ => rfl\n\n@[simp]\ntheorem toEquiv_eq_coe : e.toEquiv = e :=\n rfl\n\n@[simp]\nprotected theorem coe_coe {F : Type*} [EquivLike F A₁ A₂] [AlgEquivClass F R A₁ A₂] (f : F) :\n ⇑(AlgEquivClass.toAlgEquiv f) = f :=\n rfl\n\ntheorem coe_fun_injective : @Function.Injective (A₁ ≃ₐ[R] A₂) (A₁ → A₂) fun e => (e : A₁ → A₂) :=\n DFunLike.coe_injective\n\n/-- Forgetting the multiplicative structures, an equivalence of algebras is a linear equivalence. -/\n@[coe, simps! apply] def toLinearEquiv (e : A₁ ≃ₐ[R] A₂) : A₁ ≃ₗ[R] A₂ where\n toAddEquiv := e.toAddEquiv\n map_smul' := map_smulₛₗ e\n\ninstance : CoeOut (A₁ ≃ₐ[R] A₂) (A₁ ≃ₗ[R] A₂) where coe := toLinearEquiv\ninstance : CoeOut (A₁ ≃ₐ[R] A₂) (A₁ ≃+* A₂) where coe := toRingEquiv\n\n@[simp]\ntheorem coe_toEquiv : ((e : A₁ ≃ A₂) : A₁ → A₂) = e :=\n rfl\n\n@[deprecated \"Now a syntactic equality\" (since := \"2026-04-09\"), nolint synTaut]\ntheorem toRingEquiv_eq_coe : e.toRingEquiv = e :=\n rfl\n\n@[simp]\nlemma toRingEquiv_toRingHom : ((e : A₁ ≃+* A₂) : A₁ →+* A₂) = e :=\n rfl\n\n@[simp]\ntheorem coe_ringEquiv : ((e : A₁ ≃+* A₂) : A₁ → A₂) = e :=\n rfl\n\ntheorem coe_ringEquiv' : (e.toRingEquiv : A₁ → A₂) = e :=\n rfl\n\ntheorem coe_ringEquiv_injective : Function.Injective ((↑) : (A₁ ≃ₐ[R] A₂) → A₁ ≃+* A₂) :=\n fun _ _ h => ext <| RingEquiv.congr_fun h\n\n/-- Interpret an algebra equivalence as an algebra homomorphism.\n\nThis definition is included for symmetry with the other `to*Hom` projections.\nThe `simp` normal form is to use the coercion of the `AlgHomClass.coeTC` instance. -/\n@[coe]\ndef toAlgHom : A₁ →ₐ[R] A₂ :=\n { e with\n map_one' := map_one e\n map_zero' := map_zero e }\n\ninstance : CoeOut (A₁ ≃ₐ[R] A₂) (A₁ →ₐ[R] A₂) where coe := AlgEquiv.toAlgHom\n\n@[deprecated \"Now a syntactic equality\" (since := \"2026-04-29\"), nolint synTaut]\ntheorem toAlgHom_eq_coe : e.toAlgHom = e :=\n rfl\n\ntheorem toAlgHom_apply (x : A₁) : e.toAlgHom x = e x :=\n rfl\n\n@[simp, norm_cast]\ntheorem coe_algHom : DFunLike.coe e.toAlgHom = DFunLike.coe e :=\n rfl\n\ntheorem coe_algHom_injective : Function.Injective ((↑) : (A₁ ≃ₐ[R] A₂) → A₁ →ₐ[R] A₂) :=\n fun _ _ h => ext <| AlgHom.congr_fun h\n\n@[simp, norm_cast]\nlemma toAlgHom_toRingHom : ((e : A₁ →ₐ[R] A₂) : A₁ →+* A₂) = e :=\n rfl\n\n/-- The two paths coercion can take to a `RingHom` are equivalent -/\ntheorem coe_ringHom_commutes : ((e : A₁ →ₐ[R] A₂) : A₁ →+* A₂) = ((e : A₁ ≃+* A₂) : A₁ →+* A₂) :=\n rfl\n\n@[simp]\ntheorem commutes : ∀ r : R, e (algebraMap R A₁ r) = algebraMap R A₂ r :=\n e.commutes'\n\nend coe\n\nsection bijective\n\nprotected theorem bijective : Function.Bijective e :=\n EquivLike.bijective e\n\nprotected theorem injective : Function.Injective e :=\n EquivLike.injective e\n\nprotected theorem surjective : Function.Surjective e :=\n EquivLike.surjective e\n\nend bijective\n\nsection refl\n\n/-- Algebra equivalences are reflexive. -/\n@[refl]\ndef refl : A₁ ≃ₐ[R] A₁ :=\n { (.refl _ : A₁ ≃+* A₁) with commutes' := fun _ => rfl }\n\ninstance : Inhabited (A₁ ≃ₐ[R] A₁) :=\n ⟨refl⟩\n\n@[simp, norm_cast] lemma refl_toAlgHom : (refl : A₁ ≃ₐ[R] A₁) = AlgHom.id R A₁ := rfl\n@[simp, norm_cast] lemma refl_toRingHom : (refl : A₁ ≃ₐ[R] A₁) = RingHom.id A₁ := rfl\n\n@[simp]\ntheorem coe_refl : ⇑(refl : A₁ ≃ₐ[R] A₁) = id :=\n rfl\n\nend refl\n\nsection symm\n\n/-- Algebra equivalences are symmetric. -/\n@[symm]\ndef symm (e : A₁ ≃ₐ[R] A₂) : A₂ ≃ₐ[R] A₁ :=\n { e.toRingEquiv.symm with\n commutes' := fun r => by\n rw [← e.toRingEquiv.symm_apply_apply (algebraMap R A₁ r)]\n congr\n simp }\n\ntheorem invFun_eq_symm {e : A₁ ≃ₐ[R] A₂} : e.invFun = e.symm :=\n rfl\n\n@[simp]\ntheorem coe_apply_coe_coe_symm_apply {F : Type*} [EquivLike F A₁ A₂] [AlgEquivClass F R A₁ A₂]\n (f : F) (x : A₂) :\n f ((AlgEquivClass.toAlgEquiv f).symm x) = x :=\n EquivLike.right_inv f x\n\n@[simp]\ntheorem coe_coe_symm_apply_coe_apply {F : Type*} [EquivLike F A₁ A₂] [AlgEquivClass F R A₁ A₂]\n (f : F) (x : A₁) :\n (AlgEquivClass.toAlgEquiv f).symm (f x) = x :=\n EquivLike.left_inv f x\n\n/-- `simp` normal form of `invFun_eq_symm` -/\n@[simp]\ntheorem symm_toEquiv_eq_symm {e : A₁ ≃ₐ[R] A₂} : (e : A₁ ≃ A₂).symm = e.symm :=\n rfl\n\n@[simp]\ntheorem symm_symm (e : A₁ ≃ₐ[R] A₂) : e.symm.symm = e := rfl\n\ntheorem symm_bijective : Function.Bijective (symm : (A₁ ≃ₐ[R] A₂) → A₂ ≃ₐ[R] A₁) :=\n Function.bijective_iff_has_inverse.mpr ⟨_, symm_symm, symm_symm⟩\n\n@[simp]\ntheorem mk_coe' (e : A₁ ≃ₐ[R] A₂) (f h₁ h₂ h₃ h₄ h₅) :\n (⟨⟨f, e, h₁, h₂⟩, h₃, h₄, h₅⟩ : A₂ ≃ₐ[R] A₁) = e.symm :=\n symm_bijective.injective <| ext fun _ => rfl\n\n@[simp]\ntheorem symm_mk (e : A₁ ≃ A₂) (h₁ h₂ h₃) : dsimp%\n (mk e h₁ h₂ h₃ : A₁ ≃ₐ[R] A₂).symm =\n { (mk e h₁ h₂ h₃ : A₁ ≃ₐ[R] A₂).symm with\n toEquiv := e.symm } :=\n rfl\n\n@[simp]\ntheorem refl_symm : (AlgEquiv.refl : A₁ ≃ₐ[R] A₁).symm = AlgEquiv.refl :=\n rfl\n\ntheorem toRingEquiv_symm : (e : A₁ ≃+* A₂).symm = e.symm :=\n rfl\n\n@[simp]\ntheorem symm_toRingEquiv : (e.symm : A₂ ≃+* A₁) = (e : A₁ ≃+* A₂).symm :=\n rfl\n\n@[simp]\ntheorem symm_toAddEquiv : (e.symm : A₂ ≃+ A₁) = (e : A₁ ≃+ A₂).symm :=\n rfl\n\n@[simp]\ntheorem symm_toMulEquiv : (e.symm : A₂ ≃* A₁) = (e : A₁ ≃* A₂).symm :=\n rfl\n\n@[simp]\ntheorem apply_symm_apply (e : A₁ ≃ₐ[R] A₂) : ∀ x, e (e.symm x) = x :=\n e.toEquiv.apply_symm_apply\n\n@[simp]\ntheorem symm_apply_apply (e : A₁ ≃ₐ[R] A₂) : ∀ x, e.symm (e x) = x :=\n e.toEquiv.symm_apply_apply\n\ntheorem symm_apply_eq (e : A₁ ≃ₐ[R] A₂) {x y} : e.symm x = y ↔ x = e y :=\n e.toEquiv.symm_apply_eq\n\ntheorem eq_symm_apply (e : A₁ ≃ₐ[R] A₂) {x y} : y = e.symm x ↔ e y = x :=\n e.toEquiv.eq_symm_apply\n\n@[simp]","module_header":true,"namespace":"AlgEquiv","prompt":"Return exactly one Lean proof body beginning with `by`. Do not emit prose, fences, declarations, sorry, admit, by?, or warnings.\n\nImports:\npublic import Mathlib.Algebra.Algebra.Hom\npublic import Mathlib.Algebra.Ring.Action.Group\n\nNamespace:\nAlgEquiv\n\nLocal context:\n/-\nCopyright (c) 2018 Kenny Lau. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Kenny Lau, Yury Kudryashov\n-/\n/-!\n# Isomorphisms of `R`-algebras\n\nThis file defines bundled isomorphisms of `R`-algebras.\n\n## Main definitions\n\n* `AlgEquiv R A B`: the type of `R`-algebra isomorphisms between `A` and `B`.\n\n## Notation\n\n* `A ≃ₐ[R] B` : `R`-algebra equivalence from `A` to `B`.\n-/\n\n@[expose] public section\n\nuniverse u v w u₁ v₁ u₂ u₃\n\n/-- An equivalence of algebras (denoted as `A ≃ₐ[R] B`)\nis an equivalence of rings commuting with the actions of scalars. -/\nstructure AlgEquiv (R : Type u) (A : Type v) (B : Type w) [CommSemiring R] [Semiring A] [Semiring B]\n [Algebra R A] [Algebra R B] extends A ≃ B, A ≃* B, A ≃+ B, A ≃+* B where\n /-- An equivalence of algebras commutes with the action of scalars. -/\n protected commutes' : ∀ r : R, toFun (algebraMap R A r) = algebraMap R B r\n\nattribute [nolint docBlame] AlgEquiv.toRingEquiv\nattribute [nolint docBlame] AlgEquiv.toEquiv\nattribute [nolint docBlame] AlgEquiv.toAddEquiv\nattribute [nolint docBlame] AlgEquiv.toMulEquiv\n\n@[inherit_doc]\nnotation:50 A \" ≃ₐ[\" R \"] \" A' => AlgEquiv R A A'\n\n/-- `AlgEquivClass F R A B` states that `F` is a type of algebra structure preserving\n equivalences. You should extend this class when you extend `AlgEquiv`. -/\nclass AlgEquivClass (F : Type*) (R A B : outParam Type*) [CommSemiring R] [Semiring A]\n [Semiring B] [Algebra R A] [Algebra R B] [EquivLike F A B] : Prop\n extends RingEquivClass F A B where\n /-- An equivalence of algebras commutes with the action of scalars. -/\n commutes : ∀ (f : F) (r : R), f (algebraMap R A r) = algebraMap R B r\n\nnamespace AlgEquivClass\n\n-- See note [lower instance priority]\ninstance (priority := 100) toAlgHomClass (F R A B : Type*) [CommSemiring R] [Semiring A]\n [Semiring B] [Algebra R A] [Algebra R B] [EquivLike F A B] [h : AlgEquivClass F R A B] :\n AlgHomClass F R A B :=\n { h with }\n\ninstance (priority := 100) toLinearEquivClass (F R A B : Type*) [CommSemiring R]\n [Semiring A] [Semiring B] [Algebra R A] [Algebra R B]\n [EquivLike F A B] [h : AlgEquivClass F R A B] : LinearEquivClass F R A B :=\n { h with map_smulₛₗ := fun f => map_smulₛₗ f }\n\n/-- Turn an element of a type `F` satisfying `AlgEquivClass F R A B` into an actual `AlgEquiv`.\nThis is declared as the default coercion from `F` to `A ≃ₐ[R] B`. -/\n@[coe]\ndef toAlgEquiv {F R A B : Type*} [CommSemiring R] [Semiring A] [Semiring B] [Algebra R A]\n [Algebra R B] [EquivLike F A B] [AlgEquivClass F R A B] (f : F) : A ≃ₐ[R] B :=\n { (f : A ≃ B), (RingEquivClass.toRingEquiv f : A ≃+* B) with commutes' := commutes f }\n\nend AlgEquivClass\n\nnamespace AlgEquiv\n\nuniverse uR uA₁ uA₂ uA₃ uA₁' uA₂' uA₃'\nvariable {R : Type uR}\nvariable {A₁ : Type uA₁} {A₂ : Type uA₂} {A₃ : Type uA₃}\nvariable {A₁' : Type uA₁'} {A₂' : Type uA₂'} {A₃' : Type uA₃'}\n\nsection Semiring\n\nvariable [CommSemiring R] [Semiring A₁] [Semiring A₂] [Semiring A₃]\nvariable [Semiring A₁'] [Semiring A₂'] [Semiring A₃']\nvariable [Algebra R A₁] [Algebra R A₂] [Algebra R A₃]\nvariable [Algebra R A₁'] [Algebra R A₂'] [Algebra R A₃']\nvariable (e : A₁ ≃ₐ[R] A₂)\n\nsection coe\n\ninstance : EquivLike (A₁ ≃ₐ[R] A₂) A₁ A₂ where\n coe f := f.toFun\n inv f := f.invFun\n left_inv f := f.left_inv\n right_inv f := f.right_inv\n coe_injective' f g h₁ h₂ := by\n obtain ⟨⟨f, _⟩, _⟩ := f\n obtain ⟨⟨g, _⟩, _⟩ := g\n congr\n\n/-- Helper instance since the coercion is not always found. -/\ninstance : FunLike (A₁ ≃ₐ[R] A₂) A₁ A₂ where\n coe := DFunLike.coe\n coe_injective := DFunLike.coe_injective\n\ninstance : AlgEquivClass (A₁ ≃ₐ[R] A₂) R A₁ A₂ where\n map_add f := f.map_add'\n map_mul f := f.map_mul'\n commutes f := f.commutes'\n\n@[ext]\ntheorem ext {f g : A₁ ≃ₐ[R] A₂} (h : ∀ a, f a = g a) : f = g :=\n DFunLike.ext f g h\n\nprotected theorem congr_arg {f : A₁ ≃ₐ[R] A₂} {x x' : A₁} : x = x' → f x = f x' :=\n DFunLike.congr_arg f\n\nprotected theorem congr_fun {f g : A₁ ≃ₐ[R] A₂} (h : f = g) (x : A₁) : f x = g x :=\n DFunLike.congr_fun h x\n\n@[simp]\ntheorem coe_mk {toEquiv map_mul map_add commutes} :\n ⇑(⟨toEquiv, map_mul, map_add, commutes⟩ : A₁ ≃ₐ[R] A₂) = toEquiv :=\n rfl\n\n@[simp]\ntheorem mk_coe (e : A₁ ≃ₐ[R] A₂) (e' h₁ h₂ h₃ h₄ h₅) :\n (⟨⟨e, e', h₁, h₂⟩, h₃, h₄, h₅⟩ : A₁ ≃ₐ[R] A₂) = e :=\n ext fun _ => rfl\n\n@[simp]\ntheorem toEquiv_eq_coe : e.toEquiv = e :=\n rfl\n\n@[simp]\nprotected theorem coe_coe {F : Type*} [EquivLike F A₁ A₂] [AlgEquivClass F R A₁ A₂] (f : F) :\n ⇑(AlgEquivClass.toAlgEquiv f) = f :=\n rfl\n\ntheorem coe_fun_injective : @Function.Injective (A₁ ≃ₐ[R] A₂) (A₁ → A₂) fun e => (e : A₁ → A₂) :=\n DFunLike.coe_injective\n\n/-- Forgetting the multiplicative structures, an equivalence of algebras is a linear equivalence. -/\n@[coe, simps! apply] def toLinearEquiv (e : A₁ ≃ₐ[R] A₂) : A₁ ≃ₗ[R] A₂ where\n toAddEquiv := e.toAddEquiv\n map_smul' := map_smulₛₗ e\n\ninstance : CoeOut (A₁ ≃ₐ[R] A₂) (A₁ ≃ₗ[R] A₂) where coe := toLinearEquiv\ninstance : CoeOut (A₁ ≃ₐ[R] A₂) (A₁ ≃+* A₂) where coe := toRingEquiv\n\n@[simp]\ntheorem coe_toEquiv : ((e : A₁ ≃ A₂) : A₁ → A₂) = e :=\n rfl\n\n@[deprecated \"Now a syntactic equality\" (since := \"2026-04-09\"), nolint synTaut]\ntheorem toRingEquiv_eq_coe : e.toRingEquiv = e :=\n rfl\n\n@[simp]\nlemma toRingEquiv_toRingHom : ((e : A₁ ≃+* A₂) : A₁ →+* A₂) = e :=\n rfl\n\n@[simp]\ntheorem coe_ringEquiv : ((e : A₁ ≃+* A₂) : A₁ → A₂) = e :=\n rfl\n\ntheorem coe_ringEquiv' : (e.toRingEquiv : A₁ → A₂) = e :=\n rfl\n\ntheorem coe_ringEquiv_injective : Function.Injective ((↑) : (A₁ ≃ₐ[R] A₂) → A₁ ≃+* A₂) :=\n fun _ _ h => ext <| RingEquiv.congr_fun h\n\n/-- Interpret an algebra equivalence as an algebra homomorphism.\n\nThis definition is included for symmetry with the other `to*Hom` projections.\nThe `simp` normal form is to use the coercion of the `AlgHomClass.coeTC` instance. -/\n@[coe]\ndef toAlgHom : A₁ →ₐ[R] A₂ :=\n { e with\n map_one' := map_one e\n map_zero' := map_zero e }\n\ninstance : CoeOut (A₁ ≃ₐ[R] A₂) (A₁ →ₐ[R] A₂) where coe := AlgEquiv.toAlgHom\n\n@[deprecated \"Now a syntactic equality\" (since := \"2026-04-29\"), nolint synTaut]\ntheorem toAlgHom_eq_coe : e.toAlgHom = e :=\n rfl\n\ntheorem toAlgHom_apply (x : A₁) : e.toAlgHom x = e x :=\n rfl\n\n@[simp, norm_cast]\ntheorem coe_algHom : DFunLike.coe e.toAlgHom = DFunLike.coe e :=\n rfl\n\ntheorem coe_algHom_injective : Function.Injective ((↑) : (A₁ ≃ₐ[R] A₂) → A₁ →ₐ[R] A₂) :=\n fun _ _ h => ext <| AlgHom.congr_fun h\n\n@[simp, norm_cast]\nlemma toAlgHom_toRingHom : ((e : A₁ →ₐ[R] A₂) : A₁ →+* A₂) = e :=\n rfl\n\n/-- The two paths coercion can take to a `RingHom` are equivalent -/\ntheorem coe_ringHom_commutes : ((e : A₁ →ₐ[R] A₂) : A₁ →+* A₂) = ((e : A₁ ≃+* A₂) : A₁ →+* A₂) :=\n rfl\n\n@[simp]\ntheorem commutes : ∀ r : R, e (algebraMap R A₁ r) = algebraMap R A₂ r :=\n e.commutes'\n\nend coe\n\nsection bijective\n\nprotected theorem bijective : Function.Bijective e :=\n EquivLike.bijective e\n\nprotected theorem injective : Function.Injective e :=\n EquivLike.injective e\n\nprotected theorem surjective : Function.Surjective e :=\n EquivLike.surjective e\n\nend bijective\n\nsection refl\n\n/-- Algebra equivalences are reflexive. -/\n@[refl]\ndef refl : A₁ ≃ₐ[R] A₁ :=\n { (.refl _ : A₁ ≃+* A₁) with commutes' := fun _ => rfl }\n\ninstance : Inhabited (A₁ ≃ₐ[R] A₁) :=\n ⟨refl⟩\n\n@[simp, norm_cast] lemma refl_toAlgHom : (refl : A₁ ≃ₐ[R] A₁) = AlgHom.id R A₁ := rfl\n@[simp, norm_cast] lemma refl_toRingHom : (refl : A₁ ≃ₐ[R] A₁) = RingHom.id A₁ := rfl\n\n@[simp]\ntheorem coe_refl : ⇑(refl : A₁ ≃ₐ[R] A₁) = id :=\n rfl\n\nend refl\n\nsection symm\n\n/-- Algebra equivalences are symmetric. -/\n@[symm]\ndef symm (e : A₁ ≃ₐ[R] A₂) : A₂ ≃ₐ[R] A₁ :=\n { e.toRingEquiv.symm with\n commutes' := fun r => by\n rw [← e.toRingEquiv.symm_apply_apply (algebraMap R A₁ r)]\n congr\n simp }\n\ntheorem invFun_eq_symm {e : A₁ ≃ₐ[R] A₂} : e.invFun = e.symm :=\n rfl\n\n@[simp]\ntheorem coe_apply_coe_coe_symm_apply {F : Type*} [EquivLike F A₁ A₂] [AlgEquivClass F R A₁ A₂]\n (f : F) (x : A₂) :\n f ((AlgEquivClass.toAlgEquiv f).symm x) = x :=\n EquivLike.right_inv f x\n\n@[simp]\ntheorem coe_coe_symm_apply_coe_apply {F : Type*} [EquivLike F A₁ A₂] [AlgEquivClass F R A₁ A₂]\n (f : F) (x : A₁) :\n (AlgEquivClass.toAlgEquiv f).symm (f x) = x :=\n EquivLike.left_inv f x\n\n/-- `simp` normal form of `invFun_eq_symm` -/\n@[simp]\ntheorem symm_toEquiv_eq_symm {e : A₁ ≃ₐ[R] A₂} : (e : A₁ ≃ A₂).symm = e.symm :=\n rfl\n\n@[simp]\ntheorem symm_symm (e : A₁ ≃ₐ[R] A₂) : e.symm.symm = e := rfl\n\ntheorem symm_bijective : Function.Bijective (symm : (A₁ ≃ₐ[R] A₂) → A₂ ≃ₐ[R] A₁) :=\n Function.bijective_iff_has_inverse.mpr ⟨_, symm_symm, symm_symm⟩\n\n@[simp]\ntheorem mk_coe' (e : A₁ ≃ₐ[R] A₂) (f h₁ h₂ h₃ h₄ h₅) :\n (⟨⟨f, e, h₁, h₂⟩, h₃, h₄, h₅⟩ : A₂ ≃ₐ[R] A₁) = e.symm :=\n symm_bijective.injective <| ext fun _ => rfl\n\n@[simp]\ntheorem symm_mk (e : A₁ ≃ A₂) (h₁ h₂ h₃) : dsimp%\n (mk e h₁ h₂ h₃ : A₁ ≃ₐ[R] A₂).symm =\n { (mk e h₁ h₂ h₃ : A₁ ≃ₐ[R] A₂).symm with\n toEquiv := e.symm } :=\n rfl\n\n@[simp]\ntheorem refl_symm : (AlgEquiv.refl : A₁ ≃ₐ[R] A₁).symm = AlgEquiv.refl :=\n rfl\n\ntheorem toRingEquiv_symm : (e : A₁ ≃+* A₂).symm = e.symm :=\n rfl\n\n@[simp]\ntheorem symm_toRingEquiv : (e.symm : A₂ ≃+* A₁) = (e : A₁ ≃+* A₂).symm :=\n rfl\n\n@[simp]\ntheorem symm_toAddEquiv : (e.symm : A₂ ≃+ A₁) = (e : A₁ ≃+ A₂).symm :=\n rfl\n\n@[simp]\ntheorem symm_toMulEquiv : (e.symm : A₂ ≃* A₁) = (e : A₁ ≃* A₂).symm :=\n rfl\n\n@[simp]\ntheorem apply_symm_apply (e : A₁ ≃ₐ[R] A₂) : ∀ x, e (e.symm x) = x :=\n e.toEquiv.apply_symm_apply\n\n@[simp]\ntheorem symm_apply_apply (e : A₁ ≃ₐ[R] A₂) : ∀ x, e.symm (e x) = x :=\n e.toEquiv.symm_apply_apply\n\ntheorem symm_apply_eq (e : A₁ ≃ₐ[R] A₂) {x y} : e.symm x = y ↔ x = e y :=\n e.toEquiv.symm_apply_eq\n\ntheorem eq_symm_apply (e : A₁ ≃ₐ[R] A₂) {x y} : y = e.symm x ↔ e y = x :=\n e.toEquiv.eq_symm_apply\n\n@[simp]\n\nTarget:\ntheorem comp_symm (e : A₁ ≃ₐ[R] A₂) : AlgHom.comp (e : A₁ →ₐ[R] A₂) ↑e.symm = AlgHom.id R A₂ :=\n\nProof body:\n","proof_body":"by\n ext\n simp","provenance":{"declaration_index":36,"environment_hash":"08dda26699fe1025520aeb9450ff1df6b58e8ef0aa8100ae158997e8a703b831","lean_toolchain":"leanprover/lean4:v4.32.0-rc1","license":"Apache-2.0","original_import_scope":"module-specific","source_revision":"360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56","source_sha256":"ee3938ce814a12e6c16e7460bd2a3e54209e7b6ef86054be23fcccd3e5d371cd","source_uri":"https://github.com/leanprover-community/mathlib4/blob/360da6fa66c1273b76b6b2d8c5666fd5ac2e3b56/Mathlib/Algebra/Algebra/Equiv.lean"},"sample_id":"992af0ea9bf758a47adf3baed96659c5a69f608e7efcd2432a55d736af568aaa","schema_version":1,"split":"validation","theorem_statement":"theorem comp_symm (e : A₁ ≃ₐ[R] A₂) : AlgHom.comp (e : A₁ →ₐ[R] A₂) ↑e.symm = AlgHom.id R A₂ :="}
|
strict-evaluation-22/results.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"scope": {
|
| 3 |
+
"total": 22,
|
| 4 |
+
"holdout": 18,
|
| 5 |
+
"canary": 4,
|
| 6 |
+
"parser_all_matched": "22/22",
|
| 7 |
+
"unsafe_all_matched": 0
|
| 8 |
+
},
|
| 9 |
+
"stage2": {
|
| 10 |
+
"exact": "9/22",
|
| 11 |
+
"holdout": "5/18",
|
| 12 |
+
"canary": "4/4"
|
| 13 |
+
},
|
| 14 |
+
"stage3_corrected": {
|
| 15 |
+
"exact": "4/22",
|
| 16 |
+
"holdout": "1/18",
|
| 17 |
+
"canary": "3/4"
|
| 18 |
+
},
|
| 19 |
+
"stage4": {
|
| 20 |
+
"exact": "10/22",
|
| 21 |
+
"holdout": "6/18",
|
| 22 |
+
"canary": "4/4"
|
| 23 |
+
},
|
| 24 |
+
"paired": {
|
| 25 |
+
"stage4_vs_stage2": {
|
| 26 |
+
"mcnemar_exact_two_sided_p": 1.0,
|
| 27 |
+
"significant_alpha_0_05": false
|
| 28 |
+
},
|
| 29 |
+
"stage4_vs_clean_stage3": {
|
| 30 |
+
"all22_p": 0.015625,
|
| 31 |
+
"holdout18_p": 0.03125,
|
| 32 |
+
"significant_alpha_0_05": true
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
}
|
strict-evaluation-22/test.jsonl
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"task_id":"2a0e6f6c836b358951e2cb2c","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 2 |
+
{"task_id":"1d6e722661f7f19283151fee","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 3 |
+
{"task_id":"b11bab3045f4e76af2477573","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 4 |
+
{"task_id":"f9a2a16f398067d0002c9288","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 5 |
+
{"task_id":"631062445de019c99bf8e345","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 6 |
+
{"task_id":"a410086b238a9ae1f5196b2f","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 7 |
+
{"task_id":"a8a81192aca5174af339974e","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 8 |
+
{"task_id":"51cde870d079d683cc3230e5","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 9 |
+
{"task_id":"6d493470b836b4f2b7d3938b","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 10 |
+
{"task_id":"2788f01c3ef285197e3924ff","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 11 |
+
{"task_id":"aa639e404df27f74fe0fb7e8","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 12 |
+
{"task_id":"9dc3a9dc53e572006a0ab4e4","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 13 |
+
{"task_id":"95953e4b2c8677a6b678a481","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 14 |
+
{"task_id":"955b9d847466486d0a291285","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 15 |
+
{"task_id":"6e94a9922c6ef7211e6f09de","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 16 |
+
{"task_id":"19f54144696516dffdfd7612","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 17 |
+
{"task_id":"c15f98fbffd9d0dacbea4ab7","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 18 |
+
{"task_id":"995ea7b86e597b08f3d58a75","split":"holdout","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 19 |
+
{"task_id":"411234cbf523066be55708c7","split":"canary","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 20 |
+
{"task_id":"4eb1b564a6b082ba1b0a1fcf","split":"canary","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 21 |
+
{"task_id":"71b09cef9e81de16ba431082","split":"canary","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|
| 22 |
+
{"task_id":"20d0f9f13b76b2cc80060bd2","split":"canary","prompt_disclosed":false,"candidate_proofs_disclosed":false,"evaluation_protocol":"matched-strict-lean-v1"}
|