少点错误 10月02日 06:14
数学中的相等概念:从基础到抽象
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

本文探讨了数学中“相等”这一基本概念的深刻含义。文章从等价关系的标准定义出发,逐层深入,依次考察了集合论、一阶逻辑以及范畴论中对相等的不同定义和理解。作者指出,在一阶逻辑中,相等意味着两个对象可以相互替换且不影响任何函数或属性;而在范畴论中,相等的概念则更加灵活,取决于具体的范畴及其所包含的态射,两个对象可能在一种范畴下相等,而在另一种范畴下不相等。通过对比不同领域的定义,文章揭示了相等概念的丰富性和上下文依赖性,并引发了对这一基础概念的进一步思考。

📌 **数学中的相等不仅仅是等价关系:** 文章首先回顾了相等作为一种二元、自反、对称和传递的等价关系的标准定义。然而,作者指出这还不足以完全捕捉相等的全部含义,并引入了第一阶逻辑中对相等的更强定义,即相等意味着两个对象可以在任何函数或属性中相互替换,而结果保持不变。这赋予了相等更强大的能力,超越了简单的等价性。

🔗 **范畴论中的情境化相等:** 文章深入探讨了范畴论中相等的概念,强调其高度的上下文依赖性。在范畴论中,两个对象相等当且仅当它们之间存在一个同构(isomorphism)。这意味着,根据所处的范畴(即允许的态射类型),两个对象可能相等,也可能不相等。例如,在只允许连续映射的范畴中,球体和立方体可能被视为相等,因为它们拓扑结构相同;但在包含距离保持映射的范畴中,它们则不相等。这揭示了相等的相对性。

🤔 **相等概念的灵活与刚性:** 通过对比一阶逻辑和范畴论中的相等定义,文章探讨了为什么范畴论中的相等似乎比一阶逻辑中的相等更“灵活”。作者推测,这可能与范畴论中允许对构成同构的条件(如合成映射等于恒等映射)进行增删有关,而一阶逻辑中的公理模式则更为固定。这种差异使得范畴论中的相等概念能够更好地适应不同数学结构和上下文,但也可能导致概念上的混淆,作者戏称自己“成功地重新神秘化了相等”。

Published on October 1, 2025 10:03 PM GMT

Whilst cycling today, I remembered that when reading Mark Kac's autobiography, Enigmas of Change, which is truly fantastic, his search for the meaning of probabilistic independence struck me as massive. What would it even mean to understand independence at a deep level? It's just P(A,B) = P(A)P(B), surely? The biography didn't truly answer that question for me, but it did gesture at what a deeper understanding might look like.

Which then reminded me that there was a famous analysis of the definition of equality in mathematics. So I figured, now's as good a time as any to get deeply confused about the most basic concept in mathematics. And I succeeded. 

First off, a brush-up with equality. What's the standard definition? Well, it's a binary, reflexive, symmetric and transitive relationship. Or, at least, that's what an equivalence relation is. You can get a trivial equivalence relationship: everything's equivalent to everything else. Not selective enough to define equality. 

OK, maybe if we look at some other definitions of equality we can get a grip on it? In set theory, you say that two sets are equal if they've got the same elements. How do you know the elements are the same i.e. equal? You just know. 

Maybe that comes from first order logic? How's equality defined there? Same as above, except there's for two big old schemas of properties it satisfies. First, if x=yf(...,x,...)=f(...,y,...)

for any function f we can cook up. Second, 

x=yϕ(...,x,...)(ϕ(...,y,...))

for any property ϕ we can cook up. 

In other words, if x=y, then they can substitute for one another in anything we do to them. 

Which is a heck of a lot more oomph than just saying equality is an equivalence relation. But now I'm less confused. I've undone all my hard work. I'll have to look at more definitions to remedy the situation. 

OK, what about in category theory? There, the notion of equality depends on context. (And in type theory.) For in a category (objects plus maps between them) two objects are equal iff there is an isomorphism between them. That is, X=Y implies there is some g:X>Y with a corresponding inverse s.t. 

g1g=IdX,gg1=IdY.

Let me give an example. Take a category of shapes, but with only continuous functions between them. Then, a sphere and a cube are isomorphic to one another, i.e. they are equal. Wait, what?

Yes, a cube and a sphere are equal to one another if you only have continuous maps available to you. For the purposes of continuous maps, the distances between things don't matter, only topology. And a cube and a sphere have the same topology.

But if you enrich the category with some more discriminating maps, say distance preserving ones, then the sphere and cube are no longer equal. Conversely, if you reduce the category by removing all the isomorphisms between the sphere and the cube, then they are no longer equal. 

This is what I meant by equality being contextual in category theory. Two objects may or may not be equal, depending on the category they're in. You can go to a "bigger" category and make two objects unequal. Or you can go to a smaller category and make them unequal.

But that doesn't make sense. In a theory in first order logic, whether two things are equal or not also depends on the context i.e. the axioms of the and theory you're working with. For instance, are the symbols "1" = "2" in first order logic? Depends on the axioms! You may not be able to prove it either way if the axioms are weak enough. Which is certainly the case if your theory has no axioms, except for the logical axioms assumed by the logic itself. 

If you add some axioms and strengthen the theory, then you could get equality or inequality. But once you have it, adding axioms can't change whether two things are equal or not. At least, not without running into contradictions?

So what gives? Why is equality in category theory more "flexible" than of first order logic? And have I remystified equality for myself?

In both cases, equality is reflexive, symmetric, transitive and binary. In both cases, if two objects are equal, then you can substitute them for one another in any operation and wind up with equivalent results. 

Is it just that you can have many different equalities between objects in category theory? Is it some weird feature of the semantics of the theory? My current guess is that the equivalent of the axiom schemas for equality from FOL in category theory are all the statements like g1g=IdX,gg1=IdY. We can add/remove any of these conditions (except when g:X>X=IdX) from the category. But we can't do the same for the axiom schemas in FOL. And that's why they're more rigid. 

So confusion dissolved? Well, at least until I tackle equality in programming. 



Discuss

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

数学 相等 范畴论 一阶逻辑 概念辨析 Mathematics Equality Category Theory First-Order Logic Conceptual Analysis
相关文章