Download data/lean/OAI/Algebra/Foundations/FieldToComplex.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.17 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/Foundations/FieldToComplex.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Algebra/Foundations/FieldToComplex.lean
-
curl -L -o FieldToComplex.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/Foundations/FieldToComplex.lean
2.17 kB
| /- | |
| Copyright 2026 The Formal Conjectures Authors. | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| https://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software | |
| distributed under the License is distributed on an "AS IS" BASIS, | |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| See the License for the specific language governing permissions and | |
| limitations under the License. | |
| This file has been modified. | |
| -/ | |
| import OAI.Algebra.Ring.Basic | |
| import Mathlib.Analysis.Complex.Basic | |
| import Mathlib.LinearAlgebra.Basis.VectorSpace | |
| /-! # Field To Complex -/ | |
| namespace OAI.Algebra.Foundations.FieldToComplex | |
| noncomputable section | |
| /-! | |
| # A coefficient field inside the complex numbers | |
| The definitions in this file, and the lemmas about them, are reached from the statement of the | |
| conjecture only through proofs, so the statement never inspects them: by proof irrelevance | |
| nothing about how they were built can change what it asserts. | |
| -/ | |
| section | |
| variable (K : Type) [Field K] [Algebra K β] | |
| /-- A rational-linear retraction of the inclusion `K β β`. Such a retraction exists because an | |
| injective linear map of vector spaces over a field splits. -/ | |
| noncomputable def complexToFieldLinear : β ββ[K] K := | |
| Classical.choose <| (Algebra.linearMap K β).exists_leftInverse_of_injective | |
| (LinearMap.ker_eq_bot.mpr (algebraMap K β).injective) | |
| end | |
| variable (K : Type) [Field K] [Algebra K β] | |
| /-- The chosen rational-linear retraction is a left inverse to `K β β`. -/ | |
| lemma complexToFieldLinear_comp_algebraMap : | |
| complexToFieldLinear K ββ Algebra.linearMap K β = LinearMap.id := | |
| Classical.choose_spec <| (Algebra.linearMap K β).exists_leftInverse_of_injective | |
| (LinearMap.ker_eq_bot.mpr (algebraMap K β).injective) | |
| @[simp] lemma complexToFieldLinear_algebraMap (q : K) : | |
| complexToFieldLinear K (algebraMap K β q) = q := | |
| LinearMap.congr_fun (complexToFieldLinear_comp_algebraMap K) q | |
| end | |
| end OAI.Algebra.Foundations.FieldToComplex | |