# Check of the claimed counterexample to Caiolo-Ferroni-Hoster Conjecture 7.3 (arXiv 2605.28474v1). # Supports: https://vibemathlab.com/news/caiolo-ferroni-hoster-conjecture-disproved-2026-11 # Written for vibemathlab.com, Nov 27, 2026. # Run: python3 caiolo-ferroni-hoster-check.py (Python 3, standard library only: fractions, itertools, math) # Expected output: the same text as caiolo-ferroni-hoster-check-output.txt. Parts 1 and 3 print "agree" on every # line, and the q=17 discriminants are the two negative 53-digit numbers from the X post. # The original header of the program follows unchanged. # # My own check (Tyler's site, written 2026-11-27) of the claimed counterexample to # Caiolo-Ferroni-Hoster Conjecture 7.3 (arXiv 2605.28474v1). Exact integer arithmetic only. # Part 1: validate my reading of the paper's gamma formula (Thm 4.9) against the chain # formula (Thm 4.1) on small explicit lattices. # Part 2: count flags of the rank-5 lattice from the construction, as I derive the # hyperplane types myself, and compute the dual Chow polynomial. from fractions import Fraction from itertools import combinations, product from math import comb # ---------- polynomials as lists of ints/Fractions, index = power ---------- def padd(a, b): n = max(len(a), len(b)); return [(a[i] if i < len(a) else 0) + (b[i] if i < len(b) else 0) for i in range(n)] def pmul(a, b): r = [0] * (len(a) + len(b) - 1) for i, x in enumerate(a): for j, y in enumerate(b): r[i + j] += x * y return r def pscale(a, c): return [c * x for x in a] def ptrim(a): a = list(a) while len(a) > 1 and a[-1] == 0: a.pop() return a # ---------- explicit finite lattices ---------- def subsets_lattice(n): els = [frozenset(c) for k in range(n + 1) for c in combinations(range(n), k)] return els, lambda a, b: a <= b, lambda a: len(a) def subspace_lattice(d, q=2): # subspaces of F_2^d as sets of vectors (ints as bitmasks) vecs = list(range(2 ** d)); seen = set(); els = [] for k in range(d + 1): for basis in combinations(range(1, 2 ** d), k): span = {0} for v in basis: span |= {s ^ v for s in span} if len(span) == 2 ** k: f = frozenset(span) if f not in seen: seen.add(f); els.append(f) import math return els, lambda a, b: a <= b, lambda a: int(math.log2(len(a))) def product_lattice(L1, L2): e1, le1, r1 = L1; e2, le2, r2 = L2 els = [(a, b) for a in e1 for b in e2] return els, lambda x, y: le1(x[0], y[0]) and le2(x[1], y[1]), lambda x: r1(x[0]) + r2(x[1]) def uniform_flats(r, n): # lattice of flats of U_{r,n}: subsets of size < r, plus the full set els = [frozenset(c) for k in range(r) for c in combinations(range(n), k)] + [frozenset(range(n))] return els, lambda a, b: a <= b, lambda a: len(a) if len(a) < r else r def chain_formula(L): els, le, rk = L bot = min(els, key=rk); top = max(els, key=rk); r = rk(top) idx = {e: i for i, e in enumerate(els)} # Mobius function mu(s,t) mu = {} order = sorted(els, key=rk) for s in order: for t in order: if not le(s, t): continue if s == t: mu[(s, t)] = 1; continue mu[(s, t)] = -sum(mu[(s, w)] for w in order if le(s, w) and le(w, t) and w != t and (s, w) in mu) # Thm 4.1: H*(x) = (-1)^r sum over chains 0 <= c0 < c1 < ... < cm = 1 of # mu(0,c0) * prod_i mu(c_{i-1},c_i) * (x^{rho(c_{i-1},c_i)} - x)/(x - 1) def frac_poly(k): # (x^k - x)/(x-1) = x + x^2 + ... + x^{k-1} return [0] + [1] * (k - 1) if k >= 2 else [0] # dynamic programming over chains ending at t: W[t] = sum over chains c0<... d: return 0 num = den = 1 for j in range(i): num *= q ** (d - j) - 1; den *= q ** (j + 1) - 1 return num // den def A(d, t, S, q): # flags with ranks S (increasing, all < d+t or = top) in (subspaces of F_q^d) x (Boolean on t) if not S: return 1 s = S[-1]; Sp = S[:-1] return sum(gauss(d, i, q) * comb(t, s - i) * A(i, s - i, Sp, q) for i in range(max(0, s - t), min(d, s) + 1)) def counterexample_gamma(q): m = q ** 4; b = q ** 16 N = lambda i: gauss(8, i, q); L3 = gauss(4, 3, q) # hyperplanes (rank-4 flats) of M_q, my derivation: # old flats of the truncation not inside a block, by type (d, t) with d + t = 4: # (4,0): all 4-dim subspaces except the b graph subspaces W # (3,1): (3-dim subspace, p_a) pairs, except the b * L3 pairs with U inside a graph W with that a # (2,2), (1,3), (0,4): never inside a block (a block has one free point) # blocks: b of them, each lower interval = ranks <= 3 of (subspaces of W) x {p_a}, type (4,1) hyper = [((4, 0), N(4) - b), ((3, 1), N(3) * m - b * L3), ((2, 2), N(2) * comb(m, 2)), ((1, 3), N(1) * comb(m, 3)), ((0, 4), comb(m, 4)), ((4, 1), b)] alpha = {} for k in range(5): for S in combinations((1, 2, 3, 4), k): if 4 not in S: alpha[S] = A(8, m, S, q) else: Sp = S[:-1] alpha[S] = sum(mult * A(d, t, Sp, q) for (d, t), mult in hyper) def beta(T): tot = 0 for k in range(len(T) + 1): for S in combinations(T, k): tot += (-1) ** (len(T) - k) * alpha[S] return tot g0 = beta((1, 2, 3, 4)); g1 = beta((2, 3, 4)) + beta((1, 3, 4)) + beta((1, 2, 4)); g2 = beta((2, 4)) return g0, g1, g2 print('Part 2: H*(x) = g0 (1+x)^4 + g1 x (1+x)^2 + g2 x^2 for the construction') for q in [2, 3, 4, 5, 7, 8, 9, 11, 13, 16, 17, 19, 23, 25, 27, 29, 31]: g0, g1, g2 = counterexample_gamma(q) disc = g1 * g1 - 4 * g0 * g2 print(f' q={q:2d} disc sign {"-" if disc < 0 else "+"}' + (f' g=({g0}, {g1}, {g2})\n disc = {disc}' if q == 17 else '')) g0, g1, g2 = counterexample_gamma(17) # expand H*(x) for q = 17 and check for real roots exactly via Sturm-free argument: H = padd(padd(pscale([1, 4, 6, 4, 1], g0), pscale([0, 1, 2, 1], g1)), [0, 0, g2]) print(' q=17 H*(x) coefficients (x^0..x^4):', H) # H*(x)/(1+x)^4 = g0 + g1 y + g2 y^2 with y = x/(1+x)^2 (x != -1); H*(-1) = g2 != 0. # If disc < 0 the quadratic in y has no real root, and every real x != -1 gives real y, so H* has no real root. print(' H*(-1) =', H[0] - H[1] + H[2] - H[3] + H[4], '(= g2)') # ---------- Part 3: the dual right augmented polynomial F* ---------- # Definition route: Prop 4.7, F*_P(x) = sum over w of H*_[0,w](x) (-x)^{rho(w,1)} mu(w,1), with H* of each lower # interval from the chain formula (Thm 4.1). Gamma route: Thm 4.9, F* = sum over stable S in [r-1] of # beta(S^c) x^|S| (1+x)^(r-2|S|). Compare on small lattices, then use the gamma route on the construction. def interval(L, lo, hi): els, le, rk = L sub = [e for e in els if le(lo, e) and le(e, hi)] return sub, le, (lambda e, lo=lo: rk(e) - rk(lo)) def F_by_prop47(L): els, le, rk = L bot = min(els, key=rk); top = max(els, key=rk) order = sorted(els, key=rk) mu = {} for s in order: for t in order: if not le(s, t): continue mu[(s, t)] = 1 if s == t else -sum(mu[(s, w)] for w in order if le(s, w) and le(w, t) and w != t and (s, w) in mu) tot = [0] for w in order: Hw = [1] if w == bot else chain_formula(interval(L, bot, w)) k = rk(top) - rk(w) tot = padd(tot, pmul(Hw, [0] * k + [(-1) ** k * mu[(w, top)]])) return ptrim(tot) def F_by_gamma(r, alpha): full = tuple(range(1, r)) def beta(T): T = tuple(sorted(T)); return sum((-1) ** (len(T) - k) * alpha[S] for k in range(len(T) + 1) for S in combinations(T, k)) F = [0] for k in range(r): for S in combinations(range(1, r), k): if any(S[i + 1] - S[i] == 1 for i in range(len(S) - 1)): continue term = pmul([beta(tuple(x for x in full if x not in S))], [0] * len(S) + [1]) for _ in range(r - 2 * len(S)): term = pmul(term, [1, 1]) F = padd(F, term) return ptrim(F) print('Part 3: F* by Prop 4.7 + chain formula vs gamma formula (Thm 4.9)') for name, L in tests.items(): a = F_by_prop47(L); r, alpha = flag_counts(L); b = F_by_gamma(r, alpha) print(f' {name:40s} prop4.7 {a} gamma {b} {"agree" if a == b else "DISAGREE"}') def counterexample_F_gamma(q): m = q ** 4; b = q ** 16 N = lambda i: gauss(8, i, q); L3 = gauss(4, 3, q) hyper = [((4, 0), N(4) - b), ((3, 1), N(3) * m - b * L3), ((2, 2), N(2) * comb(m, 2)), ((1, 3), N(1) * comb(m, 3)), ((0, 4), comb(m, 4)), ((4, 1), b)] alpha = {} for k in range(5): for S in combinations((1, 2, 3, 4), k): alpha[S] = A(8, m, S, q) if 4 not in S else sum(mult * A(d, t, S[:-1], q) for (d, t), mult in hyper) beta = lambda T: sum((-1) ** (len(T) - k) * alpha[S] for k in range(len(T) + 1) for S in combinations(T, k)) h0 = beta((1, 2, 3, 4)); h1 = beta((2, 3, 4)) + beta((1, 3, 4)) + beta((1, 2, 4)) + beta((1, 2, 3)) h2 = beta((2, 4)) + beta((2, 3)) + beta((1, 3)) return h0, h1, h2 h0, h1, h2 = counterexample_F_gamma(17) print(' q=17 F* = h0 (1+x)^5 + h1 x (1+x)^3 + h2 x^2 (1+x), h =', (h0, h1, h2)) print(' discriminant h1^2 - 4 h0 h2 =', h1 * h1 - 4 * h0 * h2)