import Mathlib /-! # Unique 6-Element Obstruction Theorem & Complete `(I = 1, J = 4)` DGR Resolution This file proves the **Unique 6-Element Obstruction Theorem** for `4`-Golomb rulers and deduces the exact Komlós–Sulyok–Szemerédi / Xiu–Fan–Liang theorem for `I = 1, J = 4`: ## Main Results 1. `obs6_unique`: A strictly increasing 6-tuple `a : Fin 6 → ℤ` fails to contain a `4`-Golomb ruler **if and only if** `a` is a 6-term arithmetic progression (`a 1 - a 0 = a 2 - a 1 = a 3 - a 2 = a 4 - a 3 = a 5 - a 4`). 2. `dgr_I1_J4`: Every `7`-element subset `A ⊆ ℤ` contains a `4`-Golomb ruler (3-line corollary of `obs6_unique`: both 6-prefixes/suffixes being 6-APs forces a 7-AP, whose subset `{a₀, a₁, a₄, a₆}` is a `4`-Golomb ruler!). 3. `isHVal_1_4` & `sInf_dgr_1_4`: Exact value `H(1, 4) = 7`. -/ namespace GolombObs6 /-- A finite set `R ⊆ ℤ` is a Golomb ruler if all positive pairwise differences are distinct. -/ def IsGolombRuler (R : Finset ℤ) : Prop := ∀ a ∈ R, ∀ b ∈ R, ∀ c ∈ R, ∀ d ∈ R, a < b → c < d → b - a = d - c → a = c ∧ b = d /-- `HasDGR A I J` holds if `A ⊆ ℤ` contains `I` pairwise disjoint `J`-Golomb rulers. -/ def HasDGR (A : Finset ℤ) (I J : ℕ) : Prop := ∃ R : Fin I → Finset ℤ, (∀ i, R i ⊆ A) ∧ (∀ i, (R i).card = J) ∧ (∀ i, IsGolombRuler (R i)) ∧ Pairwise (fun i j => Disjoint (R i) (R j)) def IsDGRInterval (I J n : ℕ) : Prop := HasDGR (Finset.Icc (1 : ℤ) (n : ℤ)) I J def IsHVal (I J n : ℕ) : Prop := IsDGRInterval I J n ∧ ∀ m < n, ¬ IsDGRInterval I J m /-- Predicate expressing that `a : Fin 6 → ℤ` is a 6-term arithmetic progression. -/ def IsArithProg6 (a : Fin 6 → ℤ) : Prop := a 1 - a 0 = a 2 - a 1 ∧ a 2 - a 1 = a 3 - a 2 ∧ a 3 - a 2 = a 4 - a 3 ∧ a 4 - a 3 = a 5 - a 4 theorem isArithProg6_iff_formula (a : Fin 6 → ℤ) : IsArithProg6 a ↔ ∀ i : Fin 6, a i - a 0 = (i : ℤ) * (a 1 - a 0) := by constructor · rintro ⟨h1, h2, h3, h4⟩ i fin_cases i <;> simp <;> omega · intro h have h0 := h 0; have h1 := h 1; have h2 := h 2 have h3 := h 3; have h4 := h 4; have h5 := h 5 simp at h0 h1 h2 h3 h4 h5 exact ⟨by omega, by omega, by omega, by omega⟩ theorem isGolombRuler_quad_iff {a b c d : ℤ} (hab : a < b) (hbc : b < c) (hcd : c < d) : IsGolombRuler ({a, b, c, d} : Finset ℤ) ↔ b - a ≠ c - b ∧ b - a ≠ d - c ∧ c - b ≠ d - c ∧ b - a ≠ d - b ∧ c - a ≠ d - c := by constructor · intro h refine ⟨?_, ?_, ?_, ?_, ?_⟩ · intro heq; have := h a (by simp) b (by simp) b (by simp) c (by simp) hab hbc heq; omega · intro heq; have := h a (by simp) b (by simp) c (by simp) d (by simp) hab hcd heq; omega · intro heq; have := h b (by simp) c (by simp) c (by simp) d (by simp) hbc hcd heq; omega · intro heq; have := h a (by simp) b (by simp) b (by simp) d (by simp) hab (by omega) heq; omega · intro heq; have := h a (by simp) c (by simp) c (by simp) d (by simp) (by omega) hcd heq; omega · rintro ⟨h1, h2, h3, h4, h5⟩ x hx y hy z hz w hw hxy hzw hdiff simp only [Finset.mem_insert, Finset.mem_singleton] at hx hy hz hw rcases hx with rfl | rfl | rfl | rfl <;> rcases hy with rfl | rfl | rfl | rfl <;> rcases hz with rfl | rfl | rfl | rfl <;> rcases hw with rfl | rfl | rfl | rfl <;> omega theorem card_quad_of_lt {a b c d : ℤ} (hab : a < b) (hbc : b < c) (hcd : c < d) : ({a, b, c, d} : Finset ℤ).card = 4 := by rw [Finset.card_insert_of_notMem, Finset.card_insert_of_notMem, Finset.card_insert_of_notMem, Finset.card_singleton] · simp; omega · simp; omega · simp; omega theorem exists_strictMono_finset {A : Finset ℤ} {n : ℕ} (hcard : A.card = n) : ∃ a : Fin n → ℤ, StrictMono a ∧ Finset.univ.image a = A := by let e : Fin n ≃o A := A.orderIsoOfFin hcard refine ⟨fun i => (e i : ℤ), fun _ _ hij => e.strictMono hij, ?_⟩ ext x simp only [Finset.mem_image, Finset.mem_univ, true_and] exact ⟨fun ⟨i, hi⟩ => hi ▸ (e i).2, fun hx => ⟨e.symm ⟨x, hx⟩, by simp⟩⟩ theorem hasDGR_mono {A B : Finset ℤ} {I J : ℕ} (hAB : A ⊆ B) (h : HasDGR A I J) : HasDGR B I J := by rcases h with ⟨R, hsub, hcard, hgr, hdisj⟩ exact ⟨R, fun i => (hsub i).trans hAB, hcard, hgr, hdisj⟩ theorem isDGRInterval_mono {I J m n : ℕ} (hmn : m ≤ n) (h : IsDGRInterval I J m) : IsDGRInterval I J n := hasDGR_mono (Finset.Icc_subset_Icc_right (Int.ofNat_le.mpr hmn)) h theorem isHVal_sInf {I J n : ℕ} (h : IsHVal I J n) : sInf {m : ℕ | IsDGRInterval I J m} = n := by apply le_antisymm · exact Nat.sInf_le h.1 · exact le_csInf ⟨n, h.1⟩ (fun m hm => by by_contra hlt exact h.2 m (Nat.lt_of_not_ge hlt) hm) /-- Helper: if `A` has no `4`-Golomb ruler, then any strictly increasing 4-tuple from `A` satisfies one of the 5 difference-collision equations. -/ private theorem quad_fail_of_not_dgr {A : Finset ℤ} (hno : ¬ HasDGR A 1 4) {p q r s : ℤ} (hp : p ∈ A) (hq : q ∈ A) (hr : r ∈ A) (hs : s ∈ A) (hpq : p < q) (hqr : q < r) (hrs : r < s) : q - p = r - q ∨ q - p = s - r ∨ r - q = s - r ∨ q - p = s - q ∨ r - p = s - r := by by_contra h push Not at h apply hno refine ⟨fun _ => {p, q, r, s}, ?_, ?_, ?_, ?_⟩ · intro _ x hx simp only [Finset.mem_insert, Finset.mem_singleton] at hx rcases hx with rfl | rfl | rfl | rfl <;> assumption · intro _; exact card_quad_of_lt hpq hqr hrs · intro _; exact (isGolombRuler_quad_iff hpq hqr hrs).mpr h · intro i j hij; exact (hij (Subsingleton.elim i j)).elim /-- Helper: any 4-subset of `{0, 1, 2, 3, 4, 5}` fails to be a 4-Golomb ruler. -/ private theorem ap6_no_g4_canonical : ¬ HasDGR (Finset.univ.image (fun i : Fin 6 => (i : ℤ))) 1 4 := by rintro ⟨R, hsub, hcard, hgr, _⟩ rcases exists_strictMono_finset (hcard 0) with ⟨b, hb, hbeq⟩ have hmem : ∀ j : Fin 4, ∃ i : Fin 6, (i : ℤ) = b j := by intro j have : b j ∈ Finset.univ.image (fun i : Fin 6 => (i : ℤ)) := hsub 0 (hbeq ▸ Finset.mem_image_of_mem b (Finset.mem_univ j)) rcases Finset.mem_image.mp this with ⟨i, _, hi⟩ exact ⟨i, hi⟩ rcases hmem 0 with ⟨i0, hi0⟩ rcases hmem 1 with ⟨i1, hi1⟩ rcases hmem 2 with ⟨i2, hi2⟩ rcases hmem 3 with ⟨i3, hi3⟩ have hlt01 : b 0 < b 1 := hb (by decide) have hlt12 : b 1 < b 2 := hb (by decide) have hlt23 : b 2 < b 3 := hb (by decide) have hReq : R 0 = {b 0, b 1, b 2, b 3} := by rw [← hbeq]; ext x simp only [Finset.mem_image, Finset.mem_univ, true_and, Finset.mem_insert, Finset.mem_singleton] constructor · rintro ⟨j, rfl⟩; fin_cases j <;> simp · rintro (rfl | rfl | rfl | rfl) · exact ⟨0, rfl⟩ · exact ⟨1, rfl⟩ · exact ⟨2, rfl⟩ · exact ⟨3, rfl⟩ have hgr0 := hgr 0 rw [hReq, isGolombRuler_quad_iff hlt01 hlt12 hlt23] at hgr0 omega /-- **Unique 6-Element Obstruction Theorem**: A strictly increasing 6-tuple `a : Fin 6 → ℤ` fails to contain a `4`-Golomb ruler if and only if `a` is a 6-term arithmetic progression. -/ theorem obs6_unique (a : Fin 6 → ℤ) (ha : StrictMono a) : ¬ HasDGR (Finset.univ.image a) 1 4 ↔ IsArithProg6 a := by have h01 : a 0 < a 1 := ha (by decide) have h12 : a 1 < a 2 := ha (by decide) have h23 : a 2 < a 3 := ha (by decide) have h34 : a 3 < a 4 := ha (by decide) have h45 : a 4 < a 5 := ha (by decide) constructor · intro hno set g0 : ℤ := a 1 - a 0 set g1 : ℤ := a 2 - a 1 set g2 : ℤ := a 3 - a 2 set g3 : ℤ := a 4 - a 3 set g4 : ℤ := a 5 - a 4 have hg0 : 0 < g0 := by omega have hg1 : 0 < g1 := by omega have hg2 : 0 < g2 := by omega have hg3 : 0 < g3 := by omega have hg4 : 0 < g4 := by omega have hmem : ∀ i : Fin 6, a i ∈ Finset.univ.image a := fun i => Finset.mem_image_of_mem a (Finset.mem_univ i) -- Extract the 7 core 4-subset collision clauses directly in gap coordinates have c0125 : g0 = g1 ∨ g0 = g2 + g3 + g4 ∨ g1 = g2 + g3 + g4 ∨ g0 = g1 + g2 + g3 + g4 ∨ g0 + g1 = g2 + g3 + g4 := by rcases quad_fail_of_not_dgr hno (hmem 0) (hmem 1) (hmem 2) (hmem 5) h01 h12 (by omega) with h | h | h | h | h · left; omega · right; left; omega · right; right; left; omega · right; right; right; left; omega · right; right; right; right; omega have c0135 : g0 = g1 + g2 ∨ g0 = g3 + g4 ∨ g1 + g2 = g3 + g4 ∨ g0 = g1 + g2 + g3 + g4 ∨ g0 + g1 + g2 = g3 + g4 := by rcases quad_fail_of_not_dgr hno (hmem 0) (hmem 1) (hmem 3) (hmem 5) h01 (by omega) (by omega) with h | h | h | h | h · left; omega · right; left; omega · right; right; left; omega · right; right; right; left; omega · right; right; right; right; omega have c0145 : g0 = g1 + g2 + g3 ∨ g0 = g4 ∨ g1 + g2 + g3 = g4 ∨ g0 = g1 + g2 + g3 + g4 ∨ g0 + g1 + g2 + g3 = g4 := by rcases quad_fail_of_not_dgr hno (hmem 0) (hmem 1) (hmem 4) (hmem 5) h01 (by omega) h45 with h | h | h | h | h · left; omega · right; left; omega · right; right; left; omega · right; right; right; left; omega · right; right; right; right; omega have c0234 : g0 + g1 = g2 ∨ g0 + g1 = g3 ∨ g2 = g3 ∨ g0 + g1 = g2 + g3 ∨ g0 + g1 + g2 = g3 := by rcases quad_fail_of_not_dgr hno (hmem 0) (hmem 2) (hmem 3) (hmem 4) (by omega) h23 h34 with h | h | h | h | h · left; omega · right; left; omega · right; right; left; omega · right; right; right; left; omega · right; right; right; right; omega have c0245 : g0 + g1 = g2 + g3 ∨ g0 + g1 = g4 ∨ g2 + g3 = g4 ∨ g0 + g1 = g2 + g3 + g4 ∨ g0 + g1 + g2 + g3 = g4 := by rcases quad_fail_of_not_dgr hno (hmem 0) (hmem 2) (hmem 4) (hmem 5) (by omega) (by omega) h45 with h | h | h | h | h · left; omega · right; left; omega · right; right; left; omega · right; right; right; left; omega · right; right; right; right; omega have c0345 : g0 + g1 + g2 = g3 ∨ g0 + g1 + g2 = g4 ∨ g3 = g4 ∨ g0 + g1 + g2 = g3 + g4 ∨ g0 + g1 + g2 + g3 = g4 := by rcases quad_fail_of_not_dgr hno (hmem 0) (hmem 3) (hmem 4) (hmem 5) (by omega) h34 h45 with h | h | h | h | h · left; omega · right; left; omega · right; right; left; omega · right; right; right; left; omega · right; right; right; right; omega have c1235 : g1 = g2 ∨ g1 = g3 + g4 ∨ g2 = g3 + g4 ∨ g1 = g2 + g3 + g4 ∨ g1 + g2 = g3 + g4 := by rcases quad_fail_of_not_dgr hno (hmem 1) (hmem 2) (hmem 3) (hmem 5) h12 h23 (by omega) with h | h | h | h | h · left; omega · right; left; omega · right; right; left; omega · right; right; right; left; omega · right; right; right; right; omega -- Clean 20-leaf DPLL decision tree (each step splits only the single active clause!) suffices h : g0 = g1 ∧ g1 = g2 ∧ g2 = g3 ∧ g3 = g4 by exact h by_cases e1 : g0 = g1 + g2 + g3 + g4 · have h23 : g2 = g3 := by rcases c0234 with h | h | h | h | h <;> omega have h234 : g2 + g3 = g4 := by rcases c0245 with h | h | h | h | h <;> omega rcases c0345 with h | h | h | h | h <;> omega by_cases e2 : g0 + g1 + g2 + g3 = g4 · by_cases e3 : g1 = g2 + g3 + g4 · omega · have h01' : g0 = g1 := by rcases c0125 with h | h | h | h | h <;> omega have h1234 : g1 + g2 = g3 + g4 := by rcases c0135 with h | h | h | h | h <;> omega omega by_cases e4 : g1 + g2 + g3 = g4 · by_cases e5 : g2 = g3 + g4 · omega · have h12' : g1 = g2 := by rcases c1235 with h | h | h | h | h <;> omega by_cases e6 : g0 + g1 = g2 + g3 + g4 · by_cases e7 : g0 + g1 + g2 = g3 · omega · by_cases e8 : g3 = g4 · omega · have : g0 + g1 + g2 = g3 + g4 := by rcases c0345 with h | h | h | h | h <;> omega omega · by_cases e9 : g0 = g1 · by_cases e10 : g0 + g1 = g2 + g3 · rcases c0135 with h | h | h | h | h <;> omega · have : g2 + g3 = g4 := by rcases c0245 with h | h | h | h | h <;> omega omega · have : g0 = g2 + g3 + g4 := by rcases c0125 with h | h | h | h | h <;> omega by_cases e11 : g0 + g1 = g2 + g3 · omega · have : g2 + g3 = g4 := by rcases c0245 with h | h | h | h | h <;> omega omega by_cases e12 : g0 = g1 + g2 + g3 · have h23' : g2 = g3 := by rcases c0234 with h | h | h | h | h <;> omega by_cases e13 : g1 = g2 + g3 + g4 · rcases c0135 with h | h | h | h | h <;> omega · by_cases e14 : g0 + g1 = g2 + g3 + g4 · have : g0 = g3 + g4 := by rcases c0135 with h | h | h | h | h <;> omega rcases c0345 with h | h | h | h | h <;> omega · have : g0 = g2 + g3 + g4 := by rcases c0125 with h | h | h | h | h <;> omega have : g2 + g3 = g4 := by rcases c0245 with h | h | h | h | h <;> omega rcases c0345 with h | h | h | h | h <;> omega · have h04 : g0 = g4 := by rcases c0145 with h | h | h | h | h <;> omega by_cases e15 : g1 = g2 + g3 + g4 · rcases c0135 with h | h | h | h | h <;> omega · by_cases e16 : g0 + g1 = g2 + g3 + g4 · have : g2 = g3 := by rcases c0234 with h | h | h | h | h <;> omega have : g3 = g4 := by rcases c0345 with h | h | h | h | h <;> omega rcases c0135 with h | h | h | h | h <;> omega · have h01eq : g0 = g1 := by rcases c0125 with h | h | h | h | h <;> omega by_cases e17 : g0 + g1 = g2 + g3 · by_cases e18 : g1 + g2 = g3 + g4 · exact ⟨h01eq, by omega, by omega, by omega⟩ · by_cases e19 : g0 + g1 + g2 = g3 + g4 · rcases c1235 with h | h | h | h | h <;> omega · have : g0 = g1 + g2 := by rcases c0135 with h | h | h | h | h <;> omega omega · have : g2 + g3 = g4 := by rcases c0245 with h | h | h | h | h <;> omega have : g1 + g2 = g3 + g4 := by rcases c1235 with h | h | h | h | h <;> omega rcases c0345 with h | h | h | h | h <;> omega · intro hap hhas have hform := (isArithProg6_iff_formula a).mp hap set d : ℤ := a 1 - a 0 have hd : d ≠ 0 := by omega have himg : Finset.univ.image a = (Finset.univ.image (fun i : Fin 6 => (i : ℤ))).image (fun x => d * x + a 0) := by ext y simp only [Finset.mem_image, Finset.mem_univ, true_and] constructor · rintro ⟨i, rfl⟩ refine ⟨(i : ℤ), ⟨i, rfl⟩, ?_⟩ have hi := hform i linarith · rintro ⟨x, ⟨i, rfl⟩, rfl⟩ refine ⟨i, ?_⟩ have hi := hform i linarith rw [himg] at hhas rcases hhas with ⟨R, hsub, hcard, hgr, _⟩ -- Pull R 0 back by the inverse affine map x ↦ (x - a 0) / d have hex : ∀ y ∈ R 0, ∃ i : Fin 6, d * (i : ℤ) + a 0 = y := by intro y hy have hy' := hsub 0 hy rcases Finset.mem_image.mp hy' with ⟨x, hx, rfl⟩ rcases Finset.mem_image.mp hx with ⟨i, _, rfl⟩ exact ⟨i, rfl⟩ let S : Finset ℤ := (Finset.univ.filter (fun i : Fin 6 => d * (i : ℤ) + a 0 ∈ R 0)).image (fun i : Fin 6 => (i : ℤ)) have hSimg : S.image (fun x => d * x + a 0) = R 0 := by ext y simp only [S, Finset.mem_image, Finset.mem_filter, Finset.mem_univ, true_and] constructor · rintro ⟨x, ⟨i, hi, rfl⟩, rfl⟩; exact hi · intro hy rcases hex y hy with ⟨i, rfl⟩ exact ⟨(i : ℤ), ⟨i, hy, rfl⟩, rfl⟩ have hinj : Function.Injective (fun x : ℤ => d * x + a 0) := by intro x y hxy have : d * x = d * y := by linarith exact mul_left_cancel₀ hd this have hScard : S.card = 4 := by have := Finset.card_image_of_injective S hinj rw [hSimg, hcard 0] at this omega have hSgr : IsGolombRuler S := by intro x₁ hx₁ x₂ hx₂ x₃ hx₃ x₄ hx₄ h12' h34' hdiff have hgr0 := hgr 0 have hm : ∀ x ∈ S, d * x + a 0 ∈ R 0 := fun x hx => by rw [← hSimg]; exact Finset.mem_image_of_mem _ hx have hdpos : 0 < d := by omega have h12d : d * x₁ + a 0 < d * x₂ + a 0 := by nlinarith have h34d : d * x₃ + a 0 < d * x₄ + a 0 := by nlinarith have hdd : (d * x₂ + a 0) - (d * x₁ + a 0) = (d * x₄ + a 0) - (d * x₃ + a 0) := by linear_combination d * hdiff have := hgr0 _ (hm x₁ hx₁) _ (hm x₂ hx₂) _ (hm x₃ hx₃) _ (hm x₄ hx₄) h12d h34d hdd exact ⟨hinj this.1, hinj this.2⟩ apply ap6_no_g4_canonical refine ⟨fun _ => S, ?_, fun _ => hScard, fun _ => hSgr, fun i j hij => (hij (Subsingleton.elim i j)).elim⟩ intro _ x hx rcases Finset.mem_image.mp hx with ⟨i, _, rfl⟩ exact Finset.mem_image_of_mem _ (Finset.mem_univ i) /-- **Main Theorem (`I = 1, J = 4`, Exact Komlós–Sulyok–Szemerédi for `J = 4`)**: Every 7-element subset `A ⊆ ℤ` contains a `4`-Golomb ruler. -/ theorem dgr_I1_J4_sorted (a : Fin 7 → ℤ) (ha : StrictMono a) : HasDGR (Finset.univ.image a) 1 4 := by by_contra hno let aL : Fin 6 → ℤ := fun i => a i.castSucc let aR : Fin 6 → ℤ := fun i => a i.succ have haL : StrictMono aL := fun _ _ hij => ha (Fin.castSucc_lt_castSucc_iff.mpr hij) have haR : StrictMono aR := fun _ _ hij => ha (Fin.succ_lt_succ_iff.mpr hij) have hsubL : Finset.univ.image aL ⊆ Finset.univ.image a := by intro x hx rcases Finset.mem_image.mp hx with ⟨i, _, rfl⟩ exact Finset.mem_image_of_mem a (Finset.mem_univ _) have hsubR : Finset.univ.image aR ⊆ Finset.univ.image a := by intro x hx rcases Finset.mem_image.mp hx with ⟨i, _, rfl⟩ exact Finset.mem_image_of_mem a (Finset.mem_univ _) have hapL : IsArithProg6 aL := (obs6_unique aL haL).mp (fun h => hno (hasDGR_mono hsubL h)) have hapR : IsArithProg6 aR := (obs6_unique aR haR).mp (fun h => hno (hasDGR_mono hsubR h)) -- Both prefixes/suffixes being 6-APs forces all 6 gaps to be equal! have h01 : a 0 < a 1 := ha (by decide) have h14 : a 1 < a 4 := ha (by decide) have h46 : a 4 < a 6 := ha (by decide) have hmem : ∀ i : Fin 7, a i ∈ Finset.univ.image a := fun i => Finset.mem_image_of_mem a (Finset.mem_univ i) -- `{a 0, a 1, a 4, a 6}` has differences `{d, 2d, 3d, 4d, 5d, 6d}` — a 4-Golomb ruler! have hfail := quad_fail_of_not_dgr hno (hmem 0) (hmem 1) (hmem 4) (hmem 6) h01 h14 h46 rcases hapL with ⟨L1, L2, L3, L4⟩ rcases hapR with ⟨R1, R2, R3, R4⟩ dsimp [aL, aR] at L1 L2 L3 L4 R1 R2 R3 R4 omega theorem dgr_I1_J4 {A : Finset ℤ} (hcard : A.card = 7) : HasDGR A 1 4 := by rcases exists_strictMono_finset hcard with ⟨a, ha, rfl⟩ exact dgr_I1_J4_sorted a ha theorem dgr_I1_J4_ge {A : Finset ℤ} (hcard : 7 ≤ A.card) : HasDGR A 1 4 := by rcases Finset.exists_subset_card_eq hcard with ⟨B, hBA, hBcard⟩ exact hasDGR_mono hBA (dgr_I1_J4 hBcard) theorem not_isDGRInterval_1_4_six : ¬ IsDGRInterval 1 4 6 := by intro h have h6 : Finset.Icc (1 : ℤ) ((6 : ℕ) : ℤ) = Finset.univ.image (fun i : Fin 6 => (i : ℤ) + 1) := by decide rw [IsDGRInterval, h6] at h have hstrict : StrictMono (fun i : Fin 6 => (i : ℤ) + 1) := by intro i j hij; dsimp; omega have hap : IsArithProg6 (fun i : Fin 6 => (i : ℤ) + 1) := by refine ⟨by decide, by decide, by decide, by decide⟩ exact ((obs6_unique _ hstrict).mpr hap) h /-- Exact value `H(1, 4) = 7`. -/ theorem isHVal_1_4 : IsHVal 1 4 7 := by refine ⟨?_, ?_⟩ · exact dgr_I1_J4 (by decide) · intro m hm h exact not_isDGRInterval_1_4_six (isDGRInterval_mono (Nat.lt_succ_iff.mp hm) h) theorem sInf_dgr_1_4 : sInf {n : ℕ | IsDGRInterval 1 4 n} = 7 := isHVal_sInf isHVal_1_4 #print axioms obs6_unique #print axioms dgr_I1_J4 #print axioms isHVal_1_4 end GolombObs6