{-# OPTIONS --cubical --safe --guardedness #-} -- Sprint 5 / real arithmetic: the rational embedding ι : ℚ → ℝ is a genuine -- ORDER-EMBEDDING (q < r in ℚ iff ι q < ι r in ℝ), and it commutes with -- negation. So ℝ contains ℚ order- and sign-faithfully -- the rational spectral -- values (e.g. integer eigenvalues over ℤ[φ]) embed correctly. No postulates. module corpus.cubical_agda.RealCohesion.RealEmbedding where open import Cubical.Foundations.Prelude open import Cubical.Data.Sigma open import Cubical.HITs.PropositionalTruncation as PT using (∥_∥₁; ∣_∣₁) open import Cubical.Data.Rationals using (ℚ) open import Cubical.Data.Rationals.Order using (_<_; isProp<; isTrans<) open import corpus.cubical_agda.RealCohesion.DedekindReal -- ι preserves the strict order: q < r ⟹ ι q <ℝ ι r. -- (the separating rational is any point strictly between q and r -- dense.) ι-monotone : (q r : ℚ) → q < r → ι q <ℝ ι r ι-monotone q r q