Grace/Cumulus/Geometry/Construction/Impossibility.g17

Open in Workbench Download source

Imports

Grace.Cumulus.Geometry.Construction.Descent · Grace.Cumulus.NumberTheory.CubicIntegerRoots

Declarations

Source

1-- The theorem: no constructible number is a cube root of 2, and no2-- constructible number is the cosine of twenty degrees, the root of3-- 4x³ − 3x = 1/2, so the cube cannot be doubled and the angle of sixty4-- degrees cannot be trisected with ruler and compass.5-- Part of Cumulus, the Grace17 mathematics library.6-- Copyright (c) 2026 Grant Passmore.7-- Released under the Apache License 2.0. See LICENSE in the repository root.8-- Authors: Grant Passmore910module Grace.Cumulus.Geometry.Construction.Impossibility11import Grace.Cumulus.Geometry.Construction.Descent12import Grace.Cumulus.NumberTheory.CubicIntegerRoots1314-- Doubling the cube1516-- x³ = 2 is cubic(0, 0, −2, x) = 0; descent gives a rational root, which17-- cubic.no_rational_cube_root_two refutes.18theorem cubeRootTwo.not_constructible (x : Real)19  requires cube : x * x * x = (2:R)20  shows ¬Constructible(x)21proof22  intro xC23  have rationals := RealSubfield.rationals24  have zeroIn := rationalReals.zero_mem25  have two := realNumeral.subfield_mem at rationalReals, 2 with rationals26  have negTwo := rationalReals.neg_mem with two27  have root : cubic((0:R), (0:R), -(2:R), x) = 028    unfold cubic29    linear_combination cube30  obtain ⟨s, sIn, sRoot⟩ := cubic.constructible_root_rational31    with zeroIn, zeroIn, negTwo, xC, root32  have refuted := cubic.no_rational_cube_root_two with sIn33  exact refuted with sRoot3435theorem doublingTheCube.impossible36  shows ¬(∃ x ∈ constructibles, (x:R) * (x:R) * (x:R) = (2:R))37proof38  intro witnessed39  obtain ⟨x, xIn, cube⟩ := witnessed40  exact cubeRootTwo.not_constructible with cube, xIn4142-- Trisecting the angle4344-- 8x³ − 6x − 1 = 0 is the monic cubic(0, −3/4, −1/8, x) = 0, with45-- coefficients in rationalReals by rationalReals.div_mem; a rational root46-- s gives the rational root 2s of x³ − 3x − 1, which47-- cubic.no_rational_trisection_root refutes.48theorem cosTwenty.not_constructible (x : Real)49  requires equation : (8:R) * (x * x * x) - (6:R) * x - (1:R) = 050  shows ¬Constructible(x)51proof52  intro xC53  have rationals := RealSubfield.rationals54  have zeroIn := rationalReals.zero_mem55  have oneIn := rationalReals.one_mem56  have two := realNumeral.subfield_mem at rationalReals, 2 with rationals57  have three := realNumeral.subfield_mem at rationalReals, 3 with rationals58  have four := realNumeral.subfield_mem at rationalReals, 4 with rationals59  have eight := realNumeral.subfield_mem at rationalReals, 8 with rationals60  have negThree := rationalReals.neg_mem with three61  have negOne := rationalReals.neg_mem with oneIn62  have fourNonzero : (4:R) ≠ 0 by arith63  have eightNonzero : (8:R) ≠ 0 by arith64  have bIn := rationalReals.div_mem with negThree, four, fourNonzero65  have cIn := rationalReals.div_mem with negOne, eight, eightNonzero66  have root : cubic((0:R), -(3:R) / (4:R), -(1:R) / (8:R), x) = 067    unfold cubic68    linear_combination ((1:R) / (8:R)) * equation69  obtain ⟨s, sIn, sRoot⟩ := cubic.constructible_root_rational70    with zeroIn, bIn, cIn, xC, root71  have doubleIn := rationalReals.mul_mem with two, sIn72  have doubleRoot : cubic((0:R), -(3:R), -(1:R), (2:R) * s) = 073    unfold cubic at sRoot74    unfold cubic75    linear_combination (8:R) * sRoot76  have refuted := cubic.no_rational_trisection_root with doubleIn77  exact refuted with doubleRoot7879-- 4c³ − 3c is cos 3θ for c = cos θ, and cos(π/3) = 1/2: a constructible80-- cosine of twenty degrees would be a constructible root of this equation.81theorem trisection.impossible82  shows ¬(∃ x ∈ constructibles,83    (4:R) * ((x:R) * (x:R) * (x:R)) - (3:R) * (x:R) = (1:R) / (2:R))84proof85  intro witnessed86  obtain ⟨x, xIn, half⟩ := witnessed87  have equation : (8:R) * ((x:R) * (x:R) * (x:R)) - (6:R) * (x:R) - (1:R) = 088    linear_combination (2:R) * half89  exact cosTwenty.not_constructible with equation, xIn90