FormalConjecturesForMathlib/NumberTheory/NumberField/Quadratic.lean

GitHub source file

Explanation legend Lean4 Domain Explanation Language (L4DEL)

L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.

L4DEL
Lean4 Domain Explanation Language

Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.

Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1

2 declarations, 0 contain sorry, 0 declared as axioms

Imports (2)
Imported by 1 file
  1. instance QuadraticAlgebra.instIsQuadraticExtension Any QuadraticAlgebra ℚ a b that is a field is automatically a quadratic extension of ℚ, i.e., a degree-2 extension line 29 source

    Source documentation

    Any QuadraticAlgebra ℚ a b that is a field is automatically a quadratic extension of ℚ, i.e., a degree-2 extension. Combined with IsQuadraticField.instNumberField, this gives NumberField (QuadraticAlgebra ℚ a b) for free.

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Rat, Fact, Ne, HPow.hPow, Nat, OfNat.ofNat, HAdd.hAdd, HMul.hMul, Algebra.IsQuadraticExtension, QuadraticAlgebra

    Proof uses: Algebra.IsQuadraticExtension.mk, QuadraticAlgebra.finrank_eq_two

    49 instances, coercions and auxiliary constants left out.

    instance QuadraticAlgebra.instIsQuadraticExtension (a b : ℚ) [Fact (∀ r : ℚ, r ^ 2 ≠ a + b * r)] :
        IsQuadraticExtension ℚ (QuadraticAlgebra ℚ a b) where
    …
  2. instance Algebra.IsQuadraticExtension.to_numberField A quadratic field is a number field: it has characteristic zero and is finite-dimensional over ℚ line 35 source

    Source documentation

    A quadratic field is a number field: it has characteristic zero and is finite-dimensional over ℚ.

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Field, CharZero, Algebra.IsQuadraticExtension, Rat, NumberField

    Proof uses: NumberField.mk, FiniteDimensional.of_finrank_pos

    28 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

    Open to load the checked before-and-after goal states.

    instance Algebra.IsQuadraticExtension.to_numberField (K : Type*) [Field K] [CharZero K]
        [IsQuadraticExtension ℚ K] : NumberField K where
    …