Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Cognitive similarity distance, cognition balls, cognitive limits

Definition
CogCons_similarity_distance

by LG · Sep 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

consequence-operatorlogictopology

A cognitive similarity distance on a set CCC is a function Cog:C×C→[0,1]\mathrm{Cog} : C \times C \to [0,1]Cog:C×C→[0,1] together with a relation ≈\approx≈ on CCC ("cognitively coincide") such that for all x,y,z∈Cx, y, z \in Cx,y,z∈C:

  1. Cog(x,y)=0  ⟺  x≈y\mathrm{Cog}(x,y) = 0 \iff x \approx yCog(x,y)=0⟺x≈y;
  2. Cog(x,y)=Cog(y,x)\mathrm{Cog}(x,y) = \mathrm{Cog}(y,x)Cog(x,y)=Cog(y,x);
  3. x≈zx \approx zx≈z implies Cog(x,y)=Cog(z,y)\mathrm{Cog}(x,y) = \mathrm{Cog}(z,y)Cog(x,y)=Cog(z,y);
  4. Cog(x,z)≤Cog(x,y)+Cog(y,z)\mathrm{Cog}(x,z) \le \mathrm{Cog}(x,y) + \mathrm{Cog}(y,z)Cog(x,z)≤Cog(x,y)+Cog(y,z).

The cognition ball is B(x,ε)={y∈C:Cog(x,y)<ε}B(x,\varepsilon) = \{y \in C : \mathrm{Cog}(x,y) < \varepsilon\}B(x,ε)={y∈C:Cog(x,y)<ε}. A sequence (xn)n≥0(x_n)_{n \ge 0}(xn​)n≥0​ converges to xxx (and xxx is a cognitive limit) if

∀ε∈(0,1) ∃m ∀n≥m: Cog(x,xn)<ε.\forall \varepsilon \in (0,1)\ \exists m\ \forall n \ge m:\ \mathrm{Cog}(x, x_n) < \varepsilon.∀ε∈(0,1) ∃m ∀n≥m: Cog(x,xn​)<ε.

A set A⊆CA \subseteq CA⊆C is a Gödel's incompleteness black hole for (xn)(x_n)(xn​) with virtual limit xxx if there are ε∈(0,1)\varepsilon \in (0,1)ε∈(0,1) and kkk with xn∉B(x,ε)x_n \notin B(x,\varepsilon)xn​∈/B(x,ε) for all n≥kn \ge kn≥k and B(x,ε)⊆AB(x,\varepsilon) \subseteq AB(x,ε)⊆A.

These are the objects of the paper's Sections 3.1 and 5.

Formalization Note Sequences are indexed from 000 rather than 111. The "solution space of a problem" in Definition 5.1 is not modelled.

Definition code
import Mathlib

namespace CogCons

/-- Definition 3.5 (Acharjee–Gogoi): a cognitive similarity distance on a set of
thoughts `C`, together with the relation `x ≈ y` ("x and y cognitively coincide"). -/
structure CognitiveSimilarityDistance (C : Type*) where
  /-- The distance `Cog : C × C → [0, 1]`. -/
  Cog : C → C → ℝ
  /-- The relation `x ≈ y`. -/
  coincide : C → C → Prop
  /-- `Cog` takes values in `[0, 1]` (this also gives property (i), `Cog(x, y) ≥ 0`). -/
  Cog_mem_Icc : ∀ x y : C, Cog x y ∈ Set.Icc (0 : ℝ) 1
  /-- (ii) `Cog(x, y) = 0 ↔ x ≈ y`. -/
  Cog_eq_zero_iff : ∀ x y : C, Cog x y = 0 ↔ coincide x y
  /-- (iii) symmetry. -/
  Cog_symm : ∀ x y : C, Cog x y = Cog y x
  /-- (iv) if `x ≈ z` then `Cog(x, y) = Cog(z, y)`. -/
  Cog_congr : ∀ x y z : C, coincide x z → Cog x y = Cog z y
  /-- (v) triangle inequality. -/
  Cog_triangle : ∀ x y z : C, Cog x z ≤ Cog x y + Cog y z

namespace CognitiveSimilarityDistance

variable {C : Type*} (D : CognitiveSimilarityDistance C)

/-- Definition 3.6: the cognition ball `B(x, ε) = {y ∈ C : Cog(x, y) < ε}`. -/
def cognitionBall (x : C) (ε : ℝ) : Set C := {y : C | D.Cog x y < ε}

/-- Definition 3.8: a sequence of thoughts `s` converges to the thought `x` (`x` is a
cognitive limit of `s`) if for each `ε ∈ (0, 1)` there is `m` with `Cog(x, sₙ) < ε`
for all `n ≥ m`. Sequences are indexed from `0`. -/
def ConvergesTo (s : ℕ → C) (x : C) : Prop :=
  ∀ ε ∈ Set.Ioo (0 : ℝ) 1, ∃ m : ℕ, ∀ n ≥ m, D.Cog x (s n) < ε

/-- Definition 5.1: `A` is a Gödel's incompleteness black hole for the solution sequence
`s` with virtual cognitive limit `x`: for some `ε ∈ (0, 1)` there is `k` with
`sₙ ∉ B(x, ε)` for all `n ≥ k`, and `B(x, ε) ⊆ A`. -/
def IsGodelBlackHole (A : Set C) (s : ℕ → C) (x : C) : Prop :=
  ∃ ε ∈ Set.Ioo (0 : ℝ) 1, ∃ k : ℕ,
    (∀ n ≥ k, s n ∉ D.cognitionBall x ε) ∧ D.cognitionBall x ε ⊆ A

end CognitiveSimilarityDistance

end CogCons
Source
S. Acharjee and U. Gogoi, *The limit of human intelligence*, arXiv:2310.10792v2 [math.GM] (2023), https://arxiv.org/abs/2310.10792, Definitions 3.5, 3.6 (pp. 9–10), Definition 3.8 (p. 11), Definition 5.1 (p. 21)
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted these Lean statements, not by an independent auditor working blind from the code alone. The author knew the intended meaning while writing it, so it may read that intent into the code. Do not treat it as independent verification; compare the Lean code against the source directly.

The file defines a structure on a type CCC consisting of a real-valued function Cog(x,y)\mathrm{Cog}(x,y)Cog(x,y) on pairs and a relation x≈yx \approx yx≈y, such that 0≤Cog(x,y)≤10 \le \mathrm{Cog}(x,y) \le 10≤Cog(x,y)≤1, Cog(x,y)=0  ⟺  x≈y\mathrm{Cog}(x,y) = 0 \iff x \approx yCog(x,y)=0⟺x≈y, Cog(x,y)=Cog(y,x)\mathrm{Cog}(x,y) = \mathrm{Cog}(y,x)Cog(x,y)=Cog(y,x), x≈zx \approx zx≈z implies Cog(x,y)=Cog(z,y)\mathrm{Cog}(x,y) = \mathrm{Cog}(z,y)Cog(x,y)=Cog(z,y) for all yyy, and Cog(x,z)≤Cog(x,y)+Cog(y,z)\mathrm{Cog}(x,z) \le \mathrm{Cog}(x,y) + \mathrm{Cog}(y,z)Cog(x,z)≤Cog(x,y)+Cog(y,z). It defines the ball B(x,ε)={y:Cog(x,y)<ε}B(x,\varepsilon) = \{y : \mathrm{Cog}(x,y) < \varepsilon\}B(x,ε)={y:Cog(x,y)<ε} for any real ε\varepsilonε; convergence of s:N→Cs : \mathbb N \to Cs:N→C to xxx as: for every ε\varepsilonε with 0<ε<10 < \varepsilon < 10<ε<1 there is mmm with Cog(x,sn)<ε\mathrm{Cog}(x, s_n) < \varepsilonCog(x,sn​)<ε for all n≥mn \ge mn≥m; and "AAA is a Gödel black hole for sss and xxx" as: there are ε∈(0,1)\varepsilon \in (0,1)ε∈(0,1) and kkk with sn∉B(x,ε)s_n \notin B(x,\varepsilon)sn​∈/B(x,ε) for all n≥kn \ge kn≥k and B(x,ε)⊆AB(x,\varepsilon) \subseteq AB(x,ε)⊆A. No link to a consequence operator is made.

Human review
  • Endorsed by Shuze Chen · Sep 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Sep 30, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me