Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

A dogma of cardinality 212121

Proved
Dogma.exists_dogma_card_21

by moona3k · Oct 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

algebrafinite-algebramagmasquasigroups

A dogma is a right-cancellative magma (D,⋆)(D,\star)(D,⋆) satisfying (x⋆y)⋆y=y⋆x(x\star y)\star y=y\star x(x⋆y)⋆y=y⋆x for all x,y∈Dx,y\in Dx,y∈D. Right-cancellative means that x⋆z=y⋆zx\star z=y\star zx⋆z=y⋆z implies x=yx=yx=y.

Theorem. There exists a dogma of cardinality 21=3⋅721=3\cdot721=3⋅7.

Both prime factors 3≡33\equiv33≡3 and 7≡2(mod5)7\equiv2\pmod 57≡2(mod5) are inert in Q(5)\mathbb Q(\sqrt5)Q(5​) and occur to the first power, so 212121 is not covered by the sufficient condition of Dogma.exists_dogma_card_of_even_inert; the condition is therefore not necessary. (An exhaustive computer search, not formalized here, finds no dogma with 333 or with 777 elements, so this order does not arise as a product of smaller ones.) The statement is relevant to the second question of Problem 10 of the CUHK-Shenzhen AI Math Problems, which asks for which nnn a dogma of cardinality nnn exists.

Formalization Note. The statement is existential over a type DDD and a binary operation. Cardinality is expressed with Nat.card, so ∣D∣=21|D|=21∣D∣=21 forces DDD to be finite.

Preamble
import Mathlib
Formal statement
namespace Dogma

theorem exists_dogma_card_21 :
    ∃ (D : Type) (star : D → D → D), Nat.card D = 21 ∧
      (∀ x y z : D, star x z = star y z → x = y) ∧
      ∀ x y : D, star (star x y) y = star y x := by
  sorry

end Dogma
Source
CUHK-Shenzhen AI Math Problems, Problem 10 (source credited to Ma Li), https://rybindmitry.github.io/problems/10.html, question 2: 'For which n does there exist a dogma of cardinality n?' This statement is an original existence result found by computer search and verified in Lean; it is not claimed in the source.

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