Zulip Chat Archive
Stream: mathlib4
Topic: RealCast
Violeta Hernández (Sep 15 2025 at 13:49):
A monoid (with one) admits an embedding from . A group (with one) admits an embedding from . A division ring admits an embedding from . Is there any nice characterization for structures that admit an embedding from ?
Violeta Hernández (Sep 15 2025 at 13:51):
The obvious answer is "archimedean linearly ordered division rings" but it's a pretty lame answer, since any such field is isomorphic to the reals. I'm rather thinking about structures like the hyperreals, or surreal numbers, or real rational functions.
Aaron Liu (Sep 15 2025 at 13:56):
Violeta Hernández said:
The obvious answer is "archimedean linearly ordered division rings" but it's a pretty lame answer, since any such field is isomorphic to the reals.
pretty sure this part is wrong
Violeta Hernández (Sep 15 2025 at 13:57):
might need to strengthen that to field
Aaron Liu (Sep 15 2025 at 13:57):
for example, the rationals are an Archimedean linearly ordered division ring which does not admit an embedding from the reals
Violeta Hernández (Sep 15 2025 at 13:57):
Ah, you're right
Aaron Liu (Sep 15 2025 at 13:57):
Violeta Hernández said:
might need to strengthen that to field
Rationals are also a field
Violeta Hernández (Sep 15 2025 at 13:57):
"Conditionally complete" is the missing adjective
Michael Stoll (Sep 15 2025 at 14:00):
Violeta Hernández said:
A monoid (with one) admits an embedding from . A group (with one) admits an embedding from . A division ring admits an embedding from .
This is not actually true; you need something like "characteristic zero" to get an embedding (and to get a map at all in the case).
Violeta Hernández (Sep 15 2025 at 14:01):
The reason I want this is because of a result about non-archimedean fields: if you have a ring with a strictly monotone map f : ℝ ->+* K, and given x y : K in the same docs#ArchimedeanClass, there's a unique r : ℝ such that x - r * y is in a higher ArchimedeanClass (i.e. is infinitesimal compared to x and y).
Violeta Hernández (Sep 15 2025 at 14:02):
I was wondering if there was any set of hypotheses that would uniquely specify the map f, rather than having to pass it around everywhere
Michael Stoll (Sep 15 2025 at 14:03):
Aren't there lots of (order-preserving) embeddings of into the surreals?
Kenny Lau (Sep 15 2025 at 14:04):
do you just say map pi to pi+ε (while fixing Q)?
Aaron Liu (Sep 15 2025 at 14:04):
Violeta Hernández said:
I was wondering if there was any set of hypotheses that would uniquely specify the map
f, rather than having to pass it around everywhere
There is no such uniqueness by model theory stuff probably
Aaron Liu (Sep 15 2025 at 14:05):
not if your hypotheses are invariant under ordered field isomorphism
Michael Stoll (Sep 15 2025 at 14:05):
Kenny Lau said:
do you just say map pi to pi+ε (while fixing Q)?
Roughly. You fix a transcendence basis of over and move the standard images infinitesimally.
Violeta Hernández (Sep 15 2025 at 14:06):
Michael Stoll said:
Aren't there lots of (order-preserving) embeddings of into the surreals?
Order embedding yes, but addition and multiplication preserving as well?
Aaron Liu (Sep 15 2025 at 14:07):
For any two surreals transcendental over the rationals which are in the same dedekind cut, you can find an ordered field automorphism of the surreals sending one to the other
Michael Stoll (Sep 15 2025 at 14:07):
I think so; see above: given the images of a transcendence basis, you can uniquely extend to a field hom, and the images will still be infinitesimally close to the standard ones.
Kenny Lau (Sep 15 2025 at 14:08):
Violeta Hernández said:
Michael Stoll said:
Aren't there lots of (order-preserving) embeddings of into the surreals?
Order embedding yes, but addition and multiplication preserving as well?
you can't find a contradiction if I fix Q but map pi to pi+ε (in my example above)
Kenny Lau (Sep 15 2025 at 14:08):
because pi is transcendental
Violeta Hernández (Sep 15 2025 at 14:08):
Ah, shucks. I guess you do need the extra birthday structure in order to make the map from reals to surreals canonical.
Aaron Liu (Sep 15 2025 at 15:19):
Aaron Liu said:
For any two surreals transcendental over the rationals which are in the same dedekind cut, you can find an ordered field automorphism of the surreals sending one to the other
I've heard this result over and over but now I'm not so sure I have to double check
Violeta Hernández (Sep 15 2025 at 15:19):
It feels correct
Violeta Hernández (Sep 15 2025 at 15:20):
Does the argument of "take a transcendental basis and tweak it infinitesimally" not work?
Aaron Liu (Sep 15 2025 at 15:21):
For example, surely sqrt2+epsilon and sqrt2-epsilon are distinguishable?
Aaron Liu (Sep 15 2025 at 15:22):
They don't seem to satisfy any polynomial equation
Aaron Liu (Sep 15 2025 at 15:22):
And they're ordered the same wrt all the rationals
Aaron Liu (Sep 15 2025 at 15:22):
But one is larger than every square root of two and the other one is not
Michael Stoll (Sep 15 2025 at 15:57):
is not transcendental. All algebraic real numbers have to stay put!
Kenny Lau (Sep 15 2025 at 16:26):
aha, it's ∃ y, y ^ 4 = 2 ∧ ∃ z, x = y * y + z * z that is satisfied by x = sqrt2+epsilon but not x = sqrt2-epsilon
Kenny Lau (Sep 15 2025 at 16:26):
(in words: x is greater than the positive square root of 2, "greater than" is encoded by z, the positive square root of 2 is encoded by y * y)
Alex Meiburg (Sep 15 2025 at 18:38):
I mean every level of the https://en.wikipedia.org/wiki/Cayley%E2%80%93Dickson_construction would admit a RealCast
Alex Meiburg (Sep 15 2025 at 18:38):
But, I don't think any of those except Complex and Quaternion are in Mathlib.
Violeta Hernández (Sep 15 2025 at 18:39):
I guess there's a separate question that's worth asking: should we have a typeclass for types with a "canonical" embedding from ℝ?
Alex Meiburg (Sep 15 2025 at 18:40):
Similarly, an algebra over a RealCast inherits a RealCast. (Which I guess includes those two, but also e.g. Polynomial[\bbR].)
Also, docs#Hyperreal, and Hypercomplex (not in mathlib) would get one.
Alex Meiburg (Sep 15 2025 at 18:40):
Violeta Hernández said:
should we have a typeclass for types with a "canonical" embedding from ℝ
How is that different from RealCast? Does not the realcast function provide a "canonical" choice?
Violeta Hernández (Sep 15 2025 at 18:41):
Well, RealCast doesn't exist in Mathlib, is my point
Alex Meiburg (Sep 15 2025 at 18:41):
Well you said a "separate question", what's the first question?
Violeta Hernández (Sep 15 2025 at 18:42):
The first question was whether there existed some nice set of typeclasses that would imply some canonical embedding from ℝ
Aaron Liu (Sep 15 2025 at 18:52):
and the answer is I think "there's no such thing as a canonical embedding"
Kenny Lau (Sep 15 2025 at 19:08):
not even (Complex, norm)?
Aaron Liu (Sep 15 2025 at 19:12):
well there's no embedding which is natural for field homomorphisms
Aaron Liu (Sep 15 2025 at 19:12):
and there's no embedding which is natural for ordered field homomorphisms
Aaron Liu (Sep 15 2025 at 19:13):
so we need more than that
Violeta Hernández (Sep 15 2025 at 19:13):
Maybe the real answer here is "I should make an Algebra ℝ Surreal instance and work with that"
Yakov Pechersky (Sep 15 2025 at 19:27):
(Compact) Banach algebras?
Artie Khovanov (Sep 16 2025 at 18:24):
@Violeta Hernández I feel like the correct analogues here are surely embeddings from and then from (i.e. ). These are, respectively, real closed and algebraically closed fields (along with a choice of root of every relevant rational polynomial).
Artie Khovanov (Sep 16 2025 at 18:25):
oh possibly the analogues of these objects for division rings, rather
Last updated: Dec 20 2025 at 21:32 UTC