Left to Solve
Problems / MathOverflow (not formalized)

Generating totally balanced hypergraphs on $n$ vertices

Open, not yet stated in LeanMathOverflow (not formalized)CombinatoricsComputational Complexitydifficulty55/100

Statement

Let be an hypergraph, where is the vertices set and is the hyperedge set. A special cycle of is a sequence $ (v_1, e_1, v_2, e_2, \ldots, v_{k}, e_{k}) $, with , where , for all and such that

Definition. is a totally balanced hypergraph if it contains no special cycles.

My question. Is there any ready-to-use code (in SageMath, Macaulay2 or another system) to generate all totally balanced hypergraphs on vertices, having as output the list of hyperedges, and ideally also some visual representation?

For more on totally balanced hypergraphs refer to

Lehel, Jenö, A characterization of totally balanced hypergraphs, Discrete Math. 57, 59-65 (1985). ZBL0579.05041.

Berge, Claude, Graphs and hypergraphs. Translated by Edward Minieka. 2nd rev. ed, North-Holland Mathematical Library. Vol. 6. Amsterdam - Oxford: North- Holland Publishing Company; New York:American Elsevier Publishing Company, Inc. XIV, 528 p. Dfl. 80.00; $29.50 (1976). ZBL0311.05101.

Posed by Chess · co.combinatorics, graph-theory, algorithms, hypergraph

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-494933.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-494933.lean

import Mathlib

/-!
# Generating totally balanced hypergraphs on $n$ vertices

Source: https://mathoverflow.net/questions/494933
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_494933

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_494933