86 points · by laktak · 2y ago · 247 comments
Every mathamatician knows that the integer 1 and the real number 1 different objects [0]. We could make every invocation of a canonical isomorphism explicit, but that would make all of math far too unwieldy to do.
This is the core problem with formal proof verification. Current provers need you to prove things at such a low level that they are simply unwieldy to use. That does not mean we need to reinvent all of math. It means we need to improve formal verification tooling. Maybe we also need to train mathamaticians in formal verification systems. In much the same way that they had to be trained to use computer algebra systems. We didn't reconstruct all of math. We just learned how to work within the limitations of tools when we use those tools.
[0] Unless you go out of your way to construct them to be the same thing. There is not actually any official definition of, for example, what the integer 1 is. Since so many definitions of it are equivalent, that is a fundamentally pointless conversation to have. A few textbook authors need to make a decision for pedalogical purposes. No one else cares.
So you are going to get a lot of funny explanations of why you can still say “ℤ ⊂ ℚ” and what that means. And what is “the same as” anyway?
N is the set of zero and all its successors.
Z is N extended with all additive inverses, which means it includes all of N.
Q is Z with all multiplicative inverses, so it includes all Z.
R is the set of Q plus all supremums and infinums of all bounded sets of Q.
R is only not Q when you define R with dedekind cuts, which is a nice formal construction, but doesn't change what R is, up to isomorphism.
Is there some integer that is not also a rational number?
In the same way the real line is "included" in the plane (\R \times \{0\}) or the sphere is not only a subset of the whole space but a submanifold.
Math uses lots of polymorphism and overloaded notation, but that is also part of the beauty, where "A=A" can actually be a deep result about concepts being compatible.
??
Are you claiming that ℤ ⊄ ℚ
This thread is wild.
I think the real funky business happens right between ℚ ⊂ ℝ
but maybe all I'm really trying to say is "hey, look at me, I understand how all of ℕ ⊂ ℤ ⊂ ℚ"
I'm very very sure that it's possible to give a fully ZF set-theoretic construction of the rationals using sets. in fact IMO the annoying thing is that there are in fact two trivially equivalent constructions that I can think of the top of my head, and I find that even worse than there being none at all
Yes and no.
NO: there already are multiple ways to construct “1 the natural number”, even if you restrict that to set-theoretic ones. See https://en.wikipedia.org/wiki/Set-theoretic_definition_of_na.... Von Neumann defined the natural number 1 as {∅} (the set with as only element the empty set), Frege and Russell as the equivalence class of all sets with a single element (and that’s not a circular definition)
Integers typically are constructed from those (See for example https://mathesis-online.com/integers, which defines an integer i as the equivalence class of pairs (a,b) of natural numbers such that a = b + i)
In this construction, “the integer 1” is the infinite set {(1,0},{2,1},{3,2},…}. That obviously (in the mathematical sense) is different from the one element set {∅}
Rationals and reals are constructed on top of that (see for example https://www.quora.com/How-is-the-set-of-real-numbers-constru... for a way to construct those)
YES: when you decide to ignore the low-level stuff and just use the intuitive definition of reals and integers.
(Alternatives:
- don’t ignore it, but start at the basis, calling the integers something else, then prove equivalence between a well-defined subset of the reals and the integers and then give that subset the name “integers”.
- directly construct the reals without first constructing the integers and then define the integers as a subset of them. I’m not aware of any way to define the reals without first defining integers, though. )
instance : One Hyper where
one := ⟨1, 0, 0, 0⟩
scoped notation "1" => One.one -- doesn't work "invalid atom" and unnecessary
instance : OfNat Bool 1 where
ofNat := true
instance : Coe ℤ Bool where
coe z := z ≠ 0
instance : Coe ℝ ℝ⋆ where
coe r := ⟨ r 0 0 0 ⟩
Basically all the fun of C++ casting just that you are always safe.Though I guess whether you want to blame that on the operators vs. the objects themselves can be left to your taste, but I'm not sure what "these objects are equivalent" would mean if the behaviors are left unspecified as characteristics of the objects (which would be the former case).
But really, "principal cube root" as you would like it to behave is not well-defined just for a number, you also need to provide the algebraic structure you consider it in, as in PCR(ℤ, -1) = -1, and PCR(ℂ, -1) = (1 + sqrt 3) / 2.
Alternatively, just set PCR(-1) = (1 + sqrt 3) / 2. That makes probably the most sense, as there is not much value in a PCR notion for integers in the first place.
At least in my education, you first define the natural numbers (where 0 and 1 are special, and the rest are defined in terms of that (ie 2 = 1+1)), then you define negation, which gives you the negative numbers. Then you layer on multiplication and division, which gives you rational numbers, and so on.
So, it's the same "0 and 1" definition all the way through, just with additional operations being added to the mix.
Though maybe other approaches do it differently.
You could certainly somehow get it to work by starting with the closure of the division operation but would introduce a lot of unnecessary headache along the way.
The definition taught to most mathematicians is that for the natural numbers,
0 = {}
1 = {{}}
In general S(N) = N ∪ {N}
But this is not how the real numbers are constructed. You either use Dedekind cuts, Cauchy sequences, or something else.This is quite interesting to me as I'm trying to understand, recreationally, these concepts.
From what you've written it looks like there are several ways to construct numbers. I'm aware of some of them but I don't know if they are connected or related e.g., Dedikend cut, Van Neumann numbers etc., It'd be great if you could list down all such constructions.
There are 2 main main approaches: explicit constructions and axiomatic constructions.
Dedikend cuts and Von Neuman numbers are both examples of explicit constructions. You can point to exactly what a given number "is", and then prove properties about you construction.
The other approach is the axiomatic construction, where you define what properties you want your numbers to have. You then (hopefully) prove that such a system exists and is, in some sense unique.
Taking the integers, the most common explicit construction is the set-theoretic Von Neumon construction, where 0={}, 1={0}, 2={0,1}, 3={0,1,2}...
You can also imagine defing 0={}, 1={0}, 2={1}, 3={2}
Note that while we say these are equivalent definitions, they produce different results in the sense that, for example, 0∈3 in the former, but not in the latter. [0].
You can also define natural numbers as a subset of the cardinals. In this construction, 3 represents the collection of all sets that can be put in a 1-to-1 correspondance to the set { {}, {{}}, {{{}}} }. Here, the exlusion of various infinities is a rather arbitrary part of the definition.
You can also define integers as a subset of combinatorical games, given by 0={|}, 1={0|}, 2={1|}. This naturally leads to negative numbers, -1={|0}, and a zoo of "numbers" not seen outside of combinatorical game theory, such as ↑ = {0|{0|0}}. Still, if you restrict yourself to the integer looking numbers and follow the game theory rules of addition, you get something equivalent to the natural numbers.
You can also define them as strings constructed from the alphabet of a single character, so 0="", 1="a", 2="aa". (This is the free monoid over a single set)
Lambda Calculus gives us the church encoding, where:
* 0 = λf.λx.x
* 1 = λf.λx.f x
* 2 = λf.λx.f (f x)
Under the axiomatic definition of numbers, the classical definition is given by the 9 Peano axioms, which amount to assuming the existence of 0 and a "succesor" function S(n) informally corresponding to S(n) = n+1.All of the above examples are things I have actually seen and that arise naturally in their respective branch of mathametics.
[0] This contradiction is not actually an issue, because no one ever actually says 0∈3, even though it is technically true in some constructions.
The natural numbers is a set with a starting element and that has, for each element, a thing immediately following.
Things like 0 in 3 make no sense since 0 refers to the first thing in whatever representation you have, not a particular one.
I love formal theorem proving and provers, but this shouldnt lead us to believe that the natural numbers are fundamentally any particular representation
N is defined by its properties not its representation.
https://en.m.wikipedia.org/wiki/Construction_of_the_real_num...
!!!!!!
The integer 1 is the same as the real number 1 ,is the same as the odd number 1, is the same as the perfect square 1, etc.
ℤ ⊂ ℝ
That this is the top-voted comment on this thread.....
E.g. for the cauchy sequence construction of the reals, the image of the integer 1 under this canonical isomorphism would be the equivalence class of the sequence (1,0,0,0,...), but these are of course not the same object in a set theoretic sense.
Similarly, there is a hierarchy of equality at increasing abstraction levels. There's naive equality which is that two things are literally the same. Then there's equality as to the 'class' of objects, and we can even go beyond that talking about equality of equalities (another word for analogies). Most stop there, but you can go on and on and on.
I'm currently interested in homotopy type theory systematizes this notion of varying 'levels' of equality, but it too has issues. It's an open question.
The article does sensationalize a bit because math is just a method of discourse. Equality means different things to different fields, and nothing about this kind of equality means that previous results are wrong.
I think HoTT nicely capstones the idea algebra and geometry are equivalent by pointing out that semantics itself is defined by the topology of categorical diagrams — and anywhere we find compatible topology is equivalent. Neat.
The same happens with other signs, like the arrow of limit. In many cases it's confusing so you add a small note to the arrow, unless it's obvious (whatever that means).
Obviously in the next step you achieve enlightenment when you then write them as just one horizontal line, but most don’t reach that stage.
what is "is"?
— to know what is "what"?
(which reminds me of the buddhist monk at the hot dog stand:
— Make me one with everything
— Here ya go bud
— Uhhh ... I gave you a twenty?
— Change is an illusion )
EDIT: and Ireneo Funes (the Memorious) inhabits that other improper, finest, universe where nothing is the same as anything else. (OnlyNaNs?)
(Author of your Wikisourced cetacean)
https://baike.baidu.com/item/%E4%BD%9A%E5%90%8D/37139#:~:tex...
(Not a Name)
与鬼神通
"Converse with gods and spectres"
"No creation without injury, no injury without creation."
(My interpretation, cf the Japanese distillation)
https://en.m.wiktionary.org/wiki/%E5%89%B5#Japanese
Compare with (note element of chance)
https://en.m.wiktionary.org/wiki/incido
More relevant to thread https://en.m.wiktionary.org/wiki/pare
1. Not required to prove everything which is true, 2. Not limited to one set of axioms.
The nice thing about formalism is that you can use a computer program to check whether a proof is sound or not. Isn’t that nice? It has applications in e.g. computer science and engineering, where you can prove that a program does not crash, or prove that a traffic light never shows green in conflicting directions, or prove that a real-time kernel always provides enough computational time for your rocket computer to steer.
Working math, there are more and more complex proofs that cannot reasonably be checked by humans. Having a computer check them is a nice alternative.
Others hope that the next AI will come up with a sketch of a proof itself.
GPT-4 sucks at lean because lean had it's syntax changed too often, and GPT-4 shows limited reasoning capabilities
However it did come up with the following proof for my little order of pairs
instance LT : LT (ℕ × ℕ) where
lt f g := f.1 < g.1 ∨ (f.1 = g.1 ∧ f.2 < g.2)
instance : DecidableRel (LT.lt : ℕ × ℕ → ℕ × ℕ → Prop) :=
fun (a,b) (c,d) =>
if h₁ : a < c then isTrue (Or.inl h₁)
else if h₂ : a = c then
if h₃ : b < d then
isTrue (Or.inr ⟨h₂, h₃⟩)
-- the rest is even more silly since we have to turn everything around
else isFalse (λ (h : a < c ∨ (a = c ∧ b < d)) =>
Or.elim h
(λ hlt : a < c => absurd hlt h₁)
(λ heq : a = c ∧ b < d =>
absurd (And.right heq) h₃))
else isFalse (λ (h : a < c ∨ (a = c ∧ b < d)) =>
Or.elim h
(λ hlt : a < c => absurd hlt h₁)
(λ heq : a = c ∧ b < d =>
absurd (And.left heq) h₂)
)
This may lead back to the original question because Bool ≠ Prop and the formula for LT should ideally lead directly to decidability without all this redundancy?Mathematica uses <=> for Boolean comparisons.
* Assignment (=)
* Referential equality (==)
* Structural equality (.equals())
* Comparison equality (.compareTo(_) == 0 )
> It is strongly recommended, but not strictly required that (x.compareTo(y)==0) == (x.equals(y)). Generally speaking, any class that implements the Comparable interface and violates this condition should clearly indicate this fact. The recommended language is "Note: this class has a natural ordering that is inconsistent with equals."
Grothendieck’s use of equality - https://news.ycombinator.com/item?id=40414404 - May 2024 (129 comments)
Grothendieck's Approach to Equality [pdf] - https://news.ycombinator.com/item?id=31557361 - May 2022 (37 comments)
Leads to
https://en.wikipedia.org/wiki/Ontology
Which compares everything to a self which we won't agree on, so it is expedient if we just pin it down
https://en.wikibooks.org/wiki/X86_Assembly/Control_Flow#Comp...
This presumes a sequential model of computation but we are actually free to discover functional and concurrent models as they are equivalent, but give philosophical freedom and yet retain rigor.
Words can be assertions or statements, these aren't necessarily the same thing
The system was made to deal with the ambiguity, not remove it, so we're dancing around the actual fundamentals.
I don't know what purpose this article serves other than to congratulate monkeys for their creation/entertainment
I recall the difference in the definitions being confusing for most of us kids.
So perhaps rather than just emphasizing the difference between = and ≡ more, it would be better to go further and emphasize the difference between universal and existential quantification more. Quantifiers can be confusing, but I think people also find having two different equals signs confusing; and it wouldn't be necessary to give a full account of predicate logic to high schoolers, I'm thinking more of just informally describing the difference between "for all" and "there exists" and reminding them that a bare variable has no meaning if you don't know what set it ranges over and how it's quantified.
This is just my speculation, I have no experience with mathematical education whatsoever.
Right, I've uni math also formal logic so I've knowledge of universal and existential quantification, etc. thus an understanding of the issues.
You're right, that stuff's a bit too heavy for highschoolers. Perhaps all that's needed is to be told 'that at times these appear the same but later on you'll need to understand there's a mathematical distinction' then emphasize the difference aspect to drive the point home.
Even though it was a long time ago I mostly recall what the teacher said and whilst he gave a few examples he never emphasized that there was a mathematical difference and that it was an important fact to know. Matters became more ambiguous from our science courses, the use of 'equivalent' was very loose.
I reckon the same or similar should apply to other topics, calculus for example.
Also, -1 for not mentioning Leibniz equality.
When we're in school solving equations, getting to the initial stages of calculus, you start running into identities like sin^2(x) + cos^2(x) = 1, which sometimes but not often are written with three parallel lines instead of two.
What this means is that the functions on either side of the sign are equivalent, any x you pick doesn't change the graph.
At some point, you will be solving simultaneous equations, and someone will have the bright idea that you can just differentiate both sides and just solve that. This happens to be true if you have something like above, it's still valid that the derivative anywhere is the same, since they are the same function. But if you are actually just finding the crossing point of two graphs, like one normally does at that level, then the equality is only for a particular value of x, and there's no reason the derivative would be the same.
In general there's a lot of these little notation things that creep up around that stage. The big one is treating dy/dx like a fraction, which you can do in certain cases to solve differential equations, but only in certain cases. If you don't understand why, you might get very confused about what the symbols actually mean.
Concrete example from Kev Buzzard's "Lean proof of Fermat's Last Theorem" from yesterday (2024-06-19 UT)
p34: "It is impossible to say which of the two canonical isomorphisms is “the most canonical”; people working in different areas make different choices in order to locally minimise the number of minus signs in their results."
https://imperialcollegelondon.github.io/FLT/blueprint.pdf
A lot of the subtleties seem to come from the pecularities of what is meant by "canonical" rather than by "isomorphic"