A non-medial dogma of cardinality
ProvedDogma.exists_nonmedial_dogma_card_13A dogma is a right-cancellative magma satisfying for all . Right-cancellative means that implies . A magma is medial if for all .
Theorem. There exists a dogma of cardinality which is not medial.
Dogmas of the form on a commutative ring with are medial, so this example is of a different kind. The number is a prime that is inert in , so this also shows that the condition of Dogma.exists_dogma_card_of_even_inert (even exponents at primes ) is not necessary for the existence of a dogma of a given cardinality. It is relevant to the second question of Problem 10 of the CUHK-Shenzhen AI Math Problems, which asks for which a dogma of cardinality exists.
Formalization Note. The statement is existential over a type and a binary operation. Cardinality is expressed with Nat.card, so forces to be finite. The last conjunct exhibits four elements violating mediality.
import Mathlib
namespace Dogma
theorem exists_nonmedial_dogma_card_13 :
∃ (D : Type) (star : D → D → D), Nat.card D = 13 ∧
(∀ x y z : D, star x z = star y z → x = y) ∧
(∀ x y : D, star (star x y) y = star y x) ∧
∃ a b c d : D, star (star a b) (star c d) ≠ star (star a c) (star b d) := by
sorry
end Dogma