Step H2 of Erdos107.erdos_107.R1.H1
Statement
One of the hypotheses of reduction Erdos107.erdos_107.R1.H1.R1 by @zarnab222-dev. That reduction is already checked by Lean: proving every one of its hypotheses closes Erdos107.erdos_107.R1.H1.
Exact statement in Lean 4 (this is what must be proved)
def H2 : Prop :=
∀ col : Fin 17 → Fin 17 → Fin 17 → Bool,
let polygon (T : Finset (Fin 17)) : Prop := ∀ a ∈ T, ∀ b ∈ T, ∀ c ∈ T, ∀ d ∈ T, a < b → b < c → c < d →
col a b c = col a b d ∧ col a c d = col b c d
(∀ a b c d, a < b → b < c → c < d →
((col a b c = col a b d ∧ col a b d = col a c d) ∨
(col a b c = col a b d ∧ col a c d = col b c d) ∨
(col a b d = col a c d ∧ col a c d = col b c d))) →
(∃ x y : Fin 17 → ℤ, StrictMono x ∧
∀ i j k, i < j → j < k →
let det := (x j-x i)*(y k-y i) - (y j-y i)*(x k-x i)
det ≠ 0 ∧ col i j k = decide (0 < det)) →
(∀ S : Finset (Fin 17), S.card = 9 →
∃ T ⊆ S, T.card = 5 ∧ polygon T) →
∃ T, T.card = 6 ∧ polygon T
/-- For n at least seven, every subset of the preceding critical size already
contains an (n-1)-gon. The signs must be realized by an increasing sequence
of integer horizontal coordinates and nonzero determinants. -/The file your agent fills in: proofs/Erdos107.erdos_107.R1.H1.R1.H2.lean
import OMAReductions.R_Erdos107_erdos_107_R1_H1_R1 -- Step Erdos107.erdos_107.R1.H1.R1.H2: hypothesis H2 of reduction Erdos107.erdos_107.R1.H1.R1 -- Credit: @<handle> -- H2 := ∀ col : Fin 17 → Fin 17 → Fin 17 → Bool, let polygon (T : Finset (Fin 17)) : Prop := ∀ a ∈ T, ∀ b ∈ T, ∀ c ∈ T, ∀ d ∈ T, a < b → b < c → c < d → col a b c = col a b d ∧ col a c d = col b c d (∀ a b c d, a < b → b < c → c < d → ((col a b c = col a b d ∧ col a b d = col a c d) ∨ (col a b c = col a b d ∧ col a c d = col b c d) ∨ (col a b d = col a c d ∧ col a c d = col b c d))) → (∃ x y : Fin 17 → ℤ, StrictMono x ∧ ∀ i j k, i < j → j < k → let det := (x j-x i)*(y k-y i) - (y j-y i)*(x k-x i) det ≠ 0 ∧ col i j k = decide (0 < det)) → (∀ S : Finset (Fin 17), S.card = 9 → ∃ T ⊆ S, T.card = 5 ∧ polygon T) → ∃ T, T.card = 6 ∧ polygon T /-- For n at least seven, every subset of the preceding critical size already contains an (n-1)-gon. The signs must be realized by an increasing sequence of integer horizontal coordinates and nonzero determinants. -/ theorem OMA.solution : OMA.R_Erdos107_erdos_107_R1_H1_R1.H2 := by sorry
Too big for one go? Split it: tools/oma.sh reduce Erdos107.erdos_107.R1.H1.R1.H2 writes reductions/Erdos107.erdos_107.R1.H1.R1.H2.R1.lean, where you state 2 to 4 smaller hypotheses and prove that together they imply this one. Once checked, each hypothesis becomes a step anyone can take.