Lean-43 — The covering bound C(24,14,4) ≥ 20, certified in Lean

Lancer : Codespaces Colab

Navigation : Index | << Lean-42 Certified arithmetic independence | Version francaise

Lake : covering_lean/ — pinned consumer of the covering package from jamesyc/covering.

Source : paper A structural lower bound for C(24,14,4) (Apache-2.0), archived in the shared shelf Bibliographie IA/Automata/Complexity Theory and Hardness/2026 - Chang - A structural lower bound for C(24,14,4) (github jamesyc-covering, Apache-2.0, Lean formalise).pdf. Series issue: #27477, milestone 3.

Objectives

Prerequisites : no prior knowledge of covering designs is required — the definition is given at the head of the notebook, before the plan. One only has to know how to handle a family of blocks and read a combinatorial statement. On the Lean side, the basics (modules, lake, #print axioms): the notebook Lean-42 introduced the consumer-lake pattern; this one continues with a combinatorial example.

Estimated duration : 45 minutes of reading, plus the time of a Lean build (a few minutes on an already-built lake).

Before starting: what a covering number is

Before reading a single line of Lean, one has to know what is at stake.

A covering design (v, k, t) is a family of blocks — each of them holds k points — over a set of v points, such that every subset of t points is contained in at least one of the blocks. C(v,k,t) is the smallest possible number of blocks.

Two directions, and two very different costs:

Direction What it takes What it says
an upper bound exhibiting a family of blocks that covers C(v,k,t) ≤ m
a lower bound ruling out every family of fewer than m blocks C(v,k,t) ≥ m

The upper bound is an example: one only has to exhibit the blocks, and the check is done by hand. The lower bound is an exclusion: every possible configuration has to be reviewed and discarded one by one. The lower bound is the expensive one — and a lower bound is what this notebook consumes: the question the upstream repository asks is « at least how many blocks? », not « how many blocks were we able to build? ».

The notebook holds that distinction from beginning to end: a lower bound is not a covering number.

Plan

One reads the subject first (above), then the chain of trust that makes that reading verifiable — the lake, the pin, the build, the axiom audit — then the figures, the reading, the exercises.

  1. The consumer lake : where the upstream package lives, at which commit, with which toolchain.
  2. The pin : re-read the manifest and check that the revision holds.
  3. The build : build the witness, read what lake actually did.
  4. The axiom audit : #print axioms on the two theorems, and the mechanical verdict.
  5. The numbers of the paper : bounds, the upstream table, propagation by Schönheim.
  6. Reading : what « C(24,14,4) ≥ 20 » establishes, and what it does not say.
  7. Exercises : three, to be written in the stub cells.

1. The consumer lake

The covering_lean lake defines nothing: it pins the covering package of the upstream repository and imports its theorems. The clause of the lakefile.lean is direct:

require «covering» from git
  "https://github.com/jamesyc/covering.git" @ "e28962cff844f155ca5a5cfb22563083369b490e"

No fork, no copy, no adaptation: Lake clones the upstream repository at the announced commit and loads the package exactly as published.

The upstream declares three libraries, and they do not play the same role:

Library Role Content
Covering the proof the modules that build the argument, up to Covering/Main.lean
Challenge the audit artefact the two statements with sorry — the question asked, not the answer
Solution the answer the same statements, proved, for the submission to the Palomar registry

The consumer imports Covering only. It touches neither Challenge (the sorry there are deliberate: that is the specification) nor Solution (redundant with Covering.Main).

The toolchain of the lake is v4.35.0-rc3, the one of the upstream package, which pins Mathlib to the same tag. This is not an oversight: the series now counts three lakes with three toolchains (formal_logic_lean on 4.33.1, busybeaver_lean on v4.35.0, covering_lean on v4.35.0-rc3). One lake per toolchain is the shape Lake provides for; the three live side by side, with no dependency between them.

The next cell locates the lake, computes the WSL path, and compares the SHA-256 digests of the build files between the repository and the lake actually used: a build that succeeds in that lake is worth something for the repository only if the four digests coincide.

import hashlib
import os
import pathlib
import subprocess

NB_DIR = pathlib.Path.cwd()
REPO_LAKE = NB_DIR / "covering_lean"
PIN_ATTENDU = "e28962cff844f155ca5a5cfb22563083369b490e"


def wslpath(p):
    # Chemin Windows -> chemin WSL, calcule par WSL lui-meme.
    r = subprocess.run(["wsl", "-e", "wslpath", "-a", str(p).replace(chr(92), "/")],
                       capture_output=True, text=True, encoding="utf-8", errors="replace")
    return r.stdout.strip()


def wsl_sh(commande, tentatives=3):
    # Execute une commande shell dans WSL et rend sa sortie standard.
    # WSL peut refuser une invocation transitoirement (machine virtuelle occupee
    # par un build borne) : on rejoue, et on leve si l'echec est reel plutot
    # que de rendre une sortie vide que l'on croirait lire.
    dernier = None
    for _ in range(tentatives):
        r = subprocess.run(["wsl", "-e", "bash", "-lc", commande],
                           capture_output=True, text=True, encoding="utf-8", errors="replace")
        if r.returncode == 0:
            return r.stdout
        dernier = r
    raise RuntimeError(f"wsl a echoue (rc={dernier.returncode}) : {commande}\n"
                       f"{dernier.stderr.strip()}")


LAKE_OVERRIDE = os.environ.get("COVERING_LAKE_WSL")
LAKE_DIR = LAKE_OVERRIDE or wslpath(REPO_LAKE)
LEAN_EXEC = wslpath(NB_DIR.parents[2] / "scripts" / "lean" / "lean_exec.py")


def lean_exec(commande, timeout=900):
    # Lance `commande` dans le lake via l'organe borne ; rend (code, sortie, journal).
    r = subprocess.run(
        ["wsl", "-e", "bash", "-lc",
         f"cd {LAKE_DIR} && python3 {LEAN_EXEC} run --timeout {timeout} -- {commande}"],
        capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=timeout + 120)
    journal = [l for l in r.stderr.splitlines() if l.startswith("[lean_exec]")]
    return r.returncode, r.stdout, journal


FICHIERS_BUILD = ["lean-toolchain", "lakefile.lean", "lake-manifest.json", "CoveringConsumer.lean"]

# Tout est accumule puis imprime en UNE fois : un seul flush stdout, donc une
# seule sortie commitee -- le jumeau EN ne peut pas decouper autrement.
lignes = ["lake utilise : " + ("copie (COVERING_LAKE_WSL)" if LAKE_OVERRIDE
                               else "covering_lean du depot")]
cote_wsl = wsl_sh(f"cd {LAKE_DIR} && sha256sum " + " ".join(FICHIERS_BUILD)).splitlines()
empreintes_wsl = {l.split()[1]: l.split()[0] for l in cote_wsl if l.strip()}
identiques = 0
for nom in FICHIERS_BUILD:
    h_depot = hashlib.sha256((REPO_LAKE / nom).read_bytes()).hexdigest()
    h_lake = empreintes_wsl.get(nom, "absent")
    identiques += h_depot == h_lake
    lignes.append(f"  {nom:22s} depot {h_depot[:12]}  lake {h_lake[:12]}  "
                  f"{'identique' if h_depot == h_lake else 'DIFFERENT'}")
lignes.append(f"{identiques}/{len(FICHIERS_BUILD)} fichiers identiques"
              + ("  (comparaison triviale : meme dossier)" if not LAKE_OVERRIDE else ""))

# Le manifeste peut annoncer un pin ; la tete du clone reellement construit le
# prouve. Les deux sont lus : le manifeste a la cellule suivante, la tete ici.
tete = wsl_sh(f"git -C {LAKE_DIR}/.lake/packages/covering rev-parse HEAD").strip()
lignes.append("tete du clone amont : " + tete)
lignes.append("pin tenu (clone)    : " + str(tete == PIN_ATTENDU))
lignes.append("toolchain           : " + (REPO_LAKE / "lean-toolchain").read_text().strip())
print("\n".join(lignes))
lake utilise : copie (COVERING_LAKE_WSL)
  lean-toolchain         depot bc84812c9448  lake bc84812c9448  identique
  lakefile.lean          depot c67a35e583ad  lake c67a35e583ad  identique
  lake-manifest.json     depot 1871390ce742  lake 1871390ce742  identique
  CoveringConsumer.lean  depot 735b5d878c01  lake 735b5d878c01  identique
4/4 fichiers identiques
tete du clone amont : e28962cff844f155ca5a5cfb22563083369b490e
pin tenu (clone)    : True
toolchain           : leanprover/lean4:v4.35.0-rc3

Reading the set-up

Four lines, one per build file: each shows the digest on the repository side and the digest on the lake side. All of them must read identique — otherwise the lake that was built is a different object than the one in the repository (a forgotten copy, an intermediate state). When the lake is a copy prepared in advance (the COVERING_LAKE_WSL variable), the comparison is real; on the repository lake it is trivially true, and the cell says so rather than letting it be believed.

Two lines close the blind spot of the manifest: git rev-parse HEAD on the upstream clone gives the revision actually checked out, and pin tenu (clone) must read True. A manifest may announce a pin the clone does not have; the head of the clone cannot. The toolchain shown is the one lake will use — v4.35.0-rc3.

2. The pin, re-read in the manifest

lake update resolved the from git clause into a revision written in lake-manifest.json. That file is the contract: every later build starts from those revisions, not from the upstream branch.

The cell reads the manifest and looks for the covering package. We expect the commit e28962cf… — the one on which the upstream publishes its package, its audit and its paper. A manifest carrying any other revision would be a silent drift: the build would succeed, but on different content.

# Le manifeste Lake fige le commit exact du paquet : c'est la preuve du pin.
import json

manifeste = json.loads((REPO_LAKE / "lake-manifest.json").read_text(encoding="utf-8"))
# `covering` est la dependance directe ; les autres paquets viennent de ses transitives.
paquet = next(p for p in manifeste["packages"] if p["name"] == "covering")
print("paquet      :", paquet["name"])
print("rev         :", paquet["rev"])
print("url         :", paquet["url"])
print("pin tenu    :", paquet["rev"] == PIN_ATTENDU)
print("sous-dir lu :", paquet.get("subDir"))
print("dependances :", ", ".join(sorted(p["name"] for p in manifeste["packages"]
                                       if p["name"] != "covering")))
paquet      : covering
rev         : e28962cff844f155ca5a5cfb22563083369b490e
url         : https://github.com/jamesyc/covering.git
pin tenu    : True
sous-dir lu : None
dependances : Cli, LeanSearchClient, Qq, aesop, batteries, importGraph, mathlib, plausible, proofwidgets

Reading the pin

Four values to confront: rev must equal the expected pin (pin tenu : True), url must designate jamesyc/covering, sous-dir lu must read None — the package sits at the root of the upstream repository, unlike the PA196 package consumed by the Lean-42 sibling, which lives in a subdirectory — and the dependency list must be the one the upstream package declares. Those dependencies — Mathlib, then aesop, batteries, Qq, Cli, plausible, proofwidgets, import-graph, LeanSearchClient — are resolved by the upstream package itself: this lake does not re-declare them, so it cannot make them diverge.

Mathlib is here at v4.35.0-rc3, the revision the upstream pins: the consistency between the package and its base library holds without any intervention of ours.

3. The build

The cell runs lake build in the lake, through the organ scripts/lean/lean_exec.py: machine-wide cap, confinement of the process tree, measured budget. It is the same organ as the other Lean notebooks of the series; no lake is launched by hand.

On a fresh lake, two commands come first: lake update (resolution of the pin and writing of the manifest) then lake exe cache get (Mathlib oleans of the upstream revision). Without the cache, Mathlib would be compiled from the sources — several hours for content the upstream already publishes. The notebook takes them for granted: its object is the build of the witness, not the preparation of the lake.

A first build then pays for the compilation of the upstream package — a little under a hundred modules — while Mathlib and Batteries already arrive compiled through the cache. The following ones are incremental. The number of tasks lake prints is therefore a state of the cache, not a property of the result: that is why the cell keeps only the conclusion line.

# Build du temoin : incremental une fois les oleans en place.
code_retour, sortie, journal = lean_exec("lake build", timeout=5400)
# Seule la ligne de conclusion est retenue : le detail des taches (et leur
# duree) depend de l'etat du cache, pas du resultat.
utiles = [l for l in sortie.splitlines() if l.startswith("Build completed successfully")]
print("\n".join(utiles[-1:]))
print("build reussi :", code_retour == 0)
# Le temps de build varie d'un run a l'autre : normalise, sinon le jumeau EN
# ne peut pas porter la meme sortie (garde twin-parity).
import re
print("\n".join(re.sub(r"duration=[0-9.]+s", "duration=mesuree", l) for l in journal))
print("code de retour :", code_retour)
Build completed successfully (2180 jobs).
build reussi : True
[lean_exec] ok exit=0 duration=mesuree orphans=0
[lean_exec] child_exit_code: 0
code de retour : 0

Reading the build

The return code must be zero: a lake build that fails returns a non-zero code and error lines. The organ’s journal carries the admission measure and the « zero orphan descendant » postcondition; its duration is normalised, because it depends on the machine rather than on the result.

The conclusion line — Build completed successfully — is the one that counts: it means that the whole set of targets was built, the upstream package as well as the consumer module. An incremental build may print no task at all: that is the sign that the .olean files are up to date, not that nothing was checked.

The upstream package publishes its own checks: the Solution module carries the #print axioms of its two theorems, and the comparator.json file the list of axioms the upstream grants itself. The next section confronts our audit with that list, rather than with a list invented on the spot.

4. The axiom audit

Lean can be asked, for each theorem, for the list of axioms its proof depends on. That is the measurement that tells a complete proof apart from a proof that leans on sorry (sorryAx) or on native evaluation (Lean.ofReduceBool, through native_decide).

The CoveringConsumer.lean module of the lake writes two #print axioms: Covering.covering_24_14_4 and Covering.covering_25_15_5. The cell re-elaborates the module with lake env lean — the imports are resolved by the lake — and reads the axiom lines.

The module also carries two constant-body witnesses (def witness_covering_24_14_4, def witness_covering_25_15_5): the inferred type is the upstream statement, without copying it. They are not proof objects — they are the declarations that the CI axiom organ enumerates for this lake; without them the gate would inspect nothing.

The verdict is then mechanical, not declarative: the next cell compares the quoted set with the whitelist propext, Classical.choice, Quot.sound, with the forbidden list sorryAx, Lean.ofReduceBool, Lean.trustCompiler, and with the list the upstream publishes itself in comparator.json.

# Audit d'axiomes : `lake env lean` re-elabore le module et imprime chaque
# ligne `#print axioms` ecrite dans CoveringConsumer.lean.
code_retour, sortie, journal = lean_exec("lake env lean CoveringConsumer.lean", timeout=1800)
lignes_axiomes = [l.strip() for l in sortie.splitlines() if "axioms" in l.lower()]
print("\n".join(lignes_axiomes))
print("code de retour :", code_retour)
'Covering.covering_24_14_4' depends on axioms: [propext, Classical.choice, Quot.sound]
'Covering.covering_25_15_5' depends on axioms: [propext, Classical.choice, Quot.sound]
code de retour : 0

Reading the axiom lines

Two lines, one per theorem, and the same list in both cases: propext, Classical.choice, Quot.sound. These are the three axioms of the Lean kernel and of Mathlib — propositional extensionality, classical choice, quotients. None of them is a hole in a proof: sorryAx would be one, and it is not in the list.

The next cell does not settle for this reading: it confronts the measured set with the list the upstream publishes in comparator.json, that is, with what the upstream itself declares acceptable for its submission. That is a cross-check, not a second reading of the same list.

AUTORISES = {"propext", "Classical.choice", "Quot.sound"}
INTERDITS = {"sorryAx", "Lean.ofReduceBool", "Lean.trustCompiler"}


def axiomes_cites(lignes):
    # Extrait l'ensemble des axiomes cites par les lignes `#print axioms`.
    trouves = set()
    for ligne in lignes:
        if "depends on axioms:" in ligne:
            liste = ligne.split("depends on axioms:")[-1].strip().strip("[]")
            trouves |= {a.strip() for a in liste.split(",") if a.strip()}
        # « does not depend on any axioms » : ensemble vide, rien a ajouter.
    return trouves


cites = axiomes_cites(lignes_axiomes)
print("axiomes cites :", sorted(cites) if cites else "(aucun)")
print("hors liste blanche :", sorted(cites - AUTORISES) or "(aucun)")
print("interdits presents :", sorted(cites & INTERDITS) or "(aucun)")
print("audit concluant :", cites <= AUTORISES and not (cites & INTERDITS))

# Controle croise : la liste que l'amont publie lui-meme pour sa soumission.
comparateur_texte = wsl_sh(f"cat {LAKE_DIR}/.lake/packages/covering/comparator.json")
if not comparateur_texte.strip():
    raise RuntimeError("comparator.json vide : la lecture amont a echoue")
comparateur = json.loads(comparateur_texte)
autorises_amont = set(comparateur["permitted_axioms"])
print("liste de l'amont :", sorted(autorises_amont))
print("concordance avec l'amont :", cites <= autorises_amont)
print("theoremes declares :", " | ".join(comparateur["theorem_names"]))
axiomes cites : ['Classical.choice', 'Quot.sound', 'propext']
hors liste blanche : (aucun)
interdits presents : (aucun)
audit concluant : True
liste de l'amont : ['Classical.choice', 'Quot.sound', 'propext']
concordance avec l'amont : True
theoremes declares : Covering.Palomar.covering_24_14_4_lower_bound | Covering.Palomar.covering_25_15_5_lower_bound

Reading the audit

Three verdicts are read here, and they are distinct.

audit concluant : True is the only acceptable outcome as far as the kernel is concerned: the quoted set is a subset of the whitelist, and no forbidden axiom appears. A sorryAx would signal a proof left empty upstream; a Lean.ofReduceBool would signal a call to native_decide, whose trust rests on the compiler rather than on the kernel.

concordance avec l'amont : True is an independent check: the reference list is not the one written by hand above, it is the one in the comparator.json file published by the upstream. A gap between the two would signal that the upstream grants itself more than the Lean kernel requires — or that the file in the repository and the built package are not the same object.

theoremes declares names the two statements the upstream submits to the registry: Covering.Palomar.covering_24_14_4_lower_bound and Covering.Palomar.covering_25_15_5_lower_bound. They are the same statements, written in the usual Finset formulation, as those that the module Covering/Main.lean proves and that the notebook reads below.

5. The numbers of the paper

C(v,k,t) was defined at the head of the notebook: here v = 24 points, blocks of k = 14 points, and every t = 4-subset has to be covered. The question of the paper is of the lower bound kind: how many blocks are needed at least?

The cell reads these numbers in the consumed package, at the pinned revision — the bounds table is parsed from the upstream README.md and the constants are collected in Covering/Main.lean — then it computes the propagation through the Schönheim recurrence.

It re-proves nothing: the proof is the upstream one, consumed by the lake. Confronting a statement with its data is reading hygiene, not a claim of result.

# Les nombres, lus dans le paquet consomme a la revision epinglee : le tableau
# des bornes est parse depuis le README amont, pas recopie depuis le texte.
import re

texte_amont = wsl_sh(f"cat {LAKE_DIR}/.lake/packages/covering/README.md")
if not texte_amont.strip():
    raise RuntimeError("README amont vide : la lecture amont a echoue")
bornes = {}
for ligne in texte_amont.splitlines():
    m = re.match(r"\|\s*C\((\d+),\s*(\d+),\s*(\d+)\)\s*\|\s*(\d+)\s*\|\s*\*\*(\d+)\*\*\s*\|\s*(\d+)\s*\|",
                 ligne)
    if m:
        v, k, t, avant, apres, meilleur = (int(x) for x in m.groups())
        bornes[(v, k, t)] = (avant, apres, meilleur)

print("bornes lues dans le tableau amont :")
for (v, k, t), (avant, apres, meilleur) in sorted(bornes.items()):
    print(f"  C({v},{k},{t}) : borne precedente {avant} -> borne prouvee {apres}"
          f" | meilleure couverture connue {meilleur}")

# Les constantes des enonces, relevees dans le module de l'amont.
main_lean = wsl_sh(f"cat {LAKE_DIR}/.lake/packages/covering/Covering/Main.lean")
for motif, libelle in [
    (r"Finset \(Fin 24\)", "point set Fin 24"),
    (r"card = 14", "blocs de 14"),
    (r"card = 4 ", "sous-ensembles de 4"),
    ("20 ≤ ", "borne 20"),
    (r"Finset \(Fin 25\)", "point set Fin 25"),
    (r"card = 15", "blocs de 15"),
    (r"card = 5 ", "sous-ensembles de 5"),
    ("34 ≤ ", "borne 34"),
]:
    print(f"enonce contient {libelle:22s} :", bool(re.search(motif, main_lean)))

# La recurrence de Schonheim : C(v,k,t) >= ceil(v/k * C(v-1,k-1,t-1)).
def schoenheim(v, k, borne_interieure):
    # Plus petit entier superieur ou egal a (v * borne_interieure) / k.
    return -(-v * borne_interieure // k)


propages = [(26, 16, 6, 34), (27, 17, 7, 56), (28, 18, 8, 89)]
lus = re.search(r"improves C\(26,16,6\) to (\d+), C\(27,17,7\) to (\d+) "
                r"and C\(28,18,8\) to (\d+)", texte_amont)
lus = [int(x) for x in lus.groups()] if lus else []
print("propagation par Schonheim (25,15,5) -> 34 :", schoenheim(25, 15, 20))
for (v, k, t, base), annonce in zip(propages, lus + [None] * 3):
    calcule = schoenheim(v, k, base)
    print(f"  C({v},{k},{t}) : {base} -> {calcule} | amont annonce {annonce}"
          + (" | concordance : " + str(calcule == annonce) if annonce else ""))
bornes lues dans le tableau amont :
  C(24,14,4) : borne precedente 19 -> borne prouvee 20 | meilleure couverture connue 23
  C(25,15,5) : borne precedente 32 -> borne prouvee 34 | meilleure couverture connue 42
enonce contient point set Fin 24       : True
enonce contient blocs de 14            : True
enonce contient sous-ensembles de 4    : True
enonce contient borne 20               : True
enonce contient point set Fin 25       : True
enonce contient blocs de 15            : True
enonce contient sous-ensembles de 5    : True
enonce contient borne 34               : True
propagation par Schonheim (25,15,5) -> 34 : 34
  C(26,16,6) : 34 -> 56 | amont annonce 56 | concordance : True
  C(27,17,7) : 56 -> 89 | amont annonce 89 | concordance : True
  C(28,18,8) : 89 -> 139 | amont annonce 139 | concordance : True

Reading the numbers

Three readings, three different scopes.

The upstream table. The bounds sit there in three columns: the lower bound previously proven, the lower bound proven by the package, and the best covering known. For C(24,14,4): 19 → 20, the best known construction requiring 23 blocks. For C(25,15,5): 32 → 34, best known construction requiring 42 blocks. The gain is one block on the first, two on the second — and that is exactly what the propagation by Schönheim produces, as seen below.

The constants of the statements. The eight enonce contient … lines must all read True: that is the re-reading of the statement in its source, not in a comment. The upstream module does say Fin 24, blocks of 14, 4-subsets, a bound 20 ≤, then Fin 25, blocks of 15, 5-subsets, a bound 34 ≤.

The propagation. The Schönheim recurrence states that a covering of v points by blocks of k requires at least ⌈v/k × C(v−1,k−1,t−1)⌉ blocks. Applied to C(25,15,5) with the bound 20, it gives ⌈25 × 20 / 15⌉ = 34. Applied once more, it gives C(26,16,6) → 56, C(27,17,7) → 89, C(28,18,8) → 139 — the values the upstream repository announces as well. Every concordance : True confronts our computation with the upstream sentence.

Why a one-unit gain matters. The upstream table keeps track of two things: the lower bound previously proven, and the one the package proves. The gap between the proven bound and the best known construction — 23 blocks for the first value — is exactly the space the research explores: as long as the two numbers do not meet, the covering number is not determined. Gaining one block on the lower bound moves that frontier by one step; the gain looks small, and this is a result one publishes. Note finally what the third column means: the best known construction is an upper bound, obtained by construction — so a lower bound reaching it would be optimal.

Those last three numbers are not proven by the package: they are the arithmetic consequence of the Schönheim bound, applied by us. The package does not formalise them — the upstream says so explicitly.

6. Reading: what « C(24,14,4) ≥ 20 » says, and what it does not say

C(v,k,t) was defined at the head of the notebook; the two theorems answer each other, and it is worth separating them:

Theorem Statement What it establishes
covering_24_14_4 20 ≤ 𝒯.card every family of blocks of 14 covering the 4-subsets of 24 points has at least 20 blocks
covering_25_15_5 34 ≤ 𝒯.card every family of blocks of 15 covering the 5-subsets of 25 points has at least 34 blocks

The second is a corollary of the first: it goes through the one-point derivatives and the Schönheim bound. It costs no second argument.

What it does not say:

  • neither that C(24,14,4) = 20. A lower bound of 20 leaves the values 20, 21, 22 and 23 open; the best known construction needs 23. The gap between the two is precisely the object of the open question.
  • neither that the covering number is determined. The upstream repository is explicit: it establishes bounds, it determines neither covering number.
  • neither that the bound 34 for C(25,15,5) is optimal. The best known construction needs 42; the previous bound is 32.

The interest of the formalisation is not the number — one more point on a bound known for decades of combinatorics. It lies in the traceability: the chain of deductions (degree and incidence counts, rank arguments, rigidity results, then the exclusion of the remaining configurations) is written in Lean and checked by the kernel. A mistake in a base case along one of those steps would not pass unnoticed, whereas it would most likely pass unnoticed in a paper.

This is the formal side that was missing from the notebook Complexity-08d: that one presented the bounds and announced their branching; this one branches them.

Exercise 1 — The audit predicate

Objective : turn a whitelist into a decision. An axiom audit does not merely list what is forbidden — it answers « yes » or « no » to a list of axioms actually cited by a proof. That is the gesture that turns the reading of a #print axioms (a finding) into a guard (an automatic check).

# Exercice 1 : ecrire le predicat d'audit qui refuserait un axiome interdit.
def audit_concluant(lignes):
    # TODO etudiant : renvoyer True si tous les axiomes cites sont dans AUTORISES.
    resultat = None  # TODO etudiant
    return resultat


print("Exercice a completer : audit_concluant(lignes_axiomes)")
Exercice a completer : audit_concluant(lignes_axiomes)

Exercise 2 — The Schönheim recurrence

Objective : write the propagation, that is, move from one lower bound to another without redoing the upstream work. The recurrence is an arithmetic derivation: from a bound on the inner parameters, it produces a lower bound on the outer ones. The exercise does not ask to understand the combinatorial proof — it asks to know how to apply it, and to know what it does not prove.

# Exercice 2 : ecrire la borne de Schonheim C(v,k,t) >= ceil(v/k * borne interieure).
def borne_de_schonheim(v, k, borne_interieure):
    # TODO etudiant : renvoyer le plus petit entier superieur ou egal a
    # (v * borne_interieure) / k.
    resultat = None  # TODO etudiant
    return resultat


print("Exercice a completer : borne_de_schonheim(25, 15, 20)")
Exercice a completer : borne_de_schonheim(25, 15, 20)

Exercise 3 — Lower bound and covering number

Objective : name the status of a result. This is the exercise that separates the two notions the whole notebook tries not to confuse: a lower bound (C(v,k,t) ≥ m) and a covering number (C(v,k,t) = m). A lower bound and an upper bound that meet give the exact number; as long as they do not meet, the space between the two remains open.

# Exercice 3 : distinguer une borne inferieure prouvee d'un nombre de couverture.
def classe_du_resultat(borne_inferieure, meilleure_couverture_connue):
    # TODO etudiant : renvoyer "borne inferieure" si le resultat ne donne qu'un
    # plancher, "nombre de couverture" s'il determine exactement C(v,k,t).
    resultat = None  # TODO etudiant
    return resultat


print("Exercice a completer : classe_du_resultat(20, 23)")
Exercice a completer : classe_du_resultat(20, 23)

7. Conclusion

  • The covering package is consumed as is, at the pinned commit, by the from git clause: no fork, no copy, no adaptation.
  • The build passes under the bounded organ, and the axiom audit quotes only propext, Classical.choice, Quot.sound — a set concordant with the list the upstream publishes itself in comparator.json. No sorryAx, no native_decide.
  • The result is a lower bound: C(24,14,4) ≥ 20 and C(25,15,5) ≥ 34. The covering numbers themselves remain undetermined, and the upstream repository says so.
  • The figures are read in the consumed package, at the pinned revision: the bounds table, the constants of the statements, and the Schönheim propagation recomputed then confronted with the values announced by the upstream.

To remember

  • A covering design (v, k, t): blocks of k points over v points, covering every t-subset. C(v,k,t) is the smallest number of blocks.
  • Upper bound and lower bound are not the same work: an upper bound is exhibited and checked by hand, a lower bound is ruled out configuration by configuration. The lower bound is the expensive one — and a lower bound is what this certificate brings.
  • A lower bound is not a covering number: as long as an upper bound does not meet it, the space between the two remains open.
  • The chain of trust is the object of the notebook: pin, manifest, axiom audit — a certificate is worth only if one knows which source it hangs from.

Check your understanding

  1. What exactly does C(24,14,4) ≥ 20 mean, and what stays open?
  2. Why does the axiom audit confront comparator.json instead of relying on the notebook’s whitelist?
  3. Does the Schönheim recurrence propagate a proof?
Answer elements
  1. It is a lower bound: every family of blocks of 14 points covering the 4-subsets of 24 points has at least 20 of them. That does not pin down C(24,14,4): the values 20, 21, 22 and 23 remain possible, and the best known construction requires 23. The notebook says so explicitly, in § 6.
  2. Because the notebook’s whitelist is a local convention: it states what this notebook accepts, not what the upstream audited. comparator.json is the upstream’s own statement about its theorems; the agreement of the two lists is therefore a cross-check between two independent authorities, and not a second reading of the same list.
  3. No. It propagates an arithmetic derivation: from a lower bound on the inner parameters, it produces a lower bound on the outer ones. The values 56, 89 and 139 that the cell computes are not proven by the package — the upstream says so, and the notebook repeats it.

Going further

  • The purely combinatorial side of these bounds: the notebook Complexity-08d, of which this one is the formal side.
  • The upstream repository and its companion site: jamesyc/covering · https://jamesyc.com/covering/ — the bounds table and the comparator.json are published there.
  • The consumer-lake pattern, set by the previous notebook: Lean-42.

References

Retour au sommet