ym/GenA3.lean

/-
  ym/GenA3 — T45, G54: generated c-level identity for (A) at n = 3 (cert/A/gen/gen_ident.py).
  Lean 4 core only, no axioms.
-/
import ym.AVs
import ym.RingZ
import ym.A2

set_option linter.unusedSectionVars false

namespace GenA3

open YMChain QBinom CgWindow A1Ip A2Ip MigdalCone HeatPair

variable {R : Type} (K : DetChain.CRing R)

def pv1 (x : Nat → R) : Nat → R
  | 0 => (x 1)
  | d + 1 => (K.add (x d) (x (d + 2)))

def pv2 (x : Nat → R) : Nat → R
  | 0 => (x 2)
  | 1 => (K.add (x 1) (x 3))
  | d + 2 => (K.add (K.add (x d) (x (d + 2))) (x (d + 4)))

def pv3 (x : Nat → R) : Nat → R
  | 0 => (x 3)
  | 1 => (K.add (x 2) (x 4))
  | 2 => (K.add (K.add (x 1) (x 3)) (x 5))
  | d + 3 => (K.add (K.add (K.add (x d) (x (d + 2))) (x (d + 4))) (x (d + 6)))

def pv4 (x : Nat → R) : Nat → R
  | 0 => (x 4)
  | 1 => (K.add (x 3) (x 5))
  | 2 => (K.add (K.add (x 2) (x 4)) (x 6))
  | 3 => (K.add (K.add (K.add (x 1) (x 3)) (x 5)) (x 7))
  | d + 4 => (K.add (K.add (K.add (K.add (x d) (x (d + 2))) (x (d + 4))) (x (d + 6))) (x (d + 8)))

def pv5 (x : Nat → R) : Nat → R
  | 0 => (x 5)
  | 1 => (K.add (x 4) (x 6))
  | 2 => (K.add (K.add (x 3) (x 5)) (x 7))
  | 3 => (K.add (K.add (K.add (x 2) (x 4)) (x 6)) (x 8))
  | 4 => (K.add (K.add (K.add (K.add (x 1) (x 3)) (x 5)) (x 7)) (x 9))
  | d + 5 => (K.add (K.add (K.add (K.add (K.add (x d) (x (d + 2))) (x (d + 4))) (x (d + 6))) (x (d + 8))) (x (d + 10)))

theorem psi1 (X : List R) : ∀ j, CgWindow.Psi K X j 1 = pv1 K (HeatPair.co K X) j
  | 0 => by
    have := CgWindow.Psi_lo K X 0 1; rw [show 0 + 1 = 1 from rfl] at this; rw [this]
    show (K.add K.zero (HeatPair.co K X 1)) = (HeatPair.co K X 1)
    lib_ring
  | d + 1 => by
    have := CgWindow.Psi_hi K X 1 d; rw [show 1 + d = d + 1 by lib_nat] at this; rw [this]
    show (K.add (K.add K.zero (HeatPair.co K X (d + 2 * 0))) (HeatPair.co K X (d + 2 * 1))) = (K.add (HeatPair.co K X d) (HeatPair.co K X (d + 2)))
    rw [show d + 2 * 0 = d by lib_nat, show d + 2 * 1 = d + 2 by lib_nat]; lib_ring

theorem psi2 (X : List R) : ∀ j, CgWindow.Psi K X j 2 = pv2 K (HeatPair.co K X) j
  | 0 => by
    have := CgWindow.Psi_lo K X 0 2; rw [show 0 + 2 = 2 from rfl] at this; rw [this]
    show (K.add K.zero (HeatPair.co K X 2)) = (HeatPair.co K X 2)
    lib_ring
  | 1 => by
    have := CgWindow.Psi_lo K X 1 1; rw [show 1 + 1 = 2 from rfl] at this; rw [this]
    show (K.add (K.add K.zero (HeatPair.co K X 1)) (HeatPair.co K X 3)) = (K.add (HeatPair.co K X 1) (HeatPair.co K X 3))
    lib_ring
  | d + 2 => by
    have := CgWindow.Psi_hi K X 2 d; rw [show 2 + d = d + 2 by lib_nat] at this; rw [this]
    show (K.add (K.add (K.add K.zero (HeatPair.co K X (d + 2 * 0))) (HeatPair.co K X (d + 2 * 1))) (HeatPair.co K X (d + 2 * 2))) = (K.add (K.add (HeatPair.co K X d) (HeatPair.co K X (d + 2))) (HeatPair.co K X (d + 4)))
    rw [show d + 2 * 0 = d by lib_nat, show d + 2 * 1 = d + 2 by lib_nat, show d + 2 * 2 = d + 4 by lib_nat]; lib_ring

theorem psi3 (X : List R) : ∀ j, CgWindow.Psi K X j 3 = pv3 K (HeatPair.co K X) j
  | 0 => by
    have := CgWindow.Psi_lo K X 0 3; rw [show 0 + 3 = 3 from rfl] at this; rw [this]
    show (K.add K.zero (HeatPair.co K X 3)) = (HeatPair.co K X 3)
    lib_ring
  | 1 => by
    have := CgWindow.Psi_lo K X 1 2; rw [show 1 + 2 = 3 from rfl] at this; rw [this]
    show (K.add (K.add K.zero (HeatPair.co K X 2)) (HeatPair.co K X 4)) = (K.add (HeatPair.co K X 2) (HeatPair.co K X 4))
    lib_ring
  | 2 => by
    have := CgWindow.Psi_lo K X 2 1; rw [show 2 + 1 = 3 from rfl] at this; rw [this]
    show (K.add (K.add (K.add K.zero (HeatPair.co K X 1)) (HeatPair.co K X 3)) (HeatPair.co K X 5)) = (K.add (K.add (HeatPair.co K X 1) (HeatPair.co K X 3)) (HeatPair.co K X 5))
    lib_ring
  | d + 3 => by
    have := CgWindow.Psi_hi K X 3 d; rw [show 3 + d = d + 3 by lib_nat] at this; rw [this]
    show (K.add (K.add (K.add (K.add K.zero (HeatPair.co K X (d + 2 * 0))) (HeatPair.co K X (d + 2 * 1))) (HeatPair.co K X (d + 2 * 2))) (HeatPair.co K X (d + 2 * 3))) = (K.add (K.add (K.add (HeatPair.co K X d) (HeatPair.co K X (d + 2))) (HeatPair.co K X (d + 4))) (HeatPair.co K X (d + 6)))
    rw [show d + 2 * 0 = d by lib_nat, show d + 2 * 1 = d + 2 by lib_nat, show d + 2 * 2 = d + 4 by lib_nat, show d + 2 * 3 = d + 6 by lib_nat]; lib_ring

theorem psi4 (X : List R) : ∀ j, CgWindow.Psi K X j 4 = pv4 K (HeatPair.co K X) j
  | 0 => by
    have := CgWindow.Psi_lo K X 0 4; rw [show 0 + 4 = 4 from rfl] at this; rw [this]
    show (K.add K.zero (HeatPair.co K X 4)) = (HeatPair.co K X 4)
    lib_ring
  | 1 => by
    have := CgWindow.Psi_lo K X 1 3; rw [show 1 + 3 = 4 from rfl] at this; rw [this]
    show (K.add (K.add K.zero (HeatPair.co K X 3)) (HeatPair.co K X 5)) = (K.add (HeatPair.co K X 3) (HeatPair.co K X 5))
    lib_ring
  | 2 => by
    have := CgWindow.Psi_lo K X 2 2; rw [show 2 + 2 = 4 from rfl] at this; rw [this]
    show (K.add (K.add (K.add K.zero (HeatPair.co K X 2)) (HeatPair.co K X 4)) (HeatPair.co K X 6)) = (K.add (K.add (HeatPair.co K X 2) (HeatPair.co K X 4)) (HeatPair.co K X 6))
    lib_ring
  | 3 => by
    have := CgWindow.Psi_lo K X 3 1; rw [show 3 + 1 = 4 from rfl] at this; rw [this]
    show (K.add (K.add (K.add (K.add K.zero (HeatPair.co K X 1)) (HeatPair.co K X 3)) (HeatPair.co K X 5)) (HeatPair.co K X 7)) = (K.add (K.add (K.add (HeatPair.co K X 1) (HeatPair.co K X 3)) (HeatPair.co K X 5)) (HeatPair.co K X 7))
    lib_ring
  | d + 4 => by
    have := CgWindow.Psi_hi K X 4 d; rw [show 4 + d = d + 4 by lib_nat] at this; rw [this]
    show (K.add (K.add (K.add (K.add (K.add K.zero (HeatPair.co K X (d + 2 * 0))) (HeatPair.co K X (d + 2 * 1))) (HeatPair.co K X (d + 2 * 2))) (HeatPair.co K X (d + 2 * 3))) (HeatPair.co K X (d + 2 * 4))) = (K.add (K.add (K.add (K.add (HeatPair.co K X d) (HeatPair.co K X (d + 2))) (HeatPair.co K X (d + 4))) (HeatPair.co K X (d + 6))) (HeatPair.co K X (d + 8)))
    rw [show d + 2 * 0 = d by lib_nat, show d + 2 * 1 = d + 2 by lib_nat, show d + 2 * 2 = d + 4 by lib_nat, show d + 2 * 3 = d + 6 by lib_nat, show d + 2 * 4 = d + 8 by lib_nat]; lib_ring

theorem psi5 (X : List R) : ∀ j, CgWindow.Psi K X j 5 = pv5 K (HeatPair.co K X) j
  | 0 => by
    have := CgWindow.Psi_lo K X 0 5; rw [show 0 + 5 = 5 from rfl] at this; rw [this]
    show (K.add K.zero (HeatPair.co K X 5)) = (HeatPair.co K X 5)
    lib_ring
  | 1 => by
    have := CgWindow.Psi_lo K X 1 4; rw [show 1 + 4 = 5 from rfl] at this; rw [this]
    show (K.add (K.add K.zero (HeatPair.co K X 4)) (HeatPair.co K X 6)) = (K.add (HeatPair.co K X 4) (HeatPair.co K X 6))
    lib_ring
  | 2 => by
    have := CgWindow.Psi_lo K X 2 3; rw [show 2 + 3 = 5 from rfl] at this; rw [this]
    show (K.add (K.add (K.add K.zero (HeatPair.co K X 3)) (HeatPair.co K X 5)) (HeatPair.co K X 7)) = (K.add (K.add (HeatPair.co K X 3) (HeatPair.co K X 5)) (HeatPair.co K X 7))
    lib_ring
  | 3 => by
    have := CgWindow.Psi_lo K X 3 2; rw [show 3 + 2 = 5 from rfl] at this; rw [this]
    show (K.add (K.add (K.add (K.add K.zero (HeatPair.co K X 2)) (HeatPair.co K X 4)) (HeatPair.co K X 6)) (HeatPair.co K X 8)) = (K.add (K.add (K.add (HeatPair.co K X 2) (HeatPair.co K X 4)) (HeatPair.co K X 6)) (HeatPair.co K X 8))
    lib_ring
  | 4 => by
    have := CgWindow.Psi_lo K X 4 1; rw [show 4 + 1 = 5 from rfl] at this; rw [this]
    show (K.add (K.add (K.add (K.add (K.add K.zero (HeatPair.co K X 1)) (HeatPair.co K X 3)) (HeatPair.co K X 5)) (HeatPair.co K X 7)) (HeatPair.co K X 9)) = (K.add (K.add (K.add (K.add (HeatPair.co K X 1) (HeatPair.co K X 3)) (HeatPair.co K X 5)) (HeatPair.co K X 7)) (HeatPair.co K X 9))
    lib_ring
  | d + 5 => by
    have := CgWindow.Psi_hi K X 5 d; rw [show 5 + d = d + 5 by lib_nat] at this; rw [this]
    show (K.add (K.add (K.add (K.add (K.add (K.add K.zero (HeatPair.co K X (d + 2 * 0))) (HeatPair.co K X (d + 2 * 1))) (HeatPair.co K X (d + 2 * 2))) (HeatPair.co K X (d + 2 * 3))) (HeatPair.co K X (d + 2 * 4))) (HeatPair.co K X (d + 2 * 5))) = (K.add (K.add (K.add (K.add (K.add (HeatPair.co K X d) (HeatPair.co K X (d + 2))) (HeatPair.co K X (d + 4))) (HeatPair.co K X (d + 6))) (HeatPair.co K X (  -- (+36 chars; full line in the Zenodo source)
    rw [show d + 2 * 0 = d by lib_nat, show d + 2 * 1 = d + 2 by lib_nat, show d + 2 * 2 = d + 4 by lib_nat, show d + 2 * 3 = d + 6 by lib_nat, show d + 2 * 4 = d + 8 by lib_nat, show d + 2 * 5 = d + 10 by lib_nat]; lib_ring

section ident

variable (x : Nat → R) (L : Nat) (hz : ∀ t, L ≤ t → x t = K.zero)

include hz in
theorem ip0 : ip K (Zs K (Zs K (Zs K x))) (fun i => x (i + 1)) (L + 8) = (K.add (K.add (K.add (Rk K x L 4) (K.neg K.zero)) K.zero) K.zero) := by
  show ip K _ _ (L + 7 + 1) = _; rw [ip_z1]
  show ip K _ _ (L + 6 + 1) = _; rw [ip_z1]
  show ip K _ _ (L + 5 + 1) = _; rw [ip_z1]
  show ip K x (fun i => x (i + 4)) (L + 5) = _
  rw [ip_ext K _ (AVs.vsum K x [0]) _ (AVs.vsum K x [4]) (fun i => by show (x (i + 0)) = (K.add (x (i + 0)) K.zero); lib_ring) (fun i => by show (x (i + 4)) = (K.add (x (i + 4)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (AVs.psum K x L [0] [4]) = _; rfl

include hz in
theorem ip1 : ip K (Zs K (Zs K x)) (fun i => x (i + 2)) (L + 8) = (K.add (K.add (K.add (Rk K x L 4) (K.neg K.zero)) K.zero) K.zero) := by
  show ip K _ _ (L + 7 + 1) = _; rw [ip_z1]
  show ip K _ _ (L + 6 + 1) = _; rw [ip_z1]
  show ip K x (fun i => x (i + 4)) (L + 6) = _
  rw [ip_ext K _ (AVs.vsum K x [0]) _ (AVs.vsum K x [4]) (fun i => by show (x (i + 0)) = (K.add (x (i + 0)) K.zero); lib_ring) (fun i => by show (x (i + 4)) = (K.add (x (i + 4)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (AVs.psum K x L [0] [4]) = _; rfl

include hz in
theorem ip2 : ip K (Zs K (Zs K (Zs K x))) (fun i => x (i + 2)) (L + 8) = (K.add (K.add (K.add (Rk K x L 5) (K.neg K.zero)) K.zero) K.zero) := by
  show ip K _ _ (L + 7 + 1) = _; rw [ip_z1]
  show ip K _ _ (L + 6 + 1) = _; rw [ip_z1]
  show ip K _ _ (L + 5 + 1) = _; rw [ip_z1]
  show ip K x (fun i => x (i + 5)) (L + 5) = _
  rw [ip_ext K _ (AVs.vsum K x [0]) _ (AVs.vsum K x [5]) (fun i => by show (x (i + 0)) = (K.add (x (i + 0)) K.zero); lib_ring) (fun i => by show (x (i + 5)) = (K.add (x (i + 5)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (AVs.psum K x L [0] [5]) = _; rfl

include hz in
theorem ip3 : ip K (Zs K (Zs K x)) (fun i => x (i + 1)) (L + 8) = (K.add (K.add (K.add (Rk K x L 3) (K.neg K.zero)) K.zero) K.zero) := by
  show ip K _ _ (L + 7 + 1) = _; rw [ip_z1]
  show ip K _ _ (L + 6 + 1) = _; rw [ip_z1]
  show ip K x (fun i => x (i + 3)) (L + 6) = _
  rw [ip_ext K _ (AVs.vsum K x [0]) _ (AVs.vsum K x [3]) (fun i => by show (x (i + 0)) = (K.add (x (i + 0)) K.zero); lib_ring) (fun i => by show (x (i + 3)) = (K.add (x (i + 3)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (AVs.psum K x L [0] [3]) = _; rfl

include hz in
theorem ip4 : ip K (Zs K (Zs K (Zs K x))) x (L + 8) = (K.add (K.add (K.add (Rk K x L 3) (K.neg K.zero)) K.zero) K.zero) := by
  show ip K _ _ (L + 7 + 1) = _; rw [ip_z1]
  show ip K _ _ (L + 6 + 1) = _; rw [ip_z1]
  show ip K _ _ (L + 5 + 1) = _; rw [ip_z1]
  show ip K x (fun i => x (i + 3)) (L + 5) = _
  rw [ip_ext K _ (AVs.vsum K x [0]) _ (AVs.vsum K x [3]) (fun i => by show (x (i + 0)) = (K.add (x (i + 0)) K.zero); lib_ring) (fun i => by show (x (i + 3)) = (K.add (x (i + 3)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (AVs.psum K x L [0] [3]) = _; rfl

include hz in
theorem ip5 : ip K (fun i => x (i + 3)) (fun i => x (i + 2)) (L + 8) = (K.add (K.add (K.add (Rk K x L 1) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 1))) (K.mul (x 1) (x 2))))) K.zero) K.zero) := by
  show ip K (fun i => x (i + 3)) (fun i => x (i + 2)) (L + 8) = _
  rw [ip_ext K _ (AVs.vsum K x [3]) _ (AVs.vsum K x [2]) (fun i => by show (x (i + 3)) = (K.add (x (i + 3)) K.zero); lib_ring) (fun i => by show (x (i + 2)) = (K.add (x (i + 2)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (AVs.psum K x L [3] [2]) = _; rfl

include hz in
theorem ip6 : ip K (fun i => x (i + 3)) x (L + 8) = (K.add (K.add (K.add (Rk K x L 3) (K.neg K.zero)) K.zero) K.zero) := by
  show ip K (fun i => x (i + 3)) x (L + 8) = _
  rw [ip_ext K _ (AVs.vsum K x [3]) _ (AVs.vsum K x [0]) (fun i => by show (x (i + 3)) = (K.add (x (i + 3)) K.zero); lib_ring) (fun i => by show (x (i + 0)) = (K.add (x (i + 0)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (AVs.psum K x L [3] [0]) = _; rfl

include hz in
theorem ip7 : ip K (Zs K (c1v K x)) (fun i => x (i + 2)) (L + 8) = (K.add (K.mul (K.add K.zero (x 1)) (x 3)) (K.add (K.add (K.add (Rk K x L 4) (K.neg K.zero)) K.zero) (K.add (K.add (K.add (Rk K x L 2) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 2))) (K.mul (x 1) (x 3))))) K.zero) K.zero))) := by
  show ip K _ _ (L + 7 + 1) = _; rw [ip_z1]
  show ip K (c1v K x) (fun i => x (i + 3)) (L + 7) = _
  rw [show L + 7 = L + 6 + 1 from rfl, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [0, 2]) _ (AVs.vsum K x [4]) (fun i => by show (K.add (x (i + 0)) (x (i + 2))) = (K.add (x (i + 0)) (K.add (x (i + 2)) K.zero)); lib_ring) (fun i => by show (x (i + 4)) = (K.add (x (i + 4)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (K.add K.zero (x 1)) (x 3)) (AVs.psum K x L [0, 2] [4])) = _; rfl

include hz in
theorem ip8 : ip K (Zs K (c1v K x)) (fun i => x (i + 1)) (L + 8) = (K.add (K.mul (K.add K.zero (x 1)) (x 2)) (K.add (K.add (K.add (Rk K x L 3) (K.neg K.zero)) K.zero) (K.add (K.add (K.add (Rk K x L 1) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 1))) (K.mul (x 1) (x 2))))) K.zero) K.zero))) := by
  show ip K _ _ (L + 7 + 1) = _; rw [ip_z1]
  show ip K (c1v K x) (fun i => x (i + 2)) (L + 7) = _
  rw [show L + 7 = L + 6 + 1 from rfl, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [0, 2]) _ (AVs.vsum K x [3]) (fun i => by show (K.add (x (i + 0)) (x (i + 2))) = (K.add (x (i + 0)) (K.add (x (i + 2)) K.zero)); lib_ring) (fun i => by show (x (i + 3)) = (K.add (x (i + 3)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (K.add K.zero (x 1)) (x 2)) (AVs.psum K x L [0, 2] [3])) = _; rfl

include hz in
theorem ip9 : ip K (pv2 K x) (fun i => x (i + 2)) (L + 8) = (K.add (K.mul (x 2) (x 2)) (K.add (K.mul (K.add (x 1) (x 3)) (x 3)) (K.add (K.add (K.add (Rk K x L 4) (K.neg K.zero)) K.zero) (K.add (K.add (K.add (Rk K x L 2) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 2))) (K.mul (x 1) (x 3))))) K.zero) (K.add (K.add (K.add (Rk K x L 0) (K.neg (K.add (K.add (K.add (K.add K.zero (K.mul (x 0) (x 0))) (K.  -- (+87 chars; full line in the Zenodo source)
  show ip K (pv2 K x) (fun i => x (i + 2)) (L + 8) = _
  rw [show L + 8 = L + 6 + 1 + 1 from rfl, ip_head, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [0, 2, 4]) _ (AVs.vsum K x [4]) (fun i => by show (K.add (K.add (x (i + 0)) (x (i + 2))) (x (i + 4))) = (K.add (x (i + 0)) (K.add (x (i + 2)) (K.add (x (i + 4)) K.zero))); lib_ring) (fun i => by show (x (i + 4)) = (K.add (x (i + 4)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (x 2) (x 2)) (K.add (K.mul (K.add (x 1) (x 3)) (x 3)) (AVs.psum K x L [0, 2, 4] [4]))) = _; rfl

include hz in
theorem ip10 : ip K (pv2 K x) (fun i => x (i + 1)) (L + 8) = (K.add (K.mul (x 2) (x 1)) (K.add (K.mul (K.add (x 1) (x 3)) (x 2)) (K.add (K.add (K.add (Rk K x L 3) (K.neg K.zero)) K.zero) (K.add (K.add (K.add (Rk K x L 1) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 1))) (K.mul (x 1) (x 2))))) K.zero) (K.add (K.add (K.add (Rk K x L 1) (K.neg (K.add (K.add (K.add K.zero (K.mul (x 0) (x 1))) (K.mul (x  -- (+60 chars; full line in the Zenodo source)
  show ip K (pv2 K x) (fun i => x (i + 1)) (L + 8) = _
  rw [show L + 8 = L + 6 + 1 + 1 from rfl, ip_head, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [0, 2, 4]) _ (AVs.vsum K x [3]) (fun i => by show (K.add (K.add (x (i + 0)) (x (i + 2))) (x (i + 4))) = (K.add (x (i + 0)) (K.add (x (i + 2)) (K.add (x (i + 4)) K.zero))); lib_ring) (fun i => by show (x (i + 3)) = (K.add (x (i + 3)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (x 2) (x 1)) (K.add (K.mul (K.add (x 1) (x 3)) (x 2)) (AVs.psum K x L [0, 2, 4] [3]))) = _; rfl

include hz in
theorem ip11 : ip K (Zs K x) (Zs K (pv4 K x)) (L + 8) = (K.add (K.mul (x 0) (x 4)) (K.add (K.mul (x 1) (K.add (x 3) (x 5))) (K.add (K.mul (x 2) (K.add (K.add (x 2) (x 4)) (x 6))) (K.add (K.mul (x 3) (K.add (K.add (K.add (x 1) (x 3)) (x 5)) (x 7))) (K.add (K.add (K.add (Rk K x L 4) (K.neg K.zero)) (K.add (K.add (Rk K x L 2) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 2))) (K.mul (x 1) (x 3))))) (K.  -- (+491 chars; full line in the Zenodo source)
  show ip K _ _ (L + 7 + 1) = _; rw [ip_zz]
  show ip K x (pv4 K x) (L + 7) = _
  rw [show L + 7 = L + 3 + 1 + 1 + 1 + 1 from rfl, ip_head, ip_head, ip_head, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [4]) _ (AVs.vsum K x [0, 2, 4, 6, 8]) (fun i => by show (x (i + 4)) = (K.add (x (i + 4)) K.zero); lib_ring) (fun i => by show (K.add (K.add (K.add (K.add (x (i + 0)) (x (i + 2))) (x (i + 4))) (x (i + 6))) (x (i + 8))) = (K.add (x (i + 0)) (K.add (x (i + 2)) (K.add (x (i + 4)) (K.add (x (i + 6)) (K.add (x (i + 8)) K.zero))))); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (x 0) (x 4)) (K.add (K.mul (x 1) (K.add (x 3) (x 5))) (K.add (K.mul (x 2) (K.add (K.add (x 2) (x 4)) (x 6))) (K.add (K.mul (x 3) (K.add (K.add (K.add (x 1) (x 3)) (x 5)) (x 7))) (AVs.psum K x L [4] [0, 2, 4, 6, 8]))))) = _; rfl

include hz in
theorem ip12 : ip K x (Zs K (pv3 K x)) (L + 8) = (K.add (K.mul (x 1) (x 3)) (K.add (K.mul (x 2) (K.add (x 2) (x 4))) (K.add (K.mul (x 3) (K.add (K.add (x 1) (x 3)) (x 5))) (K.add (K.add (K.add (Rk K x L 4) (K.neg K.zero)) (K.add (K.add (Rk K x L 2) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 2))) (K.mul (x 1) (x 3))))) (K.add (K.add (Rk K x L 0) (K.neg (K.add (K.add (K.add (K.add K.zero (K.mul (x   -- (+258 chars; full line in the Zenodo source)
  show ip K _ _ (L + 7 + 1) = _; rw [ip_1z]
  show ip K (fun i => x (i + 1)) (pv3 K x) (L + 7) = _
  rw [show L + 7 = L + 4 + 1 + 1 + 1 from rfl, ip_head, ip_head, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [4]) _ (AVs.vsum K x [0, 2, 4, 6]) (fun i => by show (x (i + 4)) = (K.add (x (i + 4)) K.zero); lib_ring) (fun i => by show (K.add (K.add (K.add (x (i + 0)) (x (i + 2))) (x (i + 4))) (x (i + 6))) = (K.add (x (i + 0)) (K.add (x (i + 2)) (K.add (x (i + 4)) (K.add (x (i + 6)) K.zero)))); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (x 1) (x 3)) (K.add (K.mul (x 2) (K.add (x 2) (x 4))) (K.add (K.mul (x 3) (K.add (K.add (x 1) (x 3)) (x 5))) (AVs.psum K x L [4] [0, 2, 4, 6])))) = _; rfl

include hz in
theorem ip13 : ip K (Zs K x) (Zs K (pv3 K x)) (L + 8) = (K.add (K.mul (x 0) (x 3)) (K.add (K.mul (x 1) (K.add (x 2) (x 4))) (K.add (K.mul (x 2) (K.add (K.add (x 1) (x 3)) (x 5))) (K.add (K.add (K.add (Rk K x L 3) (K.neg K.zero)) (K.add (K.add (Rk K x L 1) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 1))) (K.mul (x 1) (x 2))))) (K.add (K.add (Rk K x L 1) (K.neg (K.add (K.add (K.add K.zero (K.mul (x   -- (+209 chars; full line in the Zenodo source)
  show ip K _ _ (L + 7 + 1) = _; rw [ip_zz]
  show ip K x (pv3 K x) (L + 7) = _
  rw [show L + 7 = L + 4 + 1 + 1 + 1 from rfl, ip_head, ip_head, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [3]) _ (AVs.vsum K x [0, 2, 4, 6]) (fun i => by show (x (i + 3)) = (K.add (x (i + 3)) K.zero); lib_ring) (fun i => by show (K.add (K.add (K.add (x (i + 0)) (x (i + 2))) (x (i + 4))) (x (i + 6))) = (K.add (x (i + 0)) (K.add (x (i + 2)) (K.add (x (i + 4)) (K.add (x (i + 6)) K.zero)))); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (x 0) (x 3)) (K.add (K.mul (x 1) (K.add (x 2) (x 4))) (K.add (K.mul (x 2) (K.add (K.add (x 1) (x 3)) (x 5))) (AVs.psum K x L [3] [0, 2, 4, 6])))) = _; rfl

include hz in
theorem ip14 : ip K x (Zs K (pv4 K x)) (L + 8) = (K.add (K.mul (x 1) (x 4)) (K.add (K.mul (x 2) (K.add (x 3) (x 5))) (K.add (K.mul (x 3) (K.add (K.add (x 2) (x 4)) (x 6))) (K.add (K.mul (x 4) (K.add (K.add (K.add (x 1) (x 3)) (x 5)) (x 7))) (K.add (K.add (K.add (Rk K x L 5) (K.neg K.zero)) (K.add (K.add (Rk K x L 3) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 3))) (K.mul (x 1) (x 4))))) (K.add (K.  -- (+540 chars; full line in the Zenodo source)
  show ip K _ _ (L + 7 + 1) = _; rw [ip_1z]
  show ip K (fun i => x (i + 1)) (pv4 K x) (L + 7) = _
  rw [show L + 7 = L + 3 + 1 + 1 + 1 + 1 from rfl, ip_head, ip_head, ip_head, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [5]) _ (AVs.vsum K x [0, 2, 4, 6, 8]) (fun i => by show (x (i + 5)) = (K.add (x (i + 5)) K.zero); lib_ring) (fun i => by show (K.add (K.add (K.add (K.add (x (i + 0)) (x (i + 2))) (x (i + 4))) (x (i + 6))) (x (i + 8))) = (K.add (x (i + 0)) (K.add (x (i + 2)) (K.add (x (i + 4)) (K.add (x (i + 6)) (K.add (x (i + 8)) K.zero))))); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (x 1) (x 4)) (K.add (K.mul (x 2) (K.add (x 3) (x 5))) (K.add (K.mul (x 3) (K.add (K.add (x 2) (x 4)) (x 6))) (K.add (K.mul (x 4) (K.add (K.add (K.add (x 1) (x 3)) (x 5)) (x 7))) (AVs.psum K x L [5] [0, 2, 4, 6, 8]))))) = _; rfl

include hz in
theorem ip15 : ip K (Zs K x) (fun i => x (i + 3)) (L + 8) = (K.add (K.add (K.add (Rk K x L 4) (K.neg K.zero)) K.zero) K.zero) := by
  show ip K _ _ (L + 7 + 1) = _; rw [ip_z1]
  show ip K x (fun i => x (i + 4)) (L + 7) = _
  rw [ip_ext K _ (AVs.vsum K x [0]) _ (AVs.vsum K x [4]) (fun i => by show (x (i + 0)) = (K.add (x (i + 0)) K.zero); lib_ring) (fun i => by show (x (i + 4)) = (K.add (x (i + 4)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (AVs.psum K x L [0] [4]) = _; rfl

include hz in
theorem ip16 : ip K (Zs K x) (fun i => x (i + 2)) (L + 8) = (K.add (K.add (K.add (Rk K x L 3) (K.neg K.zero)) K.zero) K.zero) := by
  show ip K _ _ (L + 7 + 1) = _; rw [ip_z1]
  show ip K x (fun i => x (i + 3)) (L + 7) = _
  rw [ip_ext K _ (AVs.vsum K x [0]) _ (AVs.vsum K x [3]) (fun i => by show (x (i + 0)) = (K.add (x (i + 0)) K.zero); lib_ring) (fun i => by show (x (i + 3)) = (K.add (x (i + 3)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (AVs.psum K x L [0] [3]) = _; rfl

include hz in
theorem ip17 : ip K (Zs K (c1v K x)) (fun i => x (i + 3)) (L + 8) = (K.add (K.mul (K.add K.zero (x 1)) (x 4)) (K.add (K.add (K.add (Rk K x L 5) (K.neg K.zero)) K.zero) (K.add (K.add (K.add (Rk K x L 3) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 3))) (K.mul (x 1) (x 4))))) K.zero) K.zero))) := by
  show ip K _ _ (L + 7 + 1) = _; rw [ip_z1]
  show ip K (c1v K x) (fun i => x (i + 4)) (L + 7) = _
  rw [show L + 7 = L + 6 + 1 from rfl, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [0, 2]) _ (AVs.vsum K x [5]) (fun i => by show (K.add (x (i + 0)) (x (i + 2))) = (K.add (x (i + 0)) (K.add (x (i + 2)) K.zero)); lib_ring) (fun i => by show (x (i + 5)) = (K.add (x (i + 5)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (K.add K.zero (x 1)) (x 4)) (AVs.psum K x L [0, 2] [5])) = _; rfl

include hz in
theorem ip18 : ip K (fun i => x (i + 1)) (Zs K (pv2 K x)) (L + 8) = (K.add (K.mul (x 2) (x 2)) (K.add (K.mul (x 3) (K.add (x 1) (x 3))) (K.add (K.add (K.add (Rk K x L 4) (K.neg K.zero)) (K.add (K.add (Rk K x L 2) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 2))) (K.mul (x 1) (x 3))))) (K.add (K.add (Rk K x L 0) (K.neg (K.add (K.add (K.add (K.add K.zero (K.mul (x 0) (x 0))) (K.mul (x 1) (x 1))) (K.m  -- (+65 chars; full line in the Zenodo source)
  show ip K _ _ (L + 7 + 1) = _; rw [ip_1z]
  show ip K (fun i => x (i + 2)) (pv2 K x) (L + 7) = _
  rw [show L + 7 = L + 5 + 1 + 1 from rfl, ip_head, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [4]) _ (AVs.vsum K x [0, 2, 4]) (fun i => by show (x (i + 4)) = (K.add (x (i + 4)) K.zero); lib_ring) (fun i => by show (K.add (K.add (x (i + 0)) (x (i + 2))) (x (i + 4))) = (K.add (x (i + 0)) (K.add (x (i + 2)) (K.add (x (i + 4)) K.zero))); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (x 2) (x 2)) (K.add (K.mul (x 3) (K.add (x 1) (x 3))) (AVs.psum K x L [4] [0, 2, 4]))) = _; rfl

include hz in
theorem ip19 : ip K x (Zs K (pv2 K x)) (L + 8) = (K.add (K.mul (x 1) (x 2)) (K.add (K.mul (x 2) (K.add (x 1) (x 3))) (K.add (K.add (K.add (Rk K x L 3) (K.neg K.zero)) (K.add (K.add (Rk K x L 1) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 1))) (K.mul (x 1) (x 2))))) (K.add (K.add (Rk K x L 1) (K.neg (K.add (K.add (K.add K.zero (K.mul (x 0) (x 1))) (K.mul (x 1) (x 2))) (K.mul (x 2) (x 3))))) K.zero)  -- (+18 chars; full line in the Zenodo source)
  show ip K _ _ (L + 7 + 1) = _; rw [ip_1z]
  show ip K (fun i => x (i + 1)) (pv2 K x) (L + 7) = _
  rw [show L + 7 = L + 5 + 1 + 1 from rfl, ip_head, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [3]) _ (AVs.vsum K x [0, 2, 4]) (fun i => by show (x (i + 3)) = (K.add (x (i + 3)) K.zero); lib_ring) (fun i => by show (K.add (K.add (x (i + 0)) (x (i + 2))) (x (i + 4))) = (K.add (x (i + 0)) (K.add (x (i + 2)) (K.add (x (i + 4)) K.zero))); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (x 1) (x 2)) (K.add (K.mul (x 2) (K.add (x 1) (x 3))) (AVs.psum K x L [3] [0, 2, 4]))) = _; rfl

include hz in
theorem ip20 : ip K (fun i => x (i + 1)) (Zs K (pv3 K x)) (L + 8) = (K.add (K.mul (x 2) (x 3)) (K.add (K.mul (x 3) (K.add (x 2) (x 4))) (K.add (K.mul (x 4) (K.add (K.add (x 1) (x 3)) (x 5))) (K.add (K.add (K.add (Rk K x L 5) (K.neg K.zero)) (K.add (K.add (Rk K x L 3) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 3))) (K.mul (x 1) (x 4))))) (K.add (K.add (Rk K x L 1) (K.neg (K.add (K.add (K.add (K.ad  -- (+305 chars; full line in the Zenodo source)
  show ip K _ _ (L + 7 + 1) = _; rw [ip_1z]
  show ip K (fun i => x (i + 2)) (pv3 K x) (L + 7) = _
  rw [show L + 7 = L + 4 + 1 + 1 + 1 from rfl, ip_head, ip_head, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [5]) _ (AVs.vsum K x [0, 2, 4, 6]) (fun i => by show (x (i + 5)) = (K.add (x (i + 5)) K.zero); lib_ring) (fun i => by show (K.add (K.add (K.add (x (i + 0)) (x (i + 2))) (x (i + 4))) (x (i + 6))) = (K.add (x (i + 0)) (K.add (x (i + 2)) (K.add (x (i + 4)) (K.add (x (i + 6)) K.zero)))); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (x 2) (x 3)) (K.add (K.mul (x 3) (K.add (x 2) (x 4))) (K.add (K.mul (x 4) (K.add (K.add (x 1) (x 3)) (x 5))) (AVs.psum K x L [5] [0, 2, 4, 6])))) = _; rfl

include hz in
theorem ip21 : ip K (fun i => x (i + 1)) (pv3 K x) (L + 8) = (K.add (K.mul (x 1) (x 3)) (K.add (K.mul (x 2) (K.add (x 2) (x 4))) (K.add (K.mul (x 3) (K.add (K.add (x 1) (x 3)) (x 5))) (K.add (K.add (K.add (Rk K x L 4) (K.neg K.zero)) (K.add (K.add (Rk K x L 2) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 2))) (K.mul (x 1) (x 3))))) (K.add (K.add (Rk K x L 0) (K.neg (K.add (K.add (K.add (K.add K.zer  -- (+270 chars; full line in the Zenodo source)
  show ip K (fun i => x (i + 1)) (pv3 K x) (L + 8) = _
  rw [show L + 8 = L + 5 + 1 + 1 + 1 from rfl, ip_head, ip_head, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [4]) _ (AVs.vsum K x [0, 2, 4, 6]) (fun i => by show (x (i + 4)) = (K.add (x (i + 4)) K.zero); lib_ring) (fun i => by show (K.add (K.add (K.add (x (i + 0)) (x (i + 2))) (x (i + 4))) (x (i + 6))) = (K.add (x (i + 0)) (K.add (x (i + 2)) (K.add (x (i + 4)) (K.add (x (i + 6)) K.zero)))); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (x 1) (x 3)) (K.add (K.mul (x 2) (K.add (x 2) (x 4))) (K.add (K.mul (x 3) (K.add (K.add (x 1) (x 3)) (x 5))) (AVs.psum K x L [4] [0, 2, 4, 6])))) = _; rfl

include hz in
theorem ip22 : ip K x (pv3 K x) (L + 8) = (K.add (K.mul (x 0) (x 3)) (K.add (K.mul (x 1) (K.add (x 2) (x 4))) (K.add (K.mul (x 2) (K.add (K.add (x 1) (x 3)) (x 5))) (K.add (K.add (K.add (Rk K x L 3) (K.neg K.zero)) (K.add (K.add (Rk K x L 1) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 1))) (K.mul (x 1) (x 2))))) (K.add (K.add (Rk K x L 1) (K.neg (K.add (K.add (K.add K.zero (K.mul (x 0) (x 1))) (K.  -- (+195 chars; full line in the Zenodo source)
  show ip K x (pv3 K x) (L + 8) = _
  rw [show L + 8 = L + 5 + 1 + 1 + 1 from rfl, ip_head, ip_head, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [3]) _ (AVs.vsum K x [0, 2, 4, 6]) (fun i => by show (x (i + 3)) = (K.add (x (i + 3)) K.zero); lib_ring) (fun i => by show (K.add (K.add (K.add (x (i + 0)) (x (i + 2))) (x (i + 4))) (x (i + 6))) = (K.add (x (i + 0)) (K.add (x (i + 2)) (K.add (x (i + 4)) (K.add (x (i + 6)) K.zero)))); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (x 0) (x 3)) (K.add (K.mul (x 1) (K.add (x 2) (x 4))) (K.add (K.mul (x 2) (K.add (K.add (x 1) (x 3)) (x 5))) (AVs.psum K x L [3] [0, 2, 4, 6])))) = _; rfl

include hz in
theorem ip23 : ip K (fun i => x (i + 1)) (fun i => x (i + 2)) (L + 8) = (K.add (K.add (K.add (Rk K x L 1) (K.neg (K.add K.zero (K.mul (x 0) (x 1))))) K.zero) K.zero) := by
  show ip K (fun i => x (i + 1)) (fun i => x (i + 2)) (L + 8) = _
  rw [ip_ext K _ (AVs.vsum K x [1]) _ (AVs.vsum K x [2]) (fun i => by show (x (i + 1)) = (K.add (x (i + 1)) K.zero); lib_ring) (fun i => by show (x (i + 2)) = (K.add (x (i + 2)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (AVs.psum K x L [1] [2]) = _; rfl

include hz in
theorem ip24 : ip K (fun i => x (i + 2)) (fun i => x (i + 3)) (L + 8) = (K.add (K.add (K.add (Rk K x L 1) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 1))) (K.mul (x 1) (x 2))))) K.zero) K.zero) := by
  show ip K (fun i => x (i + 2)) (fun i => x (i + 3)) (L + 8) = _
  rw [ip_ext K _ (AVs.vsum K x [2]) _ (AVs.vsum K x [3]) (fun i => by show (x (i + 2)) = (K.add (x (i + 2)) K.zero); lib_ring) (fun i => by show (x (i + 3)) = (K.add (x (i + 3)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (AVs.psum K x L [2] [3]) = _; rfl

include hz in
theorem ip25 : ip K (fun i => x (i + 1)) (fun i => x (i + 3)) (L + 8) = (K.add (K.add (K.add (Rk K x L 2) (K.neg (K.add K.zero (K.mul (x 0) (x 2))))) K.zero) K.zero) := by
  show ip K (fun i => x (i + 1)) (fun i => x (i + 3)) (L + 8) = _
  rw [ip_ext K _ (AVs.vsum K x [1]) _ (AVs.vsum K x [3]) (fun i => by show (x (i + 1)) = (K.add (x (i + 1)) K.zero); lib_ring) (fun i => by show (x (i + 3)) = (K.add (x (i + 3)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (AVs.psum K x L [1] [3]) = _; rfl

include hz in
theorem ip26 : ip K (fun i => x (i + 2)) (fun i => x (i + 2)) (L + 8) = (K.add (K.add (K.add (Rk K x L 0) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 0))) (K.mul (x 1) (x 1))))) K.zero) K.zero) := by
  show ip K (fun i => x (i + 2)) (fun i => x (i + 2)) (L + 8) = _
  rw [ip_ext K _ (AVs.vsum K x [2]) _ (AVs.vsum K x [2]) (fun i => by show (x (i + 2)) = (K.add (x (i + 2)) K.zero); lib_ring) (fun i => by show (x (i + 2)) = (K.add (x (i + 2)) K.zero); lib_ring), AVs.ip_vsum K x L hz]
  show (AVs.psum K x L [2] [2]) = _; rfl

include hz in
theorem ip27 : ip K (fun i => x (i + 1)) (pv1 K (fun i => x (i + 1))) (L + 8) = (K.add (K.mul (x 1) (x 2)) (K.add (K.add (K.add (Rk K x L 1) (K.neg (K.add K.zero (K.mul (x 0) (x 1))))) (K.add (K.add (Rk K x L 1) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 1))) (K.mul (x 1) (x 2))))) K.zero)) K.zero)) := by
  show ip K (fun i => x (i + 1)) (pv1 K (fun i => x (i + 1))) (L + 8) = _
  rw [show L + 8 = L + 7 + 1 from rfl, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [2]) _ (AVs.vsum K x [1, 3]) (fun i => by show (x (i + 2)) = (K.add (x (i + 2)) K.zero); lib_ring) (fun i => by show (K.add (x (i + 1)) (x (i + 3))) = (K.add (x (i + 1)) (K.add (x (i + 3)) K.zero)); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (x 1) (x 2)) (AVs.psum K x L [2] [1, 3])) = _; rfl

include hz in
theorem ip28 : ip K (fun i => x (i + 2)) (pv1 K (fun i => x (i + 1))) (L + 8) = (K.add (K.mul (x 2) (x 2)) (K.add (K.add (K.add (Rk K x L 2) (K.neg (K.add K.zero (K.mul (x 0) (x 2))))) (K.add (K.add (Rk K x L 0) (K.neg (K.add (K.add (K.add K.zero (K.mul (x 0) (x 0))) (K.mul (x 1) (x 1))) (K.mul (x 2) (x 2))))) K.zero)) K.zero)) := by
  show ip K (fun i => x (i + 2)) (pv1 K (fun i => x (i + 1))) (L + 8) = _
  rw [show L + 8 = L + 7 + 1 from rfl, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [3]) _ (AVs.vsum K x [1, 3]) (fun i => by show (x (i + 3)) = (K.add (x (i + 3)) K.zero); lib_ring) (fun i => by show (K.add (x (i + 1)) (x (i + 3))) = (K.add (x (i + 1)) (K.add (x (i + 3)) K.zero)); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (x 2) (x 2)) (AVs.psum K x L [3] [1, 3])) = _; rfl

include hz in
theorem ip29 : ip K (fun i => x (i + 2)) (Zs K (c1v K x)) (L + 8) = (K.add (K.mul (x 3) (K.add K.zero (x 1))) (K.add (K.add (K.add (Rk K x L 4) (K.neg K.zero)) (K.add (K.add (Rk K x L 2) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 2))) (K.mul (x 1) (x 3))))) K.zero)) K.zero)) := by
  show ip K _ _ (L + 7 + 1) = _; rw [ip_1z]
  show ip K (fun i => x (i + 3)) (c1v K x) (L + 7) = _
  rw [show L + 7 = L + 6 + 1 from rfl, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [4]) _ (AVs.vsum K x [0, 2]) (fun i => by show (x (i + 4)) = (K.add (x (i + 4)) K.zero); lib_ring) (fun i => by show (K.add (x (i + 0)) (x (i + 2))) = (K.add (x (i + 0)) (K.add (x (i + 2)) K.zero)); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (x 3) (K.add K.zero (x 1))) (AVs.psum K x L [4] [0, 2])) = _; rfl

include hz in
theorem ip30 : ip K (fun i => x (i + 1)) (Zs K (c1v K x)) (L + 8) = (K.add (K.mul (x 2) (K.add K.zero (x 1))) (K.add (K.add (K.add (Rk K x L 3) (K.neg K.zero)) (K.add (K.add (Rk K x L 1) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 1))) (K.mul (x 1) (x 2))))) K.zero)) K.zero)) := by
  show ip K _ _ (L + 7 + 1) = _; rw [ip_1z]
  show ip K (fun i => x (i + 2)) (c1v K x) (L + 7) = _
  rw [show L + 7 = L + 6 + 1 from rfl, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [3]) _ (AVs.vsum K x [0, 2]) (fun i => by show (x (i + 3)) = (K.add (x (i + 3)) K.zero); lib_ring) (fun i => by show (K.add (x (i + 0)) (x (i + 2))) = (K.add (x (i + 0)) (K.add (x (i + 2)) K.zero)); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (x 2) (K.add K.zero (x 1))) (AVs.psum K x L [3] [0, 2])) = _; rfl

include hz in
theorem ip31 : ip K (fun i => x (i + 2)) (Zs K (pv2 K x)) (L + 8) = (K.add (K.mul (x 3) (x 2)) (K.add (K.mul (x 4) (K.add (x 1) (x 3))) (K.add (K.add (K.add (Rk K x L 5) (K.neg K.zero)) (K.add (K.add (Rk K x L 3) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 3))) (K.mul (x 1) (x 4))))) (K.add (K.add (Rk K x L 1) (K.neg (K.add (K.add (K.add (K.add K.zero (K.mul (x 0) (x 1))) (K.mul (x 1) (x 2))) (K.m  -- (+65 chars; full line in the Zenodo source)
  show ip K _ _ (L + 7 + 1) = _; rw [ip_1z]
  show ip K (fun i => x (i + 3)) (pv2 K x) (L + 7) = _
  rw [show L + 7 = L + 5 + 1 + 1 from rfl, ip_head, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [5]) _ (AVs.vsum K x [0, 2, 4]) (fun i => by show (x (i + 5)) = (K.add (x (i + 5)) K.zero); lib_ring) (fun i => by show (K.add (K.add (x (i + 0)) (x (i + 2))) (x (i + 4))) = (K.add (x (i + 0)) (K.add (x (i + 2)) (K.add (x (i + 4)) K.zero))); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (x 3) (x 2)) (K.add (K.mul (x 4) (K.add (x 1) (x 3))) (AVs.psum K x L [5] [0, 2, 4]))) = _; rfl

include hz in
theorem ip32 : ip K x (pv4 K x) (L + 8) = (K.add (K.mul (x 0) (x 4)) (K.add (K.mul (x 1) (K.add (x 3) (x 5))) (K.add (K.mul (x 2) (K.add (K.add (x 2) (x 4)) (x 6))) (K.add (K.mul (x 3) (K.add (K.add (K.add (x 1) (x 3)) (x 5)) (x 7))) (K.add (K.add (K.add (Rk K x L 4) (K.neg K.zero)) (K.add (K.add (Rk K x L 2) (K.neg (K.add (K.add K.zero (K.mul (x 0) (x 2))) (K.mul (x 1) (x 3))))) (K.add (K.add (Rk  -- (+477 chars; full line in the Zenodo source)
  show ip K x (pv4 K x) (L + 8) = _
  rw [show L + 8 = L + 4 + 1 + 1 + 1 + 1 from rfl, ip_head, ip_head, ip_head, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [4]) _ (AVs.vsum K x [0, 2, 4, 6, 8]) (fun i => by show (x (i + 4)) = (K.add (x (i + 4)) K.zero); lib_ring) (fun i => by show (K.add (K.add (K.add (K.add (x (i + 0)) (x (i + 2))) (x (i + 4))) (x (i + 6))) (x (i + 8))) = (K.add (x (i + 0)) (K.add (x (i + 2)) (K.add (x (i + 4)) (K.add (x (i + 6)) (K.add (x (i + 8)) K.zero))))); lib_ring), AVs.ip_vsum K x L hz]
  show (K.add (K.mul (x 0) (x 4)) (K.add (K.mul (x 1) (K.add (x 3) (x 5))) (K.add (K.mul (x 2) (K.add (K.add (x 2) (x 4)) (x 6))) (K.add (K.mul (x 3) (K.add (K.add (K.add (x 1) (x 3)) (x 5)) (x 7))) (AVs.psum K x L [4] [0, 2, 4, 6, 8]))))) = _; rfl

include hz in
theorem ip33 : ip K x (pv5 K x) (L + 8) = (K.add (K.mul (x 0) (x 5)) (K.add (K.mul (x 1) (K.add (x 4) (x 6))) (K.add (K.mul (x 2) (K.add (K.add (x 3) (x 5)) (x 7))) (K.add (K.mul (x 3) (K.add (K.add (K.add (x 2) (x 4)) (x 6)) (x 8))) (K.add (K.mul (x 4) (K.add (K.add (K.add (K.add (x 1) (x 3)) (x 5)) (x 7)) (x 9))) (K.add (K.add (K.add (Rk K x L 5) (K.neg K.zero)) (K.add (K.add (Rk K x L 3) (K.neg  -- (+801 chars; full line in the Zenodo source)
  show ip K x (pv5 K x) (L + 8) = _
  rw [show L + 8 = L + 3 + 1 + 1 + 1 + 1 + 1 from rfl, ip_head, ip_head, ip_head, ip_head, ip_head]
  rw [ip_ext K _ (AVs.vsum K x [5]) _ (AVs.vsum K x [0, 2, 4, 6, 8, 10]) (fun i => by show (x (i + 5)) = (K.add (x (i + 5)) K.zero); lib_ring) (fun i => by show (K.add (K.add (K.add (K.add (K.add (x (i + 0)) (x (i + 2))) (x (i + 4))) (x (i + 6))) (x (i + 8))) (x (i + 10))) = (K.add (x (i + 0)) (K.add (x (i + 2)) (K.add (x (i + 4)) (K.add (x (i + 6)) (K.add (x (i + 8)) (K.add (x (i + 10)) K.zero)))  -- (+37 chars; full line in the Zenodo source)
  show (K.add (K.mul (x 0) (x 5)) (K.add (K.mul (x 1) (K.add (x 4) (x 6))) (K.add (K.mul (x 2) (K.add (K.add (x 3) (x 5)) (x 7))) (K.add (K.mul (x 3) (K.add (K.add (K.add (x 2) (x 4)) (x 6)) (x 8))) (K.add (K.mul (x 4) (K.add (K.add (K.add (K.add (x 1) (x 3)) (x 5)) (x 7)) (x 9))) (AVs.psum K x L [5] [0, 2, 4, 6, 8, 10])))))) = _; rfl

set_option maxRecDepth 2000000 in
include hz in
theorem ident : K.add (K.mul (LibRing.castN K 72) (K.mul (ip K x (pv4 K x) (L + 8)) (ip K x (pv4 K x) (L + 8)))) (K.neg (K.mul (LibRing.castN K 75) (K.mul (ip K x (pv3 K x) (L + 8)) (ip K x (pv5 K x) (L + 8))))) = (K.add (K.mul (LibRing.castN K 16) (K.add (K.mul (ip K (Zs K (Zs K (Zs K x))) (fun i => x (i + 1)) (L + 8)) (ip K (Zs K (Zs K x)) (fun i => x (i + 2)) (L + 8))) (K.neg (K.mul (ip K (Zs K  -- (+2797 chars; full line in the Zenodo source)
  rw [ip0 K x L hz, ip1 K x L hz, ip2 K x L hz, ip3 K x L hz, ip4 K x L hz, ip5 K x L hz, ip6 K x L hz, ip7 K x L hz, ip8 K x L hz, ip9 K x L hz, ip10 K x L hz, ip11 K x L hz, ip12 K x L hz, ip13 K x L hz, ip14 K x L hz, ip15 K x L hz, ip16 K x L hz, ip17 K x L hz, ip18 K x L hz, ip19 K x L hz, ip20 K x L hz, ip21 K x L hz, ip22 K x L hz, ip23 K x L hz, ip24 K x L hz, ip25 K x L hz, ip26 K x L hz,  -- (+105 chars; full line in the Zenodo source)
  ring_z

end ident

section signs

variable (O : ORing K) (x : Nat → R) (hx : ∀ j, O.le K.zero (x j))
  (hT : ∀ a w, O.le K.zero (K.add (K.mul (Zs K x (a + 1)) (Zs K x (a + w))) (K.neg (K.mul (Zs K x a) (Zs K x (a + w + 1))))))
  (hD : ∀ a k, O.le K.zero (Window.Dl K (Zs K x) a (a + k))) (h1 : O.le K.zero K.one) (h10 : K.one ≠ K.zero)

omit hx hT hD h1 h10 in
theorem nn_scale (h1 : O.le K.zero K.one) (h10 : K.one ≠ K.zero) (n : Nat) (hn : 1 ≤ n) (t s : R) (hs : O.le K.zero s)
    (h : s = K.mul (LibRing.castN K n) t) : O.le K.zero t := by
  have p := SU2CharExp.pos_of_ge_one K O h1 h10 n hn
  apply O.pos_cancel _ _ _ p.1 p.2
  show O.le (K.mul K.zero (LibRing.castN K n)) (K.mul t (LibRing.castN K n))
  rw [show K.mul K.zero (LibRing.castN K n) = K.zero by lib_ring, show K.mul t (LibRing.castN K n) = s by rw [h]; lib_ring]
  exact hs

include hx hT hD h1 h10 in
theorem sg0 (i w : Nat) : O.le K.zero (K.neg (Lagrange.minor K (Zs K (Zs K (Zs K x))) (Zs K (Zs K x)) i (i + w + 1))) := by
  unfold Lagrange.minor
  cases i with
  | zero =>
    cases w with
    | zero =>
      show O.le K.zero (K.neg (K.add (K.mul K.zero K.zero) (K.neg (K.mul K.zero K.zero))))
      exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
    | succ w =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (1))) (K.neg (K.mul K.zero K.zero))))
        exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (2))) (K.neg (K.mul (Zs K x (1)) K.zero))))
          exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (3))) (K.neg (K.mul (Zs K x (2)) K.zero))))
            exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (4))) (K.neg (K.mul (Zs K x (3)) K.zero))))
              exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
            | succ w =>
              rw [show 0 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 6 by lib_nat]
              show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (w + 5))) (K.neg (K.mul (Zs K x (w + 4)) K.zero))))
              exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
  | succ i =>
    cases i with
    | zero =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (1))) (K.neg (K.mul K.zero K.zero))))
        exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (2))) (K.neg (K.mul (Zs K x (1)) K.zero))))
          exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (3))) (K.neg (K.mul (Zs K x (2)) K.zero))))
            exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (4))) (K.neg (K.mul (Zs K x (3)) K.zero))))
              exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) K.zero))))
                exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
              | succ w =>
                rw [show 0 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (w + 6))) (K.neg (K.mul (Zs K x (w + 5)) K.zero))))
                exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
    | succ i =>
      cases i with
      | zero =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (2))) (K.neg (K.mul (Zs K x (1)) (Zs K x (1))))))
          have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (1))) := O.mul_nonneg _ _ (hx (0)) (hx (0))
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (3))) (K.neg (K.mul (Zs K x (2)) (Zs K x (1))))))
            have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (2))) := O.mul_nonneg _ _ (hx (0)) (hx (1))
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (4))) (K.neg (K.mul (Zs K x (3)) (Zs K x (1))))))
              have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (3))) := O.mul_nonneg _ _ (hx (0)) (hx (2))
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (1))))))
                have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (0)) (hx (3))
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (1))))))
                  have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (0)) (hx (4))
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  rw [show 0 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (w + 7))) (K.neg (K.mul (Zs K x (w + 6)) (Zs K x (1))))))
                  have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (w + 6))) := O.mul_nonneg _ _ (hx (0)) (hx (w + 5))
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ i =>
        cases i with
        | zero =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (3))) (K.neg (K.mul (Zs K x (2)) (Zs K x (2))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (3))) (K.neg (K.mul (Zs K x (2)) (Zs K x (2)))))) := by
              have h := A2.mk K O x hT (1) (0) (0)
              try rw [show (0) + (0) + 1 + (1) = 2 by lib_nat] at h
              try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
              try rw [show (0) + (1) = 1 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (4))) (K.neg (K.mul (Zs K x (3)) (Zs K x (2))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (4))) (K.neg (K.mul (Zs K x (2)) (Zs K x (3)))))) := by
                have h := A2.mk K O x hT (2) (0) (0)
                try rw [show (0) + (0) + 1 + (2) = 3 by lib_nat] at h
                try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                try rw [show (0) + (2) = 2 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (2))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (5))) (K.neg (K.mul (Zs K x (2)) (Zs K x (4)))))) := by
                  have h := A2.mk K O x hT (3) (0) (0)
                  try rw [show (0) + (0) + 1 + (3) = 4 by lib_nat] at h
                  try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                  try rw [show (0) + (3) = 3 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (2))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (6))) (K.neg (K.mul (Zs K x (2)) (Zs K x (5)))))) := by
                    have h := A2.mk K O x hT (4) (0) (0)
                    try rw [show (0) + (0) + 1 + (4) = 5 by lib_nat] at h
                    try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                    try rw [show (0) + (4) = 4 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (2))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (7))) (K.neg (K.mul (Zs K x (2)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (5) (0) (0)
                      try rw [show (0) + (0) + 1 + (5) = 6 by lib_nat] at h
                      try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                      try rw [show (0) + (5) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    rw [show 0 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 8))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (2))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 8))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (2)))))) := by
                      have h := A2.mk K O x hT (1) (0) (w + 5)
                      try rw [show (0) + (w + 5) + 1 + (1) = w + 7 by lib_nat] at h
                      try rw [show (0) + (w + 5) + 1 = w + 6 by lib_nat] at h
                      try rw [show (0) + (1) = 1 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ i =>
          cases i with
          | zero =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (4))) (K.neg (K.mul (Zs K x (3)) (Zs K x (3))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (4))) (K.neg (K.mul (Zs K x (3)) (Zs K x (3)))))) := by
                have h := A2.mk K O x hT (1) (1) (0)
                try rw [show (1) + (0) + 1 + (1) = 3 by lib_nat] at h
                try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                try rw [show (1) + (1) = 2 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (3))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (5))) (K.neg (K.mul (Zs K x (3)) (Zs K x (4)))))) := by
                  have h := A2.mk K O x hT (2) (1) (0)
                  try rw [show (1) + (0) + 1 + (2) = 4 by lib_nat] at h
                  try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                  try rw [show (1) + (2) = 3 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (3))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (6))) (K.neg (K.mul (Zs K x (3)) (Zs K x (5)))))) := by
                    have h := A2.mk K O x hT (3) (1) (0)
                    try rw [show (1) + (0) + 1 + (3) = 5 by lib_nat] at h
                    try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                    try rw [show (1) + (3) = 4 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (3))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (7))) (K.neg (K.mul (Zs K x (3)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (4) (1) (0)
                      try rw [show (1) + (0) + 1 + (4) = 6 by lib_nat] at h
                      try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                      try rw [show (1) + (4) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (3))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (8))) (K.neg (K.mul (Zs K x (3)) (Zs K x (7)))))) := by
                        have h := A2.mk K O x hT (5) (1) (0)
                        try rw [show (1) + (0) + 1 + (5) = 7 by lib_nat] at h
                        try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                        try rw [show (1) + (5) = 6 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      rw [show 0 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 9))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (3))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 9))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (3)))))) := by
                        have h := A2.mk K O x hT (1) (1) (w + 5)
                        try rw [show (1) + (w + 5) + 1 + (1) = w + 8 by lib_nat] at h
                        try rw [show (1) + (w + 5) + 1 = w + 7 by lib_nat] at h
                        try rw [show (1) + (1) = 2 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ i =>
            cases i with
            | zero =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4)))))) := by
                  have h := A2.mk K O x hT (1) (2) (0)
                  try rw [show (2) + (0) + 1 + (1) = 4 by lib_nat] at h
                  try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                  try rw [show (2) + (1) = 3 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (4))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (6))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
                    have h := A2.mk K O x hT (2) (2) (0)
                    try rw [show (2) + (0) + 1 + (2) = 5 by lib_nat] at h
                    try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                    try rw [show (2) + (2) = 4 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (4))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (3) (2) (0)
                      try rw [show (2) + (0) + 1 + (3) = 6 by lib_nat] at h
                      try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                      try rw [show (2) + (3) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (4))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (4)) (Zs K x (7)))))) := by
                        have h := A2.mk K O x hT (4) (2) (0)
                        try rw [show (2) + (0) + 1 + (4) = 7 by lib_nat] at h
                        try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                        try rw [show (2) + (4) = 6 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (4))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (4)) (Zs K x (8)))))) := by
                          have h := A2.mk K O x hT (5) (2) (0)
                          try rw [show (2) + (0) + 1 + (5) = 8 by lib_nat] at h
                          try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                          try rw [show (2) + (5) = 7 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show 0 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (4))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (4)))))) := by
                          have h := A2.mk K O x hT (1) (2) (w + 5)
                          try rw [show (2) + (w + 5) + 1 + (1) = w + 9 by lib_nat] at h
                          try rw [show (2) + (w + 5) + 1 = w + 8 by lib_nat] at h
                          try rw [show (2) + (1) = 3 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ a =>
              cases w with
              | zero =>
                rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 = a + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 6))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 5))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 6))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 5)))))) := by
                  have h := A2.mk K O x hT (1) (a + 3) (0)
                  try rw [show (a + 3) + (0) + 1 + (1) = a + 5 by lib_nat] at h
                  try rw [show (a + 3) + (0) + 1 = a + 4 by lib_nat] at h
                  try rw [show (a + 3) + (1) = a + 4 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1) + 1 = a + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 7))) (K.neg (K.mul (Zs K x (a + 6)) (Zs K x (a + 5))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 7))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 6)))))) := by
                    have h := A2.mk K O x hT (2) (a + 3) (0)
                    try rw [show (a + 3) + (0) + 1 + (2) = a + 6 by lib_nat] at h
                    try rw [show (a + 3) + (0) + 1 = a + 4 by lib_nat] at h
                    try rw [show (a + 3) + (2) = a + 5 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1) + 1 = a + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 8))) (K.neg (K.mul (Zs K x (a + 7)) (Zs K x (a + 5))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 8))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 7)))))) := by
                      have h := A2.mk K O x hT (3) (a + 3) (0)
                      try rw [show (a + 3) + (0) + 1 + (3) = a + 7 by lib_nat] at h
                      try rw [show (a + 3) + (0) + 1 = a + 4 by lib_nat] at h
                      try rw [show (a + 3) + (3) = a + 6 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1) + 1 = a + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 9))) (K.neg (K.mul (Zs K x (a + 8)) (Zs K x (a + 5))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 9))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 8)))))) := by
                        have h := A2.mk K O x hT (4) (a + 3) (0)
                        try rw [show (a + 3) + (0) + 1 + (4) = a + 8 by lib_nat] at h
                        try rw [show (a + 3) + (0) + 1 = a + 4 by lib_nat] at h
                        try rw [show (a + 3) + (4) = a + 7 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1 + 1) + 1 = a + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 10))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 5))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 10))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 9)))))) := by
                          have h := A2.mk K O x hT (5) (a + 3) (0)
                          try rw [show (a + 3) + (0) + 1 + (5) = a + 9 by lib_nat] at h
                          try rw [show (a + 3) + (0) + 1 = a + 4 by lib_nat] at h
                          try rw [show (a + 3) + (5) = a + 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = a + w + 12 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + w + 11))) (K.neg (K.mul (Zs K x (a + w + 10)) (Zs K x (a + 5))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + w + 11))) (K.neg (K.mul (Zs K x (a + w + 10)) (Zs K x (a + 5)))))) := by
                          have h := A2.mk K O x hT (1) (a + 3) (w + 5)
                          try rw [show (a + 3) + (w + 5) + 1 + (1) = a + w + 10 by lib_nat] at h
                          try rw [show (a + 3) + (w + 5) + 1 = a + w + 9 by lib_nat] at h
                          try rw [show (a + 3) + (1) = a + 4 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)

include hx hT hD h1 h10 in
theorem sg1 (i w : Nat) : O.le K.zero (K.neg (Lagrange.minor K (fun i => x (i + 1)) (fun i => x (i + 2)) i (i + w + 1))) := by
  unfold Lagrange.minor
  cases i with
  | zero =>
    cases w with
    | zero =>
      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (4))) (K.neg (K.mul (Zs K x (3)) (Zs K x (3))))))
      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (4))) (K.neg (K.mul (Zs K x (3)) (Zs K x (3)))))) := by
        have h := A2.mk K O x hT (1) (1) (0)
        try rw [show (1) + (0) + 1 + (1) = 3 by lib_nat] at h
        try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
        try rw [show (1) + (1) = 2 by lib_nat] at h
        exact A2.nn_of_nonpos_neg K O _ h
      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
    | succ w =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (3))))))
        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (5))) (K.neg (K.mul (Zs K x (3)) (Zs K x (4)))))) := by
          have h := A2.mk K O x hT (2) (1) (0)
          try rw [show (1) + (0) + 1 + (2) = 4 by lib_nat] at h
          try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
          try rw [show (1) + (2) = 3 by lib_nat] at h
          exact A2.nn_of_nonpos_neg K O _ h
        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (3))))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (6))) (K.neg (K.mul (Zs K x (3)) (Zs K x (5)))))) := by
            have h := A2.mk K O x hT (3) (1) (0)
            try rw [show (1) + (0) + 1 + (3) = 5 by lib_nat] at h
            try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
            try rw [show (1) + (3) = 4 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (3))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (7))) (K.neg (K.mul (Zs K x (3)) (Zs K x (6)))))) := by
              have h := A2.mk K O x hT (4) (1) (0)
              try rw [show (1) + (0) + 1 + (4) = 6 by lib_nat] at h
              try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
              try rw [show (1) + (4) = 5 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (3))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (8))) (K.neg (K.mul (Zs K x (3)) (Zs K x (7)))))) := by
                have h := A2.mk K O x hT (5) (1) (0)
                try rw [show (1) + (0) + 1 + (5) = 7 by lib_nat] at h
                try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                try rw [show (1) + (5) = 6 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              rw [show 0 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 6 by lib_nat]
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 9))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (3))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 9))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (3)))))) := by
                have h := A2.mk K O x hT (1) (1) (w + 5)
                try rw [show (1) + (w + 5) + 1 + (1) = w + 8 by lib_nat] at h
                try rw [show (1) + (w + 5) + 1 = w + 7 by lib_nat] at h
                try rw [show (1) + (1) = 2 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
  | succ i =>
    cases i with
    | zero =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4))))))
        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4)))))) := by
          have h := A2.mk K O x hT (1) (2) (0)
          try rw [show (2) + (0) + 1 + (1) = 4 by lib_nat] at h
          try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
          try rw [show (2) + (1) = 3 by lib_nat] at h
          exact A2.nn_of_nonpos_neg K O _ h
        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (4))))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (6))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
            have h := A2.mk K O x hT (2) (2) (0)
            try rw [show (2) + (0) + 1 + (2) = 5 by lib_nat] at h
            try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
            try rw [show (2) + (2) = 4 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (4))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
              have h := A2.mk K O x hT (3) (2) (0)
              try rw [show (2) + (0) + 1 + (3) = 6 by lib_nat] at h
              try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
              try rw [show (2) + (3) = 5 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (4))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (4)) (Zs K x (7)))))) := by
                have h := A2.mk K O x hT (4) (2) (0)
                try rw [show (2) + (0) + 1 + (4) = 7 by lib_nat] at h
                try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                try rw [show (2) + (4) = 6 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (4))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (4)) (Zs K x (8)))))) := by
                  have h := A2.mk K O x hT (5) (2) (0)
                  try rw [show (2) + (0) + 1 + (5) = 8 by lib_nat] at h
                  try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                  try rw [show (2) + (5) = 7 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                rw [show 0 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (4))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (4)))))) := by
                  have h := A2.mk K O x hT (1) (2) (w + 5)
                  try rw [show (2) + (w + 5) + 1 + (1) = w + 9 by lib_nat] at h
                  try rw [show (2) + (w + 5) + 1 = w + 8 by lib_nat] at h
                  try rw [show (2) + (1) = 3 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
    | succ i =>
      cases i with
      | zero =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5))))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5)))))) := by
            have h := A2.mk K O x hT (1) (3) (0)
            try rw [show (3) + (0) + 1 + (1) = 5 by lib_nat] at h
            try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
            try rw [show (3) + (1) = 4 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (5))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (7))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6)))))) := by
              have h := A2.mk K O x hT (2) (3) (0)
              try rw [show (3) + (0) + 1 + (2) = 6 by lib_nat] at h
              try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
              try rw [show (3) + (2) = 5 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (5))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (8))) (K.neg (K.mul (Zs K x (5)) (Zs K x (7)))))) := by
                have h := A2.mk K O x hT (3) (3) (0)
                try rw [show (3) + (0) + 1 + (3) = 7 by lib_nat] at h
                try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                try rw [show (3) + (3) = 6 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (5))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (9))) (K.neg (K.mul (Zs K x (5)) (Zs K x (8)))))) := by
                  have h := A2.mk K O x hT (4) (3) (0)
                  try rw [show (3) + (0) + 1 + (4) = 8 by lib_nat] at h
                  try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                  try rw [show (3) + (4) = 7 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (10))) (K.neg (K.mul (Zs K x (9)) (Zs K x (5))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (10))) (K.neg (K.mul (Zs K x (5)) (Zs K x (9)))))) := by
                    have h := A2.mk K O x hT (5) (3) (0)
                    try rw [show (3) + (0) + 1 + (5) = 9 by lib_nat] at h
                    try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                    try rw [show (3) + (5) = 8 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  rw [show 0 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 10)) (Zs K x (5))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 10)) (Zs K x (5)))))) := by
                    have h := A2.mk K O x hT (1) (3) (w + 5)
                    try rw [show (3) + (w + 5) + 1 + (1) = w + 10 by lib_nat] at h
                    try rw [show (3) + (w + 5) + 1 = w + 9 by lib_nat] at h
                    try rw [show (3) + (1) = 4 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ i =>
        cases i with
        | zero =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6)))))) := by
              have h := A2.mk K O x hT (1) (4) (0)
              try rw [show (4) + (0) + 1 + (1) = 6 by lib_nat] at h
              try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
              try rw [show (4) + (1) = 5 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (6))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (8))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7)))))) := by
                have h := A2.mk K O x hT (2) (4) (0)
                try rw [show (4) + (0) + 1 + (2) = 7 by lib_nat] at h
                try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                try rw [show (4) + (2) = 6 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (6))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (9))) (K.neg (K.mul (Zs K x (6)) (Zs K x (8)))))) := by
                  have h := A2.mk K O x hT (3) (4) (0)
                  try rw [show (4) + (0) + 1 + (3) = 8 by lib_nat] at h
                  try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                  try rw [show (4) + (3) = 7 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (10))) (K.neg (K.mul (Zs K x (9)) (Zs K x (6))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (10))) (K.neg (K.mul (Zs K x (6)) (Zs K x (9)))))) := by
                    have h := A2.mk K O x hT (4) (4) (0)
                    try rw [show (4) + (0) + 1 + (4) = 9 by lib_nat] at h
                    try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                    try rw [show (4) + (4) = 8 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (11))) (K.neg (K.mul (Zs K x (10)) (Zs K x (6))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (11))) (K.neg (K.mul (Zs K x (6)) (Zs K x (10)))))) := by
                      have h := A2.mk K O x hT (5) (4) (0)
                      try rw [show (4) + (0) + 1 + (5) = 10 by lib_nat] at h
                      try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                      try rw [show (4) + (5) = 9 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    rw [show 0 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (6))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (1) (4) (w + 5)
                      try rw [show (4) + (w + 5) + 1 + (1) = w + 11 by lib_nat] at h
                      try rw [show (4) + (w + 5) + 1 = w + 10 by lib_nat] at h
                      try rw [show (4) + (1) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ i =>
          cases i with
          | zero =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (7))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (7)))))) := by
                have h := A2.mk K O x hT (1) (5) (0)
                try rw [show (5) + (0) + 1 + (1) = 7 by lib_nat] at h
                try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                try rw [show (5) + (1) = 6 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (7))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (9))) (K.neg (K.mul (Zs K x (7)) (Zs K x (8)))))) := by
                  have h := A2.mk K O x hT (2) (5) (0)
                  try rw [show (5) + (0) + 1 + (2) = 8 by lib_nat] at h
                  try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                  try rw [show (5) + (2) = 7 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (10))) (K.neg (K.mul (Zs K x (9)) (Zs K x (7))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (10))) (K.neg (K.mul (Zs K x (7)) (Zs K x (9)))))) := by
                    have h := A2.mk K O x hT (3) (5) (0)
                    try rw [show (5) + (0) + 1 + (3) = 9 by lib_nat] at h
                    try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                    try rw [show (5) + (3) = 8 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (11))) (K.neg (K.mul (Zs K x (10)) (Zs K x (7))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (11))) (K.neg (K.mul (Zs K x (7)) (Zs K x (10)))))) := by
                      have h := A2.mk K O x hT (4) (5) (0)
                      try rw [show (5) + (0) + 1 + (4) = 10 by lib_nat] at h
                      try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                      try rw [show (5) + (4) = 9 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (12))) (K.neg (K.mul (Zs K x (11)) (Zs K x (7))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (12))) (K.neg (K.mul (Zs K x (7)) (Zs K x (11)))))) := by
                        have h := A2.mk K O x hT (5) (5) (0)
                        try rw [show (5) + (0) + 1 + (5) = 11 by lib_nat] at h
                        try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                        try rw [show (5) + (5) = 10 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      rw [show 0 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (w + 13))) (K.neg (K.mul (Zs K x (w + 12)) (Zs K x (7))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (w + 13))) (K.neg (K.mul (Zs K x (w + 12)) (Zs K x (7)))))) := by
                        have h := A2.mk K O x hT (1) (5) (w + 5)
                        try rw [show (5) + (w + 5) + 1 + (1) = w + 12 by lib_nat] at h
                        try rw [show (5) + (w + 5) + 1 = w + 11 by lib_nat] at h
                        try rw [show (5) + (1) = 6 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ i =>
            cases i with
            | zero =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (8))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (8)))))) := by
                  have h := A2.mk K O x hT (1) (6) (0)
                  try rw [show (6) + (0) + 1 + (1) = 8 by lib_nat] at h
                  try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                  try rw [show (6) + (1) = 7 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (10))) (K.neg (K.mul (Zs K x (9)) (Zs K x (8))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (10))) (K.neg (K.mul (Zs K x (8)) (Zs K x (9)))))) := by
                    have h := A2.mk K O x hT (2) (6) (0)
                    try rw [show (6) + (0) + 1 + (2) = 9 by lib_nat] at h
                    try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                    try rw [show (6) + (2) = 8 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (11))) (K.neg (K.mul (Zs K x (10)) (Zs K x (8))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (11))) (K.neg (K.mul (Zs K x (8)) (Zs K x (10)))))) := by
                      have h := A2.mk K O x hT (3) (6) (0)
                      try rw [show (6) + (0) + 1 + (3) = 10 by lib_nat] at h
                      try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                      try rw [show (6) + (3) = 9 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (12))) (K.neg (K.mul (Zs K x (11)) (Zs K x (8))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (12))) (K.neg (K.mul (Zs K x (8)) (Zs K x (11)))))) := by
                        have h := A2.mk K O x hT (4) (6) (0)
                        try rw [show (6) + (0) + 1 + (4) = 11 by lib_nat] at h
                        try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                        try rw [show (6) + (4) = 10 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (13))) (K.neg (K.mul (Zs K x (12)) (Zs K x (8))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (13))) (K.neg (K.mul (Zs K x (8)) (Zs K x (12)))))) := by
                          have h := A2.mk K O x hT (5) (6) (0)
                          try rw [show (6) + (0) + 1 + (5) = 12 by lib_nat] at h
                          try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                          try rw [show (6) + (5) = 11 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show 0 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (w + 14))) (K.neg (K.mul (Zs K x (w + 13)) (Zs K x (8))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (w + 14))) (K.neg (K.mul (Zs K x (w + 13)) (Zs K x (8)))))) := by
                          have h := A2.mk K O x hT (1) (6) (w + 5)
                          try rw [show (6) + (w + 5) + 1 + (1) = w + 13 by lib_nat] at h
                          try rw [show (6) + (w + 5) + 1 = w + 12 by lib_nat] at h
                          try rw [show (6) + (1) = 7 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ a =>
              cases w with
              | zero =>
                rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 = a + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 8)) (Zs K x (a + 10))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 9))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 8)) (Zs K x (a + 10))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 9)))))) := by
                  have h := A2.mk K O x hT (1) (a + 7) (0)
                  try rw [show (a + 7) + (0) + 1 + (1) = a + 9 by lib_nat] at h
                  try rw [show (a + 7) + (0) + 1 = a + 8 by lib_nat] at h
                  try rw [show (a + 7) + (1) = a + 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1) + 1 = a + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 8)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 9))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 8)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 10)))))) := by
                    have h := A2.mk K O x hT (2) (a + 7) (0)
                    try rw [show (a + 7) + (0) + 1 + (2) = a + 10 by lib_nat] at h
                    try rw [show (a + 7) + (0) + 1 = a + 8 by lib_nat] at h
                    try rw [show (a + 7) + (2) = a + 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1) + 1 = a + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 8)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 11)) (Zs K x (a + 9))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 8)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 11)))))) := by
                      have h := A2.mk K O x hT (3) (a + 7) (0)
                      try rw [show (a + 7) + (0) + 1 + (3) = a + 11 by lib_nat] at h
                      try rw [show (a + 7) + (0) + 1 = a + 8 by lib_nat] at h
                      try rw [show (a + 7) + (3) = a + 10 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1) + 1 = a + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 8)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 12)) (Zs K x (a + 9))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 8)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 12)))))) := by
                        have h := A2.mk K O x hT (4) (a + 7) (0)
                        try rw [show (a + 7) + (0) + 1 + (4) = a + 12 by lib_nat] at h
                        try rw [show (a + 7) + (0) + 1 = a + 8 by lib_nat] at h
                        try rw [show (a + 7) + (4) = a + 11 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1 + 1) + 1 = a + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 8)) (Zs K x (a + 14))) (K.neg (K.mul (Zs K x (a + 13)) (Zs K x (a + 9))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 8)) (Zs K x (a + 14))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 13)))))) := by
                          have h := A2.mk K O x hT (5) (a + 7) (0)
                          try rw [show (a + 7) + (0) + 1 + (5) = a + 13 by lib_nat] at h
                          try rw [show (a + 7) + (0) + 1 = a + 8 by lib_nat] at h
                          try rw [show (a + 7) + (5) = a + 12 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = a + w + 12 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 8)) (Zs K x (a + w + 15))) (K.neg (K.mul (Zs K x (a + w + 14)) (Zs K x (a + 9))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 8)) (Zs K x (a + w + 15))) (K.neg (K.mul (Zs K x (a + w + 14)) (Zs K x (a + 9)))))) := by
                          have h := A2.mk K O x hT (1) (a + 7) (w + 5)
                          try rw [show (a + 7) + (w + 5) + 1 + (1) = a + w + 14 by lib_nat] at h
                          try rw [show (a + 7) + (w + 5) + 1 = a + w + 13 by lib_nat] at h
                          try rw [show (a + 7) + (1) = a + 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)

include hx hT hD h1 h10 in
theorem sg2 (i w : Nat) : O.le K.zero (K.neg (Lagrange.minor K (Zs K (Zs K (Zs K x))) (fun i => x (i + 3)) i (i + w + 1))) := by
  unfold Lagrange.minor
  cases i with
  | zero =>
    cases w with
    | zero =>
      show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (5))) (K.neg (K.mul K.zero (Zs K x (4))))))
      exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
    | succ w =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (6))) (K.neg (K.mul K.zero (Zs K x (4))))))
        exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (7))) (K.neg (K.mul (Zs K x (1)) (Zs K x (4))))))
          have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (0)) (hx (3))
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (8))) (K.neg (K.mul (Zs K x (2)) (Zs K x (4))))))
            have t0 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (1)) (hx (3))
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (9))) (K.neg (K.mul (Zs K x (3)) (Zs K x (4))))))
              have t0 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (2)) (hx (3))
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              rw [show 0 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 6 by lib_nat]
              show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 4)) (Zs K x (4))))))
              have t0 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (w + 4))) := O.mul_nonneg _ _ (hx (3)) (hx (w + 3))
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
  | succ i =>
    cases i with
    | zero =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (6))) (K.neg (K.mul K.zero (Zs K x (5))))))
        exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (7))) (K.neg (K.mul (Zs K x (1)) (Zs K x (5))))))
          have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (0)) (hx (4))
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (8))) (K.neg (K.mul (Zs K x (2)) (Zs K x (5))))))
            have t0 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (1)) (hx (4))
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (9))) (K.neg (K.mul (Zs K x (3)) (Zs K x (5))))))
              have t0 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (2)) (hx (4))
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (10))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5))))))
                have t0 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (3)) (hx (4))
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                rw [show 0 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 5)) (Zs K x (5))))))
                have t0 : O.le K.zero (K.mul (Zs K x (5)) (Zs K x (w + 5))) := O.mul_nonneg _ _ (hx (4)) (hx (w + 4))
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
    | succ i =>
      cases i with
      | zero =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (7))) (K.neg (K.mul (Zs K x (1)) (Zs K x (6))))))
          have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (6))) := O.mul_nonneg _ _ (hx (0)) (hx (5))
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (8))) (K.neg (K.mul (Zs K x (2)) (Zs K x (6))))))
            have t0 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (6))) := O.mul_nonneg _ _ (hx (1)) (hx (5))
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (9))) (K.neg (K.mul (Zs K x (3)) (Zs K x (6))))))
              have t0 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (6))) := O.mul_nonneg _ _ (hx (2)) (hx (5))
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (10))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6))))))
                have t0 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (6))) := O.mul_nonneg _ _ (hx (3)) (hx (5))
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (11))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6))))))
                  have t0 : O.le K.zero (K.mul (Zs K x (5)) (Zs K x (6))) := O.mul_nonneg _ _ (hx (4)) (hx (5))
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  rw [show 0 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 6)) (Zs K x (6))))))
                  have t0 : O.le K.zero (K.mul (Zs K x (6)) (Zs K x (w + 6))) := O.mul_nonneg _ _ (hx (5)) (hx (w + 5))
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ i =>
        cases i with
        | zero =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (8))) (K.neg (K.mul (Zs K x (2)) (Zs K x (7))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (8))) (K.neg (K.mul (Zs K x (2)) (Zs K x (7)))))) := by
              have h := A2.mk K O x hT (6) (0) (0)
              try rw [show (0) + (0) + 1 + (6) = 7 by lib_nat] at h
              try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
              try rw [show (0) + (6) = 6 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (9))) (K.neg (K.mul (Zs K x (3)) (Zs K x (7))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (9))) (K.neg (K.mul (Zs K x (3)) (Zs K x (7)))))) := by
                have h := A2.mk K O x hT (6) (0) (1)
                try rw [show (0) + (1) + 1 + (6) = 8 by lib_nat] at h
                try rw [show (0) + (1) + 1 = 2 by lib_nat] at h
                try rw [show (0) + (6) = 6 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (10))) (K.neg (K.mul (Zs K x (4)) (Zs K x (7))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (10))) (K.neg (K.mul (Zs K x (4)) (Zs K x (7)))))) := by
                  have h := A2.mk K O x hT (6) (0) (2)
                  try rw [show (0) + (2) + 1 + (6) = 9 by lib_nat] at h
                  try rw [show (0) + (2) + 1 = 3 by lib_nat] at h
                  try rw [show (0) + (6) = 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (11))) (K.neg (K.mul (Zs K x (5)) (Zs K x (7))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (11))) (K.neg (K.mul (Zs K x (5)) (Zs K x (7)))))) := by
                    have h := A2.mk K O x hT (6) (0) (3)
                    try rw [show (0) + (3) + 1 + (6) = 10 by lib_nat] at h
                    try rw [show (0) + (3) + 1 = 4 by lib_nat] at h
                    try rw [show (0) + (6) = 6 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (12))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (12))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7)))))) := by
                      have h := A2.mk K O x hT (6) (0) (4)
                      try rw [show (0) + (4) + 1 + (6) = 11 by lib_nat] at h
                      try rw [show (0) + (4) + 1 = 5 by lib_nat] at h
                      try rw [show (0) + (6) = 6 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    rw [show 0 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 13))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (7))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 13))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (7)))))) := by
                      have h := A2.mk K O x hT (6) (0) (w + 5)
                      try rw [show (0) + (w + 5) + 1 + (6) = w + 12 by lib_nat] at h
                      try rw [show (0) + (w + 5) + 1 = w + 6 by lib_nat] at h
                      try rw [show (0) + (6) = 6 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ i =>
          cases i with
          | zero =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (9))) (K.neg (K.mul (Zs K x (3)) (Zs K x (8))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (9))) (K.neg (K.mul (Zs K x (3)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (6) (1) (0)
                try rw [show (1) + (0) + 1 + (6) = 8 by lib_nat] at h
                try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                try rw [show (1) + (6) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (10))) (K.neg (K.mul (Zs K x (4)) (Zs K x (8))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (10))) (K.neg (K.mul (Zs K x (4)) (Zs K x (8)))))) := by
                  have h := A2.mk K O x hT (6) (1) (1)
                  try rw [show (1) + (1) + 1 + (6) = 9 by lib_nat] at h
                  try rw [show (1) + (1) + 1 = 3 by lib_nat] at h
                  try rw [show (1) + (6) = 7 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (11))) (K.neg (K.mul (Zs K x (5)) (Zs K x (8))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (11))) (K.neg (K.mul (Zs K x (5)) (Zs K x (8)))))) := by
                    have h := A2.mk K O x hT (6) (1) (2)
                    try rw [show (1) + (2) + 1 + (6) = 10 by lib_nat] at h
                    try rw [show (1) + (2) + 1 = 4 by lib_nat] at h
                    try rw [show (1) + (6) = 7 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (12))) (K.neg (K.mul (Zs K x (6)) (Zs K x (8))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (12))) (K.neg (K.mul (Zs K x (6)) (Zs K x (8)))))) := by
                      have h := A2.mk K O x hT (6) (1) (3)
                      try rw [show (1) + (3) + 1 + (6) = 11 by lib_nat] at h
                      try rw [show (1) + (3) + 1 = 5 by lib_nat] at h
                      try rw [show (1) + (6) = 7 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (13))) (K.neg (K.mul (Zs K x (7)) (Zs K x (8))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (13))) (K.neg (K.mul (Zs K x (7)) (Zs K x (8)))))) := by
                        have h := A2.mk K O x hT (6) (1) (4)
                        try rw [show (1) + (4) + 1 + (6) = 12 by lib_nat] at h
                        try rw [show (1) + (4) + 1 = 6 by lib_nat] at h
                        try rw [show (1) + (6) = 7 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      rw [show 0 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 14))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (8))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 14))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (8)))))) := by
                        have h := A2.mk K O x hT (6) (1) (w + 5)
                        try rw [show (1) + (w + 5) + 1 + (6) = w + 13 by lib_nat] at h
                        try rw [show (1) + (w + 5) + 1 = w + 7 by lib_nat] at h
                        try rw [show (1) + (6) = 7 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ i =>
            cases i with
            | zero =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (10))) (K.neg (K.mul (Zs K x (4)) (Zs K x (9))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (10))) (K.neg (K.mul (Zs K x (4)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (6) (2) (0)
                  try rw [show (2) + (0) + 1 + (6) = 9 by lib_nat] at h
                  try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                  try rw [show (2) + (6) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (11))) (K.neg (K.mul (Zs K x (5)) (Zs K x (9))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (11))) (K.neg (K.mul (Zs K x (5)) (Zs K x (9)))))) := by
                    have h := A2.mk K O x hT (6) (2) (1)
                    try rw [show (2) + (1) + 1 + (6) = 10 by lib_nat] at h
                    try rw [show (2) + (1) + 1 = 4 by lib_nat] at h
                    try rw [show (2) + (6) = 8 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (12))) (K.neg (K.mul (Zs K x (6)) (Zs K x (9))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (12))) (K.neg (K.mul (Zs K x (6)) (Zs K x (9)))))) := by
                      have h := A2.mk K O x hT (6) (2) (2)
                      try rw [show (2) + (2) + 1 + (6) = 11 by lib_nat] at h
                      try rw [show (2) + (2) + 1 = 5 by lib_nat] at h
                      try rw [show (2) + (6) = 8 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (13))) (K.neg (K.mul (Zs K x (7)) (Zs K x (9))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (13))) (K.neg (K.mul (Zs K x (7)) (Zs K x (9)))))) := by
                        have h := A2.mk K O x hT (6) (2) (3)
                        try rw [show (2) + (3) + 1 + (6) = 12 by lib_nat] at h
                        try rw [show (2) + (3) + 1 = 6 by lib_nat] at h
                        try rw [show (2) + (6) = 8 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (14))) (K.neg (K.mul (Zs K x (8)) (Zs K x (9))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (14))) (K.neg (K.mul (Zs K x (8)) (Zs K x (9)))))) := by
                          have h := A2.mk K O x hT (6) (2) (4)
                          try rw [show (2) + (4) + 1 + (6) = 13 by lib_nat] at h
                          try rw [show (2) + (4) + 1 = 7 by lib_nat] at h
                          try rw [show (2) + (6) = 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show 0 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 15))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (9))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 15))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (9)))))) := by
                          have h := A2.mk K O x hT (6) (2) (w + 5)
                          try rw [show (2) + (w + 5) + 1 + (6) = w + 14 by lib_nat] at h
                          try rw [show (2) + (w + 5) + 1 = w + 8 by lib_nat] at h
                          try rw [show (2) + (6) = 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ a =>
              cases w with
              | zero =>
                rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 = a + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 10))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 10)))))) := by
                  have h := A2.mk K O x hT (6) (a + 3) (0)
                  try rw [show (a + 3) + (0) + 1 + (6) = a + 10 by lib_nat] at h
                  try rw [show (a + 3) + (0) + 1 = a + 4 by lib_nat] at h
                  try rw [show (a + 3) + (6) = a + 9 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1) + 1 = a + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 6)) (Zs K x (a + 10))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 6)) (Zs K x (a + 10)))))) := by
                    have h := A2.mk K O x hT (6) (a + 3) (1)
                    try rw [show (a + 3) + (1) + 1 + (6) = a + 11 by lib_nat] at h
                    try rw [show (a + 3) + (1) + 1 = a + 5 by lib_nat] at h
                    try rw [show (a + 3) + (6) = a + 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1) + 1 = a + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 7)) (Zs K x (a + 10))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 7)) (Zs K x (a + 10)))))) := by
                      have h := A2.mk K O x hT (6) (a + 3) (2)
                      try rw [show (a + 3) + (2) + 1 + (6) = a + 12 by lib_nat] at h
                      try rw [show (a + 3) + (2) + 1 = a + 6 by lib_nat] at h
                      try rw [show (a + 3) + (6) = a + 9 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1) + 1 = a + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 14))) (K.neg (K.mul (Zs K x (a + 8)) (Zs K x (a + 10))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 14))) (K.neg (K.mul (Zs K x (a + 8)) (Zs K x (a + 10)))))) := by
                        have h := A2.mk K O x hT (6) (a + 3) (3)
                        try rw [show (a + 3) + (3) + 1 + (6) = a + 13 by lib_nat] at h
                        try rw [show (a + 3) + (3) + 1 = a + 7 by lib_nat] at h
                        try rw [show (a + 3) + (6) = a + 9 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1 + 1) + 1 = a + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 15))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 10))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 15))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 10)))))) := by
                          have h := A2.mk K O x hT (6) (a + 3) (4)
                          try rw [show (a + 3) + (4) + 1 + (6) = a + 14 by lib_nat] at h
                          try rw [show (a + 3) + (4) + 1 = a + 8 by lib_nat] at h
                          try rw [show (a + 3) + (6) = a + 9 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = a + w + 12 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + w + 16))) (K.neg (K.mul (Zs K x (a + w + 10)) (Zs K x (a + 10))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + w + 16))) (K.neg (K.mul (Zs K x (a + w + 10)) (Zs K x (a + 10)))))) := by
                          have h := A2.mk K O x hT (6) (a + 3) (w + 5)
                          try rw [show (a + 3) + (w + 5) + 1 + (6) = a + w + 15 by lib_nat] at h
                          try rw [show (a + 3) + (w + 5) + 1 = a + w + 9 by lib_nat] at h
                          try rw [show (a + 3) + (6) = a + 9 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)

include hx hT hD h1 h10 in
theorem sg3 (i w : Nat) : O.le K.zero (K.neg (Lagrange.minor K x (fun i => x (i + 2)) i (i + w + 1))) := by
  unfold Lagrange.minor
  cases i with
  | zero =>
    cases w with
    | zero =>
      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (4))) (K.neg (K.mul (Zs K x (2)) (Zs K x (3))))))
      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (4))) (K.neg (K.mul (Zs K x (2)) (Zs K x (3)))))) := by
        have h := A2.mk K O x hT (2) (0) (0)
        try rw [show (0) + (0) + 1 + (2) = 3 by lib_nat] at h
        try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
        try rw [show (0) + (2) = 2 by lib_nat] at h
        exact A2.nn_of_nonpos_neg K O _ h
      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
    | succ w =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (5))) (K.neg (K.mul (Zs K x (3)) (Zs K x (3))))))
        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (5))) (K.neg (K.mul (Zs K x (3)) (Zs K x (3)))))) := by
          have h := A2.mk K O x hT (2) (0) (1)
          try rw [show (0) + (1) + 1 + (2) = 4 by lib_nat] at h
          try rw [show (0) + (1) + 1 = 2 by lib_nat] at h
          try rw [show (0) + (2) = 2 by lib_nat] at h
          exact A2.nn_of_nonpos_neg K O _ h
        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (6))) (K.neg (K.mul (Zs K x (4)) (Zs K x (3))))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (6))) (K.neg (K.mul (Zs K x (3)) (Zs K x (4)))))) := by
            have h := A2.mk K O x hT (3) (0) (1)
            try rw [show (0) + (1) + 1 + (3) = 5 by lib_nat] at h
            try rw [show (0) + (1) + 1 = 2 by lib_nat] at h
            try rw [show (0) + (3) = 3 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (7))) (K.neg (K.mul (Zs K x (5)) (Zs K x (3))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (7))) (K.neg (K.mul (Zs K x (3)) (Zs K x (5)))))) := by
              have h := A2.mk K O x hT (4) (0) (1)
              try rw [show (0) + (1) + 1 + (4) = 6 by lib_nat] at h
              try rw [show (0) + (1) + 1 = 2 by lib_nat] at h
              try rw [show (0) + (4) = 4 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (8))) (K.neg (K.mul (Zs K x (6)) (Zs K x (3))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (8))) (K.neg (K.mul (Zs K x (3)) (Zs K x (6)))))) := by
                have h := A2.mk K O x hT (5) (0) (1)
                try rw [show (0) + (1) + 1 + (5) = 7 by lib_nat] at h
                try rw [show (0) + (1) + 1 = 2 by lib_nat] at h
                try rw [show (0) + (5) = 5 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              rw [show 0 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 6 by lib_nat]
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 9))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (3))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 9))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (3)))))) := by
                have h := A2.mk K O x hT (2) (0) (w + 5)
                try rw [show (0) + (w + 5) + 1 + (2) = w + 8 by lib_nat] at h
                try rw [show (0) + (w + 5) + 1 = w + 6 by lib_nat] at h
                try rw [show (0) + (2) = 2 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
  | succ i =>
    cases i with
    | zero =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (5))) (K.neg (K.mul (Zs K x (3)) (Zs K x (4))))))
        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (5))) (K.neg (K.mul (Zs K x (3)) (Zs K x (4)))))) := by
          have h := A2.mk K O x hT (2) (1) (0)
          try rw [show (1) + (0) + 1 + (2) = 4 by lib_nat] at h
          try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
          try rw [show (1) + (2) = 3 by lib_nat] at h
          exact A2.nn_of_nonpos_neg K O _ h
        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (6))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4))))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (6))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4)))))) := by
            have h := A2.mk K O x hT (2) (1) (1)
            try rw [show (1) + (1) + 1 + (2) = 5 by lib_nat] at h
            try rw [show (1) + (1) + 1 = 3 by lib_nat] at h
            try rw [show (1) + (2) = 3 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (7))) (K.neg (K.mul (Zs K x (5)) (Zs K x (4))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (7))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
              have h := A2.mk K O x hT (3) (1) (1)
              try rw [show (1) + (1) + 1 + (3) = 6 by lib_nat] at h
              try rw [show (1) + (1) + 1 = 3 by lib_nat] at h
              try rw [show (1) + (3) = 4 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (8))) (K.neg (K.mul (Zs K x (6)) (Zs K x (4))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (8))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
                have h := A2.mk K O x hT (4) (1) (1)
                try rw [show (1) + (1) + 1 + (4) = 7 by lib_nat] at h
                try rw [show (1) + (1) + 1 = 3 by lib_nat] at h
                try rw [show (1) + (4) = 5 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (9))) (K.neg (K.mul (Zs K x (7)) (Zs K x (4))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (9))) (K.neg (K.mul (Zs K x (4)) (Zs K x (7)))))) := by
                  have h := A2.mk K O x hT (5) (1) (1)
                  try rw [show (1) + (1) + 1 + (5) = 8 by lib_nat] at h
                  try rw [show (1) + (1) + 1 = 3 by lib_nat] at h
                  try rw [show (1) + (5) = 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                rw [show 0 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (4))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (4)))))) := by
                  have h := A2.mk K O x hT (2) (1) (w + 5)
                  try rw [show (1) + (w + 5) + 1 + (2) = w + 9 by lib_nat] at h
                  try rw [show (1) + (w + 5) + 1 = w + 7 by lib_nat] at h
                  try rw [show (1) + (2) = 3 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
    | succ i =>
      cases i with
      | zero =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (6))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5))))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (6))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
            have h := A2.mk K O x hT (2) (2) (0)
            try rw [show (2) + (0) + 1 + (2) = 5 by lib_nat] at h
            try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
            try rw [show (2) + (2) = 4 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5)))))) := by
              have h := A2.mk K O x hT (2) (2) (1)
              try rw [show (2) + (1) + 1 + (2) = 6 by lib_nat] at h
              try rw [show (2) + (1) + 1 = 4 by lib_nat] at h
              try rw [show (2) + (2) = 4 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (6)) (Zs K x (5))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6)))))) := by
                have h := A2.mk K O x hT (3) (2) (1)
                try rw [show (2) + (1) + 1 + (3) = 7 by lib_nat] at h
                try rw [show (2) + (1) + 1 = 4 by lib_nat] at h
                try rw [show (2) + (3) = 5 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (7)) (Zs K x (5))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (5)) (Zs K x (7)))))) := by
                  have h := A2.mk K O x hT (4) (2) (1)
                  try rw [show (2) + (1) + 1 + (4) = 8 by lib_nat] at h
                  try rw [show (2) + (1) + 1 = 4 by lib_nat] at h
                  try rw [show (2) + (4) = 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (10))) (K.neg (K.mul (Zs K x (8)) (Zs K x (5))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (10))) (K.neg (K.mul (Zs K x (5)) (Zs K x (8)))))) := by
                    have h := A2.mk K O x hT (5) (2) (1)
                    try rw [show (2) + (1) + 1 + (5) = 9 by lib_nat] at h
                    try rw [show (2) + (1) + 1 = 4 by lib_nat] at h
                    try rw [show (2) + (5) = 7 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  rw [show 0 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (5))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (5)))))) := by
                    have h := A2.mk K O x hT (2) (2) (w + 5)
                    try rw [show (2) + (w + 5) + 1 + (2) = w + 10 by lib_nat] at h
                    try rw [show (2) + (w + 5) + 1 = w + 8 by lib_nat] at h
                    try rw [show (2) + (2) = 4 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ i =>
        cases i with
        | zero =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (7))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (7))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6)))))) := by
              have h := A2.mk K O x hT (2) (3) (0)
              try rw [show (3) + (0) + 1 + (2) = 6 by lib_nat] at h
              try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
              try rw [show (3) + (2) = 5 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (8))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (8))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6)))))) := by
                have h := A2.mk K O x hT (2) (3) (1)
                try rw [show (3) + (1) + 1 + (2) = 7 by lib_nat] at h
                try rw [show (3) + (1) + 1 = 5 by lib_nat] at h
                try rw [show (3) + (2) = 5 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (9))) (K.neg (K.mul (Zs K x (7)) (Zs K x (6))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (9))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7)))))) := by
                  have h := A2.mk K O x hT (3) (3) (1)
                  try rw [show (3) + (1) + 1 + (3) = 8 by lib_nat] at h
                  try rw [show (3) + (1) + 1 = 5 by lib_nat] at h
                  try rw [show (3) + (3) = 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (10))) (K.neg (K.mul (Zs K x (8)) (Zs K x (6))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (10))) (K.neg (K.mul (Zs K x (6)) (Zs K x (8)))))) := by
                    have h := A2.mk K O x hT (4) (3) (1)
                    try rw [show (3) + (1) + 1 + (4) = 9 by lib_nat] at h
                    try rw [show (3) + (1) + 1 = 5 by lib_nat] at h
                    try rw [show (3) + (4) = 7 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (11))) (K.neg (K.mul (Zs K x (9)) (Zs K x (6))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (11))) (K.neg (K.mul (Zs K x (6)) (Zs K x (9)))))) := by
                      have h := A2.mk K O x hT (5) (3) (1)
                      try rw [show (3) + (1) + 1 + (5) = 10 by lib_nat] at h
                      try rw [show (3) + (1) + 1 = 5 by lib_nat] at h
                      try rw [show (3) + (5) = 8 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    rw [show 0 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 10)) (Zs K x (6))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 10)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (2) (3) (w + 5)
                      try rw [show (3) + (w + 5) + 1 + (2) = w + 11 by lib_nat] at h
                      try rw [show (3) + (w + 5) + 1 = w + 9 by lib_nat] at h
                      try rw [show (3) + (2) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ i =>
          cases i with
          | zero =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (8))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (8))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7)))))) := by
                have h := A2.mk K O x hT (2) (4) (0)
                try rw [show (4) + (0) + 1 + (2) = 7 by lib_nat] at h
                try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                try rw [show (4) + (2) = 6 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (9))) (K.neg (K.mul (Zs K x (7)) (Zs K x (7))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (9))) (K.neg (K.mul (Zs K x (7)) (Zs K x (7)))))) := by
                  have h := A2.mk K O x hT (2) (4) (1)
                  try rw [show (4) + (1) + 1 + (2) = 8 by lib_nat] at h
                  try rw [show (4) + (1) + 1 = 6 by lib_nat] at h
                  try rw [show (4) + (2) = 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (10))) (K.neg (K.mul (Zs K x (8)) (Zs K x (7))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (10))) (K.neg (K.mul (Zs K x (7)) (Zs K x (8)))))) := by
                    have h := A2.mk K O x hT (3) (4) (1)
                    try rw [show (4) + (1) + 1 + (3) = 9 by lib_nat] at h
                    try rw [show (4) + (1) + 1 = 6 by lib_nat] at h
                    try rw [show (4) + (3) = 7 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (11))) (K.neg (K.mul (Zs K x (9)) (Zs K x (7))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (11))) (K.neg (K.mul (Zs K x (7)) (Zs K x (9)))))) := by
                      have h := A2.mk K O x hT (4) (4) (1)
                      try rw [show (4) + (1) + 1 + (4) = 10 by lib_nat] at h
                      try rw [show (4) + (1) + 1 = 6 by lib_nat] at h
                      try rw [show (4) + (4) = 8 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (12))) (K.neg (K.mul (Zs K x (10)) (Zs K x (7))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (12))) (K.neg (K.mul (Zs K x (7)) (Zs K x (10)))))) := by
                        have h := A2.mk K O x hT (5) (4) (1)
                        try rw [show (4) + (1) + 1 + (5) = 11 by lib_nat] at h
                        try rw [show (4) + (1) + 1 = 6 by lib_nat] at h
                        try rw [show (4) + (5) = 9 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      rw [show 0 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (w + 13))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (7))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (w + 13))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (7)))))) := by
                        have h := A2.mk K O x hT (2) (4) (w + 5)
                        try rw [show (4) + (w + 5) + 1 + (2) = w + 12 by lib_nat] at h
                        try rw [show (4) + (w + 5) + 1 = w + 10 by lib_nat] at h
                        try rw [show (4) + (2) = 6 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ i =>
            cases i with
            | zero =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (9))) (K.neg (K.mul (Zs K x (7)) (Zs K x (8))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (9))) (K.neg (K.mul (Zs K x (7)) (Zs K x (8)))))) := by
                  have h := A2.mk K O x hT (2) (5) (0)
                  try rw [show (5) + (0) + 1 + (2) = 8 by lib_nat] at h
                  try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                  try rw [show (5) + (2) = 7 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (10))) (K.neg (K.mul (Zs K x (8)) (Zs K x (8))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (10))) (K.neg (K.mul (Zs K x (8)) (Zs K x (8)))))) := by
                    have h := A2.mk K O x hT (2) (5) (1)
                    try rw [show (5) + (1) + 1 + (2) = 9 by lib_nat] at h
                    try rw [show (5) + (1) + 1 = 7 by lib_nat] at h
                    try rw [show (5) + (2) = 7 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (11))) (K.neg (K.mul (Zs K x (9)) (Zs K x (8))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (11))) (K.neg (K.mul (Zs K x (8)) (Zs K x (9)))))) := by
                      have h := A2.mk K O x hT (3) (5) (1)
                      try rw [show (5) + (1) + 1 + (3) = 10 by lib_nat] at h
                      try rw [show (5) + (1) + 1 = 7 by lib_nat] at h
                      try rw [show (5) + (3) = 8 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (12))) (K.neg (K.mul (Zs K x (10)) (Zs K x (8))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (12))) (K.neg (K.mul (Zs K x (8)) (Zs K x (10)))))) := by
                        have h := A2.mk K O x hT (4) (5) (1)
                        try rw [show (5) + (1) + 1 + (4) = 11 by lib_nat] at h
                        try rw [show (5) + (1) + 1 = 7 by lib_nat] at h
                        try rw [show (5) + (4) = 9 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (13))) (K.neg (K.mul (Zs K x (11)) (Zs K x (8))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (13))) (K.neg (K.mul (Zs K x (8)) (Zs K x (11)))))) := by
                          have h := A2.mk K O x hT (5) (5) (1)
                          try rw [show (5) + (1) + 1 + (5) = 12 by lib_nat] at h
                          try rw [show (5) + (1) + 1 = 7 by lib_nat] at h
                          try rw [show (5) + (5) = 10 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show 0 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (w + 14))) (K.neg (K.mul (Zs K x (w + 12)) (Zs K x (8))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (w + 14))) (K.neg (K.mul (Zs K x (w + 12)) (Zs K x (8)))))) := by
                          have h := A2.mk K O x hT (2) (5) (w + 5)
                          try rw [show (5) + (w + 5) + 1 + (2) = w + 13 by lib_nat] at h
                          try rw [show (5) + (w + 5) + 1 = w + 11 by lib_nat] at h
                          try rw [show (5) + (2) = 7 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ a =>
              cases w with
              | zero =>
                rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 = a + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 10))) (K.neg (K.mul (Zs K x (a + 8)) (Zs K x (a + 9))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 10))) (K.neg (K.mul (Zs K x (a + 8)) (Zs K x (a + 9)))))) := by
                  have h := A2.mk K O x hT (2) (a + 6) (0)
                  try rw [show (a + 6) + (0) + 1 + (2) = a + 9 by lib_nat] at h
                  try rw [show (a + 6) + (0) + 1 = a + 7 by lib_nat] at h
                  try rw [show (a + 6) + (2) = a + 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1) + 1 = a + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 9))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 9)))))) := by
                    have h := A2.mk K O x hT (2) (a + 6) (1)
                    try rw [show (a + 6) + (1) + 1 + (2) = a + 10 by lib_nat] at h
                    try rw [show (a + 6) + (1) + 1 = a + 8 by lib_nat] at h
                    try rw [show (a + 6) + (2) = a + 8 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1) + 1 = a + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 9))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 10)))))) := by
                      have h := A2.mk K O x hT (3) (a + 6) (1)
                      try rw [show (a + 6) + (1) + 1 + (3) = a + 11 by lib_nat] at h
                      try rw [show (a + 6) + (1) + 1 = a + 8 by lib_nat] at h
                      try rw [show (a + 6) + (3) = a + 9 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1) + 1 = a + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 11)) (Zs K x (a + 9))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 11)))))) := by
                        have h := A2.mk K O x hT (4) (a + 6) (1)
                        try rw [show (a + 6) + (1) + 1 + (4) = a + 12 by lib_nat] at h
                        try rw [show (a + 6) + (1) + 1 = a + 8 by lib_nat] at h
                        try rw [show (a + 6) + (4) = a + 10 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1 + 1) + 1 = a + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 14))) (K.neg (K.mul (Zs K x (a + 12)) (Zs K x (a + 9))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 14))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 12)))))) := by
                          have h := A2.mk K O x hT (5) (a + 6) (1)
                          try rw [show (a + 6) + (1) + 1 + (5) = a + 13 by lib_nat] at h
                          try rw [show (a + 6) + (1) + 1 = a + 8 by lib_nat] at h
                          try rw [show (a + 6) + (5) = a + 11 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = a + w + 12 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + w + 15))) (K.neg (K.mul (Zs K x (a + w + 13)) (Zs K x (a + 9))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + w + 15))) (K.neg (K.mul (Zs K x (a + w + 13)) (Zs K x (a + 9)))))) := by
                          have h := A2.mk K O x hT (2) (a + 6) (w + 5)
                          try rw [show (a + 6) + (w + 5) + 1 + (2) = a + w + 14 by lib_nat] at h
                          try rw [show (a + 6) + (w + 5) + 1 = a + w + 12 by lib_nat] at h
                          try rw [show (a + 6) + (2) = a + 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)

include hx hT hD h1 h10 in
theorem sg4 (i w : Nat) : O.le K.zero (K.neg (Lagrange.minor K (Zs K (Zs K (Zs K x))) (Zs K (c1v K x)) i (i + w + 1))) := by
  unfold Lagrange.minor
  cases i with
  | zero =>
    cases w with
    | zero =>
      show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add K.zero (Zs K x (2)))) (K.neg (K.mul K.zero K.zero))))
      exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
    | succ w =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (1)) (Zs K x (3)))) (K.neg (K.mul K.zero K.zero))))
        exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (2)) (Zs K x (4)))) (K.neg (K.mul (Zs K x (1)) K.zero))))
          exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (3)) (Zs K x (5)))) (K.neg (K.mul (Zs K x (2)) K.zero))))
            exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (4)) (Zs K x (6)))) (K.neg (K.mul (Zs K x (3)) K.zero))))
              exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
            | succ w =>
              rw [show 0 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 6 by lib_nat]
              show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (w + 5)) (Zs K x (w + 7)))) (K.neg (K.mul (Zs K x (w + 4)) K.zero))))
              exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
  | succ i =>
    cases i with
    | zero =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (1)) (Zs K x (3)))) (K.neg (K.mul K.zero (K.add K.zero (Zs K x (2)))))))
        exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (2)) (Zs K x (4)))) (K.neg (K.mul (Zs K x (1)) (K.add K.zero (Zs K x (2)))))))
          have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (2))) := O.mul_nonneg _ _ (hx (0)) (hx (1))
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (3)) (Zs K x (5)))) (K.neg (K.mul (Zs K x (2)) (K.add K.zero (Zs K x (2)))))))
            have t0 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (2))) := O.mul_nonneg _ _ (hx (1)) (hx (1))
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (4)) (Zs K x (6)))) (K.neg (K.mul (Zs K x (3)) (K.add K.zero (Zs K x (2)))))))
              have t0 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (3))) := O.mul_nonneg _ _ (hx (1)) (hx (2))
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (5)) (Zs K x (7)))) (K.neg (K.mul (Zs K x (4)) (K.add K.zero (Zs K x (2)))))))
                have t0 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (1)) (hx (3))
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                rw [show 0 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (w + 6)) (Zs K x (w + 8)))) (K.neg (K.mul (Zs K x (w + 5)) (K.add K.zero (Zs K x (2)))))))
                have t0 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (w + 5))) := O.mul_nonneg _ _ (hx (1)) (hx (w + 4))
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
    | succ i =>
      cases i with
      | zero =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (2)) (Zs K x (4)))) (K.neg (K.mul (Zs K x (1)) (K.add (Zs K x (1)) (Zs K x (3)))))))
          have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (2))))) := A1.Dn K O x hD (0) (1) (0) (1) (2) (1) (2) (3) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t1 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (2))) := O.mul_nonneg _ _ (hx (1)) (hx (1))
          exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (3)) (Zs K x (5)))) (K.neg (K.mul (Zs K x (2)) (K.add (Zs K x (1)) (Zs K x (3)))))))
            have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (2))) := O.mul_nonneg _ _ (hx (0)) (hx (1))
            have t1 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (3))) := O.mul_nonneg _ _ (hx (1)) (hx (2))
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (4)) (Zs K x (6)))) (K.neg (K.mul (Zs K x (3)) (K.add (Zs K x (1)) (Zs K x (3)))))))
              have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (3))) := O.mul_nonneg _ _ (hx (0)) (hx (2))
              have t1 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (3))) := O.mul_nonneg _ _ (hx (2)) (hx (2))
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (5)) (Zs K x (7)))) (K.neg (K.mul (Zs K x (4)) (K.add (Zs K x (1)) (Zs K x (3)))))))
                have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (0)) (hx (3))
                have t1 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (2)) (hx (3))
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (6)) (Zs K x (8)))) (K.neg (K.mul (Zs K x (5)) (K.add (Zs K x (1)) (Zs K x (3)))))))
                  have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (0)) (hx (4))
                  have t1 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (2)) (hx (4))
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                | succ w =>
                  rw [show 0 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (w + 7)) (Zs K x (w + 9)))) (K.neg (K.mul (Zs K x (w + 6)) (K.add (Zs K x (1)) (Zs K x (3)))))))
                  have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (w + 6))) := O.mul_nonneg _ _ (hx (0)) (hx (w + 5))
                  have t1 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (w + 6))) := O.mul_nonneg _ _ (hx (2)) (hx (w + 5))
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
      | succ i =>
        cases i with
        | zero =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (K.add (Zs K x (3)) (Zs K x (5)))) (K.neg (K.mul (Zs K x (2)) (K.add (Zs K x (2)) (Zs K x (4)))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (5))) (K.neg (K.mul (Zs K x (3)) (Zs K x (3)))))) := by
              have h := A2.mk K O x hT (2) (0) (1)
              try rw [show (0) + (1) + 1 + (2) = 4 by lib_nat] at h
              try rw [show (0) + (1) + 1 = 2 by lib_nat] at h
              try rw [show (0) + (2) = 2 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (3))))) := A1.Dn K O x hD (1) (1) (1) (2) (3) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (K.add (Zs K x (4)) (Zs K x (6)))) (K.neg (K.mul (Zs K x (3)) (K.add (Zs K x (2)) (Zs K x (4)))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (4))) (K.neg (K.mul (Zs K x (2)) (Zs K x (3)))))) := by
                have h := A2.mk K O x hT (2) (0) (0)
                try rw [show (0) + (0) + 1 + (2) = 3 by lib_nat] at h
                try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                try rw [show (0) + (2) = 2 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (6))) (K.neg (K.mul (Zs K x (3)) (Zs K x (4)))))) := by
                have h := A2.mk K O x hT (3) (0) (1)
                try rw [show (0) + (1) + 1 + (3) = 5 by lib_nat] at h
                try rw [show (0) + (1) + 1 = 2 by lib_nat] at h
                try rw [show (0) + (3) = 3 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (K.add (Zs K x (5)) (Zs K x (7)))) (K.neg (K.mul (Zs K x (4)) (K.add (Zs K x (2)) (Zs K x (4)))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (5))) (K.neg (K.mul (Zs K x (2)) (Zs K x (4)))))) := by
                  have h := A2.mk K O x hT (3) (0) (0)
                  try rw [show (0) + (0) + 1 + (3) = 4 by lib_nat] at h
                  try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                  try rw [show (0) + (3) = 3 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (7))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4)))))) := by
                  have h := A2.mk K O x hT (3) (0) (2)
                  try rw [show (0) + (2) + 1 + (3) = 6 by lib_nat] at h
                  try rw [show (0) + (2) + 1 = 3 by lib_nat] at h
                  try rw [show (0) + (3) = 3 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (K.add (Zs K x (6)) (Zs K x (8)))) (K.neg (K.mul (Zs K x (5)) (K.add (Zs K x (2)) (Zs K x (4)))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (6))) (K.neg (K.mul (Zs K x (2)) (Zs K x (5)))))) := by
                    have h := A2.mk K O x hT (4) (0) (0)
                    try rw [show (0) + (0) + 1 + (4) = 5 by lib_nat] at h
                    try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                    try rw [show (0) + (4) = 4 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (8))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
                    have h := A2.mk K O x hT (4) (0) (2)
                    try rw [show (0) + (2) + 1 + (4) = 7 by lib_nat] at h
                    try rw [show (0) + (2) + 1 = 3 by lib_nat] at h
                    try rw [show (0) + (4) = 4 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (K.add (Zs K x (7)) (Zs K x (9)))) (K.neg (K.mul (Zs K x (6)) (K.add (Zs K x (2)) (Zs K x (4)))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (7))) (K.neg (K.mul (Zs K x (2)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (5) (0) (0)
                      try rw [show (0) + (0) + 1 + (5) = 6 by lib_nat] at h
                      try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                      try rw [show (0) + (5) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (9))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (5) (0) (2)
                      try rw [show (0) + (2) + 1 + (5) = 8 by lib_nat] at h
                      try rw [show (0) + (2) + 1 = 3 by lib_nat] at h
                      try rw [show (0) + (5) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                  | succ w =>
                    rw [show 0 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (K.add (Zs K x (w + 8)) (Zs K x (w + 10)))) (K.neg (K.mul (Zs K x (w + 7)) (K.add (Zs K x (2)) (Zs K x (4)))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 8))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (2)))))) := by
                      have h := A2.mk K O x hT (1) (0) (w + 5)
                      try rw [show (0) + (w + 5) + 1 + (1) = w + 7 by lib_nat] at h
                      try rw [show (0) + (w + 5) + 1 = w + 6 by lib_nat] at h
                      try rw [show (0) + (1) = 1 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (4)))))) := by
                      have h := A2.mk K O x hT (3) (0) (w + 5)
                      try rw [show (0) + (w + 5) + 1 + (3) = w + 9 by lib_nat] at h
                      try rw [show (0) + (w + 5) + 1 = w + 6 by lib_nat] at h
                      try rw [show (0) + (3) = 3 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
        | succ i =>
          cases i with
          | zero =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (K.add (Zs K x (4)) (Zs K x (6)))) (K.neg (K.mul (Zs K x (3)) (K.add (Zs K x (3)) (Zs K x (5)))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (6))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4)))))) := by
                have h := A2.mk K O x hT (2) (1) (1)
                try rw [show (1) + (1) + 1 + (2) = 5 by lib_nat] at h
                try rw [show (1) + (1) + 1 = 3 by lib_nat] at h
                try rw [show (1) + (2) = 3 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (K.add (Zs K x (5)) (Zs K x (7)))) (K.neg (K.mul (Zs K x (4)) (K.add (Zs K x (3)) (Zs K x (5)))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (5))) (K.neg (K.mul (Zs K x (3)) (Zs K x (4)))))) := by
                  have h := A2.mk K O x hT (2) (1) (0)
                  try rw [show (1) + (0) + 1 + (2) = 4 by lib_nat] at h
                  try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                  try rw [show (1) + (2) = 3 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (7))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
                  have h := A2.mk K O x hT (3) (1) (1)
                  try rw [show (1) + (1) + 1 + (3) = 6 by lib_nat] at h
                  try rw [show (1) + (1) + 1 = 3 by lib_nat] at h
                  try rw [show (1) + (3) = 4 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (K.add (Zs K x (6)) (Zs K x (8)))) (K.neg (K.mul (Zs K x (5)) (K.add (Zs K x (3)) (Zs K x (5)))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (6))) (K.neg (K.mul (Zs K x (3)) (Zs K x (5)))))) := by
                    have h := A2.mk K O x hT (3) (1) (0)
                    try rw [show (1) + (0) + 1 + (3) = 5 by lib_nat] at h
                    try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                    try rw [show (1) + (3) = 4 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (8))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5)))))) := by
                    have h := A2.mk K O x hT (3) (1) (2)
                    try rw [show (1) + (2) + 1 + (3) = 7 by lib_nat] at h
                    try rw [show (1) + (2) + 1 = 4 by lib_nat] at h
                    try rw [show (1) + (3) = 4 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (K.add (Zs K x (7)) (Zs K x (9)))) (K.neg (K.mul (Zs K x (6)) (K.add (Zs K x (3)) (Zs K x (5)))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (7))) (K.neg (K.mul (Zs K x (3)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (4) (1) (0)
                      try rw [show (1) + (0) + 1 + (4) = 6 by lib_nat] at h
                      try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                      try rw [show (1) + (4) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (9))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (4) (1) (2)
                      try rw [show (1) + (2) + 1 + (4) = 8 by lib_nat] at h
                      try rw [show (1) + (2) + 1 = 4 by lib_nat] at h
                      try rw [show (1) + (4) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (K.add (Zs K x (8)) (Zs K x (10)))) (K.neg (K.mul (Zs K x (7)) (K.add (Zs K x (3)) (Zs K x (5)))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (8))) (K.neg (K.mul (Zs K x (3)) (Zs K x (7)))))) := by
                        have h := A2.mk K O x hT (5) (1) (0)
                        try rw [show (1) + (0) + 1 + (5) = 7 by lib_nat] at h
                        try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                        try rw [show (1) + (5) = 6 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (10))) (K.neg (K.mul (Zs K x (5)) (Zs K x (7)))))) := by
                        have h := A2.mk K O x hT (5) (1) (2)
                        try rw [show (1) + (2) + 1 + (5) = 9 by lib_nat] at h
                        try rw [show (1) + (2) + 1 = 4 by lib_nat] at h
                        try rw [show (1) + (5) = 6 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                    | succ w =>
                      rw [show 0 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (K.add (Zs K x (w + 9)) (Zs K x (w + 11)))) (K.neg (K.mul (Zs K x (w + 8)) (K.add (Zs K x (3)) (Zs K x (5)))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 9))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (3)))))) := by
                        have h := A2.mk K O x hT (1) (1) (w + 5)
                        try rw [show (1) + (w + 5) + 1 + (1) = w + 8 by lib_nat] at h
                        try rw [show (1) + (w + 5) + 1 = w + 7 by lib_nat] at h
                        try rw [show (1) + (1) = 2 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (5)))))) := by
                        have h := A2.mk K O x hT (3) (1) (w + 5)
                        try rw [show (1) + (w + 5) + 1 + (3) = w + 10 by lib_nat] at h
                        try rw [show (1) + (w + 5) + 1 = w + 7 by lib_nat] at h
                        try rw [show (1) + (3) = 4 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
          | succ i =>
            cases i with
            | zero =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (5)) (Zs K x (7)))) (K.neg (K.mul (Zs K x (4)) (K.add (Zs K x (4)) (Zs K x (6)))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5)))))) := by
                  have h := A2.mk K O x hT (2) (2) (1)
                  try rw [show (2) + (1) + 1 + (2) = 6 by lib_nat] at h
                  try rw [show (2) + (1) + 1 = 4 by lib_nat] at h
                  try rw [show (2) + (2) = 4 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (6)) (Zs K x (8)))) (K.neg (K.mul (Zs K x (5)) (K.add (Zs K x (4)) (Zs K x (6)))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (6))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
                    have h := A2.mk K O x hT (2) (2) (0)
                    try rw [show (2) + (0) + 1 + (2) = 5 by lib_nat] at h
                    try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                    try rw [show (2) + (2) = 4 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6)))))) := by
                    have h := A2.mk K O x hT (3) (2) (1)
                    try rw [show (2) + (1) + 1 + (3) = 7 by lib_nat] at h
                    try rw [show (2) + (1) + 1 = 4 by lib_nat] at h
                    try rw [show (2) + (3) = 5 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (7)) (Zs K x (9)))) (K.neg (K.mul (Zs K x (6)) (K.add (Zs K x (4)) (Zs K x (6)))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (3) (2) (0)
                      try rw [show (2) + (0) + 1 + (3) = 6 by lib_nat] at h
                      try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                      try rw [show (2) + (3) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (3) (2) (2)
                      try rw [show (2) + (2) + 1 + (3) = 8 by lib_nat] at h
                      try rw [show (2) + (2) + 1 = 5 by lib_nat] at h
                      try rw [show (2) + (3) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (8)) (Zs K x (10)))) (K.neg (K.mul (Zs K x (7)) (K.add (Zs K x (4)) (Zs K x (6)))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (4)) (Zs K x (7)))))) := by
                        have h := A2.mk K O x hT (4) (2) (0)
                        try rw [show (2) + (0) + 1 + (4) = 7 by lib_nat] at h
                        try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                        try rw [show (2) + (4) = 6 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (10))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7)))))) := by
                        have h := A2.mk K O x hT (4) (2) (2)
                        try rw [show (2) + (2) + 1 + (4) = 9 by lib_nat] at h
                        try rw [show (2) + (2) + 1 = 5 by lib_nat] at h
                        try rw [show (2) + (4) = 6 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (9)) (Zs K x (11)))) (K.neg (K.mul (Zs K x (8)) (K.add (Zs K x (4)) (Zs K x (6)))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (4)) (Zs K x (8)))))) := by
                          have h := A2.mk K O x hT (5) (2) (0)
                          try rw [show (2) + (0) + 1 + (5) = 8 by lib_nat] at h
                          try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                          try rw [show (2) + (5) = 7 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (11))) (K.neg (K.mul (Zs K x (6)) (Zs K x (8)))))) := by
                          have h := A2.mk K O x hT (5) (2) (2)
                          try rw [show (2) + (2) + 1 + (5) = 10 by lib_nat] at h
                          try rw [show (2) + (2) + 1 = 5 by lib_nat] at h
                          try rw [show (2) + (5) = 7 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                      | succ w =>
                        rw [show 0 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (w + 10)) (Zs K x (w + 12)))) (K.neg (K.mul (Zs K x (w + 9)) (K.add (Zs K x (4)) (Zs K x (6)))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (4)))))) := by
                          have h := A2.mk K O x hT (1) (2) (w + 5)
                          try rw [show (2) + (w + 5) + 1 + (1) = w + 9 by lib_nat] at h
                          try rw [show (2) + (w + 5) + 1 = w + 8 by lib_nat] at h
                          try rw [show (2) + (1) = 3 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (6)))))) := by
                          have h := A2.mk K O x hT (3) (2) (w + 5)
                          try rw [show (2) + (w + 5) + 1 + (3) = w + 11 by lib_nat] at h
                          try rw [show (2) + (w + 5) + 1 = w + 8 by lib_nat] at h
                          try rw [show (2) + (3) = 5 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
            | succ a =>
              cases w with
              | zero =>
                rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 = a + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (K.add (Zs K x (a + 6)) (Zs K x (a + 8)))) (K.neg (K.mul (Zs K x (a + 5)) (K.add (Zs K x (a + 5)) (Zs K x (a + 7)))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 8))) (K.neg (K.mul (Zs K x (a + 6)) (Zs K x (a + 6)))))) := by
                  have h := A2.mk K O x hT (2) (a + 3) (1)
                  try rw [show (a + 3) + (1) + 1 + (2) = a + 7 by lib_nat] at h
                  try rw [show (a + 3) + (1) + 1 = a + 5 by lib_nat] at h
                  try rw [show (a + 3) + (2) = a + 5 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 6))))) := A1.Dn K O x hD (a + 4) (1) (a + 4) (a + 5) (a + 6) (a + 5) (a + 6) (a + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1) + 1 = a + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (K.add (Zs K x (a + 7)) (Zs K x (a + 9)))) (K.neg (K.mul (Zs K x (a + 6)) (K.add (Zs K x (a + 5)) (Zs K x (a + 7)))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 7))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 6)))))) := by
                    have h := A2.mk K O x hT (2) (a + 3) (0)
                    try rw [show (a + 3) + (0) + 1 + (2) = a + 6 by lib_nat] at h
                    try rw [show (a + 3) + (0) + 1 = a + 4 by lib_nat] at h
                    try rw [show (a + 3) + (2) = a + 5 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 9))) (K.neg (K.mul (Zs K x (a + 6)) (Zs K x (a + 7)))))) := by
                    have h := A2.mk K O x hT (3) (a + 3) (1)
                    try rw [show (a + 3) + (1) + 1 + (3) = a + 8 by lib_nat] at h
                    try rw [show (a + 3) + (1) + 1 = a + 5 by lib_nat] at h
                    try rw [show (a + 3) + (3) = a + 6 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1) + 1 = a + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (K.add (Zs K x (a + 8)) (Zs K x (a + 10)))) (K.neg (K.mul (Zs K x (a + 7)) (K.add (Zs K x (a + 5)) (Zs K x (a + 7)))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 8))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 7)))))) := by
                      have h := A2.mk K O x hT (3) (a + 3) (0)
                      try rw [show (a + 3) + (0) + 1 + (3) = a + 7 by lib_nat] at h
                      try rw [show (a + 3) + (0) + 1 = a + 4 by lib_nat] at h
                      try rw [show (a + 3) + (3) = a + 6 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 10))) (K.neg (K.mul (Zs K x (a + 7)) (Zs K x (a + 7)))))) := by
                      have h := A2.mk K O x hT (3) (a + 3) (2)
                      try rw [show (a + 3) + (2) + 1 + (3) = a + 9 by lib_nat] at h
                      try rw [show (a + 3) + (2) + 1 = a + 6 by lib_nat] at h
                      try rw [show (a + 3) + (3) = a + 6 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1) + 1 = a + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (K.add (Zs K x (a + 9)) (Zs K x (a + 11)))) (K.neg (K.mul (Zs K x (a + 8)) (K.add (Zs K x (a + 5)) (Zs K x (a + 7)))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 9))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 8)))))) := by
                        have h := A2.mk K O x hT (4) (a + 3) (0)
                        try rw [show (a + 3) + (0) + 1 + (4) = a + 8 by lib_nat] at h
                        try rw [show (a + 3) + (0) + 1 = a + 4 by lib_nat] at h
                        try rw [show (a + 3) + (4) = a + 7 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 7)) (Zs K x (a + 8)))))) := by
                        have h := A2.mk K O x hT (4) (a + 3) (2)
                        try rw [show (a + 3) + (2) + 1 + (4) = a + 10 by lib_nat] at h
                        try rw [show (a + 3) + (2) + 1 = a + 6 by lib_nat] at h
                        try rw [show (a + 3) + (4) = a + 7 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1 + 1) + 1 = a + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (K.add (Zs K x (a + 10)) (Zs K x (a + 12)))) (K.neg (K.mul (Zs K x (a + 9)) (K.add (Zs K x (a + 5)) (Zs K x (a + 7)))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 10))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 9)))))) := by
                          have h := A2.mk K O x hT (5) (a + 3) (0)
                          try rw [show (a + 3) + (0) + 1 + (5) = a + 9 by lib_nat] at h
                          try rw [show (a + 3) + (0) + 1 = a + 4 by lib_nat] at h
                          try rw [show (a + 3) + (5) = a + 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 7)) (Zs K x (a + 9)))))) := by
                          have h := A2.mk K O x hT (5) (a + 3) (2)
                          try rw [show (a + 3) + (2) + 1 + (5) = a + 11 by lib_nat] at h
                          try rw [show (a + 3) + (2) + 1 = a + 6 by lib_nat] at h
                          try rw [show (a + 3) + (5) = a + 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                      | succ w =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = a + w + 12 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (K.add (Zs K x (a + w + 11)) (Zs K x (a + w + 13)))) (K.neg (K.mul (Zs K x (a + w + 10)) (K.add (Zs K x (a + 5)) (Zs K x (a + 7)))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + w + 11))) (K.neg (K.mul (Zs K x (a + w + 10)) (Zs K x (a + 5)))))) := by
                          have h := A2.mk K O x hT (1) (a + 3) (w + 5)
                          try rw [show (a + 3) + (w + 5) + 1 + (1) = a + w + 10 by lib_nat] at h
                          try rw [show (a + 3) + (w + 5) + 1 = a + w + 9 by lib_nat] at h
                          try rw [show (a + 3) + (1) = a + 4 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + w + 13))) (K.neg (K.mul (Zs K x (a + w + 10)) (Zs K x (a + 7)))))) := by
                          have h := A2.mk K O x hT (3) (a + 3) (w + 5)
                          try rw [show (a + 3) + (w + 5) + 1 + (3) = a + w + 12 by lib_nat] at h
                          try rw [show (a + 3) + (w + 5) + 1 = a + w + 9 by lib_nat] at h
                          try rw [show (a + 3) + (3) = a + 6 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)

include hx hT hD h1 h10 in
theorem sg5 (i w : Nat) : O.le K.zero (K.neg (Lagrange.minor K (Zs K (Zs K (Zs K x))) (pv2 K x) i (i + w + 1))) := by
  unfold Lagrange.minor
  cases i with
  | zero =>
    cases w with
    | zero =>
      show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (2)) (Zs K x (4)))) (K.neg (K.mul K.zero (Zs K x (3))))))
      exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
    | succ w =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5)))) (K.neg (K.mul K.zero (Zs K x (3))))))
        exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))) (K.neg (K.mul (Zs K x (1)) (Zs K x (3))))))
          have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (3))) := O.mul_nonneg _ _ (hx (0)) (hx (2))
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))) (K.neg (K.mul (Zs K x (2)) (Zs K x (3))))))
            have t0 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (3))) := O.mul_nonneg _ _ (hx (1)) (hx (2))
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (Zs K x (3)) (Zs K x (3))))))
              have t0 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (3))) := O.mul_nonneg _ _ (hx (2)) (hx (2))
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              rw [show 0 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 6 by lib_nat]
              show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (w + 9)))) (K.neg (K.mul (Zs K x (w + 4)) (Zs K x (3))))))
              have t0 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (w + 4))) := O.mul_nonneg _ _ (hx (2)) (hx (w + 3))
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
  | succ i =>
    cases i with
    | zero =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5)))) (K.neg (K.mul K.zero (K.add (Zs K x (2)) (Zs K x (4)))))))
        exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))) (K.neg (K.mul (Zs K x (1)) (K.add (Zs K x (2)) (Zs K x (4)))))))
          have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (3))))) := A1.Dn K O x hD (0) (2) (0) (1) (2) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t1 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (3))) := O.mul_nonneg _ _ (hx (1)) (hx (2))
          exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))) (K.neg (K.mul (Zs K x (2)) (K.add (Zs K x (2)) (Zs K x (4)))))))
            have t0 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (2))) := O.mul_nonneg _ _ (hx (1)) (hx (1))
            have t1 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (1)) (hx (3))
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (Zs K x (3)) (K.add (Zs K x (2)) (Zs K x (4)))))))
              have t0 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (3))) := O.mul_nonneg _ _ (hx (1)) (hx (2))
              have t1 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (2)) (hx (3))
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (Zs K x (4)) (K.add (Zs K x (2)) (Zs K x (4)))))))
                have t0 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (1)) (hx (3))
                have t1 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (3)) (hx (3))
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
              | succ w =>
                rw [show 0 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (w + 10)))) (K.neg (K.mul (Zs K x (w + 5)) (K.add (Zs K x (2)) (Zs K x (4)))))))
                have t0 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (w + 5))) := O.mul_nonneg _ _ (hx (1)) (hx (w + 4))
                have t1 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (w + 5))) := O.mul_nonneg _ _ (hx (3)) (hx (w + 4))
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
    | succ i =>
      cases i with
      | zero =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))) (K.neg (K.mul (Zs K x (1)) (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5)))))))
          have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (2))))) := A1.Dn K O x hD (0) (1) (0) (1) (2) (1) (2) (3) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (4))))) := A1.Dn K O x hD (0) (3) (0) (1) (2) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (3))))) := A1.Dn K O x hD (1) (1) (1) (2) (3) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t3 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (3))) := O.mul_nonneg _ _ (hx (2)) (hx (2))
          exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))) (K.neg (K.mul (Zs K x (2)) (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5)))))))
            have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (3))))) := A1.Dn K O x hD (0) (2) (0) (1) (2) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t2 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (3))) := O.mul_nonneg _ _ (hx (1)) (hx (2))
            have t3 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (2)) (hx (3))
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (Zs K x (3)) (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5)))))))
              have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (3))) := O.mul_nonneg _ _ (hx (0)) (hx (2))
              have t1 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (3))) := O.mul_nonneg _ _ (hx (2)) (hx (2))
              have t2 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (2)) (hx (4))
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (Zs K x (4)) (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5)))))))
                have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (0)) (hx (3))
                have t1 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (2)) (hx (3))
                have t2 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (3)) (hx (4))
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10)))) (K.neg (K.mul (Zs K x (5)) (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5)))))))
                  have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (0)) (hx (4))
                  have t1 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (2)) (hx (4))
                  have t2 : O.le K.zero (K.mul (Zs K x (5)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (4)) (hx (4))
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
                | succ w =>
                  rw [show 0 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (w + 11)))) (K.neg (K.mul (Zs K x (w + 6)) (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5)))))))
                  have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (w + 6))) := O.mul_nonneg _ _ (hx (0)) (hx (w + 5))
                  have t1 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (w + 6))) := O.mul_nonneg _ _ (hx (2)) (hx (w + 5))
                  have t2 : O.le K.zero (K.mul (Zs K x (5)) (Zs K x (w + 6))) := O.mul_nonneg _ _ (hx (4)) (hx (w + 5))
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
      | succ i =>
        cases i with
        | zero =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))) (K.neg (K.mul (Zs K x (2)) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (3))) (K.neg (K.mul (Zs K x (2)) (Zs K x (2)))))) := by
              have h := A2.mk K O x hT (1) (0) (0)
              try rw [show (0) + (0) + 1 + (1) = 2 by lib_nat] at h
              try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
              try rw [show (0) + (1) = 1 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (7))) (K.neg (K.mul (Zs K x (3)) (Zs K x (5)))))) := by
              have h := A2.mk K O x hT (4) (0) (1)
              try rw [show (0) + (1) + 1 + (4) = 6 by lib_nat] at h
              try rw [show (0) + (1) + 1 = 2 by lib_nat] at h
              try rw [show (0) + (4) = 4 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (Zs K x (3)) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (4))) (K.neg (K.mul (Zs K x (2)) (Zs K x (3)))))) := by
                have h := A2.mk K O x hT (2) (0) (0)
                try rw [show (0) + (0) + 1 + (2) = 3 by lib_nat] at h
                try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                try rw [show (0) + (2) = 2 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (6))) (K.neg (K.mul (Zs K x (3)) (Zs K x (4)))))) := by
                have h := A2.mk K O x hT (3) (0) (1)
                try rw [show (0) + (1) + 1 + (3) = 5 by lib_nat] at h
                try rw [show (0) + (1) + 1 = 2 by lib_nat] at h
                try rw [show (0) + (3) = 3 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (8))) (K.neg (K.mul (Zs K x (3)) (Zs K x (6)))))) := by
                have h := A2.mk K O x hT (5) (0) (1)
                try rw [show (0) + (1) + 1 + (5) = 7 by lib_nat] at h
                try rw [show (0) + (1) + 1 = 2 by lib_nat] at h
                try rw [show (0) + (5) = 5 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (Zs K x (4)) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (5))) (K.neg (K.mul (Zs K x (2)) (Zs K x (4)))))) := by
                  have h := A2.mk K O x hT (3) (0) (0)
                  try rw [show (0) + (0) + 1 + (3) = 4 by lib_nat] at h
                  try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                  try rw [show (0) + (3) = 3 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (7))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4)))))) := by
                  have h := A2.mk K O x hT (3) (0) (2)
                  try rw [show (0) + (2) + 1 + (3) = 6 by lib_nat] at h
                  try rw [show (0) + (2) + 1 = 3 by lib_nat] at h
                  try rw [show (0) + (3) = 3 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (9))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
                  have h := A2.mk K O x hT (5) (0) (2)
                  try rw [show (0) + (2) + 1 + (5) = 8 by lib_nat] at h
                  try rw [show (0) + (2) + 1 = 3 by lib_nat] at h
                  try rw [show (0) + (5) = 5 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10)))) (K.neg (K.mul (Zs K x (5)) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (6))) (K.neg (K.mul (Zs K x (2)) (Zs K x (5)))))) := by
                    have h := A2.mk K O x hT (4) (0) (0)
                    try rw [show (0) + (0) + 1 + (4) = 5 by lib_nat] at h
                    try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                    try rw [show (0) + (4) = 4 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (8))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
                    have h := A2.mk K O x hT (4) (0) (2)
                    try rw [show (0) + (2) + 1 + (4) = 7 by lib_nat] at h
                    try rw [show (0) + (2) + 1 = 3 by lib_nat] at h
                    try rw [show (0) + (4) = 4 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (10))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6)))))) := by
                    have h := A2.mk K O x hT (5) (0) (3)
                    try rw [show (0) + (3) + 1 + (5) = 9 by lib_nat] at h
                    try rw [show (0) + (3) + 1 = 4 by lib_nat] at h
                    try rw [show (0) + (5) = 5 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (K.add (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (11)))) (K.neg (K.mul (Zs K x (6)) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (7))) (K.neg (K.mul (Zs K x (2)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (5) (0) (0)
                      try rw [show (0) + (0) + 1 + (5) = 6 by lib_nat] at h
                      try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                      try rw [show (0) + (5) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (9))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (5) (0) (2)
                      try rw [show (0) + (2) + 1 + (5) = 8 by lib_nat] at h
                      try rw [show (0) + (2) + 1 = 3 by lib_nat] at h
                      try rw [show (0) + (5) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (11))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (5) (0) (4)
                      try rw [show (0) + (4) + 1 + (5) = 10 by lib_nat] at h
                      try rw [show (0) + (4) + 1 = 5 by lib_nat] at h
                      try rw [show (0) + (5) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
                  | succ w =>
                    rw [show 0 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (K.add (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (w + 12)))) (K.neg (K.mul (Zs K x (w + 7)) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 8))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (2)))))) := by
                      have h := A2.mk K O x hT (1) (0) (w + 5)
                      try rw [show (0) + (w + 5) + 1 + (1) = w + 7 by lib_nat] at h
                      try rw [show (0) + (w + 5) + 1 = w + 6 by lib_nat] at h
                      try rw [show (0) + (1) = 1 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (4)))))) := by
                      have h := A2.mk K O x hT (3) (0) (w + 5)
                      try rw [show (0) + (w + 5) + 1 + (3) = w + 9 by lib_nat] at h
                      try rw [show (0) + (w + 5) + 1 = w + 6 by lib_nat] at h
                      try rw [show (0) + (3) = 3 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (5) (0) (w + 5)
                      try rw [show (0) + (w + 5) + 1 + (5) = w + 11 by lib_nat] at h
                      try rw [show (0) + (w + 5) + 1 = w + 6 by lib_nat] at h
                      try rw [show (0) + (5) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
        | succ i =>
          cases i with
          | zero =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (Zs K x (3)) (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (4))) (K.neg (K.mul (Zs K x (3)) (Zs K x (3)))))) := by
                have h := A2.mk K O x hT (1) (1) (0)
                try rw [show (1) + (0) + 1 + (1) = 3 by lib_nat] at h
                try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                try rw [show (1) + (1) = 2 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (8))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
                have h := A2.mk K O x hT (4) (1) (1)
                try rw [show (1) + (1) + 1 + (4) = 7 by lib_nat] at h
                try rw [show (1) + (1) + 1 = 3 by lib_nat] at h
                try rw [show (1) + (4) = 5 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (Zs K x (4)) (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (5))) (K.neg (K.mul (Zs K x (3)) (Zs K x (4)))))) := by
                  have h := A2.mk K O x hT (2) (1) (0)
                  try rw [show (1) + (0) + 1 + (2) = 4 by lib_nat] at h
                  try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                  try rw [show (1) + (2) = 3 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (7))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
                  have h := A2.mk K O x hT (3) (1) (1)
                  try rw [show (1) + (1) + 1 + (3) = 6 by lib_nat] at h
                  try rw [show (1) + (1) + 1 = 3 by lib_nat] at h
                  try rw [show (1) + (3) = 4 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (9))) (K.neg (K.mul (Zs K x (4)) (Zs K x (7)))))) := by
                  have h := A2.mk K O x hT (5) (1) (1)
                  try rw [show (1) + (1) + 1 + (5) = 8 by lib_nat] at h
                  try rw [show (1) + (1) + 1 = 3 by lib_nat] at h
                  try rw [show (1) + (5) = 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10)))) (K.neg (K.mul (Zs K x (5)) (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (6))) (K.neg (K.mul (Zs K x (3)) (Zs K x (5)))))) := by
                    have h := A2.mk K O x hT (3) (1) (0)
                    try rw [show (1) + (0) + 1 + (3) = 5 by lib_nat] at h
                    try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                    try rw [show (1) + (3) = 4 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (8))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5)))))) := by
                    have h := A2.mk K O x hT (3) (1) (2)
                    try rw [show (1) + (2) + 1 + (3) = 7 by lib_nat] at h
                    try rw [show (1) + (2) + 1 = 4 by lib_nat] at h
                    try rw [show (1) + (3) = 4 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (10))) (K.neg (K.mul (Zs K x (5)) (Zs K x (7)))))) := by
                    have h := A2.mk K O x hT (5) (1) (2)
                    try rw [show (1) + (2) + 1 + (5) = 9 by lib_nat] at h
                    try rw [show (1) + (2) + 1 = 4 by lib_nat] at h
                    try rw [show (1) + (5) = 6 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (K.add (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (11)))) (K.neg (K.mul (Zs K x (6)) (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (7))) (K.neg (K.mul (Zs K x (3)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (4) (1) (0)
                      try rw [show (1) + (0) + 1 + (4) = 6 by lib_nat] at h
                      try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                      try rw [show (1) + (4) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (9))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (4) (1) (2)
                      try rw [show (1) + (2) + 1 + (4) = 8 by lib_nat] at h
                      try rw [show (1) + (2) + 1 = 4 by lib_nat] at h
                      try rw [show (1) + (4) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (11))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7)))))) := by
                      have h := A2.mk K O x hT (5) (1) (3)
                      try rw [show (1) + (3) + 1 + (5) = 10 by lib_nat] at h
                      try rw [show (1) + (3) + 1 = 5 by lib_nat] at h
                      try rw [show (1) + (5) = 6 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (K.add (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (12)))) (K.neg (K.mul (Zs K x (7)) (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (8))) (K.neg (K.mul (Zs K x (3)) (Zs K x (7)))))) := by
                        have h := A2.mk K O x hT (5) (1) (0)
                        try rw [show (1) + (0) + 1 + (5) = 7 by lib_nat] at h
                        try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                        try rw [show (1) + (5) = 6 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (10))) (K.neg (K.mul (Zs K x (5)) (Zs K x (7)))))) := by
                        have h := A2.mk K O x hT (5) (1) (2)
                        try rw [show (1) + (2) + 1 + (5) = 9 by lib_nat] at h
                        try rw [show (1) + (2) + 1 = 4 by lib_nat] at h
                        try rw [show (1) + (5) = 6 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (12))) (K.neg (K.mul (Zs K x (7)) (Zs K x (7)))))) := by
                        have h := A2.mk K O x hT (5) (1) (4)
                        try rw [show (1) + (4) + 1 + (5) = 11 by lib_nat] at h
                        try rw [show (1) + (4) + 1 = 6 by lib_nat] at h
                        try rw [show (1) + (5) = 6 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
                    | succ w =>
                      rw [show 0 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (K.add (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (w + 13)))) (K.neg (K.mul (Zs K x (w + 8)) (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 9))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (3)))))) := by
                        have h := A2.mk K O x hT (1) (1) (w + 5)
                        try rw [show (1) + (w + 5) + 1 + (1) = w + 8 by lib_nat] at h
                        try rw [show (1) + (w + 5) + 1 = w + 7 by lib_nat] at h
                        try rw [show (1) + (1) = 2 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (5)))))) := by
                        have h := A2.mk K O x hT (3) (1) (w + 5)
                        try rw [show (1) + (w + 5) + 1 + (3) = w + 10 by lib_nat] at h
                        try rw [show (1) + (w + 5) + 1 = w + 7 by lib_nat] at h
                        try rw [show (1) + (3) = 4 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 13))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (7)))))) := by
                        have h := A2.mk K O x hT (5) (1) (w + 5)
                        try rw [show (1) + (w + 5) + 1 + (5) = w + 12 by lib_nat] at h
                        try rw [show (1) + (w + 5) + 1 = w + 7 by lib_nat] at h
                        try rw [show (1) + (5) = 6 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
          | succ i =>
            cases i with
            | zero =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (Zs K x (4)) (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8)))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4)))))) := by
                  have h := A2.mk K O x hT (1) (2) (0)
                  try rw [show (2) + (0) + 1 + (1) = 4 by lib_nat] at h
                  try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                  try rw [show (2) + (1) = 3 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (5)) (Zs K x (7)))))) := by
                  have h := A2.mk K O x hT (4) (2) (1)
                  try rw [show (2) + (1) + 1 + (4) = 8 by lib_nat] at h
                  try rw [show (2) + (1) + 1 = 4 by lib_nat] at h
                  try rw [show (2) + (4) = 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10)))) (K.neg (K.mul (Zs K x (5)) (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8)))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (6))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
                    have h := A2.mk K O x hT (2) (2) (0)
                    try rw [show (2) + (0) + 1 + (2) = 5 by lib_nat] at h
                    try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                    try rw [show (2) + (2) = 4 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6)))))) := by
                    have h := A2.mk K O x hT (3) (2) (1)
                    try rw [show (2) + (1) + 1 + (3) = 7 by lib_nat] at h
                    try rw [show (2) + (1) + 1 = 4 by lib_nat] at h
                    try rw [show (2) + (3) = 5 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (10))) (K.neg (K.mul (Zs K x (5)) (Zs K x (8)))))) := by
                    have h := A2.mk K O x hT (5) (2) (1)
                    try rw [show (2) + (1) + 1 + (5) = 9 by lib_nat] at h
                    try rw [show (2) + (1) + 1 = 4 by lib_nat] at h
                    try rw [show (2) + (5) = 7 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (11)))) (K.neg (K.mul (Zs K x (6)) (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8)))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (3) (2) (0)
                      try rw [show (2) + (0) + 1 + (3) = 6 by lib_nat] at h
                      try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                      try rw [show (2) + (3) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (3) (2) (2)
                      try rw [show (2) + (2) + 1 + (3) = 8 by lib_nat] at h
                      try rw [show (2) + (2) + 1 = 5 by lib_nat] at h
                      try rw [show (2) + (3) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (11))) (K.neg (K.mul (Zs K x (6)) (Zs K x (8)))))) := by
                      have h := A2.mk K O x hT (5) (2) (2)
                      try rw [show (2) + (2) + 1 + (5) = 10 by lib_nat] at h
                      try rw [show (2) + (2) + 1 = 5 by lib_nat] at h
                      try rw [show (2) + (5) = 7 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (12)))) (K.neg (K.mul (Zs K x (7)) (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8)))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (4)) (Zs K x (7)))))) := by
                        have h := A2.mk K O x hT (4) (2) (0)
                        try rw [show (2) + (0) + 1 + (4) = 7 by lib_nat] at h
                        try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                        try rw [show (2) + (4) = 6 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (10))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7)))))) := by
                        have h := A2.mk K O x hT (4) (2) (2)
                        try rw [show (2) + (2) + 1 + (4) = 9 by lib_nat] at h
                        try rw [show (2) + (2) + 1 = 5 by lib_nat] at h
                        try rw [show (2) + (4) = 6 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (12))) (K.neg (K.mul (Zs K x (7)) (Zs K x (8)))))) := by
                        have h := A2.mk K O x hT (5) (2) (3)
                        try rw [show (2) + (3) + 1 + (5) = 11 by lib_nat] at h
                        try rw [show (2) + (3) + 1 = 6 by lib_nat] at h
                        try rw [show (2) + (5) = 7 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (13)))) (K.neg (K.mul (Zs K x (8)) (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8)))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (4)) (Zs K x (8)))))) := by
                          have h := A2.mk K O x hT (5) (2) (0)
                          try rw [show (2) + (0) + 1 + (5) = 8 by lib_nat] at h
                          try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                          try rw [show (2) + (5) = 7 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (11))) (K.neg (K.mul (Zs K x (6)) (Zs K x (8)))))) := by
                          have h := A2.mk K O x hT (5) (2) (2)
                          try rw [show (2) + (2) + 1 + (5) = 10 by lib_nat] at h
                          try rw [show (2) + (2) + 1 = 5 by lib_nat] at h
                          try rw [show (2) + (5) = 7 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (13))) (K.neg (K.mul (Zs K x (8)) (Zs K x (8)))))) := by
                          have h := A2.mk K O x hT (5) (2) (4)
                          try rw [show (2) + (4) + 1 + (5) = 12 by lib_nat] at h
                          try rw [show (2) + (4) + 1 = 7 by lib_nat] at h
                          try rw [show (2) + (5) = 7 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
                      | succ w =>
                        rw [show 0 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (w + 14)))) (K.neg (K.mul (Zs K x (w + 9)) (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8)))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (4)))))) := by
                          have h := A2.mk K O x hT (1) (2) (w + 5)
                          try rw [show (2) + (w + 5) + 1 + (1) = w + 9 by lib_nat] at h
                          try rw [show (2) + (w + 5) + 1 = w + 8 by lib_nat] at h
                          try rw [show (2) + (1) = 3 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (6)))))) := by
                          have h := A2.mk K O x hT (3) (2) (w + 5)
                          try rw [show (2) + (w + 5) + 1 + (3) = w + 11 by lib_nat] at h
                          try rw [show (2) + (w + 5) + 1 = w + 8 by lib_nat] at h
                          try rw [show (2) + (3) = 5 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 14))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (8)))))) := by
                          have h := A2.mk K O x hT (5) (2) (w + 5)
                          try rw [show (2) + (w + 5) + 1 + (5) = w + 13 by lib_nat] at h
                          try rw [show (2) + (w + 5) + 1 = w + 8 by lib_nat] at h
                          try rw [show (2) + (5) = 7 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
            | succ a =>
              cases w with
              | zero =>
                rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 = a + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (K.add (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 10)))) (K.neg (K.mul (Zs K x (a + 5)) (K.add (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9)))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 6))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 5)))))) := by
                  have h := A2.mk K O x hT (1) (a + 3) (0)
                  try rw [show (a + 3) + (0) + 1 + (1) = a + 5 by lib_nat] at h
                  try rw [show (a + 3) + (0) + 1 = a + 4 by lib_nat] at h
                  try rw [show (a + 3) + (1) = a + 4 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 10))) (K.neg (K.mul (Zs K x (a + 6)) (Zs K x (a + 8)))))) := by
                  have h := A2.mk K O x hT (4) (a + 3) (1)
                  try rw [show (a + 3) + (1) + 1 + (4) = a + 9 by lib_nat] at h
                  try rw [show (a + 3) + (1) + 1 = a + 5 by lib_nat] at h
                  try rw [show (a + 3) + (4) = a + 7 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 4) (3) (a + 4) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1) + 1 = a + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (K.add (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 11)))) (K.neg (K.mul (Zs K x (a + 6)) (K.add (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9)))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 7))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 6)))))) := by
                    have h := A2.mk K O x hT (2) (a + 3) (0)
                    try rw [show (a + 3) + (0) + 1 + (2) = a + 6 by lib_nat] at h
                    try rw [show (a + 3) + (0) + 1 = a + 4 by lib_nat] at h
                    try rw [show (a + 3) + (2) = a + 5 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 9))) (K.neg (K.mul (Zs K x (a + 6)) (Zs K x (a + 7)))))) := by
                    have h := A2.mk K O x hT (3) (a + 3) (1)
                    try rw [show (a + 3) + (1) + 1 + (3) = a + 8 by lib_nat] at h
                    try rw [show (a + 3) + (1) + 1 = a + 5 by lib_nat] at h
                    try rw [show (a + 3) + (3) = a + 6 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 6)) (Zs K x (a + 9)))))) := by
                    have h := A2.mk K O x hT (5) (a + 3) (1)
                    try rw [show (a + 3) + (1) + 1 + (5) = a + 10 by lib_nat] at h
                    try rw [show (a + 3) + (1) + 1 = a + 5 by lib_nat] at h
                    try rw [show (a + 3) + (5) = a + 8 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1) + 1 = a + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (K.add (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 12)))) (K.neg (K.mul (Zs K x (a + 7)) (K.add (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9)))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 8))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 7)))))) := by
                      have h := A2.mk K O x hT (3) (a + 3) (0)
                      try rw [show (a + 3) + (0) + 1 + (3) = a + 7 by lib_nat] at h
                      try rw [show (a + 3) + (0) + 1 = a + 4 by lib_nat] at h
                      try rw [show (a + 3) + (3) = a + 6 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 10))) (K.neg (K.mul (Zs K x (a + 7)) (Zs K x (a + 7)))))) := by
                      have h := A2.mk K O x hT (3) (a + 3) (2)
                      try rw [show (a + 3) + (2) + 1 + (3) = a + 9 by lib_nat] at h
                      try rw [show (a + 3) + (2) + 1 = a + 6 by lib_nat] at h
                      try rw [show (a + 3) + (3) = a + 6 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 7)) (Zs K x (a + 9)))))) := by
                      have h := A2.mk K O x hT (5) (a + 3) (2)
                      try rw [show (a + 3) + (2) + 1 + (5) = a + 11 by lib_nat] at h
                      try rw [show (a + 3) + (2) + 1 = a + 6 by lib_nat] at h
                      try rw [show (a + 3) + (5) = a + 8 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1) + 1 = a + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (K.add (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 13)))) (K.neg (K.mul (Zs K x (a + 8)) (K.add (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9)))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 9))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 8)))))) := by
                        have h := A2.mk K O x hT (4) (a + 3) (0)
                        try rw [show (a + 3) + (0) + 1 + (4) = a + 8 by lib_nat] at h
                        try rw [show (a + 3) + (0) + 1 = a + 4 by lib_nat] at h
                        try rw [show (a + 3) + (4) = a + 7 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 7)) (Zs K x (a + 8)))))) := by
                        have h := A2.mk K O x hT (4) (a + 3) (2)
                        try rw [show (a + 3) + (2) + 1 + (4) = a + 10 by lib_nat] at h
                        try rw [show (a + 3) + (2) + 1 = a + 6 by lib_nat] at h
                        try rw [show (a + 3) + (4) = a + 7 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 8)) (Zs K x (a + 9)))))) := by
                        have h := A2.mk K O x hT (5) (a + 3) (3)
                        try rw [show (a + 3) + (3) + 1 + (5) = a + 12 by lib_nat] at h
                        try rw [show (a + 3) + (3) + 1 = a + 7 by lib_nat] at h
                        try rw [show (a + 3) + (5) = a + 8 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1 + 1) + 1 = a + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (K.add (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 14)))) (K.neg (K.mul (Zs K x (a + 9)) (K.add (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9)))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 10))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 9)))))) := by
                          have h := A2.mk K O x hT (5) (a + 3) (0)
                          try rw [show (a + 3) + (0) + 1 + (5) = a + 9 by lib_nat] at h
                          try rw [show (a + 3) + (0) + 1 = a + 4 by lib_nat] at h
                          try rw [show (a + 3) + (5) = a + 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 7)) (Zs K x (a + 9)))))) := by
                          have h := A2.mk K O x hT (5) (a + 3) (2)
                          try rw [show (a + 3) + (2) + 1 + (5) = a + 11 by lib_nat] at h
                          try rw [show (a + 3) + (2) + 1 = a + 6 by lib_nat] at h
                          try rw [show (a + 3) + (5) = a + 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 14))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 9)))))) := by
                          have h := A2.mk K O x hT (5) (a + 3) (4)
                          try rw [show (a + 3) + (4) + 1 + (5) = a + 13 by lib_nat] at h
                          try rw [show (a + 3) + (4) + 1 = a + 8 by lib_nat] at h
                          try rw [show (a + 3) + (5) = a + 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
                      | succ w =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = a + w + 12 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (K.add (K.add (Zs K x (a + w + 11)) (Zs K x (a + w + 13))) (Zs K x (a + w + 15)))) (K.neg (K.mul (Zs K x (a + w + 10)) (K.add (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9)))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + w + 11))) (K.neg (K.mul (Zs K x (a + w + 10)) (Zs K x (a + 5)))))) := by
                          have h := A2.mk K O x hT (1) (a + 3) (w + 5)
                          try rw [show (a + 3) + (w + 5) + 1 + (1) = a + w + 10 by lib_nat] at h
                          try rw [show (a + 3) + (w + 5) + 1 = a + w + 9 by lib_nat] at h
                          try rw [show (a + 3) + (1) = a + 4 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + w + 13))) (K.neg (K.mul (Zs K x (a + w + 10)) (Zs K x (a + 7)))))) := by
                          have h := A2.mk K O x hT (3) (a + 3) (w + 5)
                          try rw [show (a + 3) + (w + 5) + 1 + (3) = a + w + 12 by lib_nat] at h
                          try rw [show (a + 3) + (w + 5) + 1 = a + w + 9 by lib_nat] at h
                          try rw [show (a + 3) + (3) = a + 6 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + w + 15))) (K.neg (K.mul (Zs K x (a + w + 10)) (Zs K x (a + 9)))))) := by
                          have h := A2.mk K O x hT (5) (a + 3) (w + 5)
                          try rw [show (a + 3) + (w + 5) + 1 + (5) = a + w + 14 by lib_nat] at h
                          try rw [show (a + 3) + (w + 5) + 1 = a + w + 9 by lib_nat] at h
                          try rw [show (a + 3) + (5) = a + 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)

include hx hT hD h1 h10 in
theorem sg6 (i w : Nat) : O.le K.zero (K.neg (Lagrange.minor K (Zs K x) x i (i + w + 1))) := by
  unfold Lagrange.minor
  cases i with
  | zero =>
    cases w with
    | zero =>
      show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (2))) (K.neg (K.mul (Zs K x (1)) (Zs K x (1))))))
      have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (1))) := O.mul_nonneg _ _ (hx (0)) (hx (0))
      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
    | succ w =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (3))) (K.neg (K.mul (Zs K x (2)) (Zs K x (1))))))
        have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (2))) := O.mul_nonneg _ _ (hx (0)) (hx (1))
        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (4))) (K.neg (K.mul (Zs K x (3)) (Zs K x (1))))))
          have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (3))) := O.mul_nonneg _ _ (hx (0)) (hx (2))
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (1))))))
            have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (0)) (hx (3))
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (1))))))
              have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (0)) (hx (4))
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              rw [show 0 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 6 by lib_nat]
              show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (w + 7))) (K.neg (K.mul (Zs K x (w + 6)) (Zs K x (1))))))
              have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (w + 6))) := O.mul_nonneg _ _ (hx (0)) (hx (w + 5))
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
  | succ i =>
    cases i with
    | zero =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (3))) (K.neg (K.mul (Zs K x (2)) (Zs K x (2))))))
        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (3))) (K.neg (K.mul (Zs K x (2)) (Zs K x (2)))))) := by
          have h := A2.mk K O x hT (1) (0) (0)
          try rw [show (0) + (0) + 1 + (1) = 2 by lib_nat] at h
          try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
          try rw [show (0) + (1) = 1 by lib_nat] at h
          exact A2.nn_of_nonpos_neg K O _ h
        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (4))) (K.neg (K.mul (Zs K x (3)) (Zs K x (2))))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (4))) (K.neg (K.mul (Zs K x (2)) (Zs K x (3)))))) := by
            have h := A2.mk K O x hT (2) (0) (0)
            try rw [show (0) + (0) + 1 + (2) = 3 by lib_nat] at h
            try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
            try rw [show (0) + (2) = 2 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (2))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (5))) (K.neg (K.mul (Zs K x (2)) (Zs K x (4)))))) := by
              have h := A2.mk K O x hT (3) (0) (0)
              try rw [show (0) + (0) + 1 + (3) = 4 by lib_nat] at h
              try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
              try rw [show (0) + (3) = 3 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (2))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (6))) (K.neg (K.mul (Zs K x (2)) (Zs K x (5)))))) := by
                have h := A2.mk K O x hT (4) (0) (0)
                try rw [show (0) + (0) + 1 + (4) = 5 by lib_nat] at h
                try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                try rw [show (0) + (4) = 4 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (2))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (7))) (K.neg (K.mul (Zs K x (2)) (Zs K x (6)))))) := by
                  have h := A2.mk K O x hT (5) (0) (0)
                  try rw [show (0) + (0) + 1 + (5) = 6 by lib_nat] at h
                  try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                  try rw [show (0) + (5) = 5 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                rw [show 0 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 8))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (2))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 8))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (2)))))) := by
                  have h := A2.mk K O x hT (1) (0) (w + 5)
                  try rw [show (0) + (w + 5) + 1 + (1) = w + 7 by lib_nat] at h
                  try rw [show (0) + (w + 5) + 1 = w + 6 by lib_nat] at h
                  try rw [show (0) + (1) = 1 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
    | succ i =>
      cases i with
      | zero =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (4))) (K.neg (K.mul (Zs K x (3)) (Zs K x (3))))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (4))) (K.neg (K.mul (Zs K x (3)) (Zs K x (3)))))) := by
            have h := A2.mk K O x hT (1) (1) (0)
            try rw [show (1) + (0) + 1 + (1) = 3 by lib_nat] at h
            try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
            try rw [show (1) + (1) = 2 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (3))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (5))) (K.neg (K.mul (Zs K x (3)) (Zs K x (4)))))) := by
              have h := A2.mk K O x hT (2) (1) (0)
              try rw [show (1) + (0) + 1 + (2) = 4 by lib_nat] at h
              try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
              try rw [show (1) + (2) = 3 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (3))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (6))) (K.neg (K.mul (Zs K x (3)) (Zs K x (5)))))) := by
                have h := A2.mk K O x hT (3) (1) (0)
                try rw [show (1) + (0) + 1 + (3) = 5 by lib_nat] at h
                try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                try rw [show (1) + (3) = 4 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (3))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (7))) (K.neg (K.mul (Zs K x (3)) (Zs K x (6)))))) := by
                  have h := A2.mk K O x hT (4) (1) (0)
                  try rw [show (1) + (0) + 1 + (4) = 6 by lib_nat] at h
                  try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                  try rw [show (1) + (4) = 5 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (3))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (8))) (K.neg (K.mul (Zs K x (3)) (Zs K x (7)))))) := by
                    have h := A2.mk K O x hT (5) (1) (0)
                    try rw [show (1) + (0) + 1 + (5) = 7 by lib_nat] at h
                    try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                    try rw [show (1) + (5) = 6 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  rw [show 0 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 9))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (3))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 9))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (3)))))) := by
                    have h := A2.mk K O x hT (1) (1) (w + 5)
                    try rw [show (1) + (w + 5) + 1 + (1) = w + 8 by lib_nat] at h
                    try rw [show (1) + (w + 5) + 1 = w + 7 by lib_nat] at h
                    try rw [show (1) + (1) = 2 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ i =>
        cases i with
        | zero =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4)))))) := by
              have h := A2.mk K O x hT (1) (2) (0)
              try rw [show (2) + (0) + 1 + (1) = 4 by lib_nat] at h
              try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
              try rw [show (2) + (1) = 3 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (4))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (6))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
                have h := A2.mk K O x hT (2) (2) (0)
                try rw [show (2) + (0) + 1 + (2) = 5 by lib_nat] at h
                try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                try rw [show (2) + (2) = 4 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (4))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
                  have h := A2.mk K O x hT (3) (2) (0)
                  try rw [show (2) + (0) + 1 + (3) = 6 by lib_nat] at h
                  try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                  try rw [show (2) + (3) = 5 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (4))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (4)) (Zs K x (7)))))) := by
                    have h := A2.mk K O x hT (4) (2) (0)
                    try rw [show (2) + (0) + 1 + (4) = 7 by lib_nat] at h
                    try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                    try rw [show (2) + (4) = 6 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (4))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (4)) (Zs K x (8)))))) := by
                      have h := A2.mk K O x hT (5) (2) (0)
                      try rw [show (2) + (0) + 1 + (5) = 8 by lib_nat] at h
                      try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                      try rw [show (2) + (5) = 7 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    rw [show 0 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (4))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (4)))))) := by
                      have h := A2.mk K O x hT (1) (2) (w + 5)
                      try rw [show (2) + (w + 5) + 1 + (1) = w + 9 by lib_nat] at h
                      try rw [show (2) + (w + 5) + 1 = w + 8 by lib_nat] at h
                      try rw [show (2) + (1) = 3 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ i =>
          cases i with
          | zero =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5)))))) := by
                have h := A2.mk K O x hT (1) (3) (0)
                try rw [show (3) + (0) + 1 + (1) = 5 by lib_nat] at h
                try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                try rw [show (3) + (1) = 4 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (5))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (7))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6)))))) := by
                  have h := A2.mk K O x hT (2) (3) (0)
                  try rw [show (3) + (0) + 1 + (2) = 6 by lib_nat] at h
                  try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                  try rw [show (3) + (2) = 5 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (5))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (8))) (K.neg (K.mul (Zs K x (5)) (Zs K x (7)))))) := by
                    have h := A2.mk K O x hT (3) (3) (0)
                    try rw [show (3) + (0) + 1 + (3) = 7 by lib_nat] at h
                    try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                    try rw [show (3) + (3) = 6 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (5))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (9))) (K.neg (K.mul (Zs K x (5)) (Zs K x (8)))))) := by
                      have h := A2.mk K O x hT (4) (3) (0)
                      try rw [show (3) + (0) + 1 + (4) = 8 by lib_nat] at h
                      try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                      try rw [show (3) + (4) = 7 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (10))) (K.neg (K.mul (Zs K x (9)) (Zs K x (5))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (10))) (K.neg (K.mul (Zs K x (5)) (Zs K x (9)))))) := by
                        have h := A2.mk K O x hT (5) (3) (0)
                        try rw [show (3) + (0) + 1 + (5) = 9 by lib_nat] at h
                        try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                        try rw [show (3) + (5) = 8 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      rw [show 0 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 10)) (Zs K x (5))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 10)) (Zs K x (5)))))) := by
                        have h := A2.mk K O x hT (1) (3) (w + 5)
                        try rw [show (3) + (w + 5) + 1 + (1) = w + 10 by lib_nat] at h
                        try rw [show (3) + (w + 5) + 1 = w + 9 by lib_nat] at h
                        try rw [show (3) + (1) = 4 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ i =>
            cases i with
            | zero =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6)))))) := by
                  have h := A2.mk K O x hT (1) (4) (0)
                  try rw [show (4) + (0) + 1 + (1) = 6 by lib_nat] at h
                  try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                  try rw [show (4) + (1) = 5 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (6))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (8))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7)))))) := by
                    have h := A2.mk K O x hT (2) (4) (0)
                    try rw [show (4) + (0) + 1 + (2) = 7 by lib_nat] at h
                    try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                    try rw [show (4) + (2) = 6 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (6))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (9))) (K.neg (K.mul (Zs K x (6)) (Zs K x (8)))))) := by
                      have h := A2.mk K O x hT (3) (4) (0)
                      try rw [show (4) + (0) + 1 + (3) = 8 by lib_nat] at h
                      try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                      try rw [show (4) + (3) = 7 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (10))) (K.neg (K.mul (Zs K x (9)) (Zs K x (6))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (10))) (K.neg (K.mul (Zs K x (6)) (Zs K x (9)))))) := by
                        have h := A2.mk K O x hT (4) (4) (0)
                        try rw [show (4) + (0) + 1 + (4) = 9 by lib_nat] at h
                        try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                        try rw [show (4) + (4) = 8 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (11))) (K.neg (K.mul (Zs K x (10)) (Zs K x (6))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (11))) (K.neg (K.mul (Zs K x (6)) (Zs K x (10)))))) := by
                          have h := A2.mk K O x hT (5) (4) (0)
                          try rw [show (4) + (0) + 1 + (5) = 10 by lib_nat] at h
                          try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                          try rw [show (4) + (5) = 9 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show 0 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (6))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (6)))))) := by
                          have h := A2.mk K O x hT (1) (4) (w + 5)
                          try rw [show (4) + (w + 5) + 1 + (1) = w + 11 by lib_nat] at h
                          try rw [show (4) + (w + 5) + 1 = w + 10 by lib_nat] at h
                          try rw [show (4) + (1) = 5 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ a =>
              cases w with
              | zero =>
                rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 = a + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 6)) (Zs K x (a + 8))) (K.neg (K.mul (Zs K x (a + 7)) (Zs K x (a + 7))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 6)) (Zs K x (a + 8))) (K.neg (K.mul (Zs K x (a + 7)) (Zs K x (a + 7)))))) := by
                  have h := A2.mk K O x hT (1) (a + 5) (0)
                  try rw [show (a + 5) + (0) + 1 + (1) = a + 7 by lib_nat] at h
                  try rw [show (a + 5) + (0) + 1 = a + 6 by lib_nat] at h
                  try rw [show (a + 5) + (1) = a + 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1) + 1 = a + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 6)) (Zs K x (a + 9))) (K.neg (K.mul (Zs K x (a + 8)) (Zs K x (a + 7))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 6)) (Zs K x (a + 9))) (K.neg (K.mul (Zs K x (a + 7)) (Zs K x (a + 8)))))) := by
                    have h := A2.mk K O x hT (2) (a + 5) (0)
                    try rw [show (a + 5) + (0) + 1 + (2) = a + 8 by lib_nat] at h
                    try rw [show (a + 5) + (0) + 1 = a + 6 by lib_nat] at h
                    try rw [show (a + 5) + (2) = a + 7 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1) + 1 = a + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 6)) (Zs K x (a + 10))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 7))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 6)) (Zs K x (a + 10))) (K.neg (K.mul (Zs K x (a + 7)) (Zs K x (a + 9)))))) := by
                      have h := A2.mk K O x hT (3) (a + 5) (0)
                      try rw [show (a + 5) + (0) + 1 + (3) = a + 9 by lib_nat] at h
                      try rw [show (a + 5) + (0) + 1 = a + 6 by lib_nat] at h
                      try rw [show (a + 5) + (3) = a + 8 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1) + 1 = a + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 6)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 7))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 6)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 7)) (Zs K x (a + 10)))))) := by
                        have h := A2.mk K O x hT (4) (a + 5) (0)
                        try rw [show (a + 5) + (0) + 1 + (4) = a + 10 by lib_nat] at h
                        try rw [show (a + 5) + (0) + 1 = a + 6 by lib_nat] at h
                        try rw [show (a + 5) + (4) = a + 9 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1 + 1) + 1 = a + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 6)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 11)) (Zs K x (a + 7))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 6)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 7)) (Zs K x (a + 11)))))) := by
                          have h := A2.mk K O x hT (5) (a + 5) (0)
                          try rw [show (a + 5) + (0) + 1 + (5) = a + 11 by lib_nat] at h
                          try rw [show (a + 5) + (0) + 1 = a + 6 by lib_nat] at h
                          try rw [show (a + 5) + (5) = a + 10 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = a + w + 12 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 6)) (Zs K x (a + w + 13))) (K.neg (K.mul (Zs K x (a + w + 12)) (Zs K x (a + 7))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 6)) (Zs K x (a + w + 13))) (K.neg (K.mul (Zs K x (a + w + 12)) (Zs K x (a + 7)))))) := by
                          have h := A2.mk K O x hT (1) (a + 5) (w + 5)
                          try rw [show (a + 5) + (w + 5) + 1 + (1) = a + w + 12 by lib_nat] at h
                          try rw [show (a + 5) + (w + 5) + 1 = a + w + 11 by lib_nat] at h
                          try rw [show (a + 5) + (1) = a + 6 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)

include hx hT hD h1 h10 in
theorem sg7 (i w : Nat) : O.le K.zero (K.neg (Lagrange.minor K (Zs K (pv4 K x)) (Zs K (pv3 K x)) i (i + w + 1))) := by
  unfold Lagrange.minor
  cases i with
  | zero =>
    cases w with
    | zero =>
      show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (4))) (K.neg (K.mul (Zs K x (5)) K.zero))))
      exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
    | succ w =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (3)) (Zs K x (5)))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) K.zero))))
        exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))) (K.neg (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) K.zero))))
          exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) K.zero))))
            exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) K.zero))))
              exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
            | succ w =>
              rw [show 0 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 6 by lib_nat]
              show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (K.add (Zs K x (w + 3)) (Zs K x (w + 5))) (Zs K x (w + 7))) (Zs K x (w + 9)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (w + 2)) (Zs K x (w + 4))) (Zs K x (w + 6))) (Zs K x (w + 8))) (Zs K x (w + 10))) K.zero))))
              exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
  | succ i =>
    cases i with
    | zero =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (K.add (Zs K x (3)) (Zs K x (5)))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))))))
        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))) (K.neg (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (4))))))
          have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (Zs K x (4))))))
            have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (Zs K x (4))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (5))))) := A1.Dn K O x hD (0) (4) (0) (1) (2) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (Zs K x (10))) (Zs K x (4))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) (by lib_ring)
              | succ w =>
                rw [show 0 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (K.add (K.add (K.add (Zs K x (w + 4)) (Zs K x (w + 6))) (Zs K x (w + 8))) (Zs K x (w + 10)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (w + 3)) (Zs K x (w + 5))) (Zs K x (w + 7))) (Zs K x (w + 9))) (Zs K x (w + 11))) (Zs K x (4))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 7))))) := A1.Dn K O x hD (0) (w + 6) (0) (1) (2) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 6))))) := A1.Dn K O x hD (1) (w + 4) (1) (2) (3) (w + 5) (w + 6) (w + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 4)) (Zs K x (w + 6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 5))))) := A1.Dn K O x hD (2) (w + 2) (2) (3) (4) (w + 4) (w + 5) (w + 6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 7))))) := A1.Dn K O x hD (2) (w + 4) (2) (3) (4) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 3)) (Zs K x (w + 5))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 4))))) := A1.Dn K O x hD (3) (w) (3) (4) (5) (w + 3) (w + 4) (w + 5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 6))))) := A1.Dn K O x hD (3) (w + 2) (3) (4) (5) (w + 5) (w + 6) (w + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 8))))) := A1.Dn K O x hD (3) (w + 4) (3) (4) (5) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) (by lib_ring)
    | succ i =>
      cases i with
      | zero =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))) (K.neg (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.add (Zs K x (3)) (Zs K x (5)))))))
          have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (Zs K x (3)) (Zs K x (5)))))))
            have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (Zs K x (3)) (Zs K x (5)))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (4))))) := A1.Dn K O x hD (0) (3) (0) (1) (2) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (Zs K x (10))) (K.add (Zs K x (3)) (Zs K x (5)))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (5))))) := A1.Dn K O x hD (0) (4) (0) (1) (2) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (7))))) := A1.Dn K O x hD (0) (6) (0) (1) (2) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (8))))) := A1.Dn K O x hD (1) (6) (1) (2) (3) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (9))))) := A1.Dn K O x hD (2) (6) (2) (3) (4) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) t13) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (Zs K x (11))) (K.add (Zs K x (3)) (Zs K x (5)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (8))))) := A1.Dn K O x hD (0) (7) (0) (1) (2) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (10))))) := A1.Dn K O x hD (2) (7) (2) (3) (4) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12  -- (+35 chars; full line in the Zenodo source)
                | succ w =>
                  rw [show 0 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (K.add (K.add (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (w + 9))) (Zs K x (w + 11)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (w + 4)) (Zs K x (w + 6))) (Zs K x (w + 8))) (Zs K x (w + 10))) (Zs K x (w + 12))) (K.add (Zs K x (3)) (Zs K x (5)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 7))))) := A1.Dn K O x hD (0) (w + 6) (0) (1) (2) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 9))))) := A1.Dn K O x hD (0) (w + 8) (0) (1) (2) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 6))))) := A1.Dn K O x hD (1) (w + 4) (1) (2) (3) (w + 5) (w + 6) (w + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 10))))) := A1.Dn K O x hD (1) (w + 8) (1) (2) (3) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 4)) (Zs K x (w + 6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 5))))) := A1.Dn K O x hD (2) (w + 2) (2) (3) (4) (w + 4) (w + 5) (w + 6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 7))))) := A1.Dn K O x hD (2) (w + 4) (2) (3) (4) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 7))))) := A1.Dn K O x hD (2) (w + 4) (2) (3) (4) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 11))))) := A1.Dn K O x hD (2) (w + 8) (2) (3) (4) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 6))))) := A1.Dn K O x hD (3) (w + 2) (3) (4) (5) (w + 5) (w + 6) (w + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 8))))) := A1.Dn K O x hD (3) (w + 4) (3) (4) (5) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 4)) (Zs K x (w + 6))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 5))))) := A1.Dn K O x hD (4) (w) (4) (5) (6) (w + 4) (w + 5) (w + 6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 7))))) := A1.Dn K O x hD (4) (w + 2) (4) (5) (6) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t17 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 9))))) := A1.Dn K O x hD (4) (w + 4) (4) (5) (6) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t18 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 11))))) := A1.Dn K O x hD (4) (w + 6) (4) (5) (6) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3)  -- (+83 chars; full line in the Zenodo source)
      | succ i =>
        cases i with
        | zero =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
            have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (3))))) := A1.Dn K O x hD (1) (1) (1) (2) (3) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (7))))) := A1.Dn K O x hD (5) (1) (5) (6) (7) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (3))))) := A1.Dn K O x hD (0) (2) (0) (1) (2) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (5))))) := A1.Dn K O x hD (0) (4) (0) (1) (2) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (7))))) := A1.Dn K O x hD (0) (6) (0) (1) (2) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (8))))) := A1.Dn K O x hD (1) (6) (1) (2) (3) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (8))))) := A1.Dn K O x hD (5) (2) (5) (6) (7) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (Zs K x (10))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (4))))) := A1.Dn K O x hD (0) (3) (0) (1) (2) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (8))))) := A1.Dn K O x hD (0) (7) (0) (1) (2) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (3))))) := A1.Dn K O x hD (1) (1) (1) (2) (3) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (7))))) := A1.Dn K O x hD (5) (1) (5) (6) (7) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t17 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8)   -- (+57 chars; full line in the Zenodo source)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (Zs K x (11))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (5))))) := A1.Dn K O x hD (0) (4) (0) (1) (2) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (7))))) := A1.Dn K O x hD (0) (6) (0) (1) (2) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (9))))) := A1.Dn K O x hD (0) (8) (0) (1) (2) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (8))))) := A1.Dn K O x hD (1) (6) (1) (2) (3) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (8))))) := A1.Dn K O x hD (1) (6) (1) (2) (3) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (10))))) := A1.Dn K O x hD (1) (8) (1) (2) (3) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (9))))) := A1.Dn K O x hD (2) (6) (2) (3) (4) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (10))))) := A1.Dn K O x hD (3) (6) (3) (4) (5) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t17 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t18 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t19 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (8))))) := A1.Dn K O x hD (5) (2) (5) (6) (7) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t20 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (10))))) := A1.Dn K O x hD (5) (4) (5) (6) (7) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O  -- (+131 chars; full line in the Zenodo source)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (Zs K x (11)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10))) (Zs K x (12))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (8))))) := A1.Dn K O x hD (0) (7) (0) (1) (2) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (10))))) := A1.Dn K O x hD (0) (9) (0) (1) (2) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (11))))) := A1.Dn K O x hD (1) (9) (1) (2) (3) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (10))))) := A1.Dn K O x hD (2) (7) (2) (3) (4) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t17 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t18 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (11))))) := A1.Dn K O x hD (3) (7) (3) (4) (5) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t19 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t20 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t21 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (7))))) := A1.Dn K O x hD (5) (1) (5) (6) (7) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t22 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t23 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (11))))) := A1.Dn K O x hD (5) (5) (5) (6) (7) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K  -- (+205 chars; full line in the Zenodo source)
                  | succ w =>
                    rw [show 0 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (w + 10))) (Zs K x (w + 12)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (w + 9))) (Zs K x (w + 11))) (Zs K x (w + 13))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 7))))) := A1.Dn K O x hD (0) (w + 6) (0) (1) (2) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 9))))) := A1.Dn K O x hD (0) (w + 8) (0) (1) (2) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 11))))) := A1.Dn K O x hD (0) (w + 10) (0) (1) (2) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 6))))) := A1.Dn K O x hD (1) (w + 4) (1) (2) (3) (w + 5) (w + 6) (w + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 10))))) := A1.Dn K O x hD (1) (w + 8) (1) (2) (3) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 10))))) := A1.Dn K O x hD (1) (w + 8) (1) (2) (3) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 12))))) := A1.Dn K O x hD (1) (w + 10) (1) (2) (3) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 7))))) := A1.Dn K O x hD (2) (w + 4) (2) (3) (4) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 11))))) := A1.Dn K O x hD (2) (w + 8) (2) (3) (4) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 6))))) := A1.Dn K O x hD (3) (w + 2) (3) (4) (5) (w + 5) (w + 6) (w + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 8))))) := A1.Dn K O x hD (3) (w + 4) (3) (4) (5) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 8))))) := A1.Dn K O x hD (3) (w + 4) (3) (4) (5) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t17 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t18 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 12))))) := A1.Dn K O x hD (3) (w + 8) (3) (4) (5) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t19 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 7))))) := A1.Dn K O x hD (4) (w + 2) (4) (5) (6) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t20 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 9))))) := A1.Dn K O x hD (4) (w + 4) (4) (5) (6) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t21 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 11))))) := A1.Dn K O x hD (4) (w + 6) (4) (5) (6) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t22 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 6))))) := A1.Dn K O x hD (5) (w) (5) (6) (7) (w + 5) (w + 6) (w + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t23 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 8))))) := A1.Dn K O x hD (5) (w + 2) (5) (6) (7) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t24 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 10))))) := A1.Dn K O x hD (5) (w + 4) (5) (6) (7) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t25 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 12))))) := A1.Dn K O x hD (5) (w + 6) (5) (6) (7) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K  -- (+253 chars; full line in the Zenodo source)
        | succ i =>
          cases i with
          | zero =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7)))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (2))))) := A1.Dn K O x hD (0) (1) (0) (1) (2) (1) (2) (3) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (4))))) := A1.Dn K O x hD (0) (3) (0) (1) (2) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (8))))) := A1.Dn K O x hD (0) (7) (0) (1) (2) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (8))))) := A1.Dn K O x hD (6) (1) (6) (7) (8) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (Zs K x (10))) (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7)))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (3))))) := A1.Dn K O x hD (0) (2) (0) (1) (2) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (5))))) := A1.Dn K O x hD (0) (4) (0) (1) (2) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (7))))) := A1.Dn K O x hD (0) (6) (0) (1) (2) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (9))))) := A1.Dn K O x hD (0) (8) (0) (1) (2) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (8))))) := A1.Dn K O x hD (1) (6) (1) (2) (3) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (9))))) := A1.Dn K O x hD (2) (6) (2) (3) (4) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (8))))) := A1.Dn K O x hD (5) (2) (5) (6) (7) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (9))))) := A1.Dn K O x hD (6) (2) (6) (7) (8) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) t13) t14) t15) (by   -- (+9 chars; full line in the Zenodo source)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (Zs K x (11))) (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))))))  -- (+1 chars; full line in the Zenodo source)
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (4))))) := A1.Dn K O x hD (0) (3) (0) (1) (2) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (8))))) := A1.Dn K O x hD (0) (7) (0) (1) (2) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (10))))) := A1.Dn K O x hD (0) (9) (0) (1) (2) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (10))))) := A1.Dn K O x hD (2) (7) (2) (3) (4) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t17 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t18 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t19 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t20 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (8))))) := A1.Dn K O x hD (6) (1) (6) (7) (8) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t21 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))))) := A1.Dn K O x hD (6) (3) (6) (7) (8) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O  -- (+155 chars; full line in the Zenodo source)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (Zs K x (11)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10))) (Zs K x (12))) (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7)))  -- (+4 chars; full line in the Zenodo source)
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (5))))) := A1.Dn K O x hD (0) (4) (0) (1) (2) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (7))))) := A1.Dn K O x hD (0) (6) (0) (1) (2) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (9))))) := A1.Dn K O x hD (0) (8) (0) (1) (2) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (11))))) := A1.Dn K O x hD (0) (10) (0) (1) (2) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (8))))) := A1.Dn K O x hD (1) (6) (1) (2) (3) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (10))))) := A1.Dn K O x hD (1) (8) (1) (2) (3) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (9))))) := A1.Dn K O x hD (2) (6) (2) (3) (4) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (9))))) := A1.Dn K O x hD (2) (6) (2) (3) (4) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (11))))) := A1.Dn K O x hD (2) (8) (2) (3) (4) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (10))))) := A1.Dn K O x hD (3) (6) (3) (4) (5) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t17 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t18 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t19 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t20 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (11))))) := A1.Dn K O x hD (4) (6) (4) (5) (6) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t21 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (8))))) := A1.Dn K O x hD (5) (2) (5) (6) (7) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t22 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (10))))) := A1.Dn K O x hD (5) (4) (5) (6) (7) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t23 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (9))))) := A1.Dn K O x hD (6) (2) (6) (7) (8) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t24 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (11))))) := A1.Dn K O x hD (6) (4) (6) (7) (8) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K  -- (+229 chars; full line in the Zenodo source)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))) (Zs K x (12)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (Zs K x (11))) (Zs K x (13))) (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7  -- (+7 chars; full line in the Zenodo source)
                      have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (8))))) := A1.Dn K O x hD (0) (7) (0) (1) (2) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (10))))) := A1.Dn K O x hD (0) (9) (0) (1) (2) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (12))))) := A1.Dn K O x hD (0) (11) (0) (1) (2) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (11))))) := A1.Dn K O x hD (1) (9) (1) (2) (3) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (10))))) := A1.Dn K O x hD (2) (7) (2) (3) (4) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (10))))) := A1.Dn K O x hD (2) (7) (2) (3) (4) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (12))))) := A1.Dn K O x hD (2) (9) (2) (3) (4) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (11))))) := A1.Dn K O x hD (3) (7) (3) (4) (5) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t17 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t18 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t19 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t20 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t21 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t22 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (12))))) := A1.Dn K O x hD (4) (7) (4) (5) (6) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t23 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t24 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (11))))) := A1.Dn K O x hD (5) (5) (5) (6) (7) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t25 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (8))))) := A1.Dn K O x hD (6) (1) (6) (7) (8) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t26 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))))) := A1.Dn K O x hD (6) (3) (6) (7) (8) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t27 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (12))))) := A1.Dn K O x hD (6) (5) (6) (7) (8) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add  -- (+303 chars; full line in the Zenodo source)
                    | succ w =>
                      rw [show 0 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (w + 11))) (Zs K x (w + 13)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (w + 10))) (Zs K x (w + 12))) (Zs K x (w + 14))) (K.add (K.add (K.add (Zs K x (1)) (  -- (+44 chars; full line in the Zenodo source)
                      have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 7))))) := A1.Dn K O x hD (0) (w + 6) (0) (1) (2) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 9))))) := A1.Dn K O x hD (0) (w + 8) (0) (1) (2) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 11))))) := A1.Dn K O x hD (0) (w + 10) (0) (1) (2) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 12)) (Zs K x (w + 14))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 13))))) := A1.Dn K O x hD (0) (w + 12) (0) (1) (2) (w + 12) (w + 13) (w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 10))))) := A1.Dn K O x hD (1) (w + 8) (1) (2) (3) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 12))))) := A1.Dn K O x hD (1) (w + 10) (1) (2) (3) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 7))))) := A1.Dn K O x hD (2) (w + 4) (2) (3) (4) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 11))))) := A1.Dn K O x hD (2) (w + 8) (2) (3) (4) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 11))))) := A1.Dn K O x hD (2) (w + 8) (2) (3) (4) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 12)) (Zs K x (w + 14))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 13))))) := A1.Dn K O x hD (2) (w + 10) (2) (3) (4) (w + 12) (w + 13) (w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 8))))) := A1.Dn K O x hD (3) (w + 4) (3) (4) (5) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 12))))) := A1.Dn K O x hD (3) (w + 8) (3) (4) (5) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t17 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 7))))) := A1.Dn K O x hD (4) (w + 2) (4) (5) (6) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t18 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 9))))) := A1.Dn K O x hD (4) (w + 4) (4) (5) (6) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t19 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 9))))) := A1.Dn K O x hD (4) (w + 4) (4) (5) (6) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t20 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 11))))) := A1.Dn K O x hD (4) (w + 6) (4) (5) (6) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t21 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 11))))) := A1.Dn K O x hD (4) (w + 6) (4) (5) (6) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t22 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 12)) (Zs K x (w + 14))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 13))))) := A1.Dn K O x hD (4) (w + 8) (4) (5) (6) (w + 12) (w + 13) (w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t23 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 8))))) := A1.Dn K O x hD (5) (w + 2) (5) (6) (7) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t24 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 10))))) := A1.Dn K O x hD (5) (w + 4) (5) (6) (7) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t25 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 12))))) := A1.Dn K O x hD (5) (w + 6) (5) (6) (7) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t26 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (w + 7))))) := A1.Dn K O x hD (6) (w) (6) (7) (8) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t27 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (w + 9))))) := A1.Dn K O x hD (6) (w + 2) (6) (7) (8) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t28 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (w + 11))))) := A1.Dn K O x hD (6) (w + 4) (6) (7) (8) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t29 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 12)) (Zs K x (w + 14))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (w + 13))))) := A1.Dn K O x hD (6) (w + 6) (6) (7) (8) (w + 12) (w + 13) (w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add  -- (+351 chars; full line in the Zenodo source)
          | succ i =>
            cases i with
            | zero =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (Zs K x (10))) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))  -- (+19 chars; full line in the Zenodo source)
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (3))))) := A1.Dn K O x hD (1) (1) (1) (2) (3) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (7))))) := A1.Dn K O x hD (5) (1) (5) (6) (7) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (9))))) := A1.Dn K O x hD (7) (1) (7) (8) (9) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (Zs K x (11))) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (  -- (+22 chars; full line in the Zenodo source)
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (8))))) := A1.Dn K O x hD (1) (6) (1) (2) (3) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (10))))) := A1.Dn K O x hD (1) (8) (1) (2) (3) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (9))))) := A1.Dn K O x hD (2) (6) (2) (3) (4) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (10))))) := A1.Dn K O x hD (3) (6) (3) (4) (5) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (8))))) := A1.Dn K O x hD (5) (2) (5) (6) (7) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (10))))) := A1.Dn K O x hD (5) (4) (5) (6) (7) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (9))))) := A1.Dn K O x hD (6) (2) (6) (7) (8) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (10))))) := A1.Dn K O x hD (7) (2) (7) (8) (9) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) t13) t14) t15) (b  -- (+11 chars; full line in the Zenodo source)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (Zs K x (11)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10))) (Zs K x (12))) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K   -- (+25 chars; full line in the Zenodo source)
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (11))))) := A1.Dn K O x hD (1) (9) (1) (2) (3) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (10))))) := A1.Dn K O x hD (2) (7) (2) (3) (4) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (11))))) := A1.Dn K O x hD (3) (7) (3) (4) (5) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (7))))) := A1.Dn K O x hD (5) (1) (5) (6) (7) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t17 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t18 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (11))))) := A1.Dn K O x hD (5) (5) (5) (6) (7) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t19 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))))) := A1.Dn K O x hD (6) (3) (6) (7) (8) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t20 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (9))))) := A1.Dn K O x hD (7) (1) (7) (8) (9) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t21 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (11))))) := A1.Dn K O x hD (7) (3) (7) (8) (9) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K  -- (+157 chars; full line in the Zenodo source)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))) (Zs K x (12)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (Zs K x (11))) (Zs K x (13))) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs  -- (+28 chars; full line in the Zenodo source)
                      have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (8))))) := A1.Dn K O x hD (1) (6) (1) (2) (3) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (10))))) := A1.Dn K O x hD (1) (8) (1) (2) (3) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (12))))) := A1.Dn K O x hD (1) (10) (1) (2) (3) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (9))))) := A1.Dn K O x hD (2) (6) (2) (3) (4) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (11))))) := A1.Dn K O x hD (2) (8) (2) (3) (4) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (10))))) := A1.Dn K O x hD (3) (6) (3) (4) (5) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (10))))) := A1.Dn K O x hD (3) (6) (3) (4) (5) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (12))))) := A1.Dn K O x hD (3) (8) (3) (4) (5) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (11))))) := A1.Dn K O x hD (4) (6) (4) (5) (6) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t17 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (8))))) := A1.Dn K O x hD (5) (2) (5) (6) (7) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t18 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (10))))) := A1.Dn K O x hD (5) (4) (5) (6) (7) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t19 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (10))))) := A1.Dn K O x hD (5) (4) (5) (6) (7) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t20 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (12))))) := A1.Dn K O x hD (5) (6) (5) (6) (7) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t21 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (9))))) := A1.Dn K O x hD (6) (2) (6) (7) (8) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t22 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (11))))) := A1.Dn K O x hD (6) (4) (6) (7) (8) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t23 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (10))))) := A1.Dn K O x hD (7) (2) (7) (8) (9) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t24 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (12))))) := A1.Dn K O x hD (7) (4) (7) (8) (9) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add  -- (+231 chars; full line in the Zenodo source)
                    | succ w =>
                      cases w with
                      | zero =>
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (K.add (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (11))) (Zs K x (13)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))) (Zs K x (12))) (Zs K x (14))) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4)))   -- (+31 chars; full line in the Zenodo source)
                        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (11))))) := A1.Dn K O x hD (1) (9) (1) (2) (3) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (12)) (Zs K x (14))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (13))))) := A1.Dn K O x hD (1) (11) (1) (2) (3) (12) (13) (14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (10))))) := A1.Dn K O x hD (2) (7) (2) (3) (4) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (12))))) := A1.Dn K O x hD (2) (9) (2) (3) (4) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (11))))) := A1.Dn K O x hD (3) (7) (3) (4) (5) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (11))))) := A1.Dn K O x hD (3) (7) (3) (4) (5) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (12)) (Zs K x (14))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (13))))) := A1.Dn K O x hD (3) (9) (3) (4) (5) (12) (13) (14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (12))))) := A1.Dn K O x hD (4) (7) (4) (5) (6) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t17 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (7))))) := A1.Dn K O x hD (5) (1) (5) (6) (7) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t18 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t19 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t20 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (11))))) := A1.Dn K O x hD (5) (5) (5) (6) (7) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t21 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (11))))) := A1.Dn K O x hD (5) (5) (5) (6) (7) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t22 : O.le K.zero (K.add (K.mul (K.add (Zs K x (12)) (Zs K x (14))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (13))))) := A1.Dn K O x hD (5) (7) (5) (6) (7) (12) (13) (14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t23 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))))) := A1.Dn K O x hD (6) (3) (6) (7) (8) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t24 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (12))))) := A1.Dn K O x hD (6) (5) (6) (7) (8) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t25 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (9))))) := A1.Dn K O x hD (7) (1) (7) (8) (9) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t26 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (11))))) := A1.Dn K O x hD (7) (3) (7) (8) (9) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t27 : O.le K.zero (K.add (K.mul (K.add (Zs K x (12)) (Zs K x (14))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (13))))) := A1.Dn K O x hD (7) (5) (7) (8) (9) (12) (13) (14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_a  -- (+305 chars; full line in the Zenodo source)
                      | succ w =>
                        rw [show 0 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (K.add (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (w + 12))) (Zs K x (w + 14)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (w + 11))) (Zs K x (w + 13))) (Zs K x (w + 15))) (K.add (K.a  -- (+68 chars; full line in the Zenodo source)
                        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 10))))) := A1.Dn K O x hD (1) (w + 8) (1) (2) (3) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 12))))) := A1.Dn K O x hD (1) (w + 10) (1) (2) (3) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 13)) (Zs K x (w + 15))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 14))))) := A1.Dn K O x hD (1) (w + 12) (1) (2) (3) (w + 13) (w + 14) (w + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 11))))) := A1.Dn K O x hD (2) (w + 8) (2) (3) (4) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 12)) (Zs K x (w + 14))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 13))))) := A1.Dn K O x hD (2) (w + 10) (2) (3) (4) (w + 12) (w + 13) (w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 8))))) := A1.Dn K O x hD (3) (w + 4) (3) (4) (5) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 12))))) := A1.Dn K O x hD (3) (w + 8) (3) (4) (5) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 12))))) := A1.Dn K O x hD (3) (w + 8) (3) (4) (5) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 13)) (Zs K x (w + 15))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 14))))) := A1.Dn K O x hD (3) (w + 10) (3) (4) (5) (w + 13) (w + 14) (w + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 9))))) := A1.Dn K O x hD (4) (w + 4) (4) (5) (6) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 11))))) := A1.Dn K O x hD (4) (w + 6) (4) (5) (6) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 11))))) := A1.Dn K O x hD (4) (w + 6) (4) (5) (6) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 12)) (Zs K x (w + 14))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 13))))) := A1.Dn K O x hD (4) (w + 8) (4) (5) (6) (w + 12) (w + 13) (w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t17 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 8))))) := A1.Dn K O x hD (5) (w + 2) (5) (6) (7) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t18 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 10))))) := A1.Dn K O x hD (5) (w + 4) (5) (6) (7) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t19 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 10))))) := A1.Dn K O x hD (5) (w + 4) (5) (6) (7) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t20 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 12))))) := A1.Dn K O x hD (5) (w + 6) (5) (6) (7) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t21 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 12))))) := A1.Dn K O x hD (5) (w + 6) (5) (6) (7) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t22 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 13)) (Zs K x (w + 15))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 14))))) := A1.Dn K O x hD (5) (w + 8) (5) (6) (7) (w + 13) (w + 14) (w + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t23 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (w + 9))))) := A1.Dn K O x hD (6) (w + 2) (6) (7) (8) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t24 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (w + 11))))) := A1.Dn K O x hD (6) (w + 4) (6) (7) (8) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t25 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 12)) (Zs K x (w + 14))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (w + 13))))) := A1.Dn K O x hD (6) (w + 6) (6) (7) (8) (w + 12) (w + 13) (w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t26 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (w + 8))))) := A1.Dn K O x hD (7) (w) (7) (8) (9) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t27 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (w + 10))))) := A1.Dn K O x hD (7) (w + 2) (7) (8) (9) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t28 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (w + 12))))) := A1.Dn K O x hD (7) (w + 4) (7) (8) (9) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t29 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 13)) (Zs K x (w + 15))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (w + 14))))) := A1.Dn K O x hD (7) (w + 6) (7) (8) (9) (w + 13) (w + 14) (w + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_a  -- (+353 chars; full line in the Zenodo source)
            | succ a =>
              cases w with
              | zero =>
                rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 = a + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 6))) (Zs K x (a + 8))) (Zs K x (a + 10))) (K.add (K.add (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))) (Zs K x (a + 10)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))) (Zs K x (a + 9))) (Zs K x (a + 11))) (K  -- (+93 chars; full line in the Zenodo source)
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 4))))) := A1.Dn K O x hD (a + 2) (1) (a + 2) (a + 3) (a + 4) (a + 3) (a + 4) (a + 5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 6))))) := A1.Dn K O x hD (a + 2) (3) (a + 2) (a + 3) (a + 4) (a + 5) (a + 6) (a + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 2) (5) (a + 2) (a + 3) (a + 4) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 2) (7) (a + 2) (a + 3) (a + 4) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 6))))) := A1.Dn K O x hD (a + 4) (1) (a + 4) (a + 5) (a + 6) (a + 5) (a + 6) (a + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 4) (3) (a + 4) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 4) (5) (a + 4) (a + 5) (a + 6) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 6) (1) (a + 6) (a + 7) (a + 8) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 6) (3) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 9))) (K.neg (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 8) (1) (a + 8) (a + 9) (a + 10) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1) + 1 = a + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 6))) (Zs K x (a + 8))) (Zs K x (a + 10))) (K.add (K.add (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9))) (Zs K x (a + 11)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))) (Zs K x (a + 10))) (Zs K x (a + 12)))  -- (+96 chars; full line in the Zenodo source)
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 5))))) := A1.Dn K O x hD (a + 2) (2) (a + 2) (a + 3) (a + 4) (a + 4) (a + 5) (a + 6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 7))))) := A1.Dn K O x hD (a + 2) (4) (a + 2) (a + 3) (a + 4) (a + 6) (a + 7) (a + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 2) (6) (a + 2) (a + 3) (a + 4) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 2) (8) (a + 2) (a + 3) (a + 4) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 6))))) := A1.Dn K O x hD (a + 3) (2) (a + 3) (a + 4) (a + 5) (a + 5) (a + 6) (a + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 3) (4) (a + 3) (a + 4) (a + 5) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 3) (6) (a + 3) (a + 4) (a + 5) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 7))))) := A1.Dn K O x hD (a + 4) (2) (a + 4) (a + 5) (a + 6) (a + 6) (a + 7) (a + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 4) (4) (a + 4) (a + 5) (a + 6) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 4) (6) (a + 4) (a + 5) (a + 6) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 5) (2) (a + 5) (a + 6) (a + 7) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 5) (4) (a + 5) (a + 6) (a + 7) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 6) (2) (a + 6) (a + 7) (a + 8) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 6) (4) (a + 6) (a + 7) (a + 8) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 7) (2) (a + 7) (a + 8) (a + 9) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 9))) (K.neg (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 8) (2) (a + 8) (a + 9) (a + 10) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) t13) t14) t15) (b  -- (+11 chars; full line in the Zenodo source)
                | succ w =>
                  cases w with
                  | zero =>
                    rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1) + 1 = a + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 6))) (Zs K x (a + 8))) (Zs K x (a + 10))) (K.add (K.add (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 10))) (Zs K x (a + 12)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9))) (Zs K x (a + 11))) (Zs K x (a + 13  -- (+99 chars; full line in the Zenodo source)
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 6))))) := A1.Dn K O x hD (a + 2) (3) (a + 2) (a + 3) (a + 4) (a + 5) (a + 6) (a + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 2) (5) (a + 2) (a + 3) (a + 4) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 2) (7) (a + 2) (a + 3) (a + 4) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 2) (9) (a + 2) (a + 3) (a + 4) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))))) := A1.Dn K O x hD (a + 3) (3) (a + 3) (a + 4) (a + 5) (a + 6) (a + 7) (a + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 3) (5) (a + 3) (a + 4) (a + 5) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 3) (7) (a + 3) (a + 4) (a + 5) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 6))))) := A1.Dn K O x hD (a + 4) (1) (a + 4) (a + 5) (a + 6) (a + 5) (a + 6) (a + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 4) (3) (a + 4) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 4) (3) (a + 4) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 4) (5) (a + 4) (a + 5) (a + 6) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 4) (5) (a + 4) (a + 5) (a + 6) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 4) (7) (a + 4) (a + 5) (a + 6) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 5) (3) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 5) (5) (a + 5) (a + 6) (a + 7) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 6) (1) (a + 6) (a + 7) (a + 8) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 6) (3) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t17 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 6) (3) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t18 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 6) (5) (a + 6) (a + 7) (a + 8) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t19 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 7) (3) (a + 7) (a + 8) (a + 9) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t20 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 9))) (K.neg (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 8) (1) (a + 8) (a + 9) (a + 10) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t21 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 9))) (K.neg (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 8) (3) (a + 8) (a + 9) (a + 10) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K  -- (+157 chars; full line in the Zenodo source)
                  | succ w =>
                    cases w with
                    | zero =>
                      rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1) + 1 = a + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 6))) (Zs K x (a + 8))) (Zs K x (a + 10))) (K.add (K.add (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 11))) (Zs K x (a + 13)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 10))) (Zs K x (a + 12))) (Zs K x (a +  -- (+102 chars; full line in the Zenodo source)
                      have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 7))))) := A1.Dn K O x hD (a + 2) (4) (a + 2) (a + 3) (a + 4) (a + 6) (a + 7) (a + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 2) (6) (a + 2) (a + 3) (a + 4) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 2) (8) (a + 2) (a + 3) (a + 4) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 12)) (Zs K x (a + 14))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 13))))) := A1.Dn K O x hD (a + 2) (10) (a + 2) (a + 3) (a + 4) (a + 12) (a + 13) (a + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 3) (4) (a + 3) (a + 4) (a + 5) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 3) (6) (a + 3) (a + 4) (a + 5) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 3) (8) (a + 3) (a + 4) (a + 5) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 7))))) := A1.Dn K O x hD (a + 4) (2) (a + 4) (a + 5) (a + 6) (a + 6) (a + 7) (a + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 4) (4) (a + 4) (a + 5) (a + 6) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 4) (4) (a + 4) (a + 5) (a + 6) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 4) (6) (a + 4) (a + 5) (a + 6) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 4) (6) (a + 4) (a + 5) (a + 6) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 12)) (Zs K x (a + 14))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 13))))) := A1.Dn K O x hD (a + 4) (8) (a + 4) (a + 5) (a + 6) (a + 12) (a + 13) (a + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 5) (2) (a + 5) (a + 6) (a + 7) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 5) (4) (a + 5) (a + 6) (a + 7) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 5) (4) (a + 5) (a + 6) (a + 7) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 5) (6) (a + 5) (a + 6) (a + 7) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t17 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 6) (2) (a + 6) (a + 7) (a + 8) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t18 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 6) (4) (a + 6) (a + 7) (a + 8) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t19 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 6) (4) (a + 6) (a + 7) (a + 8) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t20 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 12)) (Zs K x (a + 14))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 13))))) := A1.Dn K O x hD (a + 6) (6) (a + 6) (a + 7) (a + 8) (a + 12) (a + 13) (a + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t21 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 7) (2) (a + 7) (a + 8) (a + 9) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t22 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 7) (4) (a + 7) (a + 8) (a + 9) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t23 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 9))) (K.neg (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 8) (2) (a + 8) (a + 9) (a + 10) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t24 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 12)) (Zs K x (a + 14))) (Zs K x (a + 9))) (K.neg (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 13))))) := A1.Dn K O x hD (a + 8) (4) (a + 8) (a + 9) (a + 10) (a + 12) (a + 13) (a + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add  -- (+231 chars; full line in the Zenodo source)
                    | succ w =>
                      cases w with
                      | zero =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1 + 1) + 1 = a + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 6))) (Zs K x (a + 8))) (Zs K x (a + 10))) (K.add (K.add (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 12))) (Zs K x (a + 14)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 11))) (Zs K x (a + 13))) (Zs K x (  -- (+105 chars; full line in the Zenodo source)
                        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 2) (5) (a + 2) (a + 3) (a + 4) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 2) (7) (a + 2) (a + 3) (a + 4) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 2) (9) (a + 2) (a + 3) (a + 4) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 13)) (Zs K x (a + 15))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 14))))) := A1.Dn K O x hD (a + 2) (11) (a + 2) (a + 3) (a + 4) (a + 13) (a + 14) (a + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 3) (5) (a + 3) (a + 4) (a + 5) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 3) (7) (a + 3) (a + 4) (a + 5) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 12)) (Zs K x (a + 14))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 13))))) := A1.Dn K O x hD (a + 3) (9) (a + 3) (a + 4) (a + 5) (a + 12) (a + 13) (a + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 4) (3) (a + 4) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 4) (5) (a + 4) (a + 5) (a + 6) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 4) (5) (a + 4) (a + 5) (a + 6) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 4) (7) (a + 4) (a + 5) (a + 6) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 4) (7) (a + 4) (a + 5) (a + 6) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 13)) (Zs K x (a + 15))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 14))))) := A1.Dn K O x hD (a + 4) (9) (a + 4) (a + 5) (a + 6) (a + 13) (a + 14) (a + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 5) (3) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 5) (5) (a + 5) (a + 6) (a + 7) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 5) (5) (a + 5) (a + 6) (a + 7) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 12)) (Zs K x (a + 14))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 13))))) := A1.Dn K O x hD (a + 5) (7) (a + 5) (a + 6) (a + 7) (a + 12) (a + 13) (a + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t17 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 6) (1) (a + 6) (a + 7) (a + 8) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t18 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 6) (3) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t19 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 6) (3) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t20 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 6) (5) (a + 6) (a + 7) (a + 8) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t21 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 6) (5) (a + 6) (a + 7) (a + 8) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t22 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 13)) (Zs K x (a + 15))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 14))))) := A1.Dn K O x hD (a + 6) (7) (a + 6) (a + 7) (a + 8) (a + 13) (a + 14) (a + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t23 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 7) (3) (a + 7) (a + 8) (a + 9) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t24 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 12)) (Zs K x (a + 14))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 13))))) := A1.Dn K O x hD (a + 7) (5) (a + 7) (a + 8) (a + 9) (a + 12) (a + 13) (a + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t25 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 9))) (K.neg (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 8) (1) (a + 8) (a + 9) (a + 10) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t26 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 9))) (K.neg (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 8) (3) (a + 8) (a + 9) (a + 10) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t27 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 13)) (Zs K x (a + 15))) (Zs K x (a + 9))) (K.neg (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 14))))) := A1.Dn K O x hD (a + 8) (5) (a + 8) (a + 9) (a + 10) (a + 13) (a + 14) (a + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_a  -- (+305 chars; full line in the Zenodo source)
                      | succ w =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = a + w + 12 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + 6))) (Zs K x (a + 8))) (Zs K x (a + 10))) (K.add (K.add (K.add (Zs K x (a + w + 9)) (Zs K x (a + w + 11))) (Zs K x (a + w + 13))) (Zs K x (a + w + 15)))) (K.neg (K.mul (K.add (K.add (K.add (K.add (Zs K x (a + w + 8)) (Zs K x (a + w + 10))) (Zs K x (a + w + 12)))  -- (+142 chars; full line in the Zenodo source)
                        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 8)) (Zs K x (a + w + 10))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + w + 9))))) := A1.Dn K O x hD (a + 2) (w + 6) (a + 2) (a + 3) (a + 4) (a + w + 8) (a + w + 9) (a + w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 10)) (Zs K x (a + w + 12))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + w + 11))))) := A1.Dn K O x hD (a + 2) (w + 8) (a + 2) (a + 3) (a + 4) (a + w + 10) (a + w + 11) (a + w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 12)) (Zs K x (a + w + 14))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + w + 13))))) := A1.Dn K O x hD (a + 2) (w + 10) (a + 2) (a + 3) (a + 4) (a + w + 12) (a + w + 13) (a + w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 14)) (Zs K x (a + w + 16))) (Zs K x (a + 3))) (K.neg (K.mul (K.add (Zs K x (a + 2)) (Zs K x (a + 4))) (Zs K x (a + w + 15))))) := A1.Dn K O x hD (a + 2) (w + 12) (a + 2) (a + 3) (a + 4) (a + w + 14) (a + w + 15) (a + w + 16) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 9)) (Zs K x (a + w + 11))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + w + 10))))) := A1.Dn K O x hD (a + 3) (w + 6) (a + 3) (a + 4) (a + 5) (a + w + 9) (a + w + 10) (a + w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 11)) (Zs K x (a + w + 13))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + w + 12))))) := A1.Dn K O x hD (a + 3) (w + 8) (a + 3) (a + 4) (a + 5) (a + w + 11) (a + w + 12) (a + w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 13)) (Zs K x (a + w + 15))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + w + 14))))) := A1.Dn K O x hD (a + 3) (w + 10) (a + 3) (a + 4) (a + 5) (a + w + 13) (a + w + 14) (a + w + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 8)) (Zs K x (a + w + 10))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + w + 9))))) := A1.Dn K O x hD (a + 4) (w + 4) (a + 4) (a + 5) (a + 6) (a + w + 8) (a + w + 9) (a + w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 10)) (Zs K x (a + w + 12))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + w + 11))))) := A1.Dn K O x hD (a + 4) (w + 6) (a + 4) (a + 5) (a + 6) (a + w + 10) (a + w + 11) (a + w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 10)) (Zs K x (a + w + 12))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + w + 11))))) := A1.Dn K O x hD (a + 4) (w + 6) (a + 4) (a + 5) (a + 6) (a + w + 10) (a + w + 11) (a + w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 12)) (Zs K x (a + w + 14))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + w + 13))))) := A1.Dn K O x hD (a + 4) (w + 8) (a + 4) (a + 5) (a + 6) (a + w + 12) (a + w + 13) (a + w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 12)) (Zs K x (a + w + 14))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + w + 13))))) := A1.Dn K O x hD (a + 4) (w + 8) (a + 4) (a + 5) (a + 6) (a + w + 12) (a + w + 13) (a + w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 14)) (Zs K x (a + w + 16))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + w + 15))))) := A1.Dn K O x hD (a + 4) (w + 10) (a + 4) (a + 5) (a + 6) (a + w + 14) (a + w + 15) (a + w + 16) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 9)) (Zs K x (a + w + 11))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + w + 10))))) := A1.Dn K O x hD (a + 5) (w + 4) (a + 5) (a + 6) (a + 7) (a + w + 9) (a + w + 10) (a + w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 11)) (Zs K x (a + w + 13))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + w + 12))))) := A1.Dn K O x hD (a + 5) (w + 6) (a + 5) (a + 6) (a + 7) (a + w + 11) (a + w + 12) (a + w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t15 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 11)) (Zs K x (a + w + 13))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + w + 12))))) := A1.Dn K O x hD (a + 5) (w + 6) (a + 5) (a + 6) (a + 7) (a + w + 11) (a + w + 12) (a + w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t16 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 13)) (Zs K x (a + w + 15))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + w + 14))))) := A1.Dn K O x hD (a + 5) (w + 8) (a + 5) (a + 6) (a + 7) (a + w + 13) (a + w + 14) (a + w + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t17 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 8)) (Zs K x (a + w + 10))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + w + 9))))) := A1.Dn K O x hD (a + 6) (w + 2) (a + 6) (a + 7) (a + 8) (a + w + 8) (a + w + 9) (a + w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t18 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 10)) (Zs K x (a + w + 12))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + w + 11))))) := A1.Dn K O x hD (a + 6) (w + 4) (a + 6) (a + 7) (a + 8) (a + w + 10) (a + w + 11) (a + w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t19 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 10)) (Zs K x (a + w + 12))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + w + 11))))) := A1.Dn K O x hD (a + 6) (w + 4) (a + 6) (a + 7) (a + 8) (a + w + 10) (a + w + 11) (a + w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t20 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 12)) (Zs K x (a + w + 14))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + w + 13))))) := A1.Dn K O x hD (a + 6) (w + 6) (a + 6) (a + 7) (a + 8) (a + w + 12) (a + w + 13) (a + w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t21 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 12)) (Zs K x (a + w + 14))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + w + 13))))) := A1.Dn K O x hD (a + 6) (w + 6) (a + 6) (a + 7) (a + 8) (a + w + 12) (a + w + 13) (a + w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t22 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 14)) (Zs K x (a + w + 16))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + w + 15))))) := A1.Dn K O x hD (a + 6) (w + 8) (a + 6) (a + 7) (a + 8) (a + w + 14) (a + w + 15) (a + w + 16) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t23 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 9)) (Zs K x (a + w + 11))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + w + 10))))) := A1.Dn K O x hD (a + 7) (w + 2) (a + 7) (a + 8) (a + 9) (a + w + 9) (a + w + 10) (a + w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t24 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 11)) (Zs K x (a + w + 13))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + w + 12))))) := A1.Dn K O x hD (a + 7) (w + 4) (a + 7) (a + 8) (a + 9) (a + w + 11) (a + w + 12) (a + w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t25 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 13)) (Zs K x (a + w + 15))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + w + 14))))) := A1.Dn K O x hD (a + 7) (w + 6) (a + 7) (a + 8) (a + 9) (a + w + 13) (a + w + 14) (a + w + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t26 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 8)) (Zs K x (a + w + 10))) (Zs K x (a + 9))) (K.neg (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + w + 9))))) := A1.Dn K O x hD (a + 8) (w) (a + 8) (a + 9) (a + 10) (a + w + 8) (a + w + 9) (a + w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t27 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 10)) (Zs K x (a + w + 12))) (Zs K x (a + 9))) (K.neg (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + w + 11))))) := A1.Dn K O x hD (a + 8) (w + 2) (a + 8) (a + 9) (a + 10) (a + w + 10) (a + w + 11) (a + w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t28 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 12)) (Zs K x (a + w + 14))) (Zs K x (a + 9))) (K.neg (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + w + 13))))) := A1.Dn K O x hD (a + 8) (w + 4) (a + 8) (a + 9) (a + 10) (a + w + 12) (a + w + 13) (a + w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t29 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 14)) (Zs K x (a + w + 16))) (Zs K x (a + 9))) (K.neg (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + w + 15))))) := A1.Dn K O x hD (a + 8) (w + 6) (a + 8) (a + 9) (a + 10) (a + w + 14) (a + w + 15) (a + w + 16) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_a  -- (+353 chars; full line in the Zenodo source)

include hx hT hD h1 h10 in
theorem sg8 (i w : Nat) : O.le K.zero (Lagrange.minor K (Zs K x) (Zs K (c1v K x)) i (i + w + 1)) := by
  unfold Lagrange.minor
  cases i with
  | zero =>
    cases w with
    | zero =>
      show O.le K.zero (K.add (K.mul K.zero (K.add K.zero (Zs K x (2)))) (K.neg (K.mul (Zs K x (1)) K.zero)))
      exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
    | succ w =>
      cases w with
      | zero =>
        show O.le K.zero (K.add (K.mul K.zero (K.add (Zs K x (1)) (Zs K x (3)))) (K.neg (K.mul (Zs K x (2)) K.zero)))
        exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.add (K.mul K.zero (K.add (Zs K x (2)) (Zs K x (4)))) (K.neg (K.mul (Zs K x (3)) K.zero)))
          exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.add (K.mul K.zero (K.add (Zs K x (3)) (Zs K x (5)))) (K.neg (K.mul (Zs K x (4)) K.zero)))
            exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.add (K.mul K.zero (K.add (Zs K x (4)) (Zs K x (6)))) (K.neg (K.mul (Zs K x (5)) K.zero)))
              exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
            | succ w =>
              rw [show 0 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 6 by lib_nat]
              show O.le K.zero (K.add (K.mul K.zero (K.add (Zs K x (w + 5)) (Zs K x (w + 7)))) (K.neg (K.mul (Zs K x (w + 6)) K.zero)))
              exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
  | succ i =>
    cases i with
    | zero =>
      cases w with
      | zero =>
        show O.le K.zero (K.add (K.mul (Zs K x (1)) (K.add (Zs K x (1)) (Zs K x (3)))) (K.neg (K.mul (Zs K x (2)) (K.add K.zero (Zs K x (2))))))
        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (2))))) := A1.Dn K O x hD (0) (1) (0) (1) (2) (1) (2) (3) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.add (K.mul (Zs K x (1)) (K.add (Zs K x (2)) (Zs K x (4)))) (K.neg (K.mul (Zs K x (3)) (K.add K.zero (Zs K x (2))))))
          have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (3))))) := A1.Dn K O x hD (0) (2) (0) (1) (2) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.add (K.mul (Zs K x (1)) (K.add (Zs K x (3)) (Zs K x (5)))) (K.neg (K.mul (Zs K x (4)) (K.add K.zero (Zs K x (2))))))
            have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (4))))) := A1.Dn K O x hD (0) (3) (0) (1) (2) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.add (K.mul (Zs K x (1)) (K.add (Zs K x (4)) (Zs K x (6)))) (K.neg (K.mul (Zs K x (5)) (K.add K.zero (Zs K x (2))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (5))))) := A1.Dn K O x hD (0) (4) (0) (1) (2) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.add (K.mul (Zs K x (1)) (K.add (Zs K x (5)) (Zs K x (7)))) (K.neg (K.mul (Zs K x (6)) (K.add K.zero (Zs K x (2))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                rw [show 0 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 7 by lib_nat]
                show O.le K.zero (K.add (K.mul (Zs K x (1)) (K.add (Zs K x (w + 6)) (Zs K x (w + 8)))) (K.neg (K.mul (Zs K x (w + 7)) (K.add K.zero (Zs K x (2))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 7))))) := A1.Dn K O x hD (0) (w + 6) (0) (1) (2) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
    | succ i =>
      cases i with
      | zero =>
        cases w with
        | zero =>
          show O.le K.zero (K.add (K.mul (Zs K x (2)) (K.add (Zs K x (2)) (Zs K x (4)))) (K.neg (K.mul (Zs K x (3)) (K.add (Zs K x (1)) (Zs K x (3))))))
          have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (3))))) := A1.Dn K O x hD (1) (1) (1) (2) (3) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.add (K.mul (Zs K x (2)) (K.add (Zs K x (3)) (Zs K x (5)))) (K.neg (K.mul (Zs K x (4)) (K.add (Zs K x (1)) (Zs K x (3))))))
            have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.add (K.mul (Zs K x (2)) (K.add (Zs K x (4)) (Zs K x (6)))) (K.neg (K.mul (Zs K x (5)) (K.add (Zs K x (1)) (Zs K x (3))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.add (K.mul (Zs K x (2)) (K.add (Zs K x (5)) (Zs K x (7)))) (K.neg (K.mul (Zs K x (6)) (K.add (Zs K x (1)) (Zs K x (3))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.add (K.mul (Zs K x (2)) (K.add (Zs K x (6)) (Zs K x (8)))) (K.neg (K.mul (Zs K x (7)) (K.add (Zs K x (1)) (Zs K x (3))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  rw [show 0 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 8 by lib_nat]
                  show O.le K.zero (K.add (K.mul (Zs K x (2)) (K.add (Zs K x (w + 7)) (Zs K x (w + 9)))) (K.neg (K.mul (Zs K x (w + 8)) (K.add (Zs K x (1)) (Zs K x (3))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ i =>
        cases i with
        | zero =>
          cases w with
          | zero =>
            show O.le K.zero (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (3)) (Zs K x (5)))) (K.neg (K.mul (Zs K x (4)) (K.add (Zs K x (2)) (Zs K x (4))))))
            have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (4)) (Zs K x (6)))) (K.neg (K.mul (Zs K x (5)) (K.add (Zs K x (2)) (Zs K x (4))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (5)) (Zs K x (7)))) (K.neg (K.mul (Zs K x (6)) (K.add (Zs K x (2)) (Zs K x (4))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (6)) (Zs K x (8)))) (K.neg (K.mul (Zs K x (7)) (K.add (Zs K x (2)) (Zs K x (4))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (7)) (Zs K x (9)))) (K.neg (K.mul (Zs K x (8)) (K.add (Zs K x (2)) (Zs K x (4))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    rw [show 0 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 9 by lib_nat]
                    show O.le K.zero (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (w + 8)) (Zs K x (w + 10)))) (K.neg (K.mul (Zs K x (w + 9)) (K.add (Zs K x (2)) (Zs K x (4))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ i =>
          cases i with
          | zero =>
            cases w with
            | zero =>
              show O.le K.zero (K.add (K.mul (Zs K x (4)) (K.add (Zs K x (4)) (Zs K x (6)))) (K.neg (K.mul (Zs K x (5)) (K.add (Zs K x (3)) (Zs K x (5))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.add (K.mul (Zs K x (4)) (K.add (Zs K x (5)) (Zs K x (7)))) (K.neg (K.mul (Zs K x (6)) (K.add (Zs K x (3)) (Zs K x (5))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.add (K.mul (Zs K x (4)) (K.add (Zs K x (6)) (Zs K x (8)))) (K.neg (K.mul (Zs K x (7)) (K.add (Zs K x (3)) (Zs K x (5))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.add (K.mul (Zs K x (4)) (K.add (Zs K x (7)) (Zs K x (9)))) (K.neg (K.mul (Zs K x (8)) (K.add (Zs K x (3)) (Zs K x (5))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.add (K.mul (Zs K x (4)) (K.add (Zs K x (8)) (Zs K x (10)))) (K.neg (K.mul (Zs K x (9)) (K.add (Zs K x (3)) (Zs K x (5))))))
                      have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      rw [show 0 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 10 by lib_nat]
                      show O.le K.zero (K.add (K.mul (Zs K x (4)) (K.add (Zs K x (w + 9)) (Zs K x (w + 11)))) (K.neg (K.mul (Zs K x (w + 10)) (K.add (Zs K x (3)) (Zs K x (5))))))
                      have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ i =>
            cases i with
            | zero =>
              cases w with
              | zero =>
                show O.le K.zero (K.add (K.mul (Zs K x (5)) (K.add (Zs K x (5)) (Zs K x (7)))) (K.neg (K.mul (Zs K x (6)) (K.add (Zs K x (4)) (Zs K x (6))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.add (K.mul (Zs K x (5)) (K.add (Zs K x (6)) (Zs K x (8)))) (K.neg (K.mul (Zs K x (7)) (K.add (Zs K x (4)) (Zs K x (6))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.add (K.mul (Zs K x (5)) (K.add (Zs K x (7)) (Zs K x (9)))) (K.neg (K.mul (Zs K x (8)) (K.add (Zs K x (4)) (Zs K x (6))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.add (K.mul (Zs K x (5)) (K.add (Zs K x (8)) (Zs K x (10)))) (K.neg (K.mul (Zs K x (9)) (K.add (Zs K x (4)) (Zs K x (6))))))
                      have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        show O.le K.zero (K.add (K.mul (Zs K x (5)) (K.add (Zs K x (9)) (Zs K x (11)))) (K.neg (K.mul (Zs K x (10)) (K.add (Zs K x (4)) (Zs K x (6))))))
                        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show 0 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 11 by lib_nat]
                        show O.le K.zero (K.add (K.mul (Zs K x (5)) (K.add (Zs K x (w + 10)) (Zs K x (w + 12)))) (K.neg (K.mul (Zs K x (w + 11)) (K.add (Zs K x (4)) (Zs K x (6))))))
                        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 11))))) := A1.Dn K O x hD (4) (w + 6) (4) (5) (6) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ a =>
              cases w with
              | zero =>
                rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 = a + 7 by lib_nat]
                show O.le K.zero (K.add (K.mul (Zs K x (a + 6)) (K.add (Zs K x (a + 6)) (Zs K x (a + 8)))) (K.neg (K.mul (Zs K x (a + 7)) (K.add (Zs K x (a + 5)) (Zs K x (a + 7))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 7))))) := A1.Dn K O x hD (a + 5) (1) (a + 5) (a + 6) (a + 7) (a + 6) (a + 7) (a + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1) + 1 = a + 8 by lib_nat]
                  show O.le K.zero (K.add (K.mul (Zs K x (a + 6)) (K.add (Zs K x (a + 7)) (Zs K x (a + 9)))) (K.neg (K.mul (Zs K x (a + 8)) (K.add (Zs K x (a + 5)) (Zs K x (a + 7))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 5) (2) (a + 5) (a + 6) (a + 7) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1) + 1 = a + 9 by lib_nat]
                    show O.le K.zero (K.add (K.mul (Zs K x (a + 6)) (K.add (Zs K x (a + 8)) (Zs K x (a + 10)))) (K.neg (K.mul (Zs K x (a + 9)) (K.add (Zs K x (a + 5)) (Zs K x (a + 7))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 5) (3) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1) + 1 = a + 10 by lib_nat]
                      show O.le K.zero (K.add (K.mul (Zs K x (a + 6)) (K.add (Zs K x (a + 9)) (Zs K x (a + 11)))) (K.neg (K.mul (Zs K x (a + 10)) (K.add (Zs K x (a + 5)) (Zs K x (a + 7))))))
                      have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 5) (4) (a + 5) (a + 6) (a + 7) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1 + 1) + 1 = a + 11 by lib_nat]
                        show O.le K.zero (K.add (K.mul (Zs K x (a + 6)) (K.add (Zs K x (a + 10)) (Zs K x (a + 12)))) (K.neg (K.mul (Zs K x (a + 11)) (K.add (Zs K x (a + 5)) (Zs K x (a + 7))))))
                        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 5) (5) (a + 5) (a + 6) (a + 7) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = a + w + 12 by lib_nat]
                        show O.le K.zero (K.add (K.mul (Zs K x (a + 6)) (K.add (Zs K x (a + w + 11)) (Zs K x (a + w + 13)))) (K.neg (K.mul (Zs K x (a + w + 12)) (K.add (Zs K x (a + 5)) (Zs K x (a + 7))))))
                        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 11)) (Zs K x (a + w + 13))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + w + 12))))) := A1.Dn K O x hD (a + 5) (w + 6) (a + 5) (a + 6) (a + 7) (a + w + 11) (a + w + 12) (a + w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)

include hx hT hD h1 h10 in
theorem sg9 (i w : Nat) : O.le K.zero (Lagrange.minor K (fun i => x (i + 3)) (fun i => x (i + 2)) i (i + w + 1)) := by
  unfold Lagrange.minor
  cases i with
  | zero =>
    cases w with
    | zero =>
      show O.le K.zero (K.add (K.mul (Zs K x (4)) (Zs K x (4))) (K.neg (K.mul (Zs K x (5)) (Zs K x (3)))))
      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4)))))) := by
        have h := A2.mk K O x hT (1) (2) (0)
        try rw [show (2) + (0) + 1 + (1) = 4 by lib_nat] at h
        try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
        try rw [show (2) + (1) = 3 by lib_nat] at h
        exact A2.nn_of_nonpos_neg K O _ h
      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
    | succ w =>
      cases w with
      | zero =>
        show O.le K.zero (K.add (K.mul (Zs K x (4)) (Zs K x (5))) (K.neg (K.mul (Zs K x (6)) (Zs K x (3)))))
        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (6))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
          have h := A2.mk K O x hT (2) (2) (0)
          try rw [show (2) + (0) + 1 + (2) = 5 by lib_nat] at h
          try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
          try rw [show (2) + (2) = 4 by lib_nat] at h
          exact A2.nn_of_nonpos_neg K O _ h
        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.add (K.mul (Zs K x (4)) (Zs K x (6))) (K.neg (K.mul (Zs K x (7)) (Zs K x (3)))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
            have h := A2.mk K O x hT (3) (2) (0)
            try rw [show (2) + (0) + 1 + (3) = 6 by lib_nat] at h
            try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
            try rw [show (2) + (3) = 5 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.add (K.mul (Zs K x (4)) (Zs K x (7))) (K.neg (K.mul (Zs K x (8)) (Zs K x (3)))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (4)) (Zs K x (7)))))) := by
              have h := A2.mk K O x hT (4) (2) (0)
              try rw [show (2) + (0) + 1 + (4) = 7 by lib_nat] at h
              try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
              try rw [show (2) + (4) = 6 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.add (K.mul (Zs K x (4)) (Zs K x (8))) (K.neg (K.mul (Zs K x (9)) (Zs K x (3)))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (4)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (5) (2) (0)
                try rw [show (2) + (0) + 1 + (5) = 8 by lib_nat] at h
                try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                try rw [show (2) + (5) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              rw [show 0 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 6 by lib_nat]
              show O.le K.zero (K.add (K.mul (Zs K x (4)) (Zs K x (w + 9))) (K.neg (K.mul (Zs K x (w + 10)) (Zs K x (3)))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (4)))))) := by
                have h := A2.mk K O x hT (1) (2) (w + 5)
                try rw [show (2) + (w + 5) + 1 + (1) = w + 9 by lib_nat] at h
                try rw [show (2) + (w + 5) + 1 = w + 8 by lib_nat] at h
                try rw [show (2) + (1) = 3 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
  | succ i =>
    cases i with
    | zero =>
      cases w with
      | zero =>
        show O.le K.zero (K.add (K.mul (Zs K x (5)) (Zs K x (5))) (K.neg (K.mul (Zs K x (6)) (Zs K x (4)))))
        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5)))))) := by
          have h := A2.mk K O x hT (1) (3) (0)
          try rw [show (3) + (0) + 1 + (1) = 5 by lib_nat] at h
          try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
          try rw [show (3) + (1) = 4 by lib_nat] at h
          exact A2.nn_of_nonpos_neg K O _ h
        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.add (K.mul (Zs K x (5)) (Zs K x (6))) (K.neg (K.mul (Zs K x (7)) (Zs K x (4)))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (7))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6)))))) := by
            have h := A2.mk K O x hT (2) (3) (0)
            try rw [show (3) + (0) + 1 + (2) = 6 by lib_nat] at h
            try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
            try rw [show (3) + (2) = 5 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.add (K.mul (Zs K x (5)) (Zs K x (7))) (K.neg (K.mul (Zs K x (8)) (Zs K x (4)))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (8))) (K.neg (K.mul (Zs K x (5)) (Zs K x (7)))))) := by
              have h := A2.mk K O x hT (3) (3) (0)
              try rw [show (3) + (0) + 1 + (3) = 7 by lib_nat] at h
              try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
              try rw [show (3) + (3) = 6 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.add (K.mul (Zs K x (5)) (Zs K x (8))) (K.neg (K.mul (Zs K x (9)) (Zs K x (4)))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (9))) (K.neg (K.mul (Zs K x (5)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (4) (3) (0)
                try rw [show (3) + (0) + 1 + (4) = 8 by lib_nat] at h
                try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                try rw [show (3) + (4) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.add (K.mul (Zs K x (5)) (Zs K x (9))) (K.neg (K.mul (Zs K x (10)) (Zs K x (4)))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (10))) (K.neg (K.mul (Zs K x (5)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (5) (3) (0)
                  try rw [show (3) + (0) + 1 + (5) = 9 by lib_nat] at h
                  try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                  try rw [show (3) + (5) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                rw [show 0 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 7 by lib_nat]
                show O.le K.zero (K.add (K.mul (Zs K x (5)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (4)))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 10)) (Zs K x (5)))))) := by
                  have h := A2.mk K O x hT (1) (3) (w + 5)
                  try rw [show (3) + (w + 5) + 1 + (1) = w + 10 by lib_nat] at h
                  try rw [show (3) + (w + 5) + 1 = w + 9 by lib_nat] at h
                  try rw [show (3) + (1) = 4 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
    | succ i =>
      cases i with
      | zero =>
        cases w with
        | zero =>
          show O.le K.zero (K.add (K.mul (Zs K x (6)) (Zs K x (6))) (K.neg (K.mul (Zs K x (7)) (Zs K x (5)))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6)))))) := by
            have h := A2.mk K O x hT (1) (4) (0)
            try rw [show (4) + (0) + 1 + (1) = 6 by lib_nat] at h
            try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
            try rw [show (4) + (1) = 5 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.add (K.mul (Zs K x (6)) (Zs K x (7))) (K.neg (K.mul (Zs K x (8)) (Zs K x (5)))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (8))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7)))))) := by
              have h := A2.mk K O x hT (2) (4) (0)
              try rw [show (4) + (0) + 1 + (2) = 7 by lib_nat] at h
              try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
              try rw [show (4) + (2) = 6 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.add (K.mul (Zs K x (6)) (Zs K x (8))) (K.neg (K.mul (Zs K x (9)) (Zs K x (5)))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (9))) (K.neg (K.mul (Zs K x (6)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (3) (4) (0)
                try rw [show (4) + (0) + 1 + (3) = 8 by lib_nat] at h
                try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                try rw [show (4) + (3) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.add (K.mul (Zs K x (6)) (Zs K x (9))) (K.neg (K.mul (Zs K x (10)) (Zs K x (5)))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (10))) (K.neg (K.mul (Zs K x (6)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (4) (4) (0)
                  try rw [show (4) + (0) + 1 + (4) = 9 by lib_nat] at h
                  try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                  try rw [show (4) + (4) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.add (K.mul (Zs K x (6)) (Zs K x (10))) (K.neg (K.mul (Zs K x (11)) (Zs K x (5)))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (11))) (K.neg (K.mul (Zs K x (6)) (Zs K x (10)))))) := by
                    have h := A2.mk K O x hT (5) (4) (0)
                    try rw [show (4) + (0) + 1 + (5) = 10 by lib_nat] at h
                    try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                    try rw [show (4) + (5) = 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  rw [show 0 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 8 by lib_nat]
                  show O.le K.zero (K.add (K.mul (Zs K x (6)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 12)) (Zs K x (5)))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (6)))))) := by
                    have h := A2.mk K O x hT (1) (4) (w + 5)
                    try rw [show (4) + (w + 5) + 1 + (1) = w + 11 by lib_nat] at h
                    try rw [show (4) + (w + 5) + 1 = w + 10 by lib_nat] at h
                    try rw [show (4) + (1) = 5 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ i =>
        cases i with
        | zero =>
          cases w with
          | zero =>
            show O.le K.zero (K.add (K.mul (Zs K x (7)) (Zs K x (7))) (K.neg (K.mul (Zs K x (8)) (Zs K x (6)))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (7)))))) := by
              have h := A2.mk K O x hT (1) (5) (0)
              try rw [show (5) + (0) + 1 + (1) = 7 by lib_nat] at h
              try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
              try rw [show (5) + (1) = 6 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.add (K.mul (Zs K x (7)) (Zs K x (8))) (K.neg (K.mul (Zs K x (9)) (Zs K x (6)))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (9))) (K.neg (K.mul (Zs K x (7)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (2) (5) (0)
                try rw [show (5) + (0) + 1 + (2) = 8 by lib_nat] at h
                try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                try rw [show (5) + (2) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.add (K.mul (Zs K x (7)) (Zs K x (9))) (K.neg (K.mul (Zs K x (10)) (Zs K x (6)))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (10))) (K.neg (K.mul (Zs K x (7)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (3) (5) (0)
                  try rw [show (5) + (0) + 1 + (3) = 9 by lib_nat] at h
                  try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                  try rw [show (5) + (3) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.add (K.mul (Zs K x (7)) (Zs K x (10))) (K.neg (K.mul (Zs K x (11)) (Zs K x (6)))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (11))) (K.neg (K.mul (Zs K x (7)) (Zs K x (10)))))) := by
                    have h := A2.mk K O x hT (4) (5) (0)
                    try rw [show (5) + (0) + 1 + (4) = 10 by lib_nat] at h
                    try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                    try rw [show (5) + (4) = 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.add (K.mul (Zs K x (7)) (Zs K x (11))) (K.neg (K.mul (Zs K x (12)) (Zs K x (6)))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (12))) (K.neg (K.mul (Zs K x (7)) (Zs K x (11)))))) := by
                      have h := A2.mk K O x hT (5) (5) (0)
                      try rw [show (5) + (0) + 1 + (5) = 11 by lib_nat] at h
                      try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                      try rw [show (5) + (5) = 10 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    rw [show 0 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 9 by lib_nat]
                    show O.le K.zero (K.add (K.mul (Zs K x (7)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 13)) (Zs K x (6)))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (w + 13))) (K.neg (K.mul (Zs K x (w + 12)) (Zs K x (7)))))) := by
                      have h := A2.mk K O x hT (1) (5) (w + 5)
                      try rw [show (5) + (w + 5) + 1 + (1) = w + 12 by lib_nat] at h
                      try rw [show (5) + (w + 5) + 1 = w + 11 by lib_nat] at h
                      try rw [show (5) + (1) = 6 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ i =>
          cases i with
          | zero =>
            cases w with
            | zero =>
              show O.le K.zero (K.add (K.mul (Zs K x (8)) (Zs K x (8))) (K.neg (K.mul (Zs K x (9)) (Zs K x (7)))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (1) (6) (0)
                try rw [show (6) + (0) + 1 + (1) = 8 by lib_nat] at h
                try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                try rw [show (6) + (1) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.add (K.mul (Zs K x (8)) (Zs K x (9))) (K.neg (K.mul (Zs K x (10)) (Zs K x (7)))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (10))) (K.neg (K.mul (Zs K x (8)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (2) (6) (0)
                  try rw [show (6) + (0) + 1 + (2) = 9 by lib_nat] at h
                  try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                  try rw [show (6) + (2) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.add (K.mul (Zs K x (8)) (Zs K x (10))) (K.neg (K.mul (Zs K x (11)) (Zs K x (7)))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (11))) (K.neg (K.mul (Zs K x (8)) (Zs K x (10)))))) := by
                    have h := A2.mk K O x hT (3) (6) (0)
                    try rw [show (6) + (0) + 1 + (3) = 10 by lib_nat] at h
                    try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                    try rw [show (6) + (3) = 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.add (K.mul (Zs K x (8)) (Zs K x (11))) (K.neg (K.mul (Zs K x (12)) (Zs K x (7)))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (12))) (K.neg (K.mul (Zs K x (8)) (Zs K x (11)))))) := by
                      have h := A2.mk K O x hT (4) (6) (0)
                      try rw [show (6) + (0) + 1 + (4) = 11 by lib_nat] at h
                      try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                      try rw [show (6) + (4) = 10 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.add (K.mul (Zs K x (8)) (Zs K x (12))) (K.neg (K.mul (Zs K x (13)) (Zs K x (7)))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (13))) (K.neg (K.mul (Zs K x (8)) (Zs K x (12)))))) := by
                        have h := A2.mk K O x hT (5) (6) (0)
                        try rw [show (6) + (0) + 1 + (5) = 12 by lib_nat] at h
                        try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                        try rw [show (6) + (5) = 11 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      rw [show 0 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 10 by lib_nat]
                      show O.le K.zero (K.add (K.mul (Zs K x (8)) (Zs K x (w + 13))) (K.neg (K.mul (Zs K x (w + 14)) (Zs K x (7)))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (w + 14))) (K.neg (K.mul (Zs K x (w + 13)) (Zs K x (8)))))) := by
                        have h := A2.mk K O x hT (1) (6) (w + 5)
                        try rw [show (6) + (w + 5) + 1 + (1) = w + 13 by lib_nat] at h
                        try rw [show (6) + (w + 5) + 1 = w + 12 by lib_nat] at h
                        try rw [show (6) + (1) = 7 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ i =>
            cases i with
            | zero =>
              cases w with
              | zero =>
                show O.le K.zero (K.add (K.mul (Zs K x (9)) (Zs K x (9))) (K.neg (K.mul (Zs K x (10)) (Zs K x (8)))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (10))) (K.neg (K.mul (Zs K x (9)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (1) (7) (0)
                  try rw [show (7) + (0) + 1 + (1) = 9 by lib_nat] at h
                  try rw [show (7) + (0) + 1 = 8 by lib_nat] at h
                  try rw [show (7) + (1) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.add (K.mul (Zs K x (9)) (Zs K x (10))) (K.neg (K.mul (Zs K x (11)) (Zs K x (8)))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (11))) (K.neg (K.mul (Zs K x (9)) (Zs K x (10)))))) := by
                    have h := A2.mk K O x hT (2) (7) (0)
                    try rw [show (7) + (0) + 1 + (2) = 10 by lib_nat] at h
                    try rw [show (7) + (0) + 1 = 8 by lib_nat] at h
                    try rw [show (7) + (2) = 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.add (K.mul (Zs K x (9)) (Zs K x (11))) (K.neg (K.mul (Zs K x (12)) (Zs K x (8)))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (12))) (K.neg (K.mul (Zs K x (9)) (Zs K x (11)))))) := by
                      have h := A2.mk K O x hT (3) (7) (0)
                      try rw [show (7) + (0) + 1 + (3) = 11 by lib_nat] at h
                      try rw [show (7) + (0) + 1 = 8 by lib_nat] at h
                      try rw [show (7) + (3) = 10 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.add (K.mul (Zs K x (9)) (Zs K x (12))) (K.neg (K.mul (Zs K x (13)) (Zs K x (8)))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (13))) (K.neg (K.mul (Zs K x (9)) (Zs K x (12)))))) := by
                        have h := A2.mk K O x hT (4) (7) (0)
                        try rw [show (7) + (0) + 1 + (4) = 12 by lib_nat] at h
                        try rw [show (7) + (0) + 1 = 8 by lib_nat] at h
                        try rw [show (7) + (4) = 11 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        show O.le K.zero (K.add (K.mul (Zs K x (9)) (Zs K x (13))) (K.neg (K.mul (Zs K x (14)) (Zs K x (8)))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (14))) (K.neg (K.mul (Zs K x (9)) (Zs K x (13)))))) := by
                          have h := A2.mk K O x hT (5) (7) (0)
                          try rw [show (7) + (0) + 1 + (5) = 13 by lib_nat] at h
                          try rw [show (7) + (0) + 1 = 8 by lib_nat] at h
                          try rw [show (7) + (5) = 12 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show 0 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 11 by lib_nat]
                        show O.le K.zero (K.add (K.mul (Zs K x (9)) (Zs K x (w + 14))) (K.neg (K.mul (Zs K x (w + 15)) (Zs K x (8)))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (w + 15))) (K.neg (K.mul (Zs K x (w + 14)) (Zs K x (9)))))) := by
                          have h := A2.mk K O x hT (1) (7) (w + 5)
                          try rw [show (7) + (w + 5) + 1 + (1) = w + 14 by lib_nat] at h
                          try rw [show (7) + (w + 5) + 1 = w + 13 by lib_nat] at h
                          try rw [show (7) + (1) = 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ a =>
              cases w with
              | zero =>
                rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 = a + 7 by lib_nat]
                show O.le K.zero (K.add (K.mul (Zs K x (a + 10)) (Zs K x (a + 10))) (K.neg (K.mul (Zs K x (a + 11)) (Zs K x (a + 9)))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 10)))))) := by
                  have h := A2.mk K O x hT (1) (a + 8) (0)
                  try rw [show (a + 8) + (0) + 1 + (1) = a + 10 by lib_nat] at h
                  try rw [show (a + 8) + (0) + 1 = a + 9 by lib_nat] at h
                  try rw [show (a + 8) + (1) = a + 9 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1) + 1 = a + 8 by lib_nat]
                  show O.le K.zero (K.add (K.mul (Zs K x (a + 10)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 12)) (Zs K x (a + 9)))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 11)))))) := by
                    have h := A2.mk K O x hT (2) (a + 8) (0)
                    try rw [show (a + 8) + (0) + 1 + (2) = a + 11 by lib_nat] at h
                    try rw [show (a + 8) + (0) + 1 = a + 9 by lib_nat] at h
                    try rw [show (a + 8) + (2) = a + 10 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1) + 1 = a + 9 by lib_nat]
                    show O.le K.zero (K.add (K.mul (Zs K x (a + 10)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 13)) (Zs K x (a + 9)))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 12)))))) := by
                      have h := A2.mk K O x hT (3) (a + 8) (0)
                      try rw [show (a + 8) + (0) + 1 + (3) = a + 12 by lib_nat] at h
                      try rw [show (a + 8) + (0) + 1 = a + 9 by lib_nat] at h
                      try rw [show (a + 8) + (3) = a + 11 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1) + 1 = a + 10 by lib_nat]
                      show O.le K.zero (K.add (K.mul (Zs K x (a + 10)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 14)) (Zs K x (a + 9)))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 14))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 13)))))) := by
                        have h := A2.mk K O x hT (4) (a + 8) (0)
                        try rw [show (a + 8) + (0) + 1 + (4) = a + 13 by lib_nat] at h
                        try rw [show (a + 8) + (0) + 1 = a + 9 by lib_nat] at h
                        try rw [show (a + 8) + (4) = a + 12 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1 + 1) + 1 = a + 11 by lib_nat]
                        show O.le K.zero (K.add (K.mul (Zs K x (a + 10)) (Zs K x (a + 14))) (K.neg (K.mul (Zs K x (a + 15)) (Zs K x (a + 9)))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 15))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 14)))))) := by
                          have h := A2.mk K O x hT (5) (a + 8) (0)
                          try rw [show (a + 8) + (0) + 1 + (5) = a + 14 by lib_nat] at h
                          try rw [show (a + 8) + (0) + 1 = a + 9 by lib_nat] at h
                          try rw [show (a + 8) + (5) = a + 13 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = a + w + 12 by lib_nat]
                        show O.le K.zero (K.add (K.mul (Zs K x (a + 10)) (Zs K x (a + w + 15))) (K.neg (K.mul (Zs K x (a + w + 16)) (Zs K x (a + 9)))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + w + 16))) (K.neg (K.mul (Zs K x (a + w + 15)) (Zs K x (a + 10)))))) := by
                          have h := A2.mk K O x hT (1) (a + 8) (w + 5)
                          try rw [show (a + 8) + (w + 5) + 1 + (1) = a + w + 15 by lib_nat] at h
                          try rw [show (a + 8) + (w + 5) + 1 = a + w + 14 by lib_nat] at h
                          try rw [show (a + 8) + (1) = a + 9 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)

include hx hT hD h1 h10 in
theorem sg10 (i w : Nat) : O.le K.zero (K.neg (Lagrange.minor K x (fun i => x (i + 1)) i (i + w + 1))) := by
  unfold Lagrange.minor
  cases i with
  | zero =>
    cases w with
    | zero =>
      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (3))) (K.neg (K.mul (Zs K x (2)) (Zs K x (2))))))
      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (3))) (K.neg (K.mul (Zs K x (2)) (Zs K x (2)))))) := by
        have h := A2.mk K O x hT (1) (0) (0)
        try rw [show (0) + (0) + 1 + (1) = 2 by lib_nat] at h
        try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
        try rw [show (0) + (1) = 1 by lib_nat] at h
        exact A2.nn_of_nonpos_neg K O _ h
      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
    | succ w =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (4))) (K.neg (K.mul (Zs K x (3)) (Zs K x (2))))))
        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (4))) (K.neg (K.mul (Zs K x (2)) (Zs K x (3)))))) := by
          have h := A2.mk K O x hT (2) (0) (0)
          try rw [show (0) + (0) + 1 + (2) = 3 by lib_nat] at h
          try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
          try rw [show (0) + (2) = 2 by lib_nat] at h
          exact A2.nn_of_nonpos_neg K O _ h
        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (2))))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (5))) (K.neg (K.mul (Zs K x (2)) (Zs K x (4)))))) := by
            have h := A2.mk K O x hT (3) (0) (0)
            try rw [show (0) + (0) + 1 + (3) = 4 by lib_nat] at h
            try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
            try rw [show (0) + (3) = 3 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (2))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (6))) (K.neg (K.mul (Zs K x (2)) (Zs K x (5)))))) := by
              have h := A2.mk K O x hT (4) (0) (0)
              try rw [show (0) + (0) + 1 + (4) = 5 by lib_nat] at h
              try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
              try rw [show (0) + (4) = 4 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (2))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (7))) (K.neg (K.mul (Zs K x (2)) (Zs K x (6)))))) := by
                have h := A2.mk K O x hT (5) (0) (0)
                try rw [show (0) + (0) + 1 + (5) = 6 by lib_nat] at h
                try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                try rw [show (0) + (5) = 5 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              rw [show 0 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 6 by lib_nat]
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 8))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (2))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 8))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (2)))))) := by
                have h := A2.mk K O x hT (1) (0) (w + 5)
                try rw [show (0) + (w + 5) + 1 + (1) = w + 7 by lib_nat] at h
                try rw [show (0) + (w + 5) + 1 = w + 6 by lib_nat] at h
                try rw [show (0) + (1) = 1 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
  | succ i =>
    cases i with
    | zero =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (4))) (K.neg (K.mul (Zs K x (3)) (Zs K x (3))))))
        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (4))) (K.neg (K.mul (Zs K x (3)) (Zs K x (3)))))) := by
          have h := A2.mk K O x hT (1) (1) (0)
          try rw [show (1) + (0) + 1 + (1) = 3 by lib_nat] at h
          try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
          try rw [show (1) + (1) = 2 by lib_nat] at h
          exact A2.nn_of_nonpos_neg K O _ h
        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (3))))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (5))) (K.neg (K.mul (Zs K x (3)) (Zs K x (4)))))) := by
            have h := A2.mk K O x hT (2) (1) (0)
            try rw [show (1) + (0) + 1 + (2) = 4 by lib_nat] at h
            try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
            try rw [show (1) + (2) = 3 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (3))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (6))) (K.neg (K.mul (Zs K x (3)) (Zs K x (5)))))) := by
              have h := A2.mk K O x hT (3) (1) (0)
              try rw [show (1) + (0) + 1 + (3) = 5 by lib_nat] at h
              try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
              try rw [show (1) + (3) = 4 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (3))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (7))) (K.neg (K.mul (Zs K x (3)) (Zs K x (6)))))) := by
                have h := A2.mk K O x hT (4) (1) (0)
                try rw [show (1) + (0) + 1 + (4) = 6 by lib_nat] at h
                try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                try rw [show (1) + (4) = 5 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (3))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (8))) (K.neg (K.mul (Zs K x (3)) (Zs K x (7)))))) := by
                  have h := A2.mk K O x hT (5) (1) (0)
                  try rw [show (1) + (0) + 1 + (5) = 7 by lib_nat] at h
                  try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                  try rw [show (1) + (5) = 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                rw [show 0 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 9))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (3))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 9))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (3)))))) := by
                  have h := A2.mk K O x hT (1) (1) (w + 5)
                  try rw [show (1) + (w + 5) + 1 + (1) = w + 8 by lib_nat] at h
                  try rw [show (1) + (w + 5) + 1 = w + 7 by lib_nat] at h
                  try rw [show (1) + (1) = 2 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
    | succ i =>
      cases i with
      | zero =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4))))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4)))))) := by
            have h := A2.mk K O x hT (1) (2) (0)
            try rw [show (2) + (0) + 1 + (1) = 4 by lib_nat] at h
            try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
            try rw [show (2) + (1) = 3 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (4))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (6))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
              have h := A2.mk K O x hT (2) (2) (0)
              try rw [show (2) + (0) + 1 + (2) = 5 by lib_nat] at h
              try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
              try rw [show (2) + (2) = 4 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (4))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
                have h := A2.mk K O x hT (3) (2) (0)
                try rw [show (2) + (0) + 1 + (3) = 6 by lib_nat] at h
                try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                try rw [show (2) + (3) = 5 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (4))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (4)) (Zs K x (7)))))) := by
                  have h := A2.mk K O x hT (4) (2) (0)
                  try rw [show (2) + (0) + 1 + (4) = 7 by lib_nat] at h
                  try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                  try rw [show (2) + (4) = 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (4))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (4)) (Zs K x (8)))))) := by
                    have h := A2.mk K O x hT (5) (2) (0)
                    try rw [show (2) + (0) + 1 + (5) = 8 by lib_nat] at h
                    try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                    try rw [show (2) + (5) = 7 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  rw [show 0 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (4))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (4)))))) := by
                    have h := A2.mk K O x hT (1) (2) (w + 5)
                    try rw [show (2) + (w + 5) + 1 + (1) = w + 9 by lib_nat] at h
                    try rw [show (2) + (w + 5) + 1 = w + 8 by lib_nat] at h
                    try rw [show (2) + (1) = 3 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ i =>
        cases i with
        | zero =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5)))))) := by
              have h := A2.mk K O x hT (1) (3) (0)
              try rw [show (3) + (0) + 1 + (1) = 5 by lib_nat] at h
              try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
              try rw [show (3) + (1) = 4 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (5))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (7))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6)))))) := by
                have h := A2.mk K O x hT (2) (3) (0)
                try rw [show (3) + (0) + 1 + (2) = 6 by lib_nat] at h
                try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                try rw [show (3) + (2) = 5 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (5))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (8))) (K.neg (K.mul (Zs K x (5)) (Zs K x (7)))))) := by
                  have h := A2.mk K O x hT (3) (3) (0)
                  try rw [show (3) + (0) + 1 + (3) = 7 by lib_nat] at h
                  try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                  try rw [show (3) + (3) = 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (5))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (9))) (K.neg (K.mul (Zs K x (5)) (Zs K x (8)))))) := by
                    have h := A2.mk K O x hT (4) (3) (0)
                    try rw [show (3) + (0) + 1 + (4) = 8 by lib_nat] at h
                    try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                    try rw [show (3) + (4) = 7 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (10))) (K.neg (K.mul (Zs K x (9)) (Zs K x (5))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (10))) (K.neg (K.mul (Zs K x (5)) (Zs K x (9)))))) := by
                      have h := A2.mk K O x hT (5) (3) (0)
                      try rw [show (3) + (0) + 1 + (5) = 9 by lib_nat] at h
                      try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                      try rw [show (3) + (5) = 8 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    rw [show 0 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 10)) (Zs K x (5))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 10)) (Zs K x (5)))))) := by
                      have h := A2.mk K O x hT (1) (3) (w + 5)
                      try rw [show (3) + (w + 5) + 1 + (1) = w + 10 by lib_nat] at h
                      try rw [show (3) + (w + 5) + 1 = w + 9 by lib_nat] at h
                      try rw [show (3) + (1) = 4 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ i =>
          cases i with
          | zero =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6)))))) := by
                have h := A2.mk K O x hT (1) (4) (0)
                try rw [show (4) + (0) + 1 + (1) = 6 by lib_nat] at h
                try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                try rw [show (4) + (1) = 5 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (6))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (8))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7)))))) := by
                  have h := A2.mk K O x hT (2) (4) (0)
                  try rw [show (4) + (0) + 1 + (2) = 7 by lib_nat] at h
                  try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                  try rw [show (4) + (2) = 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (6))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (9))) (K.neg (K.mul (Zs K x (6)) (Zs K x (8)))))) := by
                    have h := A2.mk K O x hT (3) (4) (0)
                    try rw [show (4) + (0) + 1 + (3) = 8 by lib_nat] at h
                    try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                    try rw [show (4) + (3) = 7 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (10))) (K.neg (K.mul (Zs K x (9)) (Zs K x (6))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (10))) (K.neg (K.mul (Zs K x (6)) (Zs K x (9)))))) := by
                      have h := A2.mk K O x hT (4) (4) (0)
                      try rw [show (4) + (0) + 1 + (4) = 9 by lib_nat] at h
                      try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                      try rw [show (4) + (4) = 8 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (11))) (K.neg (K.mul (Zs K x (10)) (Zs K x (6))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (11))) (K.neg (K.mul (Zs K x (6)) (Zs K x (10)))))) := by
                        have h := A2.mk K O x hT (5) (4) (0)
                        try rw [show (4) + (0) + 1 + (5) = 10 by lib_nat] at h
                        try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                        try rw [show (4) + (5) = 9 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      rw [show 0 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (6))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (6)))))) := by
                        have h := A2.mk K O x hT (1) (4) (w + 5)
                        try rw [show (4) + (w + 5) + 1 + (1) = w + 11 by lib_nat] at h
                        try rw [show (4) + (w + 5) + 1 = w + 10 by lib_nat] at h
                        try rw [show (4) + (1) = 5 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ i =>
            cases i with
            | zero =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (7))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (7)))))) := by
                  have h := A2.mk K O x hT (1) (5) (0)
                  try rw [show (5) + (0) + 1 + (1) = 7 by lib_nat] at h
                  try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                  try rw [show (5) + (1) = 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (7))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (9))) (K.neg (K.mul (Zs K x (7)) (Zs K x (8)))))) := by
                    have h := A2.mk K O x hT (2) (5) (0)
                    try rw [show (5) + (0) + 1 + (2) = 8 by lib_nat] at h
                    try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                    try rw [show (5) + (2) = 7 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (10))) (K.neg (K.mul (Zs K x (9)) (Zs K x (7))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (10))) (K.neg (K.mul (Zs K x (7)) (Zs K x (9)))))) := by
                      have h := A2.mk K O x hT (3) (5) (0)
                      try rw [show (5) + (0) + 1 + (3) = 9 by lib_nat] at h
                      try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                      try rw [show (5) + (3) = 8 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (11))) (K.neg (K.mul (Zs K x (10)) (Zs K x (7))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (11))) (K.neg (K.mul (Zs K x (7)) (Zs K x (10)))))) := by
                        have h := A2.mk K O x hT (4) (5) (0)
                        try rw [show (5) + (0) + 1 + (4) = 10 by lib_nat] at h
                        try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                        try rw [show (5) + (4) = 9 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (12))) (K.neg (K.mul (Zs K x (11)) (Zs K x (7))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (12))) (K.neg (K.mul (Zs K x (7)) (Zs K x (11)))))) := by
                          have h := A2.mk K O x hT (5) (5) (0)
                          try rw [show (5) + (0) + 1 + (5) = 11 by lib_nat] at h
                          try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                          try rw [show (5) + (5) = 10 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show 0 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (w + 13))) (K.neg (K.mul (Zs K x (w + 12)) (Zs K x (7))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (w + 13))) (K.neg (K.mul (Zs K x (w + 12)) (Zs K x (7)))))) := by
                          have h := A2.mk K O x hT (1) (5) (w + 5)
                          try rw [show (5) + (w + 5) + 1 + (1) = w + 12 by lib_nat] at h
                          try rw [show (5) + (w + 5) + 1 = w + 11 by lib_nat] at h
                          try rw [show (5) + (1) = 6 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ a =>
              cases w with
              | zero =>
                rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 = a + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 9))) (K.neg (K.mul (Zs K x (a + 8)) (Zs K x (a + 8))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 9))) (K.neg (K.mul (Zs K x (a + 8)) (Zs K x (a + 8)))))) := by
                  have h := A2.mk K O x hT (1) (a + 6) (0)
                  try rw [show (a + 6) + (0) + 1 + (1) = a + 8 by lib_nat] at h
                  try rw [show (a + 6) + (0) + 1 = a + 7 by lib_nat] at h
                  try rw [show (a + 6) + (1) = a + 7 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1) + 1 = a + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 10))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 8))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 10))) (K.neg (K.mul (Zs K x (a + 8)) (Zs K x (a + 9)))))) := by
                    have h := A2.mk K O x hT (2) (a + 6) (0)
                    try rw [show (a + 6) + (0) + 1 + (2) = a + 9 by lib_nat] at h
                    try rw [show (a + 6) + (0) + 1 = a + 7 by lib_nat] at h
                    try rw [show (a + 6) + (2) = a + 8 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1) + 1 = a + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 8))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 8)) (Zs K x (a + 10)))))) := by
                      have h := A2.mk K O x hT (3) (a + 6) (0)
                      try rw [show (a + 6) + (0) + 1 + (3) = a + 10 by lib_nat] at h
                      try rw [show (a + 6) + (0) + 1 = a + 7 by lib_nat] at h
                      try rw [show (a + 6) + (3) = a + 9 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1) + 1 = a + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 11)) (Zs K x (a + 8))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 8)) (Zs K x (a + 11)))))) := by
                        have h := A2.mk K O x hT (4) (a + 6) (0)
                        try rw [show (a + 6) + (0) + 1 + (4) = a + 11 by lib_nat] at h
                        try rw [show (a + 6) + (0) + 1 = a + 7 by lib_nat] at h
                        try rw [show (a + 6) + (4) = a + 10 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1 + 1) + 1 = a + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 12)) (Zs K x (a + 8))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 8)) (Zs K x (a + 12)))))) := by
                          have h := A2.mk K O x hT (5) (a + 6) (0)
                          try rw [show (a + 6) + (0) + 1 + (5) = a + 12 by lib_nat] at h
                          try rw [show (a + 6) + (0) + 1 = a + 7 by lib_nat] at h
                          try rw [show (a + 6) + (5) = a + 11 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = a + w + 12 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + w + 14))) (K.neg (K.mul (Zs K x (a + w + 13)) (Zs K x (a + 8))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + w + 14))) (K.neg (K.mul (Zs K x (a + w + 13)) (Zs K x (a + 8)))))) := by
                          have h := A2.mk K O x hT (1) (a + 6) (w + 5)
                          try rw [show (a + 6) + (w + 5) + 1 + (1) = a + w + 13 by lib_nat] at h
                          try rw [show (a + 6) + (w + 5) + 1 = a + w + 12 by lib_nat] at h
                          try rw [show (a + 6) + (1) = a + 7 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)

include hx hT hD h1 h10 in
theorem sg11 (i w : Nat) : O.le K.zero (K.neg (Lagrange.minor K (Zs K (pv3 K x)) (Zs K (pv2 K x)) i (i + w + 1))) := by
  unfold Lagrange.minor
  cases i with
  | zero =>
    cases w with
    | zero =>
      show O.le K.zero (K.neg (K.add (K.mul K.zero (Zs K x (3))) (K.neg (K.mul (Zs K x (4)) K.zero))))
      exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
    | succ w =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (2)) (Zs K x (4)))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) K.zero))))
        exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5)))) (K.neg (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) K.zero))))
          exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) K.zero))))
            exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) K.zero))))
              exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
            | succ w =>
              rw [show 0 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 6 by lib_nat]
              show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (w + 4)) (Zs K x (w + 6))) (Zs K x (w + 8)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (w + 3)) (Zs K x (w + 5))) (Zs K x (w + 7))) (Zs K x (w + 9))) K.zero))))
              exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
  | succ i =>
    cases i with
    | zero =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (K.add (Zs K x (2)) (Zs K x (4)))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))))))
        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5)))) (K.neg (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (3))))))
          have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (Zs K x (3))))))
            have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (4))))) := A1.Dn K O x hD (0) (3) (0) (1) (2) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (Zs K x (3))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (5))))) := A1.Dn K O x hD (0) (4) (0) (1) (2) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (Zs K x (3))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) (by lib_ring)
              | succ w =>
                rw [show 0 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (K.add (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (w + 9)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (w + 4)) (Zs K x (w + 6))) (Zs K x (w + 8))) (Zs K x (w + 10))) (Zs K x (3))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 7))))) := A1.Dn K O x hD (0) (w + 6) (0) (1) (2) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 6))))) := A1.Dn K O x hD (1) (w + 4) (1) (2) (3) (w + 5) (w + 6) (w + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 4)) (Zs K x (w + 6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 5))))) := A1.Dn K O x hD (2) (w + 2) (2) (3) (4) (w + 4) (w + 5) (w + 6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 7))))) := A1.Dn K O x hD (2) (w + 4) (2) (3) (4) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) (by lib_ring)
    | succ i =>
      cases i with
      | zero =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5)))) (K.neg (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (Zs K x (2)) (Zs K x (4)))))))
          have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (3))))) := A1.Dn K O x hD (1) (1) (1) (2) (3) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (K.add (Zs K x (2)) (Zs K x (4)))))))
            have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (3))))) := A1.Dn K O x hD (0) (2) (0) (1) (2) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (5))))) := A1.Dn K O x hD (0) (4) (0) (1) (2) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (Zs K x (2)) (Zs K x (4)))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (4))))) := A1.Dn K O x hD (0) (3) (0) (1) (2) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (3))))) := A1.Dn K O x hD (1) (1) (1) (2) (3) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (Zs K x (2)) (Zs K x (4)))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (5))))) := A1.Dn K O x hD (0) (4) (0) (1) (2) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (7))))) := A1.Dn K O x hD (0) (6) (0) (1) (2) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (8))))) := A1.Dn K O x hD (1) (6) (1) (2) (3) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10))) (K.add (Zs K x (2)) (Zs K x (4)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (8))))) := A1.Dn K O x hD (0) (7) (0) (1) (2) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) (by lib_ring)
                | succ w =>
                  rw [show 0 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (K.add (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (w + 10)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (w + 9))) (Zs K x (w + 11))) (K.add (Zs K x (2)) (Zs K x (4)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 7))))) := A1.Dn K O x hD (0) (w + 6) (0) (1) (2) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 9))))) := A1.Dn K O x hD (0) (w + 8) (0) (1) (2) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 6))))) := A1.Dn K O x hD (1) (w + 4) (1) (2) (3) (w + 5) (w + 6) (w + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 10))))) := A1.Dn K O x hD (1) (w + 8) (1) (2) (3) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 7))))) := A1.Dn K O x hD (2) (w + 4) (2) (3) (4) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 6))))) := A1.Dn K O x hD (3) (w + 2) (3) (4) (5) (w + 5) (w + 6) (w + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 8))))) := A1.Dn K O x hD (3) (w + 4) (3) (4) (5) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) (by lib_ring)
      | succ i =>
        cases i with
        | zero =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5)))))))
            have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (2))))) := A1.Dn K O x hD (0) (1) (0) (1) (2) (1) (2) (3) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (4))))) := A1.Dn K O x hD (0) (3) (0) (1) (2) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5)))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (3))))) := A1.Dn K O x hD (0) (2) (0) (1) (2) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (5))))) := A1.Dn K O x hD (0) (4) (0) (1) (2) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (7))))) := A1.Dn K O x hD (0) (6) (0) (1) (2) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5)))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (4))))) := A1.Dn K O x hD (0) (3) (0) (1) (2) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (8))))) := A1.Dn K O x hD (0) (7) (0) (1) (2) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10))) (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (5))))) := A1.Dn K O x hD (0) (4) (0) (1) (2) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (7))))) := A1.Dn K O x hD (0) (6) (0) (1) (2) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (9))))) := A1.Dn K O x hD (0) (8) (0) (1) (2) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (8))))) := A1.Dn K O x hD (1) (6) (1) (2) (3) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (9))))) := A1.Dn K O x hD (2) (6) (2) (3) (4) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (Zs K x (11))) (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5)))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (8))))) := A1.Dn K O x hD (0) (7) (0) (1) (2) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (10))))) := A1.Dn K O x hD (0) (9) (0) (1) (2) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (10))))) := A1.Dn K O x hD (2) (7) (2) (3) (4) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) t13) (by lib_ring)
                  | succ w =>
                    rw [show 0 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (w + 11)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (w + 10))) (Zs K x (w + 12))) (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5)))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 7))))) := A1.Dn K O x hD (0) (w + 6) (0) (1) (2) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 9))))) := A1.Dn K O x hD (0) (w + 8) (0) (1) (2) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 11))))) := A1.Dn K O x hD (0) (w + 10) (0) (1) (2) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 10))))) := A1.Dn K O x hD (1) (w + 8) (1) (2) (3) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 7))))) := A1.Dn K O x hD (2) (w + 4) (2) (3) (4) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 11))))) := A1.Dn K O x hD (2) (w + 8) (2) (3) (4) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 8))))) := A1.Dn K O x hD (3) (w + 4) (3) (4) (5) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 7))))) := A1.Dn K O x hD (4) (w + 2) (4) (5) (6) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 9))))) := A1.Dn K O x hD (4) (w + 4) (4) (5) (6) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 11))))) := A1.Dn K O x hD (4) (w + 6) (4) (5) (6) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) t13) (by lib_ring)
        | succ i =>
          cases i with
          | zero =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (3))))) := A1.Dn K O x hD (1) (1) (1) (2) (3) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (7))))) := A1.Dn K O x hD (5) (1) (5) (6) (7) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (8))))) := A1.Dn K O x hD (1) (6) (1) (2) (3) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (8))))) := A1.Dn K O x hD (5) (2) (5) (6) (7) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (7))))) := A1.Dn K O x hD (5) (1) (5) (6) (7) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (Zs K x (11))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (8))))) := A1.Dn K O x hD (1) (6) (1) (2) (3) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (10))))) := A1.Dn K O x hD (1) (8) (1) (2) (3) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (9))))) := A1.Dn K O x hD (2) (6) (2) (3) (4) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (10))))) := A1.Dn K O x hD (3) (6) (3) (4) (5) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (8))))) := A1.Dn K O x hD (5) (2) (5) (6) (7) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (10))))) := A1.Dn K O x hD (5) (4) (5) (6) (7) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (11)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))) (Zs K x (12))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
                      have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (11))))) := A1.Dn K O x hD (1) (9) (1) (2) (3) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (10))))) := A1.Dn K O x hD (2) (7) (2) (3) (4) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (11))))) := A1.Dn K O x hD (3) (7) (3) (4) (5) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (7))))) := A1.Dn K O x hD (5) (1) (5) (6) (7) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (11))))) := A1.Dn K O x hD (5) (5) (5) (6) (7) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) t13) (by lib_ring)
                    | succ w =>
                      rw [show 0 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (w + 12)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (w + 11))) (Zs K x (w + 13))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
                      have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 10))))) := A1.Dn K O x hD (1) (w + 8) (1) (2) (3) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 12))))) := A1.Dn K O x hD (1) (w + 10) (1) (2) (3) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 11))))) := A1.Dn K O x hD (2) (w + 8) (2) (3) (4) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 8))))) := A1.Dn K O x hD (3) (w + 4) (3) (4) (5) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 12))))) := A1.Dn K O x hD (3) (w + 8) (3) (4) (5) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 9))))) := A1.Dn K O x hD (4) (w + 4) (4) (5) (6) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 11))))) := A1.Dn K O x hD (4) (w + 6) (4) (5) (6) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 8))))) := A1.Dn K O x hD (5) (w + 2) (5) (6) (7) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 10))))) := A1.Dn K O x hD (5) (w + 4) (5) (6) (7) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 12))))) := A1.Dn K O x hD (5) (w + 6) (5) (6) (7) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) t13) (by lib_ring)
          | succ i =>
            cases i with
            | zero =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (8))))) := A1.Dn K O x hD (6) (1) (6) (7) (8) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10))) (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (9))))) := A1.Dn K O x hD (2) (6) (2) (3) (4) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (8))))) := A1.Dn K O x hD (5) (2) (5) (6) (7) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (9))))) := A1.Dn K O x hD (6) (2) (6) (7) (8) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (Zs K x (11))) (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (10))))) := A1.Dn K O x hD (2) (7) (2) (3) (4) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (8))))) := A1.Dn K O x hD (6) (1) (6) (7) (8) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))))) := A1.Dn K O x hD (6) (3) (6) (7) (8) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (11)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))) (Zs K x (12))) (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))))))
                      have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (9))))) := A1.Dn K O x hD (2) (6) (2) (3) (4) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (11))))) := A1.Dn K O x hD (2) (8) (2) (3) (4) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (10))))) := A1.Dn K O x hD (3) (6) (3) (4) (5) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (11))))) := A1.Dn K O x hD (4) (6) (4) (5) (6) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (8))))) := A1.Dn K O x hD (5) (2) (5) (6) (7) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (10))))) := A1.Dn K O x hD (5) (4) (5) (6) (7) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (9))))) := A1.Dn K O x hD (6) (2) (6) (7) (8) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (11))))) := A1.Dn K O x hD (6) (4) (6) (7) (8) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (12)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (11))) (Zs K x (13))) (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))))))
                        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (10))))) := A1.Dn K O x hD (2) (7) (2) (3) (4) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (12))))) := A1.Dn K O x hD (2) (9) (2) (3) (4) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (11))))) := A1.Dn K O x hD (3) (7) (3) (4) (5) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (12))))) := A1.Dn K O x hD (4) (7) (4) (5) (6) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (11))))) := A1.Dn K O x hD (5) (5) (5) (6) (7) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (8))))) := A1.Dn K O x hD (6) (1) (6) (7) (8) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))))) := A1.Dn K O x hD (6) (3) (6) (7) (8) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (12))))) := A1.Dn K O x hD (6) (5) (6) (7) (8) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) t13) (by lib_ring)
                      | succ w =>
                        rw [show 0 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (w + 13)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (w + 12))) (Zs K x (w + 14))) (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7)))))))
                        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 11))))) := A1.Dn K O x hD (2) (w + 8) (2) (3) (4) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 12)) (Zs K x (w + 14))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 13))))) := A1.Dn K O x hD (2) (w + 10) (2) (3) (4) (w + 12) (w + 13) (w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 12))))) := A1.Dn K O x hD (3) (w + 8) (3) (4) (5) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 9))))) := A1.Dn K O x hD (4) (w + 4) (4) (5) (6) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 11))))) := A1.Dn K O x hD (4) (w + 6) (4) (5) (6) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 11))))) := A1.Dn K O x hD (4) (w + 6) (4) (5) (6) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 12)) (Zs K x (w + 14))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 13))))) := A1.Dn K O x hD (4) (w + 8) (4) (5) (6) (w + 12) (w + 13) (w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 10))))) := A1.Dn K O x hD (5) (w + 4) (5) (6) (7) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 12))))) := A1.Dn K O x hD (5) (w + 6) (5) (6) (7) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (w + 9))))) := A1.Dn K O x hD (6) (w + 2) (6) (7) (8) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (w + 11))))) := A1.Dn K O x hD (6) (w + 4) (6) (7) (8) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 12)) (Zs K x (w + 14))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (w + 13))))) := A1.Dn K O x hD (6) (w + 6) (6) (7) (8) (w + 12) (w + 13) (w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) t13) (by lib_ring)
            | succ a =>
              cases w with
              | zero =>
                rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 = a + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))) (Zs K x (a + 9))) (K.add (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))) (Zs K x (a + 10))) (K.add (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8)))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 5))))) := A1.Dn K O x hD (a + 3) (1) (a + 3) (a + 4) (a + 5) (a + 4) (a + 5) (a + 6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))))) := A1.Dn K O x hD (a + 3) (3) (a + 3) (a + 4) (a + 5) (a + 6) (a + 7) (a + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 3) (5) (a + 3) (a + 4) (a + 5) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 7))))) := A1.Dn K O x hD (a + 5) (1) (a + 5) (a + 6) (a + 7) (a + 6) (a + 7) (a + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 5) (3) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 7) (1) (a + 7) (a + 8) (a + 9) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1) + 1 = a + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))) (Zs K x (a + 9))) (K.add (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 10)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9))) (Zs K x (a + 11))) (K.add (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 6))))) := A1.Dn K O x hD (a + 3) (2) (a + 3) (a + 4) (a + 5) (a + 5) (a + 6) (a + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 3) (4) (a + 3) (a + 4) (a + 5) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 3) (6) (a + 3) (a + 4) (a + 5) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 7))))) := A1.Dn K O x hD (a + 4) (2) (a + 4) (a + 5) (a + 6) (a + 6) (a + 7) (a + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 4) (4) (a + 4) (a + 5) (a + 6) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 5) (2) (a + 5) (a + 6) (a + 7) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 5) (4) (a + 5) (a + 6) (a + 7) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 6) (2) (a + 6) (a + 7) (a + 8) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 7) (2) (a + 7) (a + 8) (a + 9) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1) + 1 = a + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))) (Zs K x (a + 9))) (K.add (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 11)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 10))) (Zs K x (a + 12))) (K.add (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8)))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))))) := A1.Dn K O x hD (a + 3) (3) (a + 3) (a + 4) (a + 5) (a + 6) (a + 7) (a + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 3) (5) (a + 3) (a + 4) (a + 5) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 3) (7) (a + 3) (a + 4) (a + 5) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 4) (3) (a + 4) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 4) (5) (a + 4) (a + 5) (a + 6) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 7))))) := A1.Dn K O x hD (a + 5) (1) (a + 5) (a + 6) (a + 7) (a + 6) (a + 7) (a + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 5) (3) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 5) (3) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 5) (5) (a + 5) (a + 6) (a + 7) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 6) (3) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 7) (1) (a + 7) (a + 8) (a + 9) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 7) (3) (a + 7) (a + 8) (a + 9) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1) + 1 = a + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))) (Zs K x (a + 9))) (K.add (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 12)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 11))) (Zs K x (a + 13))) (K.add (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8)))))))
                      have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 3) (4) (a + 3) (a + 4) (a + 5) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 3) (6) (a + 3) (a + 4) (a + 5) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 3) (8) (a + 3) (a + 4) (a + 5) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 4) (4) (a + 4) (a + 5) (a + 6) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 4) (6) (a + 4) (a + 5) (a + 6) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 5) (2) (a + 5) (a + 6) (a + 7) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 5) (4) (a + 5) (a + 6) (a + 7) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 5) (4) (a + 5) (a + 6) (a + 7) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 5) (6) (a + 5) (a + 6) (a + 7) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 6) (2) (a + 6) (a + 7) (a + 8) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 6) (4) (a + 6) (a + 7) (a + 8) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 7) (2) (a + 7) (a + 8) (a + 9) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 7) (4) (a + 7) (a + 8) (a + 9) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1 + 1) + 1 = a + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))) (Zs K x (a + 9))) (K.add (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 13)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 12))) (Zs K x (a + 14))) (K.add (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))))  -- (+3 chars; full line in the Zenodo source)
                        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 3) (5) (a + 3) (a + 4) (a + 5) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 3) (7) (a + 3) (a + 4) (a + 5) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 12)) (Zs K x (a + 14))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 13))))) := A1.Dn K O x hD (a + 3) (9) (a + 3) (a + 4) (a + 5) (a + 12) (a + 13) (a + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 4) (5) (a + 4) (a + 5) (a + 6) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 4) (7) (a + 4) (a + 5) (a + 6) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 5) (3) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 5) (5) (a + 5) (a + 6) (a + 7) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 5) (5) (a + 5) (a + 6) (a + 7) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 12)) (Zs K x (a + 14))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 13))))) := A1.Dn K O x hD (a + 5) (7) (a + 5) (a + 6) (a + 7) (a + 12) (a + 13) (a + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 6) (3) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 6) (5) (a + 6) (a + 7) (a + 8) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 7) (1) (a + 7) (a + 8) (a + 9) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 7) (3) (a + 7) (a + 8) (a + 9) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 12)) (Zs K x (a + 14))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 13))))) := A1.Dn K O x hD (a + 7) (5) (a + 7) (a + 8) (a + 9) (a + 12) (a + 13) (a + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) t13) (by lib_ring)
                      | succ w =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = a + w + 12 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))) (Zs K x (a + 9))) (K.add (K.add (Zs K x (a + w + 10)) (Zs K x (a + w + 12))) (Zs K x (a + w + 14)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (a + w + 9)) (Zs K x (a + w + 11))) (Zs K x (a + w + 13))) (Zs K x (a + w + 15))) (K.add (K.add (Zs K x (a + 4)) (Zs K x  -- (+32 chars; full line in the Zenodo source)
                        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 9)) (Zs K x (a + w + 11))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + w + 10))))) := A1.Dn K O x hD (a + 3) (w + 6) (a + 3) (a + 4) (a + 5) (a + w + 9) (a + w + 10) (a + w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 11)) (Zs K x (a + w + 13))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + w + 12))))) := A1.Dn K O x hD (a + 3) (w + 8) (a + 3) (a + 4) (a + 5) (a + w + 11) (a + w + 12) (a + w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 13)) (Zs K x (a + w + 15))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + w + 14))))) := A1.Dn K O x hD (a + 3) (w + 10) (a + 3) (a + 4) (a + 5) (a + w + 13) (a + w + 14) (a + w + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 10)) (Zs K x (a + w + 12))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + w + 11))))) := A1.Dn K O x hD (a + 4) (w + 6) (a + 4) (a + 5) (a + 6) (a + w + 10) (a + w + 11) (a + w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 12)) (Zs K x (a + w + 14))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + w + 13))))) := A1.Dn K O x hD (a + 4) (w + 8) (a + 4) (a + 5) (a + 6) (a + w + 12) (a + w + 13) (a + w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 9)) (Zs K x (a + w + 11))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + w + 10))))) := A1.Dn K O x hD (a + 5) (w + 4) (a + 5) (a + 6) (a + 7) (a + w + 9) (a + w + 10) (a + w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 11)) (Zs K x (a + w + 13))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + w + 12))))) := A1.Dn K O x hD (a + 5) (w + 6) (a + 5) (a + 6) (a + 7) (a + w + 11) (a + w + 12) (a + w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 11)) (Zs K x (a + w + 13))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + w + 12))))) := A1.Dn K O x hD (a + 5) (w + 6) (a + 5) (a + 6) (a + 7) (a + w + 11) (a + w + 12) (a + w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 13)) (Zs K x (a + w + 15))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + w + 14))))) := A1.Dn K O x hD (a + 5) (w + 8) (a + 5) (a + 6) (a + 7) (a + w + 13) (a + w + 14) (a + w + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 10)) (Zs K x (a + w + 12))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + w + 11))))) := A1.Dn K O x hD (a + 6) (w + 4) (a + 6) (a + 7) (a + 8) (a + w + 10) (a + w + 11) (a + w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 12)) (Zs K x (a + w + 14))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + w + 13))))) := A1.Dn K O x hD (a + 6) (w + 6) (a + 6) (a + 7) (a + 8) (a + w + 12) (a + w + 13) (a + w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 9)) (Zs K x (a + w + 11))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + w + 10))))) := A1.Dn K O x hD (a + 7) (w + 2) (a + 7) (a + 8) (a + 9) (a + w + 9) (a + w + 10) (a + w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 11)) (Zs K x (a + w + 13))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + w + 12))))) := A1.Dn K O x hD (a + 7) (w + 4) (a + 7) (a + 8) (a + 9) (a + w + 11) (a + w + 12) (a + w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 13)) (Zs K x (a + w + 15))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + w + 14))))) := A1.Dn K O x hD (a + 7) (w + 6) (a + 7) (a + 8) (a + 9) (a + w + 13) (a + w + 14) (a + w + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) t13) (by lib_ring)

include hx hT hD h1 h10 in
theorem sg12 (i w : Nat) : O.le K.zero (K.neg (Lagrange.minor K (Zs K (pv3 K x)) (pv3 K x) i (i + w + 1))) := by
  unfold Lagrange.minor
  cases i with
  | zero =>
    cases w with
    | zero =>
      show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (3)) (Zs K x (5)))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4))))))
      have t0 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (3)) (hx (3))
      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
    | succ w =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (4))))))
        have t0 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (2)) (hx (3))
        have t1 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (3)) (hx (4))
        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7)))) (K.neg (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (4))))))
          have t0 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (1)) (hx (3))
          have t1 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (3)) (hx (3))
          have t2 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (6))) := O.mul_nonneg _ _ (hx (3)) (hx (5))
          exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (Zs K x (4))))))
            have t0 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (0)) (hx (3))
            have t1 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (2)) (hx (3))
            have t2 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (3)) (hx (4))
            have t3 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (7))) := O.mul_nonneg _ _ (hx (3)) (hx (6))
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (Zs K x (4))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t4 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (1)) (hx (3))
              have t5 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (6))) := O.mul_nonneg _ _ (hx (1)) (hx (5))
              have t6 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (6))) := O.mul_nonneg _ _ (hx (3)) (hx (5))
              have t7 : O.le K.zero (K.mul (Zs K x (6)) (Zs K x (6))) := O.mul_nonneg _ _ (hx (5)) (hx (5))
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) (by lib_ring)
            | succ w =>
              rw [show 0 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 6 by lib_nat]
              show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (K.add (K.add (Zs K x (w + 4)) (Zs K x (w + 6))) (Zs K x (w + 8))) (Zs K x (w + 10)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (w + 3)) (Zs K x (w + 5))) (Zs K x (w + 7))) (Zs K x (w + 9))) (Zs K x (4))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 6))))) := A1.Dn K O x hD (3) (w + 2) (3) (4) (5) (w + 5) (w + 6) (w + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t1 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (w + 6))) := O.mul_nonneg _ _ (hx (2)) (hx (w + 5))
              have t2 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (w + 3))) := O.mul_nonneg _ _ (hx (3)) (hx (w + 2))
              have t3 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (w + 9))) := O.mul_nonneg _ _ (hx (3)) (hx (w + 8))
              have t4 : O.le K.zero (K.mul (Zs K x (5)) (Zs K x (w + 6))) := O.mul_nonneg _ _ (hx (4)) (hx (w + 5))
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
  | succ i =>
    cases i with
    | zero =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (K.add (Zs K x (3)) (Zs K x (5)))))))
        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
        have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5)))))) := by
          have h := A2.mk K O x hT (1) (3) (0)
          try rw [show (3) + (0) + 1 + (1) = 5 by lib_nat] at h
          try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
          try rw [show (3) + (1) = 4 by lib_nat] at h
          exact A2.nn_of_nonpos_neg K O _ h
        have t2 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (2)) (hx (4))
        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7)))) (K.neg (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (Zs K x (3)) (Zs K x (5)))))))
          have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6)))))) := by
            have h := A2.mk K O x hT (3) (2) (1)
            try rw [show (2) + (1) + 1 + (3) = 7 by lib_nat] at h
            try rw [show (2) + (1) + 1 = 4 by lib_nat] at h
            try rw [show (2) + (3) = 5 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t3 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (7))) := O.mul_nonneg _ _ (hx (1)) (hx (6))
          have t4 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (2)) (hx (3))
          exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (K.add (Zs K x (3)) (Zs K x (5)))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (7))) (K.neg (K.mul (Zs K x (2)) (Zs K x (6)))))) := by
              have h := A2.mk K O x hT (5) (0) (0)
              try rw [show (0) + (0) + 1 + (5) = 6 by lib_nat] at h
              try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
              try rw [show (0) + (5) = 5 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (4))))) := A1.Dn K O x hD (0) (3) (0) (1) (2) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (9))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
              have h := A2.mk K O x hT (5) (0) (2)
              try rw [show (0) + (2) + 1 + (5) = 8 by lib_nat] at h
              try rw [show (0) + (2) + 1 = 3 by lib_nat] at h
              try rw [show (0) + (5) = 5 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (8))))) := A1.Dn K O x hD (0) (7) (0) (1) (2) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t6 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (8))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6)))))) := by
              have h := A2.mk K O x hT (2) (3) (1)
              try rw [show (3) + (1) + 1 + (2) = 7 by lib_nat] at h
              try rw [show (3) + (1) + 1 = 5 by lib_nat] at h
              try rw [show (3) + (2) = 5 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t8 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (1)) (hx (3))
            have t9 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (8))) := O.mul_nonneg _ _ (hx (1)) (hx (7))
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (Zs K x (3)) (Zs K x (5)))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (8))) (K.neg (K.mul (Zs K x (2)) (Zs K x (7)))))) := by
                have h := A2.mk K O x hT (6) (0) (0)
                try rw [show (0) + (0) + 1 + (6) = 7 by lib_nat] at h
                try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                try rw [show (0) + (6) = 6 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (10))) (K.neg (K.mul (Zs K x (4)) (Zs K x (7)))))) := by
                have h := A2.mk K O x hT (6) (0) (2)
                try rw [show (0) + (2) + 1 + (6) = 9 by lib_nat] at h
                try rw [show (0) + (2) + 1 = 3 by lib_nat] at h
                try rw [show (0) + (6) = 6 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (9))))) := A1.Dn K O x hD (0) (8) (0) (1) (2) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t5 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (9))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7)))))) := by
                have h := A2.mk K O x hT (3) (3) (1)
                try rw [show (3) + (1) + 1 + (3) = 8 by lib_nat] at h
                try rw [show (3) + (1) + 1 = 5 by lib_nat] at h
                try rw [show (3) + (3) = 6 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t7 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (0)) (hx (3))
              have t8 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (9))) := O.mul_nonneg _ _ (hx (1)) (hx (8))
              have t9 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (2)) (hx (3))
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (Zs K x (3)) (Zs K x (5)))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (5))) (K.neg (K.mul (Zs K x (2)) (Zs K x (4)))))) := by
                  have h := A2.mk K O x hT (3) (0) (0)
                  try rw [show (0) + (0) + 1 + (3) = 4 by lib_nat] at h
                  try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                  try rw [show (0) + (3) = 3 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (9))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5)))))) := by
                  have h := A2.mk K O x hT (4) (0) (3)
                  try rw [show (0) + (3) + 1 + (4) = 8 by lib_nat] at h
                  try rw [show (0) + (3) + 1 = 4 by lib_nat] at h
                  try rw [show (0) + (4) = 4 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (8))))) := A1.Dn K O x hD (0) (7) (0) (1) (2) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t9 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (7))) := O.mul_nonneg _ _ (hx (2)) (hx (6))
                have t10 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (10))) (K.neg (K.mul (Zs K x (6)) (Zs K x (8)))))) := by
                  have h := A2.mk K O x hT (4) (3) (1)
                  try rw [show (3) + (1) + 1 + (4) = 9 by lib_nat] at h
                  try rw [show (3) + (1) + 1 = 5 by lib_nat] at h
                  try rw [show (3) + (4) = 7 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t11 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (8))) := O.mul_nonneg _ _ (hx (3)) (hx (7))
                have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) (by lib_ring)
              | succ w =>
                rw [show 0 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (K.add (K.add (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (w + 9))) (Zs K x (w + 11)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (w + 4)) (Zs K x (w + 6))) (Zs K x (w + 8))) (Zs K x (w + 10))) (K.add (Zs K x (3)) (Zs K x (5)))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 6))) (K.neg (K.mul (Zs K x (2)) (Zs K x (w + 5)))))) := by
                  have h := A2.mk K O x hT (w + 4) (0) (0)
                  try rw [show (0) + (0) + 1 + (w + 4) = w + 5 by lib_nat] at h
                  try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                  try rw [show (0) + (w + 4) = w + 4 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 6))) (K.neg (K.mul (Zs K x (2)) (Zs K x (w + 5)))))) := by
                  have h := A2.mk K O x hT (w + 4) (0) (0)
                  try rw [show (0) + (0) + 1 + (w + 4) = w + 5 by lib_nat] at h
                  try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                  try rw [show (0) + (w + 4) = w + 4 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (2)) (Zs K x (w + 9)))))) := by
                  have h := A2.mk K O x hT (w + 8) (0) (0)
                  try rw [show (0) + (0) + 1 + (w + 8) = w + 9 by lib_nat] at h
                  try rw [show (0) + (0) + 1 = 1 by lib_nat] at h
                  try rw [show (0) + (w + 8) = w + 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t3 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (3)) (Zs K x (w + 10)))))) := by
                  have h := A2.mk K O x hT (w + 9) (0) (1)
                  try rw [show (0) + (1) + 1 + (w + 9) = w + 11 by lib_nat] at h
                  try rw [show (0) + (1) + 1 = 2 by lib_nat] at h
                  try rw [show (0) + (w + 9) = w + 9 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t4 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 8))) (K.neg (K.mul (Zs K x (5)) (Zs K x (w + 4)))))) := by
                  have h := A2.mk K O x hT (w + 3) (0) (3)
                  try rw [show (0) + (3) + 1 + (w + 3) = w + 7 by lib_nat] at h
                  try rw [show (0) + (3) + 1 = 4 by lib_nat] at h
                  try rw [show (0) + (w + 3) = w + 3 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t5 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 8))) (K.neg (K.mul (Zs K x (5)) (Zs K x (w + 4)))))) := by
                  have h := A2.mk K O x hT (w + 3) (0) (3)
                  try rw [show (0) + (3) + 1 + (w + 3) = w + 7 by lib_nat] at h
                  try rw [show (0) + (3) + 1 = 4 by lib_nat] at h
                  try rw [show (0) + (w + 3) = w + 3 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 7))))) := A1.Dn K O x hD (0) (w + 6) (0) (1) (2) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 7))))) := A1.Dn K O x hD (0) (w + 6) (0) (1) (2) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 11))))) := A1.Dn K O x hD (0) (w + 10) (0) (1) (2) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t9 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (w + 7))) := O.mul_nonneg _ _ (hx (1)) (hx (w + 6))
                have t10 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (w + 7))) := O.mul_nonneg _ _ (hx (1)) (hx (w + 6))
                have t11 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (w + 11))) := O.mul_nonneg _ _ (hx (1)) (hx (w + 10))
                have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 4)) (Zs K x (w + 6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 5))))) := A1.Dn K O x hD (2) (w + 2) (2) (3) (4) (w + 4) (w + 5) (w + 6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t13 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 4)) (Zs K x (w + 6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 5))))) := A1.Dn K O x hD (2) (w + 2) (2) (3) (4) (w + 4) (w + 5) (w + 6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t14 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t15 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (w + 8))) := O.mul_nonneg _ _ (hx (2)) (hx (w + 7))
                have t16 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (5)) (Zs K x (w + 10)))))) := by
                  have h := A2.mk K O x hT (w + 6) (3) (0)
                  try rw [show (3) + (0) + 1 + (w + 6) = w + 10 by lib_nat] at h
                  try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                  try rw [show (3) + (w + 6) = w + 9 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t17 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (5)) (Zs K x (w + 10)))))) := by
                  have h := A2.mk K O x hT (w + 6) (3) (0)
                  try rw [show (3) + (0) + 1 + (w + 6) = w + 10 by lib_nat] at h
                  try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                  try rw [show (3) + (w + 6) = w + 9 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t18 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 9))) (K.neg (K.mul (Zs K x (6)) (Zs K x (w + 7)))))) := by
                  have h := A2.mk K O x hT (w + 3) (3) (1)
                  try rw [show (3) + (1) + 1 + (w + 3) = w + 8 by lib_nat] at h
                  try rw [show (3) + (1) + 1 = 5 by lib_nat] at h
                  try rw [show (3) + (w + 3) = w + 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t19 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 9))) (K.neg (K.mul (Zs K x (6)) (Zs K x (w + 7)))))) := by
                  have h := A2.mk K O x hT (w + 3) (3) (1)
                  try rw [show (3) + (1) + 1 + (w + 3) = w + 8 by lib_nat] at h
                  try rw [show (3) + (1) + 1 = 5 by lib_nat] at h
                  try rw [show (3) + (w + 3) = w + 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t20 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (w + 9))) := O.mul_nonneg _ _ (hx (3)) (hx (w + 8))
                have t21 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 7))))) := A1.Dn K O x hD (4) (w + 2) (4) (5) (6) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t22 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 7))))) := A1.Dn K O x hD (4) (w + 2) (4) (5) (6) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact nn_scale K O h1 h10 2 (Nat.le_of_ble_eq_true rfl) _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (  -- (+211 chars; full line in the Zenodo source)
    | succ i =>
      cases i with
      | zero =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7)))) (K.neg (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
          have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (3))))) := A1.Dn K O x hD (1) (1) (1) (2) (3) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t3 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (8))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6)))))) := by
            have h := A2.mk K O x hT (2) (3) (1)
            try rw [show (3) + (1) + 1 + (2) = 7 by lib_nat] at h
            try rw [show (3) + (1) + 1 = 5 by lib_nat] at h
            try rw [show (3) + (2) = 5 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t5 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (6))) := O.mul_nonneg _ _ (hx (1)) (hx (5))
          exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
            have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (3))))) := A1.Dn K O x hD (0) (2) (0) (1) (2) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (5))))) := A1.Dn K O x hD (0) (4) (0) (1) (2) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t3 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (9))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7)))))) := by
              have h := A2.mk K O x hT (3) (3) (1)
              try rw [show (3) + (1) + 1 + (3) = 8 by lib_nat] at h
              try rw [show (3) + (1) + 1 = 5 by lib_nat] at h
              try rw [show (3) + (3) = 6 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t5 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (7))) := O.mul_nonneg _ _ (hx (1)) (hx (6))
            have t6 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (2)) (hx (3))
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (4))))) := A1.Dn K O x hD (0) (3) (0) (1) (2) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (3))))) := A1.Dn K O x hD (1) (1) (1) (2) (3) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t4 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (10))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6)))))) := by
                have h := A2.mk K O x hT (4) (1) (3)
                try rw [show (1) + (3) + 1 + (4) = 9 by lib_nat] at h
                try rw [show (1) + (3) + 1 = 5 by lib_nat] at h
                try rw [show (1) + (4) = 5 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t8 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (9))) (K.neg (K.mul (Zs K x (6)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (3) (4) (0)
                try rw [show (4) + (0) + 1 + (3) = 8 by lib_nat] at h
                try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                try rw [show (4) + (3) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t9 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (0)) (hx (4))
              have t10 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (9))) := O.mul_nonneg _ _ (hx (0)) (hx (8))
              have t11 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (2)) (hx (4))
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (7))))) := A1.Dn K O x hD (0) (6) (0) (1) (2) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (8))))) := A1.Dn K O x hD (1) (6) (1) (2) (3) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t6 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (11))) (K.neg (K.mul (Zs K x (7)) (Zs K x (8)))))) := by
                  have h := A2.mk K O x hT (4) (3) (2)
                  try rw [show (3) + (2) + 1 + (4) = 10 by lib_nat] at h
                  try rw [show (3) + (2) + 1 = 6 by lib_nat] at h
                  try rw [show (3) + (4) = 7 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (10))))) := A1.Dn K O x hD (3) (6) (3) (4) (5) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (8))))) := A1.Dn K O x hD (5) (2) (5) (6) (7) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t9 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (0)) (hx (3))
                have t10 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (6))) := O.mul_nonneg _ _ (hx (2)) (hx (5))
                have t11 : O.le K.zero (K.mul (Zs K x (5)) (Zs K x (6))) := O.mul_nonneg _ _ (hx (4)) (hx (5))
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (K.add (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (Zs K x (11)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (10))))) := A1.Dn K O x hD (0) (9) (0) (1) (2) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (12))) (K.neg (K.mul (Zs K x (7)) (Zs K x (7)))))) := by
                    have h := A2.mk K O x hT (5) (1) (4)
                    try rw [show (1) + (4) + 1 + (5) = 11 by lib_nat] at h
                    try rw [show (1) + (4) + 1 = 6 by lib_nat] at h
                    try rw [show (1) + (5) = 6 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (11))))) := A1.Dn K O x hD (1) (9) (1) (2) (3) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
                    have h := A2.mk K O x hT (3) (2) (0)
                    try rw [show (2) + (0) + 1 + (3) = 6 by lib_nat] at h
                    try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                    try rw [show (2) + (3) = 5 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t7 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (11))) (K.neg (K.mul (Zs K x (6)) (Zs K x (10)))))) := by
                    have h := A2.mk K O x hT (5) (4) (0)
                    try rw [show (4) + (0) + 1 + (5) = 10 by lib_nat] at h
                    try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                    try rw [show (4) + (5) = 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (7))))) := A1.Dn K O x hD (5) (1) (5) (6) (7) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t9 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (1)) (hx (3))
                  have t10 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (6))) := O.mul_nonneg _ _ (hx (1)) (hx (5))
                  have t11 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (9))) := O.mul_nonneg _ _ (hx (2)) (hx (8))
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) (by lib_ring)
                | succ w =>
                  rw [show 0 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (K.add (K.add (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (w + 10))) (Zs K x (w + 12)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (w + 9))) (Zs K x (w + 11))) (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 11))))) := A1.Dn K O x hD (0) (w + 10) (0) (1) (2) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 13))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (7)))))) := by
                    have h := A2.mk K O x hT (5) (1) (w + 5)
                    try rw [show (1) + (w + 5) + 1 + (5) = w + 12 by lib_nat] at h
                    try rw [show (1) + (w + 5) + 1 = w + 7 by lib_nat] at h
                    try rw [show (1) + (5) = 6 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 10))))) := A1.Dn K O x hD (1) (w + 8) (1) (2) (3) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 12))))) := A1.Dn K O x hD (1) (w + 10) (1) (2) (3) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 8))) (K.neg (K.mul (Zs K x (w + 5)) (Zs K x (6)))))) := by
                    have h := A2.mk K O x hT (3) (2) (w + 1)
                    try rw [show (2) + (w + 1) + 1 + (3) = w + 7 by lib_nat] at h
                    try rw [show (2) + (w + 1) + 1 = w + 4 by lib_nat] at h
                    try rw [show (2) + (3) = 5 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 6))))) := A1.Dn K O x hD (3) (w + 2) (3) (4) (5) (w + 5) (w + 6) (w + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t7 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (6)))))) := by
                    have h := A2.mk K O x hT (1) (4) (w + 5)
                    try rw [show (4) + (w + 5) + 1 + (1) = w + 11 by lib_nat] at h
                    try rw [show (4) + (w + 5) + 1 = w + 10 by lib_nat] at h
                    try rw [show (4) + (1) = 5 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 8))))) := A1.Dn K O x hD (5) (w + 2) (5) (6) (7) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t9 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (w + 5))) := O.mul_nonneg _ _ (hx (1)) (hx (w + 4))
                  have t10 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (w + 7))) := O.mul_nonneg _ _ (hx (1)) (hx (w + 6))
                  have t11 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (w + 10))) := O.mul_nonneg _ _ (hx (2)) (hx (w + 9))
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) (by lib_ring)
      | succ i =>
        cases i with
        | zero =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7)))))))
            have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (2))))) := A1.Dn K O x hD (0) (1) (0) (1) (2) (1) (2) (3) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (9))) (K.neg (K.mul (Zs K x (3)) (Zs K x (7)))))) := by
              have h := A2.mk K O x hT (6) (0) (1)
              try rw [show (0) + (1) + 1 + (6) = 8 by lib_nat] at h
              try rw [show (0) + (1) + 1 = 2 by lib_nat] at h
              try rw [show (0) + (6) = 6 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (4))))) := A1.Dn K O x hD (0) (3) (0) (1) (2) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (8))))) := A1.Dn K O x hD (0) (7) (0) (1) (2) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t8 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (9))) (K.neg (K.mul (Zs K x (7)) (Zs K x (7)))))) := by
              have h := A2.mk K O x hT (2) (4) (1)
              try rw [show (4) + (1) + 1 + (2) = 8 by lib_nat] at h
              try rw [show (4) + (1) + 1 = 6 by lib_nat] at h
              try rw [show (4) + (2) = 6 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7)))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (3))))) := A1.Dn K O x hD (0) (2) (0) (1) (2) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (7))))) := A1.Dn K O x hD (0) (6) (0) (1) (2) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (9))) (K.neg (K.mul (Zs K x (3)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (6) (1) (0)
                try rw [show (1) + (0) + 1 + (6) = 8 by lib_nat] at h
                try rw [show (1) + (0) + 1 = 2 by lib_nat] at h
                try rw [show (1) + (6) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t3 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (10))) (K.neg (K.mul (Zs K x (7)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (3) (4) (1)
                try rw [show (4) + (1) + 1 + (3) = 9 by lib_nat] at h
                try rw [show (4) + (1) + 1 = 6 by lib_nat] at h
                try rw [show (4) + (3) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t5 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (3))) := O.mul_nonneg _ _ (hx (1)) (hx (2))
              have t6 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (7))) := O.mul_nonneg _ _ (hx (1)) (hx (6))
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7)))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (9))) (K.neg (K.mul (Zs K x (3)) (Zs K x (7)))))) := by
                  have h := A2.mk K O x hT (6) (0) (1)
                  try rw [show (0) + (1) + 1 + (6) = 8 by lib_nat] at h
                  try rw [show (0) + (1) + 1 = 2 by lib_nat] at h
                  try rw [show (0) + (6) = 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (4))))) := A1.Dn K O x hD (0) (3) (0) (1) (2) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (8))))) := A1.Dn K O x hD (0) (7) (0) (1) (2) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (11))) (K.neg (K.mul (Zs K x (7)) (Zs K x (7)))))) := by
                  have h := A2.mk K O x hT (4) (2) (3)
                  try rw [show (2) + (3) + 1 + (4) = 10 by lib_nat] at h
                  try rw [show (2) + (3) + 1 = 6 by lib_nat] at h
                  try rw [show (2) + (4) = 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (10))))) := A1.Dn K O x hD (2) (7) (2) (3) (4) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t9 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (10))) (K.neg (K.mul (Zs K x (7)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (3) (5) (0)
                  try rw [show (5) + (0) + 1 + (3) = 9 by lib_nat] at h
                  try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                  try rw [show (5) + (3) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t10 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (9))) := O.mul_nonneg _ _ (hx (0)) (hx (8))
                have t11 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (1)) (hx (3))
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (Zs K x (11)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10))) (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (5))))) := A1.Dn K O x hD (0) (4) (0) (1) (2) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (9))))) := A1.Dn K O x hD (0) (8) (0) (1) (2) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (12))) (K.neg (K.mul (Zs K x (6)) (Zs K x (9)))))) := by
                    have h := A2.mk K O x hT (6) (2) (2)
                    try rw [show (2) + (2) + 1 + (6) = 11 by lib_nat] at h
                    try rw [show (2) + (2) + 1 = 5 by lib_nat] at h
                    try rw [show (2) + (6) = 8 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (11))))) := A1.Dn K O x hD (2) (8) (2) (3) (4) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t8 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (11))) (K.neg (K.mul (Zs K x (8)) (Zs K x (9)))))) := by
                    have h := A2.mk K O x hT (3) (5) (1)
                    try rw [show (5) + (1) + 1 + (3) = 10 by lib_nat] at h
                    try rw [show (5) + (1) + 1 = 7 by lib_nat] at h
                    try rw [show (5) + (3) = 8 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (9))))) := A1.Dn K O x hD (6) (2) (6) (7) (8) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t10 : O.le K.zero (K.mul (Zs K x (2)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (1)) (hx (4))
                  have t11 : O.le K.zero (K.mul (Zs K x (5)) (Zs K x (6))) := O.mul_nonneg _ _ (hx (4)) (hx (5))
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))) (Zs K x (12)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (Zs K x (11))) (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7)))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (7))) (K.neg (K.mul (Zs K x (3)) (Zs K x (5)))))) := by
                      have h := A2.mk K O x hT (4) (0) (1)
                      try rw [show (0) + (1) + 1 + (4) = 6 by lib_nat] at h
                      try rw [show (0) + (1) + 1 = 2 by lib_nat] at h
                      try rw [show (0) + (4) = 4 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (8))))) := A1.Dn K O x hD (0) (7) (0) (1) (2) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (10))))) := A1.Dn K O x hD (0) (9) (0) (1) (2) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (10))) (K.neg (K.mul (Zs K x (5)) (Zs K x (7)))))) := by
                      have h := A2.mk K O x hT (5) (1) (2)
                      try rw [show (1) + (2) + 1 + (5) = 9 by lib_nat] at h
                      try rw [show (1) + (2) + 1 = 4 by lib_nat] at h
                      try rw [show (1) + (5) = 6 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t7 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (13))) (K.neg (K.mul (Zs K x (8)) (Zs K x (8)))))) := by
                      have h := A2.mk K O x hT (5) (2) (4)
                      try rw [show (2) + (4) + 1 + (5) = 12 by lib_nat] at h
                      try rw [show (2) + (4) + 1 = 7 by lib_nat] at h
                      try rw [show (2) + (5) = 7 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (12))))) := A1.Dn K O x hD (2) (9) (2) (3) (4) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t11 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (12))) (K.neg (K.mul (Zs K x (7)) (Zs K x (11)))))) := by
                      have h := A2.mk K O x hT (5) (5) (0)
                      try rw [show (5) + (0) + 1 + (5) = 11 by lib_nat] at h
                      try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                      try rw [show (5) + (5) = 10 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (8))))) := A1.Dn K O x hD (6) (1) (6) (7) (8) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t13 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (9))) := O.mul_nonneg _ _ (hx (2)) (hx (8))
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) t13) (by lib_ring)
                  | succ w =>
                    rw [show 0 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (K.add (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (w + 11))) (Zs K x (w + 13)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (w + 10))) (Zs K x (w + 12))) (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7)))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 7))))) := A1.Dn K O x hD (0) (w + 6) (0) (1) (2) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 14))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (8)))))) := by
                      have h := A2.mk K O x hT (7) (0) (w + 5)
                      try rw [show (0) + (w + 5) + 1 + (7) = w + 13 by lib_nat] at h
                      try rw [show (0) + (w + 5) + 1 = w + 6 by lib_nat] at h
                      try rw [show (0) + (7) = 7 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 9))))) := A1.Dn K O x hD (0) (w + 8) (0) (1) (2) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 12)) (Zs K x (w + 14))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 13))))) := A1.Dn K O x hD (0) (w + 12) (0) (1) (2) (w + 12) (w + 13) (w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 9))) (K.neg (K.mul (Zs K x (w + 6)) (Zs K x (5)))))) := by
                      have h := A2.mk K O x hT (3) (1) (w + 3)
                      try rw [show (1) + (w + 3) + 1 + (3) = w + 8 by lib_nat] at h
                      try rw [show (1) + (w + 3) + 1 = w + 5 by lib_nat] at h
                      try rw [show (1) + (3) = 4 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 7))))) := A1.Dn K O x hD (2) (w + 4) (2) (3) (4) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 11))))) := A1.Dn K O x hD (2) (w + 8) (2) (3) (4) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 9))))) := A1.Dn K O x hD (4) (w + 4) (4) (5) (6) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t9 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (w + 14))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (8)))))) := by
                      have h := A2.mk K O x hT (3) (4) (w + 5)
                      try rw [show (4) + (w + 5) + 1 + (3) = w + 13 by lib_nat] at h
                      try rw [show (4) + (w + 5) + 1 = w + 10 by lib_nat] at h
                      try rw [show (4) + (3) = 7 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 12)) (Zs K x (w + 14))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 13))))) := A1.Dn K O x hD (4) (w + 8) (4) (5) (6) (w + 12) (w + 13) (w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t11 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (w + 7))))) := A1.Dn K O x hD (6) (w) (6) (7) (8) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t12 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (w + 11))))) := A1.Dn K O x hD (6) (w + 4) (6) (7) (8) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t13 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (w + 8))) := O.mul_nonneg _ _ (hx (2)) (hx (w + 7))
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) t11) t12) t13) (by lib_ring)
        | succ i =>
          cases i with
          | zero =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8)))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (3))))) := A1.Dn K O x hD (1) (1) (1) (2) (3) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (10))) (K.neg (K.mul (Zs K x (4)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (6) (1) (1)
                try rw [show (1) + (1) + 1 + (6) = 9 by lib_nat] at h
                try rw [show (1) + (1) + 1 = 3 by lib_nat] at h
                try rw [show (1) + (6) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (7))))) := A1.Dn K O x hD (5) (1) (5) (6) (7) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t8 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (10))) (K.neg (K.mul (Zs K x (8)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (2) (5) (1)
                try rw [show (5) + (1) + 1 + (2) = 9 by lib_nat] at h
                try rw [show (5) + (1) + 1 = 7 by lib_nat] at h
                try rw [show (5) + (2) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8)))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (6))) (K.neg (K.mul (Zs K x (3)) (Zs K x (4)))))) := by
                  have h := A2.mk K O x hT (3) (0) (1)
                  try rw [show (0) + (1) + 1 + (3) = 5 by lib_nat] at h
                  try rw [show (0) + (1) + 1 = 2 by lib_nat] at h
                  try rw [show (0) + (3) = 3 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (10))) (K.neg (K.mul (Zs K x (3)) (Zs K x (8)))))) := by
                  have h := A2.mk K O x hT (7) (0) (1)
                  try rw [show (0) + (1) + 1 + (7) = 9 by lib_nat] at h
                  try rw [show (0) + (1) + 1 = 2 by lib_nat] at h
                  try rw [show (0) + (7) = 7 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (8))))) := A1.Dn K O x hD (1) (6) (1) (2) (3) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (11))) (K.neg (K.mul (Zs K x (5)) (Zs K x (10)))))) := by
                  have h := A2.mk K O x hT (6) (3) (0)
                  try rw [show (3) + (0) + 1 + (6) = 10 by lib_nat] at h
                  try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                  try rw [show (3) + (6) = 9 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (10))))) := A1.Dn K O x hD (3) (6) (3) (4) (5) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t6 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (11))) (K.neg (K.mul (Zs K x (8)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (3) (5) (1)
                  try rw [show (5) + (1) + 1 + (3) = 10 by lib_nat] at h
                  try rw [show (5) + (1) + 1 = 7 by lib_nat] at h
                  try rw [show (5) + (3) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (10))))) := A1.Dn K O x hD (5) (4) (5) (6) (7) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (Zs K x (11)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10))) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8)))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (7))) (K.neg (K.mul (Zs K x (3)) (Zs K x (5)))))) := by
                    have h := A2.mk K O x hT (4) (0) (1)
                    try rw [show (0) + (1) + 1 + (4) = 6 by lib_nat] at h
                    try rw [show (0) + (1) + 1 = 2 by lib_nat] at h
                    try rw [show (0) + (4) = 4 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (11))) (K.neg (K.mul (Zs K x (4)) (Zs K x (8)))))) := by
                    have h := A2.mk K O x hT (7) (0) (2)
                    try rw [show (0) + (2) + 1 + (7) = 10 by lib_nat] at h
                    try rw [show (0) + (2) + 1 = 3 by lib_nat] at h
                    try rw [show (0) + (7) = 7 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t6 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (12))) (K.neg (K.mul (Zs K x (8)) (Zs K x (8)))))) := by
                    have h := A2.mk K O x hT (4) (3) (3)
                    try rw [show (3) + (3) + 1 + (4) = 11 by lib_nat] at h
                    try rw [show (3) + (3) + 1 = 7 by lib_nat] at h
                    try rw [show (3) + (4) = 7 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (11))))) := A1.Dn K O x hD (3) (7) (3) (4) (5) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (7))))) := A1.Dn K O x hD (5) (1) (5) (6) (7) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t10 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (11))) (K.neg (K.mul (Zs K x (8)) (Zs K x (10)))))) := by
                    have h := A2.mk K O x hT (3) (6) (0)
                    try rw [show (6) + (0) + 1 + (3) = 10 by lib_nat] at h
                    try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                    try rw [show (6) + (3) = 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))) (Zs K x (12)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (Zs K x (11))) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8)))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (8))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
                      have h := A2.mk K O x hT (4) (0) (2)
                      try rw [show (0) + (2) + 1 + (4) = 7 by lib_nat] at h
                      try rw [show (0) + (2) + 1 = 3 by lib_nat] at h
                      try rw [show (0) + (4) = 4 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (12))) (K.neg (K.mul (Zs K x (5)) (Zs K x (8)))))) := by
                      have h := A2.mk K O x hT (7) (0) (3)
                      try rw [show (0) + (3) + 1 + (7) = 11 by lib_nat] at h
                      try rw [show (0) + (3) + 1 = 4 by lib_nat] at h
                      try rw [show (0) + (7) = 7 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (10))))) := A1.Dn K O x hD (1) (8) (1) (2) (3) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t5 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (13))) (K.neg (K.mul (Zs K x (8)) (Zs K x (9)))))) := by
                      have h := A2.mk K O x hT (5) (3) (3)
                      try rw [show (3) + (3) + 1 + (5) = 12 by lib_nat] at h
                      try rw [show (3) + (3) + 1 = 7 by lib_nat] at h
                      try rw [show (3) + (5) = 8 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (12))))) := A1.Dn K O x hD (3) (8) (3) (4) (5) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (10))))) := A1.Dn K O x hD (5) (4) (5) (6) (7) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t8 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (12))) (K.neg (K.mul (Zs K x (8)) (Zs K x (11)))))) := by
                      have h := A2.mk K O x hT (4) (6) (0)
                      try rw [show (6) + (0) + 1 + (4) = 11 by lib_nat] at h
                      try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                      try rw [show (6) + (4) = 10 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (11))) (Zs K x (13)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))) (Zs K x (12))) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8)))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (9))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
                        have h := A2.mk K O x hT (5) (0) (2)
                        try rw [show (0) + (2) + 1 + (5) = 8 by lib_nat] at h
                        try rw [show (0) + (2) + 1 = 3 by lib_nat] at h
                        try rw [show (0) + (5) = 5 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (13))) (K.neg (K.mul (Zs K x (6)) (Zs K x (8)))))) := by
                        have h := A2.mk K O x hT (7) (0) (4)
                        try rw [show (0) + (4) + 1 + (7) = 12 by lib_nat] at h
                        try rw [show (0) + (4) + 1 = 5 by lib_nat] at h
                        try rw [show (0) + (7) = 7 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (11))))) := A1.Dn K O x hD (1) (9) (1) (2) (3) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t5 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (14))) (K.neg (K.mul (Zs K x (9)) (Zs K x (9)))))) := by
                        have h := A2.mk K O x hT (5) (3) (4)
                        try rw [show (3) + (4) + 1 + (5) = 13 by lib_nat] at h
                        try rw [show (3) + (4) + 1 = 8 by lib_nat] at h
                        try rw [show (3) + (5) = 8 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (12)) (Zs K x (14))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (13))))) := A1.Dn K O x hD (3) (9) (3) (4) (5) (12) (13) (14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (7))))) := A1.Dn K O x hD (5) (1) (5) (6) (7) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (11))))) := A1.Dn K O x hD (5) (5) (5) (6) (7) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t9 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (13))) (K.neg (K.mul (Zs K x (8)) (Zs K x (12)))))) := by
                        have h := A2.mk K O x hT (5) (6) (0)
                        try rw [show (6) + (0) + 1 + (5) = 12 by lib_nat] at h
                        try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                        try rw [show (6) + (5) = 11 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (9))))) := A1.Dn K O x hD (7) (1) (7) (8) (9) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) (by lib_ring)
                    | succ w =>
                      rw [show 0 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (Zs K x (7))) (K.add (K.add (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (w + 12))) (Zs K x (w + 14)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (w + 11))) (Zs K x (w + 13))) (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))  -- (+19 chars; full line in the Zenodo source)
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (4)))))) := by
                        have h := A2.mk K O x hT (3) (0) (w + 5)
                        try rw [show (0) + (w + 5) + 1 + (3) = w + 9 by lib_nat] at h
                        try rw [show (0) + (w + 5) + 1 = w + 6 by lib_nat] at h
                        try rw [show (0) + (3) = 3 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 14))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (8)))))) := by
                        have h := A2.mk K O x hT (7) (0) (w + 5)
                        try rw [show (0) + (w + 5) + 1 + (7) = w + 13 by lib_nat] at h
                        try rw [show (0) + (w + 5) + 1 = w + 6 by lib_nat] at h
                        try rw [show (0) + (7) = 7 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 12))))) := A1.Dn K O x hD (1) (w + 10) (1) (2) (3) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t5 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 15))) (K.neg (K.mul (Zs K x (w + 10)) (Zs K x (9)))))) := by
                        have h := A2.mk K O x hT (5) (3) (w + 5)
                        try rw [show (3) + (w + 5) + 1 + (5) = w + 14 by lib_nat] at h
                        try rw [show (3) + (w + 5) + 1 = w + 9 by lib_nat] at h
                        try rw [show (3) + (5) = 8 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 13)) (Zs K x (w + 15))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 14))))) := A1.Dn K O x hD (3) (w + 10) (3) (4) (5) (w + 13) (w + 14) (w + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 8))))) := A1.Dn K O x hD (5) (w + 2) (5) (6) (7) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 12))))) := A1.Dn K O x hD (5) (w + 6) (5) (6) (7) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t9 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (w + 14))) (K.neg (K.mul (Zs K x (w + 13)) (Zs K x (8)))))) := by
                        have h := A2.mk K O x hT (1) (6) (w + 5)
                        try rw [show (6) + (w + 5) + 1 + (1) = w + 13 by lib_nat] at h
                        try rw [show (6) + (w + 5) + 1 = w + 12 by lib_nat] at h
                        try rw [show (6) + (1) = 7 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (w + 10))))) := A1.Dn K O x hD (7) (w + 2) (7) (8) (9) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) (by lib_ring)
          | succ i =>
            cases i with
            | zero =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9))) (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9)))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (11))) (K.neg (K.mul (Zs K x (5)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (6) (2) (1)
                  try rw [show (2) + (1) + 1 + (6) = 10 by lib_nat] at h
                  try rw [show (2) + (1) + 1 = 4 by lib_nat] at h
                  try rw [show (2) + (6) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (10))))) := A1.Dn K O x hD (2) (7) (2) (3) (4) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (8))))) := A1.Dn K O x hD (6) (1) (6) (7) (8) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t8 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (11))) (K.neg (K.mul (Zs K x (9)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (2) (6) (1)
                  try rw [show (6) + (1) + 1 + (2) = 10 by lib_nat] at h
                  try rw [show (6) + (1) + 1 = 8 by lib_nat] at h
                  try rw [show (6) + (2) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))))) := A1.Dn K O x hD (6) (3) (6) (7) (8) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (Zs K x (11)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (Zs K x (10))) (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9)))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (7))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
                    have h := A2.mk K O x hT (3) (1) (1)
                    try rw [show (1) + (1) + 1 + (3) = 6 by lib_nat] at h
                    try rw [show (1) + (1) + 1 = 3 by lib_nat] at h
                    try rw [show (1) + (3) = 4 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (11))) (K.neg (K.mul (Zs K x (4)) (Zs K x (9)))))) := by
                    have h := A2.mk K O x hT (7) (1) (1)
                    try rw [show (1) + (1) + 1 + (7) = 10 by lib_nat] at h
                    try rw [show (1) + (1) + 1 = 3 by lib_nat] at h
                    try rw [show (1) + (7) = 8 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (9))))) := A1.Dn K O x hD (2) (6) (2) (3) (4) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (11))) (K.neg (K.mul (Zs K x (5)) (Zs K x (10)))))) := by
                    have h := A2.mk K O x hT (6) (3) (0)
                    try rw [show (3) + (0) + 1 + (6) = 10 by lib_nat] at h
                    try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                    try rw [show (3) + (6) = 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t5 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (12))) (K.neg (K.mul (Zs K x (9)) (Zs K x (10)))))) := by
                    have h := A2.mk K O x hT (3) (6) (1)
                    try rw [show (6) + (1) + 1 + (3) = 11 by lib_nat] at h
                    try rw [show (6) + (1) + 1 = 8 by lib_nat] at h
                    try rw [show (6) + (3) = 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (11))))) := A1.Dn K O x hD (6) (4) (6) (7) (8) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))) (Zs K x (12)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (Zs K x (11))) (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9)))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (8))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
                      have h := A2.mk K O x hT (4) (1) (1)
                      try rw [show (1) + (1) + 1 + (4) = 7 by lib_nat] at h
                      try rw [show (1) + (1) + 1 = 3 by lib_nat] at h
                      try rw [show (1) + (4) = 5 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (12))) (K.neg (K.mul (Zs K x (5)) (Zs K x (9)))))) := by
                      have h := A2.mk K O x hT (7) (1) (2)
                      try rw [show (1) + (2) + 1 + (7) = 11 by lib_nat] at h
                      try rw [show (1) + (2) + 1 = 4 by lib_nat] at h
                      try rw [show (1) + (7) = 8 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (10))))) := A1.Dn K O x hD (2) (7) (2) (3) (4) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t6 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (13))) (K.neg (K.mul (Zs K x (9)) (Zs K x (9)))))) := by
                      have h := A2.mk K O x hT (4) (4) (3)
                      try rw [show (4) + (3) + 1 + (4) = 12 by lib_nat] at h
                      try rw [show (4) + (3) + 1 = 8 by lib_nat] at h
                      try rw [show (4) + (4) = 8 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (12))))) := A1.Dn K O x hD (4) (7) (4) (5) (6) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (8))))) := A1.Dn K O x hD (6) (1) (6) (7) (8) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))))) := A1.Dn K O x hD (6) (3) (6) (7) (8) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t10 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (12))) (K.neg (K.mul (Zs K x (9)) (Zs K x (11)))))) := by
                      have h := A2.mk K O x hT (3) (7) (0)
                      try rw [show (7) + (0) + 1 + (3) = 11 by lib_nat] at h
                      try rw [show (7) + (0) + 1 = 8 by lib_nat] at h
                      try rw [show (7) + (3) = 10 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (11))) (Zs K x (13)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))) (Zs K x (12))) (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9)))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (9))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6)))))) := by
                        have h := A2.mk K O x hT (4) (1) (2)
                        try rw [show (1) + (2) + 1 + (4) = 8 by lib_nat] at h
                        try rw [show (1) + (2) + 1 = 4 by lib_nat] at h
                        try rw [show (1) + (4) = 5 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (13))) (K.neg (K.mul (Zs K x (6)) (Zs K x (9)))))) := by
                        have h := A2.mk K O x hT (7) (1) (3)
                        try rw [show (1) + (3) + 1 + (7) = 12 by lib_nat] at h
                        try rw [show (1) + (3) + 1 = 5 by lib_nat] at h
                        try rw [show (1) + (7) = 8 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (11))))) := A1.Dn K O x hD (2) (8) (2) (3) (4) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t5 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (14))) (K.neg (K.mul (Zs K x (9)) (Zs K x (10)))))) := by
                        have h := A2.mk K O x hT (5) (4) (3)
                        try rw [show (4) + (3) + 1 + (5) = 13 by lib_nat] at h
                        try rw [show (4) + (3) + 1 = 8 by lib_nat] at h
                        try rw [show (4) + (5) = 9 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (12)) (Zs K x (14))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (13))))) := A1.Dn K O x hD (4) (8) (4) (5) (6) (12) (13) (14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (11))))) := A1.Dn K O x hD (6) (4) (6) (7) (8) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t8 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (13))) (K.neg (K.mul (Zs K x (9)) (Zs K x (12)))))) := by
                        have h := A2.mk K O x hT (4) (7) (0)
                        try rw [show (7) + (0) + 1 + (4) = 12 by lib_nat] at h
                        try rw [show (7) + (0) + 1 = 8 by lib_nat] at h
                        try rw [show (7) + (4) = 11 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (12))) (Zs K x (14)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (11))) (Zs K x (13))) (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (Zs K x (9)))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (10))) (K.neg (K.mul (Zs K x (5)) (Zs K x (7)))))) := by
                          have h := A2.mk K O x hT (5) (1) (2)
                          try rw [show (1) + (2) + 1 + (5) = 9 by lib_nat] at h
                          try rw [show (1) + (2) + 1 = 4 by lib_nat] at h
                          try rw [show (1) + (5) = 6 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (14))) (K.neg (K.mul (Zs K x (7)) (Zs K x (9)))))) := by
                          have h := A2.mk K O x hT (7) (1) (4)
                          try rw [show (1) + (4) + 1 + (7) = 13 by lib_nat] at h
                          try rw [show (1) + (4) + 1 = 6 by lib_nat] at h
                          try rw [show (1) + (7) = 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (12))))) := A1.Dn K O x hD (2) (9) (2) (3) (4) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t5 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (15))) (K.neg (K.mul (Zs K x (10)) (Zs K x (10)))))) := by
                          have h := A2.mk K O x hT (5) (4) (4)
                          try rw [show (4) + (4) + 1 + (5) = 14 by lib_nat] at h
                          try rw [show (4) + (4) + 1 = 9 by lib_nat] at h
                          try rw [show (4) + (5) = 9 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (13)) (Zs K x (15))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (14))))) := A1.Dn K O x hD (4) (9) (4) (5) (6) (13) (14) (15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (8))))) := A1.Dn K O x hD (6) (1) (6) (7) (8) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (12))))) := A1.Dn K O x hD (6) (5) (6) (7) (8) (11) (12) (13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t9 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (14))) (K.neg (K.mul (Zs K x (9)) (Zs K x (13)))))) := by
                          have h := A2.mk K O x hT (5) (7) (0)
                          try rw [show (7) + (0) + 1 + (5) = 13 by lib_nat] at h
                          try rw [show (7) + (0) + 1 = 8 by lib_nat] at h
                          try rw [show (7) + (5) = 12 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (9))) (K.neg (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (10))))) := A1.Dn K O x hD (8) (1) (8) (9) (10) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) (by lib_ring)
                      | succ w =>
                        rw [show 0 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (Zs K x (8))) (K.add (K.add (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (w + 13))) (Zs K x (w + 15)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (w + 12))) (Zs K x (w + 14))) (K.add (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (  -- (+22 chars; full line in the Zenodo source)
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (5)))))) := by
                          have h := A2.mk K O x hT (3) (1) (w + 5)
                          try rw [show (1) + (w + 5) + 1 + (3) = w + 10 by lib_nat] at h
                          try rw [show (1) + (w + 5) + 1 = w + 7 by lib_nat] at h
                          try rw [show (1) + (3) = 4 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 15))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (9)))))) := by
                          have h := A2.mk K O x hT (7) (1) (w + 5)
                          try rw [show (1) + (w + 5) + 1 + (7) = w + 14 by lib_nat] at h
                          try rw [show (1) + (w + 5) + 1 = w + 7 by lib_nat] at h
                          try rw [show (1) + (7) = 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 12)) (Zs K x (w + 14))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 13))))) := A1.Dn K O x hD (2) (w + 10) (2) (3) (4) (w + 12) (w + 13) (w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 11))))) := A1.Dn K O x hD (4) (w + 6) (4) (5) (6) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t5 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (w + 16))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (10)))))) := by
                          have h := A2.mk K O x hT (5) (4) (w + 5)
                          try rw [show (4) + (w + 5) + 1 + (5) = w + 15 by lib_nat] at h
                          try rw [show (4) + (w + 5) + 1 = w + 10 by lib_nat] at h
                          try rw [show (4) + (5) = 9 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 14)) (Zs K x (w + 16))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 15))))) := A1.Dn K O x hD (4) (w + 10) (4) (5) (6) (w + 14) (w + 15) (w + 16) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (w + 9))))) := A1.Dn K O x hD (6) (w + 2) (6) (7) (8) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 12)) (Zs K x (w + 14))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (w + 13))))) := A1.Dn K O x hD (6) (w + 6) (6) (7) (8) (w + 12) (w + 13) (w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t9 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (w + 15))) (K.neg (K.mul (Zs K x (w + 14)) (Zs K x (9)))))) := by
                          have h := A2.mk K O x hT (1) (7) (w + 5)
                          try rw [show (7) + (w + 5) + 1 + (1) = w + 14 by lib_nat] at h
                          try rw [show (7) + (w + 5) + 1 = w + 13 by lib_nat] at h
                          try rw [show (7) + (1) = 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (9))) (K.neg (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (w + 11))))) := A1.Dn K O x hD (8) (w + 2) (8) (9) (10) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) (by lib_ring)
            | succ a =>
              cases w with
              | zero =>
                rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 = a + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))) (Zs K x (a + 9))) (K.add (K.add (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9))) (Zs K x (a + 11)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))) (Zs K x (a + 10))) (K.add (K.add (K.add (Zs K x (a + 4)) (Zs K x (a + 6)  -- (+43 chars; full line in the Zenodo source)
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 5))))) := A1.Dn K O x hD (a + 3) (1) (a + 3) (a + 4) (a + 5) (a + 4) (a + 5) (a + 6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 4)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 6)) (Zs K x (a + 10)))))) := by
                  have h := A2.mk K O x hT (6) (a + 3) (1)
                  try rw [show (a + 3) + (1) + 1 + (6) = a + 11 by lib_nat] at h
                  try rw [show (a + 3) + (1) + 1 = a + 5 by lib_nat] at h
                  try rw [show (a + 3) + (6) = a + 9 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))))) := A1.Dn K O x hD (a + 3) (3) (a + 3) (a + 4) (a + 5) (a + 6) (a + 7) (a + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 3) (5) (a + 3) (a + 4) (a + 5) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 3) (7) (a + 3) (a + 4) (a + 5) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 7))))) := A1.Dn K O x hD (a + 5) (1) (a + 5) (a + 6) (a + 7) (a + 6) (a + 7) (a + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 5) (3) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 7) (1) (a + 7) (a + 8) (a + 9) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t8 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 8)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 10)))))) := by
                  have h := A2.mk K O x hT (2) (a + 7) (1)
                  try rw [show (a + 7) + (1) + 1 + (2) = a + 11 by lib_nat] at h
                  try rw [show (a + 7) + (1) + 1 = a + 9 by lib_nat] at h
                  try rw [show (a + 7) + (2) = a + 9 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 7) (3) (a + 7) (a + 8) (a + 9) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1) + 1 = a + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))) (Zs K x (a + 9))) (K.add (K.add (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 10))) (Zs K x (a + 12)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9))) (Zs K x (a + 11))) (K.add (K.add (K.add (Zs K x (a + 4)) (Zs K x (a +  -- (+46 chars; full line in the Zenodo source)
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 3)) (Zs K x (a + 8))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 6)))))) := by
                    have h := A2.mk K O x hT (3) (a + 2) (1)
                    try rw [show (a + 2) + (1) + 1 + (3) = a + 7 by lib_nat] at h
                    try rw [show (a + 2) + (1) + 1 = a + 4 by lib_nat] at h
                    try rw [show (a + 2) + (3) = a + 5 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 3)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 10)))))) := by
                    have h := A2.mk K O x hT (7) (a + 2) (1)
                    try rw [show (a + 2) + (1) + 1 + (7) = a + 11 by lib_nat] at h
                    try rw [show (a + 2) + (1) + 1 = a + 4 by lib_nat] at h
                    try rw [show (a + 2) + (7) = a + 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 6))))) := A1.Dn K O x hD (a + 3) (2) (a + 3) (a + 4) (a + 5) (a + 5) (a + 6) (a + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 3) (6) (a + 3) (a + 4) (a + 5) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 5)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 6)) (Zs K x (a + 11)))))) := by
                    have h := A2.mk K O x hT (6) (a + 4) (0)
                    try rw [show (a + 4) + (0) + 1 + (6) = a + 11 by lib_nat] at h
                    try rw [show (a + 4) + (0) + 1 = a + 5 by lib_nat] at h
                    try rw [show (a + 4) + (6) = a + 10 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t5 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 8)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 11)))))) := by
                    have h := A2.mk K O x hT (3) (a + 7) (1)
                    try rw [show (a + 7) + (1) + 1 + (3) = a + 12 by lib_nat] at h
                    try rw [show (a + 7) + (1) + 1 = a + 9 by lib_nat] at h
                    try rw [show (a + 7) + (3) = a + 10 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 7) (4) (a + 7) (a + 8) (a + 9) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1) + 1 = a + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))) (Zs K x (a + 9))) (K.add (K.add (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 11))) (Zs K x (a + 13)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 10))) (Zs K x (a + 12))) (K.add (K.add (K.add (Zs K x (a + 4)) (Zs K x (  -- (+49 chars; full line in the Zenodo source)
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 3)) (Zs K x (a + 9))) (K.neg (K.mul (Zs K x (a + 5)) (Zs K x (a + 7)))))) := by
                      have h := A2.mk K O x hT (4) (a + 2) (1)
                      try rw [show (a + 2) + (1) + 1 + (4) = a + 8 by lib_nat] at h
                      try rw [show (a + 2) + (1) + 1 = a + 4 by lib_nat] at h
                      try rw [show (a + 2) + (4) = a + 6 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 3)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 6)) (Zs K x (a + 10)))))) := by
                      have h := A2.mk K O x hT (7) (a + 2) (2)
                      try rw [show (a + 2) + (2) + 1 + (7) = a + 12 by lib_nat] at h
                      try rw [show (a + 2) + (2) + 1 = a + 5 by lib_nat] at h
                      try rw [show (a + 2) + (7) = a + 9 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))))) := A1.Dn K O x hD (a + 3) (3) (a + 3) (a + 4) (a + 5) (a + 6) (a + 7) (a + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 3) (7) (a + 3) (a + 4) (a + 5) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 7))))) := A1.Dn K O x hD (a + 5) (1) (a + 5) (a + 6) (a + 7) (a + 6) (a + 7) (a + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t5 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 5) (3) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t6 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 6)) (Zs K x (a + 14))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 10)))))) := by
                      have h := A2.mk K O x hT (4) (a + 5) (3)
                      try rw [show (a + 5) + (3) + 1 + (4) = a + 13 by lib_nat] at h
                      try rw [show (a + 5) + (3) + 1 = a + 9 by lib_nat] at h
                      try rw [show (a + 5) + (4) = a + 9 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 12)) (Zs K x (a + 14))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 13))))) := A1.Dn K O x hD (a + 5) (7) (a + 5) (a + 6) (a + 7) (a + 12) (a + 13) (a + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 7) (1) (a + 7) (a + 8) (a + 9) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t9 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 7) (3) (a + 7) (a + 8) (a + 9) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t10 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 12)))))) := by
                      have h := A2.mk K O x hT (3) (a + 8) (0)
                      try rw [show (a + 8) + (0) + 1 + (3) = a + 12 by lib_nat] at h
                      try rw [show (a + 8) + (0) + 1 = a + 9 by lib_nat] at h
                      try rw [show (a + 8) + (3) = a + 11 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1) + 1 = a + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))) (Zs K x (a + 9))) (K.add (K.add (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 12))) (Zs K x (a + 14)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 11))) (Zs K x (a + 13))) (K.add (K.add (K.add (Zs K x (a + 4)) (Zs K   -- (+52 chars; full line in the Zenodo source)
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 3)) (Zs K x (a + 10))) (K.neg (K.mul (Zs K x (a + 6)) (Zs K x (a + 7)))))) := by
                        have h := A2.mk K O x hT (4) (a + 2) (2)
                        try rw [show (a + 2) + (2) + 1 + (4) = a + 9 by lib_nat] at h
                        try rw [show (a + 2) + (2) + 1 = a + 5 by lib_nat] at h
                        try rw [show (a + 2) + (4) = a + 6 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 3)) (Zs K x (a + 14))) (K.neg (K.mul (Zs K x (a + 7)) (Zs K x (a + 10)))))) := by
                        have h := A2.mk K O x hT (7) (a + 2) (3)
                        try rw [show (a + 2) + (3) + 1 + (7) = a + 13 by lib_nat] at h
                        try rw [show (a + 2) + (3) + 1 = a + 6 by lib_nat] at h
                        try rw [show (a + 2) + (7) = a + 9 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 3) (4) (a + 3) (a + 4) (a + 5) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 3) (8) (a + 3) (a + 4) (a + 5) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 5) (4) (a + 5) (a + 6) (a + 7) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t5 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 6)) (Zs K x (a + 15))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 11)))))) := by
                        have h := A2.mk K O x hT (5) (a + 5) (3)
                        try rw [show (a + 5) + (3) + 1 + (5) = a + 14 by lib_nat] at h
                        try rw [show (a + 5) + (3) + 1 = a + 9 by lib_nat] at h
                        try rw [show (a + 5) + (5) = a + 10 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 13)) (Zs K x (a + 15))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 14))))) := A1.Dn K O x hD (a + 5) (8) (a + 5) (a + 6) (a + 7) (a + 13) (a + 14) (a + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 7) (4) (a + 7) (a + 8) (a + 9) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t8 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 14))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 13)))))) := by
                        have h := A2.mk K O x hT (4) (a + 8) (0)
                        try rw [show (a + 8) + (0) + 1 + (4) = a + 13 by lib_nat] at h
                        try rw [show (a + 8) + (0) + 1 = a + 9 by lib_nat] at h
                        try rw [show (a + 8) + (4) = a + 12 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1 + 1) + 1 = a + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))) (Zs K x (a + 9))) (K.add (K.add (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 13))) (Zs K x (a + 15)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 12))) (Zs K x (a + 14))) (K.add (K.add (K.add (Zs K x (a + 4)) (Zs  -- (+55 chars; full line in the Zenodo source)
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 3)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 6)) (Zs K x (a + 8)))))) := by
                          have h := A2.mk K O x hT (5) (a + 2) (2)
                          try rw [show (a + 2) + (2) + 1 + (5) = a + 10 by lib_nat] at h
                          try rw [show (a + 2) + (2) + 1 = a + 5 by lib_nat] at h
                          try rw [show (a + 2) + (5) = a + 7 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 3)) (Zs K x (a + 15))) (K.neg (K.mul (Zs K x (a + 8)) (Zs K x (a + 10)))))) := by
                          have h := A2.mk K O x hT (7) (a + 2) (4)
                          try rw [show (a + 2) + (4) + 1 + (7) = a + 14 by lib_nat] at h
                          try rw [show (a + 2) + (4) + 1 = a + 7 by lib_nat] at h
                          try rw [show (a + 2) + (7) = a + 9 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 3) (5) (a + 3) (a + 4) (a + 5) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 12)) (Zs K x (a + 14))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 13))))) := A1.Dn K O x hD (a + 3) (9) (a + 3) (a + 4) (a + 5) (a + 12) (a + 13) (a + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 5) (5) (a + 5) (a + 6) (a + 7) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t5 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 6)) (Zs K x (a + 16))) (K.neg (K.mul (Zs K x (a + 11)) (Zs K x (a + 11)))))) := by
                          have h := A2.mk K O x hT (5) (a + 5) (4)
                          try rw [show (a + 5) + (4) + 1 + (5) = a + 15 by lib_nat] at h
                          try rw [show (a + 5) + (4) + 1 = a + 10 by lib_nat] at h
                          try rw [show (a + 5) + (5) = a + 10 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 14)) (Zs K x (a + 16))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 15))))) := A1.Dn K O x hD (a + 5) (9) (a + 5) (a + 6) (a + 7) (a + 14) (a + 15) (a + 16) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 7) (1) (a + 7) (a + 8) (a + 9) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 12)) (Zs K x (a + 14))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 13))))) := A1.Dn K O x hD (a + 7) (5) (a + 7) (a + 8) (a + 9) (a + 12) (a + 13) (a + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t9 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 15))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 14)))))) := by
                          have h := A2.mk K O x hT (5) (a + 8) (0)
                          try rw [show (a + 8) + (0) + 1 + (5) = a + 14 by lib_nat] at h
                          try rw [show (a + 8) + (0) + 1 = a + 9 by lib_nat] at h
                          try rw [show (a + 8) + (5) = a + 13 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 10))) (K.neg (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 9) (1) (a + 9) (a + 10) (a + 11) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) (by lib_ring)
                      | succ w =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = a + w + 12 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + 7))) (Zs K x (a + 9))) (K.add (K.add (K.add (Zs K x (a + w + 10)) (Zs K x (a + w + 12))) (Zs K x (a + w + 14))) (Zs K x (a + w + 16)))) (K.neg (K.mul (K.add (K.add (K.add (Zs K x (a + w + 9)) (Zs K x (a + w + 11))) (Zs K x (a + w + 13))) (Zs K x (a + w + 15))) (K.add (  -- (+88 chars; full line in the Zenodo source)
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 3)) (Zs K x (a + w + 12))) (K.neg (K.mul (Zs K x (a + w + 9)) (Zs K x (a + 6)))))) := by
                          have h := A2.mk K O x hT (3) (a + 2) (w + 5)
                          try rw [show (a + 2) + (w + 5) + 1 + (3) = a + w + 11 by lib_nat] at h
                          try rw [show (a + 2) + (w + 5) + 1 = a + w + 8 by lib_nat] at h
                          try rw [show (a + 2) + (3) = a + 5 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 3)) (Zs K x (a + w + 16))) (K.neg (K.mul (Zs K x (a + w + 9)) (Zs K x (a + 10)))))) := by
                          have h := A2.mk K O x hT (7) (a + 2) (w + 5)
                          try rw [show (a + 2) + (w + 5) + 1 + (7) = a + w + 15 by lib_nat] at h
                          try rw [show (a + 2) + (w + 5) + 1 = a + w + 8 by lib_nat] at h
                          try rw [show (a + 2) + (7) = a + 9 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 9)) (Zs K x (a + w + 11))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + w + 10))))) := A1.Dn K O x hD (a + 3) (w + 6) (a + 3) (a + 4) (a + 5) (a + w + 9) (a + w + 10) (a + w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 13)) (Zs K x (a + w + 15))) (Zs K x (a + 4))) (K.neg (K.mul (K.add (Zs K x (a + 3)) (Zs K x (a + 5))) (Zs K x (a + w + 14))))) := A1.Dn K O x hD (a + 3) (w + 10) (a + 3) (a + 4) (a + 5) (a + w + 13) (a + w + 14) (a + w + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 11)) (Zs K x (a + w + 13))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + w + 12))))) := A1.Dn K O x hD (a + 5) (w + 6) (a + 5) (a + 6) (a + 7) (a + w + 11) (a + w + 12) (a + w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t5 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 6)) (Zs K x (a + w + 17))) (K.neg (K.mul (Zs K x (a + w + 12)) (Zs K x (a + 11)))))) := by
                          have h := A2.mk K O x hT (5) (a + 5) (w + 5)
                          try rw [show (a + 5) + (w + 5) + 1 + (5) = a + w + 16 by lib_nat] at h
                          try rw [show (a + 5) + (w + 5) + 1 = a + w + 11 by lib_nat] at h
                          try rw [show (a + 5) + (5) = a + 10 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t6 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 15)) (Zs K x (a + w + 17))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + w + 16))))) := A1.Dn K O x hD (a + 5) (w + 10) (a + 5) (a + 6) (a + 7) (a + w + 15) (a + w + 16) (a + w + 17) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t7 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 9)) (Zs K x (a + w + 11))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + w + 10))))) := A1.Dn K O x hD (a + 7) (w + 2) (a + 7) (a + 8) (a + 9) (a + w + 9) (a + w + 10) (a + w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t8 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 13)) (Zs K x (a + w + 15))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + w + 14))))) := A1.Dn K O x hD (a + 7) (w + 6) (a + 7) (a + 8) (a + 9) (a + w + 13) (a + w + 14) (a + w + 15) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t9 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + w + 16))) (K.neg (K.mul (Zs K x (a + w + 15)) (Zs K x (a + 10)))))) := by
                          have h := A2.mk K O x hT (1) (a + 8) (w + 5)
                          try rw [show (a + 8) + (w + 5) + 1 + (1) = a + w + 15 by lib_nat] at h
                          try rw [show (a + 8) + (w + 5) + 1 = a + w + 14 by lib_nat] at h
                          try rw [show (a + 8) + (1) = a + 9 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t10 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 11)) (Zs K x (a + w + 13))) (Zs K x (a + 10))) (K.neg (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + w + 12))))) := A1.Dn K O x hD (a + 9) (w + 2) (a + 9) (a + 10) (a + 11) (a + w + 11) (a + w + 12) (a + w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) t5) t6) t7) t8) t9) t10) (by lib_ring)

include hx hT hD h1 h10 in
theorem sg13 (i w : Nat) : O.le K.zero (K.neg (Lagrange.minor K (fun i => x (i + 2)) (fun i => x (i + 3)) i (i + w + 1))) := by
  unfold Lagrange.minor
  cases i with
  | zero =>
    cases w with
    | zero =>
      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4))))))
      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (5))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4)))))) := by
        have h := A2.mk K O x hT (1) (2) (0)
        try rw [show (2) + (0) + 1 + (1) = 4 by lib_nat] at h
        try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
        try rw [show (2) + (1) = 3 by lib_nat] at h
        exact A2.nn_of_nonpos_neg K O _ h
      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
    | succ w =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (4))))))
        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (6))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
          have h := A2.mk K O x hT (2) (2) (0)
          try rw [show (2) + (0) + 1 + (2) = 5 by lib_nat] at h
          try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
          try rw [show (2) + (2) = 4 by lib_nat] at h
          exact A2.nn_of_nonpos_neg K O _ h
        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (4))))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
            have h := A2.mk K O x hT (3) (2) (0)
            try rw [show (2) + (0) + 1 + (3) = 6 by lib_nat] at h
            try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
            try rw [show (2) + (3) = 5 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (4))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (4)) (Zs K x (7)))))) := by
              have h := A2.mk K O x hT (4) (2) (0)
              try rw [show (2) + (0) + 1 + (4) = 7 by lib_nat] at h
              try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
              try rw [show (2) + (4) = 6 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (4))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (4)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (5) (2) (0)
                try rw [show (2) + (0) + 1 + (5) = 8 by lib_nat] at h
                try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                try rw [show (2) + (5) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              rw [show 0 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 6 by lib_nat]
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (4))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (4)))))) := by
                have h := A2.mk K O x hT (1) (2) (w + 5)
                try rw [show (2) + (w + 5) + 1 + (1) = w + 9 by lib_nat] at h
                try rw [show (2) + (w + 5) + 1 = w + 8 by lib_nat] at h
                try rw [show (2) + (1) = 3 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
  | succ i =>
    cases i with
    | zero =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5))))))
        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (6))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5)))))) := by
          have h := A2.mk K O x hT (1) (3) (0)
          try rw [show (3) + (0) + 1 + (1) = 5 by lib_nat] at h
          try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
          try rw [show (3) + (1) = 4 by lib_nat] at h
          exact A2.nn_of_nonpos_neg K O _ h
        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (5))))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (7))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6)))))) := by
            have h := A2.mk K O x hT (2) (3) (0)
            try rw [show (3) + (0) + 1 + (2) = 6 by lib_nat] at h
            try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
            try rw [show (3) + (2) = 5 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (5))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (8))) (K.neg (K.mul (Zs K x (5)) (Zs K x (7)))))) := by
              have h := A2.mk K O x hT (3) (3) (0)
              try rw [show (3) + (0) + 1 + (3) = 7 by lib_nat] at h
              try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
              try rw [show (3) + (3) = 6 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (5))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (9))) (K.neg (K.mul (Zs K x (5)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (4) (3) (0)
                try rw [show (3) + (0) + 1 + (4) = 8 by lib_nat] at h
                try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                try rw [show (3) + (4) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (10))) (K.neg (K.mul (Zs K x (9)) (Zs K x (5))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (10))) (K.neg (K.mul (Zs K x (5)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (5) (3) (0)
                  try rw [show (3) + (0) + 1 + (5) = 9 by lib_nat] at h
                  try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                  try rw [show (3) + (5) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                rw [show 0 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 10)) (Zs K x (5))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 10)) (Zs K x (5)))))) := by
                  have h := A2.mk K O x hT (1) (3) (w + 5)
                  try rw [show (3) + (w + 5) + 1 + (1) = w + 10 by lib_nat] at h
                  try rw [show (3) + (w + 5) + 1 = w + 9 by lib_nat] at h
                  try rw [show (3) + (1) = 4 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
    | succ i =>
      cases i with
      | zero =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6))))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (7))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6)))))) := by
            have h := A2.mk K O x hT (1) (4) (0)
            try rw [show (4) + (0) + 1 + (1) = 6 by lib_nat] at h
            try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
            try rw [show (4) + (1) = 5 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (6))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (8))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7)))))) := by
              have h := A2.mk K O x hT (2) (4) (0)
              try rw [show (4) + (0) + 1 + (2) = 7 by lib_nat] at h
              try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
              try rw [show (4) + (2) = 6 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (6))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (9))) (K.neg (K.mul (Zs K x (6)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (3) (4) (0)
                try rw [show (4) + (0) + 1 + (3) = 8 by lib_nat] at h
                try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                try rw [show (4) + (3) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (10))) (K.neg (K.mul (Zs K x (9)) (Zs K x (6))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (10))) (K.neg (K.mul (Zs K x (6)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (4) (4) (0)
                  try rw [show (4) + (0) + 1 + (4) = 9 by lib_nat] at h
                  try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                  try rw [show (4) + (4) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (11))) (K.neg (K.mul (Zs K x (10)) (Zs K x (6))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (11))) (K.neg (K.mul (Zs K x (6)) (Zs K x (10)))))) := by
                    have h := A2.mk K O x hT (5) (4) (0)
                    try rw [show (4) + (0) + 1 + (5) = 10 by lib_nat] at h
                    try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                    try rw [show (4) + (5) = 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  rw [show 0 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (6))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (6)))))) := by
                    have h := A2.mk K O x hT (1) (4) (w + 5)
                    try rw [show (4) + (w + 5) + 1 + (1) = w + 11 by lib_nat] at h
                    try rw [show (4) + (w + 5) + 1 = w + 10 by lib_nat] at h
                    try rw [show (4) + (1) = 5 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ i =>
        cases i with
        | zero =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (7))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (8))) (K.neg (K.mul (Zs K x (7)) (Zs K x (7)))))) := by
              have h := A2.mk K O x hT (1) (5) (0)
              try rw [show (5) + (0) + 1 + (1) = 7 by lib_nat] at h
              try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
              try rw [show (5) + (1) = 6 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (7))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (9))) (K.neg (K.mul (Zs K x (7)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (2) (5) (0)
                try rw [show (5) + (0) + 1 + (2) = 8 by lib_nat] at h
                try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                try rw [show (5) + (2) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (10))) (K.neg (K.mul (Zs K x (9)) (Zs K x (7))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (10))) (K.neg (K.mul (Zs K x (7)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (3) (5) (0)
                  try rw [show (5) + (0) + 1 + (3) = 9 by lib_nat] at h
                  try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                  try rw [show (5) + (3) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (11))) (K.neg (K.mul (Zs K x (10)) (Zs K x (7))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (11))) (K.neg (K.mul (Zs K x (7)) (Zs K x (10)))))) := by
                    have h := A2.mk K O x hT (4) (5) (0)
                    try rw [show (5) + (0) + 1 + (4) = 10 by lib_nat] at h
                    try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                    try rw [show (5) + (4) = 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (12))) (K.neg (K.mul (Zs K x (11)) (Zs K x (7))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (12))) (K.neg (K.mul (Zs K x (7)) (Zs K x (11)))))) := by
                      have h := A2.mk K O x hT (5) (5) (0)
                      try rw [show (5) + (0) + 1 + (5) = 11 by lib_nat] at h
                      try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                      try rw [show (5) + (5) = 10 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    rw [show 0 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (w + 13))) (K.neg (K.mul (Zs K x (w + 12)) (Zs K x (7))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (w + 13))) (K.neg (K.mul (Zs K x (w + 12)) (Zs K x (7)))))) := by
                      have h := A2.mk K O x hT (1) (5) (w + 5)
                      try rw [show (5) + (w + 5) + 1 + (1) = w + 12 by lib_nat] at h
                      try rw [show (5) + (w + 5) + 1 = w + 11 by lib_nat] at h
                      try rw [show (5) + (1) = 6 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
        | succ i =>
          cases i with
          | zero =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (8))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (9))) (K.neg (K.mul (Zs K x (8)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (1) (6) (0)
                try rw [show (6) + (0) + 1 + (1) = 8 by lib_nat] at h
                try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                try rw [show (6) + (1) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (10))) (K.neg (K.mul (Zs K x (9)) (Zs K x (8))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (10))) (K.neg (K.mul (Zs K x (8)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (2) (6) (0)
                  try rw [show (6) + (0) + 1 + (2) = 9 by lib_nat] at h
                  try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                  try rw [show (6) + (2) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (11))) (K.neg (K.mul (Zs K x (10)) (Zs K x (8))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (11))) (K.neg (K.mul (Zs K x (8)) (Zs K x (10)))))) := by
                    have h := A2.mk K O x hT (3) (6) (0)
                    try rw [show (6) + (0) + 1 + (3) = 10 by lib_nat] at h
                    try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                    try rw [show (6) + (3) = 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (12))) (K.neg (K.mul (Zs K x (11)) (Zs K x (8))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (12))) (K.neg (K.mul (Zs K x (8)) (Zs K x (11)))))) := by
                      have h := A2.mk K O x hT (4) (6) (0)
                      try rw [show (6) + (0) + 1 + (4) = 11 by lib_nat] at h
                      try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                      try rw [show (6) + (4) = 10 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (13))) (K.neg (K.mul (Zs K x (12)) (Zs K x (8))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (13))) (K.neg (K.mul (Zs K x (8)) (Zs K x (12)))))) := by
                        have h := A2.mk K O x hT (5) (6) (0)
                        try rw [show (6) + (0) + 1 + (5) = 12 by lib_nat] at h
                        try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                        try rw [show (6) + (5) = 11 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      rw [show 0 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (w + 14))) (K.neg (K.mul (Zs K x (w + 13)) (Zs K x (8))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (w + 14))) (K.neg (K.mul (Zs K x (w + 13)) (Zs K x (8)))))) := by
                        have h := A2.mk K O x hT (1) (6) (w + 5)
                        try rw [show (6) + (w + 5) + 1 + (1) = w + 13 by lib_nat] at h
                        try rw [show (6) + (w + 5) + 1 = w + 12 by lib_nat] at h
                        try rw [show (6) + (1) = 7 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
          | succ i =>
            cases i with
            | zero =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (10))) (K.neg (K.mul (Zs K x (9)) (Zs K x (9))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (10))) (K.neg (K.mul (Zs K x (9)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (1) (7) (0)
                  try rw [show (7) + (0) + 1 + (1) = 9 by lib_nat] at h
                  try rw [show (7) + (0) + 1 = 8 by lib_nat] at h
                  try rw [show (7) + (1) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (11))) (K.neg (K.mul (Zs K x (10)) (Zs K x (9))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (11))) (K.neg (K.mul (Zs K x (9)) (Zs K x (10)))))) := by
                    have h := A2.mk K O x hT (2) (7) (0)
                    try rw [show (7) + (0) + 1 + (2) = 10 by lib_nat] at h
                    try rw [show (7) + (0) + 1 = 8 by lib_nat] at h
                    try rw [show (7) + (2) = 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (12))) (K.neg (K.mul (Zs K x (11)) (Zs K x (9))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (12))) (K.neg (K.mul (Zs K x (9)) (Zs K x (11)))))) := by
                      have h := A2.mk K O x hT (3) (7) (0)
                      try rw [show (7) + (0) + 1 + (3) = 11 by lib_nat] at h
                      try rw [show (7) + (0) + 1 = 8 by lib_nat] at h
                      try rw [show (7) + (3) = 10 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (13))) (K.neg (K.mul (Zs K x (12)) (Zs K x (9))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (13))) (K.neg (K.mul (Zs K x (9)) (Zs K x (12)))))) := by
                        have h := A2.mk K O x hT (4) (7) (0)
                        try rw [show (7) + (0) + 1 + (4) = 12 by lib_nat] at h
                        try rw [show (7) + (0) + 1 = 8 by lib_nat] at h
                        try rw [show (7) + (4) = 11 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (14))) (K.neg (K.mul (Zs K x (13)) (Zs K x (9))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (14))) (K.neg (K.mul (Zs K x (9)) (Zs K x (13)))))) := by
                          have h := A2.mk K O x hT (5) (7) (0)
                          try rw [show (7) + (0) + 1 + (5) = 13 by lib_nat] at h
                          try rw [show (7) + (0) + 1 = 8 by lib_nat] at h
                          try rw [show (7) + (5) = 12 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show 0 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (w + 15))) (K.neg (K.mul (Zs K x (w + 14)) (Zs K x (9))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (w + 15))) (K.neg (K.mul (Zs K x (w + 14)) (Zs K x (9)))))) := by
                          have h := A2.mk K O x hT (1) (7) (w + 5)
                          try rw [show (7) + (w + 5) + 1 + (1) = w + 14 by lib_nat] at h
                          try rw [show (7) + (w + 5) + 1 = w + 13 by lib_nat] at h
                          try rw [show (7) + (1) = 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
            | succ a =>
              cases w with
              | zero =>
                rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 = a + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 10))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 11))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 10)))))) := by
                  have h := A2.mk K O x hT (1) (a + 8) (0)
                  try rw [show (a + 8) + (0) + 1 + (1) = a + 10 by lib_nat] at h
                  try rw [show (a + 8) + (0) + 1 = a + 9 by lib_nat] at h
                  try rw [show (a + 8) + (1) = a + 9 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1) + 1 = a + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 11)) (Zs K x (a + 10))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 11)))))) := by
                    have h := A2.mk K O x hT (2) (a + 8) (0)
                    try rw [show (a + 8) + (0) + 1 + (2) = a + 11 by lib_nat] at h
                    try rw [show (a + 8) + (0) + 1 = a + 9 by lib_nat] at h
                    try rw [show (a + 8) + (2) = a + 10 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1) + 1 = a + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 12)) (Zs K x (a + 10))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 12)))))) := by
                      have h := A2.mk K O x hT (3) (a + 8) (0)
                      try rw [show (a + 8) + (0) + 1 + (3) = a + 12 by lib_nat] at h
                      try rw [show (a + 8) + (0) + 1 = a + 9 by lib_nat] at h
                      try rw [show (a + 8) + (3) = a + 11 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1) + 1 = a + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 14))) (K.neg (K.mul (Zs K x (a + 13)) (Zs K x (a + 10))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 14))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 13)))))) := by
                        have h := A2.mk K O x hT (4) (a + 8) (0)
                        try rw [show (a + 8) + (0) + 1 + (4) = a + 13 by lib_nat] at h
                        try rw [show (a + 8) + (0) + 1 = a + 9 by lib_nat] at h
                        try rw [show (a + 8) + (4) = a + 12 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1 + 1) + 1 = a + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 15))) (K.neg (K.mul (Zs K x (a + 14)) (Zs K x (a + 10))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 15))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 14)))))) := by
                          have h := A2.mk K O x hT (5) (a + 8) (0)
                          try rw [show (a + 8) + (0) + 1 + (5) = a + 14 by lib_nat] at h
                          try rw [show (a + 8) + (0) + 1 = a + 9 by lib_nat] at h
                          try rw [show (a + 8) + (5) = a + 13 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
                      | succ w =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = a + w + 12 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + w + 16))) (K.neg (K.mul (Zs K x (a + w + 15)) (Zs K x (a + 10))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + w + 16))) (K.neg (K.mul (Zs K x (a + w + 15)) (Zs K x (a + 10)))))) := by
                          have h := A2.mk K O x hT (1) (a + 8) (w + 5)
                          try rw [show (a + 8) + (w + 5) + 1 + (1) = a + w + 15 by lib_nat] at h
                          try rw [show (a + 8) + (w + 5) + 1 = a + w + 14 by lib_nat] at h
                          try rw [show (a + 8) + (1) = a + 9 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)

include hx hT hD h1 h10 in
theorem sg14 (i w : Nat) : O.le K.zero (K.neg (Lagrange.minor K (pv1 K (fun i => x (i + 1))) (fun i => x (i + 3)) i (i + w + 1))) := by
  unfold Lagrange.minor
  cases i with
  | zero =>
    cases w with
    | zero =>
      show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))))
      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (6))) (K.neg (K.mul (Zs K x (4)) (Zs K x (4)))))) := by
        have h := A2.mk K O x hT (2) (1) (1)
        try rw [show (1) + (1) + 1 + (2) = 5 by lib_nat] at h
        try rw [show (1) + (1) + 1 = 3 by lib_nat] at h
        try rw [show (1) + (2) = 3 by lib_nat] at h
        exact A2.nn_of_nonpos_neg K O _ h
      have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
      have t2 : O.le K.zero (K.mul (Zs K x (1)) (Zs K x (5))) := O.mul_nonneg _ _ (hx (0)) (hx (4))
      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
    | succ w =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (4))))))
        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (6))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
          have h := A2.mk K O x hT (2) (2) (0)
          try rw [show (2) + (0) + 1 + (2) = 5 by lib_nat] at h
          try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
          try rw [show (2) + (2) = 4 by lib_nat] at h
          exact A2.nn_of_nonpos_neg K O _ h
        have t1 : O.le K.zero (K.mul (Zs K x (3)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (2)) (hx (3))
        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
            have h := A2.mk K O x hT (3) (2) (0)
            try rw [show (2) + (0) + 1 + (3) = 6 by lib_nat] at h
            try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
            try rw [show (2) + (3) = 5 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          have t1 : O.le K.zero (K.mul (Zs K x (4)) (Zs K x (4))) := O.mul_nonneg _ _ (hx (3)) (hx (3))
          exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (8))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
              have h := A2.mk K O x hT (4) (0) (2)
              try rw [show (0) + (2) + 1 + (4) = 7 by lib_nat] at h
              try rw [show (0) + (2) + 1 = 3 by lib_nat] at h
              try rw [show (0) + (4) = 4 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (9))))) := A1.Dn K O x hD (0) (8) (0) (1) (2) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (10))) (K.neg (K.mul (Zs K x (9)) (Zs K x (2)))))) := by
              have h := A2.mk K O x hT (1) (0) (7)
              try rw [show (0) + (7) + 1 + (1) = 9 by lib_nat] at h
              try rw [show (0) + (7) + 1 = 8 by lib_nat] at h
              try rw [show (0) + (1) = 1 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            have t3 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (4)) (Zs K x (7)))))) := by
              have h := A2.mk K O x hT (4) (2) (0)
              try rw [show (2) + (0) + 1 + (4) = 7 by lib_nat] at h
              try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
              try rw [show (2) + (4) = 6 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (9))) (K.neg (K.mul (Zs K x (4)) (Zs K x (6)))))) := by
                have h := A2.mk K O x hT (5) (0) (2)
                try rw [show (0) + (2) + 1 + (5) = 8 by lib_nat] at h
                try rw [show (0) + (2) + 1 = 3 by lib_nat] at h
                try rw [show (0) + (5) = 5 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (10))))) := A1.Dn K O x hD (0) (9) (0) (1) (2) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (11))) (K.neg (K.mul (Zs K x (10)) (Zs K x (2)))))) := by
                have h := A2.mk K O x hT (1) (0) (8)
                try rw [show (0) + (8) + 1 + (1) = 10 by lib_nat] at h
                try rw [show (0) + (8) + 1 = 9 by lib_nat] at h
                try rw [show (0) + (1) = 1 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t3 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (4)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (5) (2) (0)
                try rw [show (2) + (0) + 1 + (5) = 8 by lib_nat] at h
                try rw [show (2) + (0) + 1 = 3 by lib_nat] at h
                try rw [show (2) + (5) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) (by lib_ring)
            | succ w =>
              rw [show 0 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 6 by lib_nat]
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 10))) (K.neg (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (4))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 7)) (Zs K x (4)))))) := by
                have h := A2.mk K O x hT (3) (0) (w + 5)
                try rw [show (0) + (w + 5) + 1 + (3) = w + 9 by lib_nat] at h
                try rw [show (0) + (w + 5) + 1 = w + 6 by lib_nat] at h
                try rw [show (0) + (3) = 3 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 11))))) := A1.Dn K O x hD (0) (w + 10) (0) (1) (2) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t2 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (1)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (2)))))) := by
                have h := A2.mk K O x hT (1) (0) (w + 9)
                try rw [show (0) + (w + 9) + 1 + (1) = w + 11 by lib_nat] at h
                try rw [show (0) + (w + 9) + 1 = w + 10 by lib_nat] at h
                try rw [show (0) + (1) = 1 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t3 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 10))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (4)))))) := by
                have h := A2.mk K O x hT (1) (2) (w + 5)
                try rw [show (2) + (w + 5) + 1 + (1) = w + 9 by lib_nat] at h
                try rw [show (2) + (w + 5) + 1 = w + 8 by lib_nat] at h
                try rw [show (2) + (1) = 3 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) (by lib_ring)
  | succ i =>
    cases i with
    | zero =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))))
        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (7))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5)))))) := by
          have h := A2.mk K O x hT (2) (2) (1)
          try rw [show (2) + (1) + 1 + (2) = 6 by lib_nat] at h
          try rw [show (2) + (1) + 1 = 4 by lib_nat] at h
          try rw [show (2) + (2) = 4 by lib_nat] at h
          exact A2.nn_of_nonpos_neg K O _ h
        have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (5))))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (7))) (K.neg (K.mul (Zs K x (4)) (Zs K x (5)))))) := by
            have h := A2.mk K O x hT (3) (1) (1)
            try rw [show (1) + (1) + 1 + (3) = 6 by lib_nat] at h
            try rw [show (1) + (1) + 1 = 3 by lib_nat] at h
            try rw [show (1) + (3) = 4 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (7))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6)))))) := by
            have h := A2.mk K O x hT (2) (3) (0)
            try rw [show (3) + (0) + 1 + (2) = 6 by lib_nat] at h
            try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
            try rw [show (3) + (2) = 5 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (8))) (K.neg (K.mul (Zs K x (5)) (Zs K x (5)))))) := by
              have h := A2.mk K O x hT (3) (1) (2)
              try rw [show (1) + (2) + 1 + (3) = 7 by lib_nat] at h
              try rw [show (1) + (2) + 1 = 4 by lib_nat] at h
              try rw [show (1) + (3) = 4 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (8))) (K.neg (K.mul (Zs K x (5)) (Zs K x (7)))))) := by
              have h := A2.mk K O x hT (3) (3) (0)
              try rw [show (3) + (0) + 1 + (3) = 7 by lib_nat] at h
              try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
              try rw [show (3) + (3) = 6 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (9))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (9))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6)))))) := by
                have h := A2.mk K O x hT (4) (1) (2)
                try rw [show (1) + (2) + 1 + (4) = 8 by lib_nat] at h
                try rw [show (1) + (2) + 1 = 4 by lib_nat] at h
                try rw [show (1) + (4) = 5 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (9))) (K.neg (K.mul (Zs K x (5)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (4) (3) (0)
                try rw [show (3) + (0) + 1 + (4) = 8 by lib_nat] at h
                try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                try rw [show (3) + (4) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (10))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (10))) (K.neg (K.mul (Zs K x (5)) (Zs K x (7)))))) := by
                  have h := A2.mk K O x hT (5) (1) (2)
                  try rw [show (1) + (2) + 1 + (5) = 9 by lib_nat] at h
                  try rw [show (1) + (2) + 1 = 4 by lib_nat] at h
                  try rw [show (1) + (5) = 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (10))) (K.neg (K.mul (Zs K x (5)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (5) (3) (0)
                  try rw [show (3) + (0) + 1 + (5) = 9 by lib_nat] at h
                  try rw [show (3) + (0) + 1 = 4 by lib_nat] at h
                  try rw [show (3) + (5) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
              | succ w =>
                rw [show 0 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 11))) (K.neg (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (5))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (2)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 8)) (Zs K x (5)))))) := by
                  have h := A2.mk K O x hT (3) (1) (w + 5)
                  try rw [show (1) + (w + 5) + 1 + (3) = w + 10 by lib_nat] at h
                  try rw [show (1) + (w + 5) + 1 = w + 7 by lib_nat] at h
                  try rw [show (1) + (3) = 4 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 11))) (K.neg (K.mul (Zs K x (w + 10)) (Zs K x (5)))))) := by
                  have h := A2.mk K O x hT (1) (3) (w + 5)
                  try rw [show (3) + (w + 5) + 1 + (1) = w + 10 by lib_nat] at h
                  try rw [show (3) + (w + 5) + 1 = w + 9 by lib_nat] at h
                  try rw [show (3) + (1) = 4 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
    | succ i =>
      cases i with
      | zero =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))))
          have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (8))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6)))))) := by
            have h := A2.mk K O x hT (2) (3) (1)
            try rw [show (3) + (1) + 1 + (2) = 7 by lib_nat] at h
            try rw [show (3) + (1) + 1 = 5 by lib_nat] at h
            try rw [show (3) + (2) = 5 by lib_nat] at h
            exact A2.nn_of_nonpos_neg K O _ h
          have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (6))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (8))) (K.neg (K.mul (Zs K x (5)) (Zs K x (6)))))) := by
              have h := A2.mk K O x hT (3) (2) (1)
              try rw [show (2) + (1) + 1 + (3) = 7 by lib_nat] at h
              try rw [show (2) + (1) + 1 = 4 by lib_nat] at h
              try rw [show (2) + (3) = 5 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (8))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7)))))) := by
              have h := A2.mk K O x hT (2) (4) (0)
              try rw [show (4) + (0) + 1 + (2) = 7 by lib_nat] at h
              try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
              try rw [show (4) + (2) = 6 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (6))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (9))) (K.neg (K.mul (Zs K x (6)) (Zs K x (6)))))) := by
                have h := A2.mk K O x hT (3) (2) (2)
                try rw [show (2) + (2) + 1 + (3) = 8 by lib_nat] at h
                try rw [show (2) + (2) + 1 = 5 by lib_nat] at h
                try rw [show (2) + (3) = 5 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (9))) (K.neg (K.mul (Zs K x (6)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (3) (4) (0)
                try rw [show (4) + (0) + 1 + (3) = 8 by lib_nat] at h
                try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                try rw [show (4) + (3) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (10))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (6))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (10))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7)))))) := by
                  have h := A2.mk K O x hT (4) (2) (2)
                  try rw [show (2) + (2) + 1 + (4) = 9 by lib_nat] at h
                  try rw [show (2) + (2) + 1 = 5 by lib_nat] at h
                  try rw [show (2) + (4) = 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (10))) (K.neg (K.mul (Zs K x (6)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (4) (4) (0)
                  try rw [show (4) + (0) + 1 + (4) = 9 by lib_nat] at h
                  try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                  try rw [show (4) + (4) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (11))) (K.neg (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (11))) (K.neg (K.mul (Zs K x (6)) (Zs K x (8)))))) := by
                    have h := A2.mk K O x hT (5) (2) (2)
                    try rw [show (2) + (2) + 1 + (5) = 10 by lib_nat] at h
                    try rw [show (2) + (2) + 1 = 5 by lib_nat] at h
                    try rw [show (2) + (5) = 7 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (11))) (K.neg (K.mul (Zs K x (6)) (Zs K x (10)))))) := by
                    have h := A2.mk K O x hT (5) (4) (0)
                    try rw [show (4) + (0) + 1 + (5) = 10 by lib_nat] at h
                    try rw [show (4) + (0) + 1 = 5 by lib_nat] at h
                    try rw [show (4) + (5) = 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                | succ w =>
                  rw [show 0 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 12))) (K.neg (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (6))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 9)) (Zs K x (6)))))) := by
                    have h := A2.mk K O x hT (3) (2) (w + 5)
                    try rw [show (2) + (w + 5) + 1 + (3) = w + 11 by lib_nat] at h
                    try rw [show (2) + (w + 5) + 1 = w + 8 by lib_nat] at h
                    try rw [show (2) + (3) = 5 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (w + 12))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (6)))))) := by
                    have h := A2.mk K O x hT (1) (4) (w + 5)
                    try rw [show (4) + (w + 5) + 1 + (1) = w + 11 by lib_nat] at h
                    try rw [show (4) + (w + 5) + 1 = w + 10 by lib_nat] at h
                    try rw [show (4) + (1) = 5 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
      | succ i =>
        cases i with
        | zero =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (7))))))
            have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (9))) (K.neg (K.mul (Zs K x (7)) (Zs K x (7)))))) := by
              have h := A2.mk K O x hT (2) (4) (1)
              try rw [show (4) + (1) + 1 + (2) = 8 by lib_nat] at h
              try rw [show (4) + (1) + 1 = 6 by lib_nat] at h
              try rw [show (4) + (2) = 6 by lib_nat] at h
              exact A2.nn_of_nonpos_neg K O _ h
            have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (7))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (9))) (K.neg (K.mul (Zs K x (6)) (Zs K x (7)))))) := by
                have h := A2.mk K O x hT (3) (3) (1)
                try rw [show (3) + (1) + 1 + (3) = 8 by lib_nat] at h
                try rw [show (3) + (1) + 1 = 5 by lib_nat] at h
                try rw [show (3) + (3) = 6 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (9))) (K.neg (K.mul (Zs K x (7)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (2) (5) (0)
                try rw [show (5) + (0) + 1 + (2) = 8 by lib_nat] at h
                try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                try rw [show (5) + (2) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (7))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (10))) (K.neg (K.mul (Zs K x (7)) (Zs K x (7)))))) := by
                  have h := A2.mk K O x hT (3) (3) (2)
                  try rw [show (3) + (2) + 1 + (3) = 9 by lib_nat] at h
                  try rw [show (3) + (2) + 1 = 6 by lib_nat] at h
                  try rw [show (3) + (3) = 6 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (10))) (K.neg (K.mul (Zs K x (7)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (3) (5) (0)
                  try rw [show (5) + (0) + 1 + (3) = 9 by lib_nat] at h
                  try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                  try rw [show (5) + (3) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (11))) (K.neg (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (7))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (11))) (K.neg (K.mul (Zs K x (7)) (Zs K x (8)))))) := by
                    have h := A2.mk K O x hT (4) (3) (2)
                    try rw [show (3) + (2) + 1 + (4) = 10 by lib_nat] at h
                    try rw [show (3) + (2) + 1 = 6 by lib_nat] at h
                    try rw [show (3) + (4) = 7 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (11))) (K.neg (K.mul (Zs K x (7)) (Zs K x (10)))))) := by
                    have h := A2.mk K O x hT (4) (5) (0)
                    try rw [show (5) + (0) + 1 + (4) = 10 by lib_nat] at h
                    try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                    try rw [show (5) + (4) = 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (12))) (K.neg (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (7))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (12))) (K.neg (K.mul (Zs K x (7)) (Zs K x (9)))))) := by
                      have h := A2.mk K O x hT (5) (3) (2)
                      try rw [show (3) + (2) + 1 + (5) = 11 by lib_nat] at h
                      try rw [show (3) + (2) + 1 = 6 by lib_nat] at h
                      try rw [show (3) + (5) = 8 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (12))) (K.neg (K.mul (Zs K x (7)) (Zs K x (11)))))) := by
                      have h := A2.mk K O x hT (5) (5) (0)
                      try rw [show (5) + (0) + 1 + (5) = 11 by lib_nat] at h
                      try rw [show (5) + (0) + 1 = 6 by lib_nat] at h
                      try rw [show (5) + (5) = 10 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                  | succ w =>
                    rw [show 0 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 13))) (K.neg (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (7))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (4)) (Zs K x (w + 13))) (K.neg (K.mul (Zs K x (w + 10)) (Zs K x (7)))))) := by
                      have h := A2.mk K O x hT (3) (3) (w + 5)
                      try rw [show (3) + (w + 5) + 1 + (3) = w + 12 by lib_nat] at h
                      try rw [show (3) + (w + 5) + 1 = w + 9 by lib_nat] at h
                      try rw [show (3) + (3) = 6 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (w + 13))) (K.neg (K.mul (Zs K x (w + 12)) (Zs K x (7)))))) := by
                      have h := A2.mk K O x hT (1) (5) (w + 5)
                      try rw [show (5) + (w + 5) + 1 + (1) = w + 12 by lib_nat] at h
                      try rw [show (5) + (w + 5) + 1 = w + 11 by lib_nat] at h
                      try rw [show (5) + (1) = 6 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
        | succ i =>
          cases i with
          | zero =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (8))))))
              have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (10))) (K.neg (K.mul (Zs K x (8)) (Zs K x (8)))))) := by
                have h := A2.mk K O x hT (2) (5) (1)
                try rw [show (5) + (1) + 1 + (2) = 9 by lib_nat] at h
                try rw [show (5) + (1) + 1 = 7 by lib_nat] at h
                try rw [show (5) + (2) = 7 by lib_nat] at h
                exact A2.nn_of_nonpos_neg K O _ h
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (10))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (8))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (10))) (K.neg (K.mul (Zs K x (7)) (Zs K x (8)))))) := by
                  have h := A2.mk K O x hT (3) (4) (1)
                  try rw [show (4) + (1) + 1 + (3) = 9 by lib_nat] at h
                  try rw [show (4) + (1) + 1 = 6 by lib_nat] at h
                  try rw [show (4) + (3) = 7 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (10))) (K.neg (K.mul (Zs K x (8)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (2) (6) (0)
                  try rw [show (6) + (0) + 1 + (2) = 9 by lib_nat] at h
                  try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                  try rw [show (6) + (2) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (11))) (K.neg (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (8))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (11))) (K.neg (K.mul (Zs K x (8)) (Zs K x (8)))))) := by
                    have h := A2.mk K O x hT (3) (4) (2)
                    try rw [show (4) + (2) + 1 + (3) = 10 by lib_nat] at h
                    try rw [show (4) + (2) + 1 = 7 by lib_nat] at h
                    try rw [show (4) + (3) = 7 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (11))) (K.neg (K.mul (Zs K x (8)) (Zs K x (10)))))) := by
                    have h := A2.mk K O x hT (3) (6) (0)
                    try rw [show (6) + (0) + 1 + (3) = 10 by lib_nat] at h
                    try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                    try rw [show (6) + (3) = 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (12))) (K.neg (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (8))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (12))) (K.neg (K.mul (Zs K x (8)) (Zs K x (9)))))) := by
                      have h := A2.mk K O x hT (4) (4) (2)
                      try rw [show (4) + (2) + 1 + (4) = 11 by lib_nat] at h
                      try rw [show (4) + (2) + 1 = 7 by lib_nat] at h
                      try rw [show (4) + (4) = 8 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (12))) (K.neg (K.mul (Zs K x (8)) (Zs K x (11)))))) := by
                      have h := A2.mk K O x hT (4) (6) (0)
                      try rw [show (6) + (0) + 1 + (4) = 11 by lib_nat] at h
                      try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                      try rw [show (6) + (4) = 10 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (13))) (K.neg (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (8))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (13))) (K.neg (K.mul (Zs K x (8)) (Zs K x (10)))))) := by
                        have h := A2.mk K O x hT (5) (4) (2)
                        try rw [show (4) + (2) + 1 + (5) = 12 by lib_nat] at h
                        try rw [show (4) + (2) + 1 = 7 by lib_nat] at h
                        try rw [show (4) + (5) = 9 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (13))) (K.neg (K.mul (Zs K x (8)) (Zs K x (12)))))) := by
                        have h := A2.mk K O x hT (5) (6) (0)
                        try rw [show (6) + (0) + 1 + (5) = 12 by lib_nat] at h
                        try rw [show (6) + (0) + 1 = 7 by lib_nat] at h
                        try rw [show (6) + (5) = 11 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                    | succ w =>
                      rw [show 0 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 14))) (K.neg (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (8))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (5)) (Zs K x (w + 14))) (K.neg (K.mul (Zs K x (w + 11)) (Zs K x (8)))))) := by
                        have h := A2.mk K O x hT (3) (4) (w + 5)
                        try rw [show (4) + (w + 5) + 1 + (3) = w + 13 by lib_nat] at h
                        try rw [show (4) + (w + 5) + 1 = w + 10 by lib_nat] at h
                        try rw [show (4) + (3) = 7 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (w + 14))) (K.neg (K.mul (Zs K x (w + 13)) (Zs K x (8)))))) := by
                        have h := A2.mk K O x hT (1) (6) (w + 5)
                        try rw [show (6) + (w + 5) + 1 + (1) = w + 13 by lib_nat] at h
                        try rw [show (6) + (w + 5) + 1 = w + 12 by lib_nat] at h
                        try rw [show (6) + (1) = 7 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
          | succ i =>
            cases i with
            | zero =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))) (K.neg (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (9))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (7)) (Zs K x (11))) (K.neg (K.mul (Zs K x (9)) (Zs K x (9)))))) := by
                  have h := A2.mk K O x hT (2) (6) (1)
                  try rw [show (6) + (1) + 1 + (2) = 10 by lib_nat] at h
                  try rw [show (6) + (1) + 1 = 8 by lib_nat] at h
                  try rw [show (6) + (2) = 8 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (7))) (K.neg (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))))) := A1.Dn K O x hD (6) (3) (6) (7) (8) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (11))) (K.neg (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (9))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (11))) (K.neg (K.mul (Zs K x (8)) (Zs K x (9)))))) := by
                    have h := A2.mk K O x hT (3) (5) (1)
                    try rw [show (5) + (1) + 1 + (3) = 10 by lib_nat] at h
                    try rw [show (5) + (1) + 1 = 7 by lib_nat] at h
                    try rw [show (5) + (3) = 8 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (11))) (K.neg (K.mul (Zs K x (9)) (Zs K x (10)))))) := by
                    have h := A2.mk K O x hT (2) (7) (0)
                    try rw [show (7) + (0) + 1 + (2) = 10 by lib_nat] at h
                    try rw [show (7) + (0) + 1 = 8 by lib_nat] at h
                    try rw [show (7) + (2) = 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (12))) (K.neg (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (9))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (12))) (K.neg (K.mul (Zs K x (9)) (Zs K x (9)))))) := by
                      have h := A2.mk K O x hT (3) (5) (2)
                      try rw [show (5) + (2) + 1 + (3) = 11 by lib_nat] at h
                      try rw [show (5) + (2) + 1 = 8 by lib_nat] at h
                      try rw [show (5) + (3) = 8 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (12))) (K.neg (K.mul (Zs K x (9)) (Zs K x (11)))))) := by
                      have h := A2.mk K O x hT (3) (7) (0)
                      try rw [show (7) + (0) + 1 + (3) = 11 by lib_nat] at h
                      try rw [show (7) + (0) + 1 = 8 by lib_nat] at h
                      try rw [show (7) + (3) = 10 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (13))) (K.neg (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (9))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (13))) (K.neg (K.mul (Zs K x (9)) (Zs K x (10)))))) := by
                        have h := A2.mk K O x hT (4) (5) (2)
                        try rw [show (5) + (2) + 1 + (4) = 12 by lib_nat] at h
                        try rw [show (5) + (2) + 1 = 8 by lib_nat] at h
                        try rw [show (5) + (4) = 9 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (13))) (K.neg (K.mul (Zs K x (9)) (Zs K x (12)))))) := by
                        have h := A2.mk K O x hT (4) (7) (0)
                        try rw [show (7) + (0) + 1 + (4) = 12 by lib_nat] at h
                        try rw [show (7) + (0) + 1 = 8 by lib_nat] at h
                        try rw [show (7) + (4) = 11 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (14))) (K.neg (K.mul (K.add (Zs K x (11)) (Zs K x (13))) (Zs K x (9))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (14))) (K.neg (K.mul (Zs K x (9)) (Zs K x (11)))))) := by
                          have h := A2.mk K O x hT (5) (5) (2)
                          try rw [show (5) + (2) + 1 + (5) = 13 by lib_nat] at h
                          try rw [show (5) + (2) + 1 = 8 by lib_nat] at h
                          try rw [show (5) + (5) = 10 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (14))) (K.neg (K.mul (Zs K x (9)) (Zs K x (13)))))) := by
                          have h := A2.mk K O x hT (5) (7) (0)
                          try rw [show (7) + (0) + 1 + (5) = 13 by lib_nat] at h
                          try rw [show (7) + (0) + 1 = 8 by lib_nat] at h
                          try rw [show (7) + (5) = 12 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                      | succ w =>
                        rw [show 0 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (w + 15))) (K.neg (K.mul (K.add (Zs K x (w + 12)) (Zs K x (w + 14))) (Zs K x (9))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (6)) (Zs K x (w + 15))) (K.neg (K.mul (Zs K x (w + 12)) (Zs K x (9)))))) := by
                          have h := A2.mk K O x hT (3) (5) (w + 5)
                          try rw [show (5) + (w + 5) + 1 + (3) = w + 14 by lib_nat] at h
                          try rw [show (5) + (w + 5) + 1 = w + 11 by lib_nat] at h
                          try rw [show (5) + (3) = 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (8)) (Zs K x (w + 15))) (K.neg (K.mul (Zs K x (w + 14)) (Zs K x (9)))))) := by
                          have h := A2.mk K O x hT (1) (7) (w + 5)
                          try rw [show (7) + (w + 5) + 1 + (1) = w + 14 by lib_nat] at h
                          try rw [show (7) + (w + 5) + 1 = w + 13 by lib_nat] at h
                          try rw [show (7) + (1) = 8 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
            | succ a =>
              cases w with
              | zero =>
                rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 = a + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 11))) (K.neg (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 10))))))
                have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 8)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 10)))))) := by
                  have h := A2.mk K O x hT (2) (a + 7) (1)
                  try rw [show (a + 7) + (1) + 1 + (2) = a + 11 by lib_nat] at h
                  try rw [show (a + 7) + (1) + 1 = a + 9 by lib_nat] at h
                  try rw [show (a + 7) + (2) = a + 9 by lib_nat] at h
                  exact A2.nn_of_nonpos_neg K O _ h
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 8))) (K.neg (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 7) (3) (a + 7) (a + 8) (a + 9) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1) + 1 = a + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 12))) (K.neg (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 10))))))
                  have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 9)) (Zs K x (a + 10)))))) := by
                    have h := A2.mk K O x hT (3) (a + 6) (1)
                    try rw [show (a + 6) + (1) + 1 + (3) = a + 11 by lib_nat] at h
                    try rw [show (a + 6) + (1) + 1 = a + 8 by lib_nat] at h
                    try rw [show (a + 6) + (3) = a + 9 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 12))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 11)))))) := by
                    have h := A2.mk K O x hT (2) (a + 8) (0)
                    try rw [show (a + 8) + (0) + 1 + (2) = a + 11 by lib_nat] at h
                    try rw [show (a + 8) + (0) + 1 = a + 9 by lib_nat] at h
                    try rw [show (a + 8) + (2) = a + 10 by lib_nat] at h
                    exact A2.nn_of_nonpos_neg K O _ h
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1) + 1 = a + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 13))) (K.neg (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 10))))))
                    have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 10)))))) := by
                      have h := A2.mk K O x hT (3) (a + 6) (2)
                      try rw [show (a + 6) + (2) + 1 + (3) = a + 12 by lib_nat] at h
                      try rw [show (a + 6) + (2) + 1 = a + 9 by lib_nat] at h
                      try rw [show (a + 6) + (3) = a + 9 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 13))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 12)))))) := by
                      have h := A2.mk K O x hT (3) (a + 8) (0)
                      try rw [show (a + 8) + (0) + 1 + (3) = a + 12 by lib_nat] at h
                      try rw [show (a + 8) + (0) + 1 = a + 9 by lib_nat] at h
                      try rw [show (a + 8) + (3) = a + 11 by lib_nat] at h
                      exact A2.nn_of_nonpos_neg K O _ h
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1) + 1 = a + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 14))) (K.neg (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 10))))))
                      have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 14))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 11)))))) := by
                        have h := A2.mk K O x hT (4) (a + 6) (2)
                        try rw [show (a + 6) + (2) + 1 + (4) = a + 13 by lib_nat] at h
                        try rw [show (a + 6) + (2) + 1 = a + 9 by lib_nat] at h
                        try rw [show (a + 6) + (4) = a + 10 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 14))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 13)))))) := by
                        have h := A2.mk K O x hT (4) (a + 8) (0)
                        try rw [show (a + 8) + (0) + 1 + (4) = a + 13 by lib_nat] at h
                        try rw [show (a + 8) + (0) + 1 = a + 9 by lib_nat] at h
                        try rw [show (a + 8) + (4) = a + 12 by lib_nat] at h
                        exact A2.nn_of_nonpos_neg K O _ h
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1 + 1) + 1 = a + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 15))) (K.neg (K.mul (K.add (Zs K x (a + 12)) (Zs K x (a + 14))) (Zs K x (a + 10))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + 15))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 12)))))) := by
                          have h := A2.mk K O x hT (5) (a + 6) (2)
                          try rw [show (a + 6) + (2) + 1 + (5) = a + 14 by lib_nat] at h
                          try rw [show (a + 6) + (2) + 1 = a + 9 by lib_nat] at h
                          try rw [show (a + 6) + (5) = a + 11 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + 15))) (K.neg (K.mul (Zs K x (a + 10)) (Zs K x (a + 14)))))) := by
                          have h := A2.mk K O x hT (5) (a + 8) (0)
                          try rw [show (a + 8) + (0) + 1 + (5) = a + 14 by lib_nat] at h
                          try rw [show (a + 8) + (0) + 1 = a + 9 by lib_nat] at h
                          try rw [show (a + 8) + (5) = a + 13 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
                      | succ w =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = a + w + 12 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + w + 16))) (K.neg (K.mul (K.add (Zs K x (a + w + 13)) (Zs K x (a + w + 15))) (Zs K x (a + 10))))))
                        have t0 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 7)) (Zs K x (a + w + 16))) (K.neg (K.mul (Zs K x (a + w + 13)) (Zs K x (a + 10)))))) := by
                          have h := A2.mk K O x hT (3) (a + 6) (w + 5)
                          try rw [show (a + 6) + (w + 5) + 1 + (3) = a + w + 15 by lib_nat] at h
                          try rw [show (a + 6) + (w + 5) + 1 = a + w + 12 by lib_nat] at h
                          try rw [show (a + 6) + (3) = a + 9 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        have t1 : O.le K.zero (K.neg (K.add (K.mul (Zs K x (a + 9)) (Zs K x (a + w + 16))) (K.neg (K.mul (Zs K x (a + w + 15)) (Zs K x (a + 10)))))) := by
                          have h := A2.mk K O x hT (1) (a + 8) (w + 5)
                          try rw [show (a + 8) + (w + 5) + 1 + (1) = a + w + 15 by lib_nat] at h
                          try rw [show (a + 8) + (w + 5) + 1 = a + w + 14 by lib_nat] at h
                          try rw [show (a + 8) + (1) = a + 9 by lib_nat] at h
                          exact A2.nn_of_nonpos_neg K O _ h
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)

include hx hT hD h1 h10 in
theorem sg15 (i w : Nat) : O.le K.zero (K.neg (Lagrange.minor K (Zs K (pv2 K x)) (Zs K (c1v K x)) i (i + w + 1))) := by
  unfold Lagrange.minor
  cases i with
  | zero =>
    cases w with
    | zero =>
      show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add K.zero (Zs K x (2)))) (K.neg (K.mul (Zs K x (3)) K.zero))))
      exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
    | succ w =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (1)) (Zs K x (3)))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) K.zero))))
        exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (2)) (Zs K x (4)))) (K.neg (K.mul (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) K.zero))))
          exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (3)) (Zs K x (5)))) (K.neg (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) K.zero))))
            exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (4)) (Zs K x (6)))) (K.neg (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) K.zero))))
              exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
            | succ w =>
              rw [show 0 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 6 by lib_nat]
              show O.le K.zero (K.neg (K.add (K.mul K.zero (K.add (Zs K x (w + 5)) (Zs K x (w + 7)))) (K.neg (K.mul (K.add (K.add (Zs K x (w + 4)) (Zs K x (w + 6))) (Zs K x (w + 8))) K.zero))))
              exact A1.nn_of_eq K O _ _ (O.le_refl K.zero) (by lib_ring)
  | succ i =>
    cases i with
    | zero =>
      cases w with
      | zero =>
        show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (1)) (Zs K x (3)))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (K.add K.zero (Zs K x (2)))))))
        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (3))))) := A1.Dn K O x hD (1) (1) (1) (2) (3) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
        exact A1.nn_of_eq K O _ _ t0 (by lib_ring)
      | succ w =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (2)) (Zs K x (4)))) (K.neg (K.mul (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (K.add K.zero (Zs K x (2)))))))
          have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (3))))) := A1.Dn K O x hD (0) (2) (0) (1) (2) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ t0 t1) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (3)) (Zs K x (5)))) (K.neg (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add K.zero (Zs K x (2)))))))
            have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (4))))) := A1.Dn K O x hD (0) (3) (0) (1) (2) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (3))))) := A1.Dn K O x hD (1) (1) (1) (2) (3) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (4)) (Zs K x (6)))) (K.neg (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.add K.zero (Zs K x (2)))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (5))))) := A1.Dn K O x hD (0) (4) (0) (1) (2) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (5)) (Zs K x (7)))) (K.neg (K.mul (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (K.add K.zero (Zs K x (2)))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
              | succ w =>
                rw [show 0 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (Zs K x (3)) (K.add (Zs K x (w + 6)) (Zs K x (w + 8)))) (K.neg (K.mul (K.add (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (w + 9))) (K.add K.zero (Zs K x (2)))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 7))))) := A1.Dn K O x hD (0) (w + 6) (0) (1) (2) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 5)) (Zs K x (w + 7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 6))))) := A1.Dn K O x hD (1) (w + 4) (1) (2) (3) (w + 5) (w + 6) (w + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
    | succ i =>
      cases i with
      | zero =>
        cases w with
        | zero =>
          show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (K.add (Zs K x (2)) (Zs K x (4)))) (K.neg (K.mul (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (K.add (Zs K x (1)) (Zs K x (3)))))))
          have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (2))))) := A1.Dn K O x hD (0) (1) (0) (1) (2) (1) (2) (3) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (4))))) := A1.Dn K O x hD (0) (3) (0) (1) (2) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
          exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
        | succ w =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (K.add (Zs K x (3)) (Zs K x (5)))) (K.neg (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (Zs K x (1)) (Zs K x (3)))))))
            have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (3))))) := A1.Dn K O x hD (0) (2) (0) (1) (2) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (5))))) := A1.Dn K O x hD (0) (4) (0) (1) (2) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (K.add (Zs K x (4)) (Zs K x (6)))) (K.neg (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.add (Zs K x (1)) (Zs K x (3)))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (4))))) := A1.Dn K O x hD (0) (3) (0) (1) (2) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (K.add (Zs K x (5)) (Zs K x (7)))) (K.neg (K.mul (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (K.add (Zs K x (1)) (Zs K x (3)))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (5))))) := A1.Dn K O x hD (0) (4) (0) (1) (2) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (7))))) := A1.Dn K O x hD (0) (6) (0) (1) (2) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (K.add (Zs K x (6)) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (K.add (Zs K x (1)) (Zs K x (3)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (6))))) := A1.Dn K O x hD (0) (5) (0) (1) (2) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (8))))) := A1.Dn K O x hD (0) (7) (0) (1) (2) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
                | succ w =>
                  rw [show 0 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (K.add (Zs K x (w + 7)) (Zs K x (w + 9)))) (K.neg (K.mul (K.add (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (w + 10))) (K.add (Zs K x (1)) (Zs K x (3)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 7))))) := A1.Dn K O x hD (0) (w + 6) (0) (1) (2) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (1))) (K.neg (K.mul (K.add K.zero (Zs K x (2))) (Zs K x (w + 9))))) := A1.Dn K O x hD (0) (w + 8) (0) (1) (2) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 6)) (Zs K x (w + 8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 7))))) := A1.Dn K O x hD (2) (w + 4) (2) (3) (4) (w + 6) (w + 7) (w + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
      | succ i =>
        cases i with
        | zero =>
          cases w with
          | zero =>
            show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (K.add (Zs K x (3)) (Zs K x (5)))) (K.neg (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (Zs K x (2)) (Zs K x (4)))))))
            have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (3))))) := A1.Dn K O x hD (1) (1) (1) (2) (3) (2) (3) (4) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
            exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
          | succ w =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (K.add (Zs K x (4)) (Zs K x (6)))) (K.neg (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.add (Zs K x (2)) (Zs K x (4)))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (4))))) := A1.Dn K O x hD (1) (2) (1) (2) (3) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (K.add (Zs K x (5)) (Zs K x (7)))) (K.neg (K.mul (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (K.add (Zs K x (2)) (Zs K x (4)))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))))) := A1.Dn K O x hD (1) (3) (1) (2) (3) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (K.add (Zs K x (6)) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (K.add (Zs K x (2)) (Zs K x (4)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (6))))) := A1.Dn K O x hD (1) (4) (1) (2) (3) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (8))))) := A1.Dn K O x hD (1) (6) (1) (2) (3) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (K.add (Zs K x (7)) (Zs K x (9)))) (K.neg (K.mul (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))) (K.add (Zs K x (2)) (Zs K x (4)))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (7))))) := A1.Dn K O x hD (1) (5) (1) (2) (3) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (9))))) := A1.Dn K O x hD (1) (7) (1) (2) (3) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
                  | succ w =>
                    rw [show 0 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (5))) (K.add (Zs K x (w + 8)) (Zs K x (w + 10)))) (K.neg (K.mul (K.add (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (w + 11))) (K.add (Zs K x (2)) (Zs K x (4)))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 8))))) := A1.Dn K O x hD (1) (w + 6) (1) (2) (3) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (2))) (K.neg (K.mul (K.add (Zs K x (1)) (Zs K x (3))) (Zs K x (w + 10))))) := A1.Dn K O x hD (1) (w + 8) (1) (2) (3) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 7)) (Zs K x (w + 9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 8))))) := A1.Dn K O x hD (3) (w + 4) (3) (4) (5) (w + 7) (w + 8) (w + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
        | succ i =>
          cases i with
          | zero =>
            cases w with
            | zero =>
              show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (Zs K x (4)) (Zs K x (6)))) (K.neg (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.add (Zs K x (3)) (Zs K x (5)))))))
              have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (4))))) := A1.Dn K O x hD (2) (1) (2) (3) (4) (3) (4) (5) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
              exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
            | succ w =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (Zs K x (5)) (Zs K x (7)))) (K.neg (K.mul (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (K.add (Zs K x (3)) (Zs K x (5)))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (5))))) := A1.Dn K O x hD (2) (2) (2) (3) (4) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (Zs K x (6)) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (K.add (Zs K x (3)) (Zs K x (5)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))))) := A1.Dn K O x hD (2) (3) (2) (3) (4) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (6))))) := A1.Dn K O x hD (4) (1) (4) (5) (6) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (Zs K x (7)) (Zs K x (9)))) (K.neg (K.mul (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))) (K.add (Zs K x (3)) (Zs K x (5)))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (7))))) := A1.Dn K O x hD (2) (4) (2) (3) (4) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (9))))) := A1.Dn K O x hD (2) (6) (2) (3) (4) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (Zs K x (8)) (Zs K x (10)))) (K.neg (K.mul (K.add (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (11))) (K.add (Zs K x (3)) (Zs K x (5)))))))
                      have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (8))))) := A1.Dn K O x hD (2) (5) (2) (3) (4) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (10))))) := A1.Dn K O x hD (2) (7) (2) (3) (4) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
                    | succ w =>
                      rw [show 0 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (6))) (K.add (Zs K x (w + 9)) (Zs K x (w + 11)))) (K.neg (K.mul (K.add (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (w + 12))) (K.add (Zs K x (3)) (Zs K x (5)))))))
                      have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 9))))) := A1.Dn K O x hD (2) (w + 6) (2) (3) (4) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (3))) (K.neg (K.mul (K.add (Zs K x (2)) (Zs K x (4))) (Zs K x (w + 11))))) := A1.Dn K O x hD (2) (w + 8) (2) (3) (4) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 8)) (Zs K x (w + 10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 9))))) := A1.Dn K O x hD (4) (w + 4) (4) (5) (6) (w + 8) (w + 9) (w + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 11))))) := A1.Dn K O x hD (4) (w + 6) (4) (5) (6) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
          | succ i =>
            cases i with
            | zero =>
              cases w with
              | zero =>
                show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.add (Zs K x (5)) (Zs K x (7)))) (K.neg (K.mul (K.add (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))) (K.add (Zs K x (4)) (Zs K x (6)))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (5))))) := A1.Dn K O x hD (3) (1) (3) (4) (5) (4) (5) (6) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (7))))) := A1.Dn K O x hD (5) (1) (5) (6) (7) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.add (Zs K x (6)) (Zs K x (8)))) (K.neg (K.mul (K.add (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))) (K.add (Zs K x (4)) (Zs K x (6)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (6))))) := A1.Dn K O x hD (3) (2) (3) (4) (5) (5) (6) (7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (7))))) := A1.Dn K O x hD (4) (2) (4) (5) (6) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (8))))) := A1.Dn K O x hD (5) (2) (5) (6) (7) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.add (Zs K x (7)) (Zs K x (9)))) (K.neg (K.mul (K.add (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (10))) (K.add (Zs K x (4)) (Zs K x (6)))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))))) := A1.Dn K O x hD (3) (3) (3) (4) (5) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (8))))) := A1.Dn K O x hD (4) (3) (4) (5) (6) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (6)) (Zs K x (8))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (7))))) := A1.Dn K O x hD (5) (1) (5) (6) (7) (6) (7) (8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.add (Zs K x (8)) (Zs K x (10)))) (K.neg (K.mul (K.add (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (11))) (K.add (Zs K x (4)) (Zs K x (6)))))))
                      have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (8))))) := A1.Dn K O x hD (3) (4) (3) (4) (5) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (10))))) := A1.Dn K O x hD (3) (6) (3) (4) (5) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (9))))) := A1.Dn K O x hD (4) (4) (4) (5) (6) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (7)) (Zs K x (9))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (8))))) := A1.Dn K O x hD (5) (2) (5) (6) (7) (7) (8) (9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (10))))) := A1.Dn K O x hD (5) (4) (5) (6) (7) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.add (Zs K x (9)) (Zs K x (11)))) (K.neg (K.mul (K.add (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (12))) (K.add (Zs K x (4)) (Zs K x (6)))))))
                        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (9))))) := A1.Dn K O x hD (3) (5) (3) (4) (5) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (11))))) := A1.Dn K O x hD (3) (7) (3) (4) (5) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (9)) (Zs K x (11))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (10))))) := A1.Dn K O x hD (4) (5) (4) (5) (6) (9) (10) (11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (8)) (Zs K x (10))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (9))))) := A1.Dn K O x hD (5) (3) (5) (6) (7) (8) (9) (10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (10)) (Zs K x (12))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (11))))) := A1.Dn K O x hD (5) (5) (5) (6) (7) (10) (11) (12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
                      | succ w =>
                        rw [show 0 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = w + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (7))) (K.add (Zs K x (w + 10)) (Zs K x (w + 12)))) (K.neg (K.mul (K.add (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (w + 13))) (K.add (Zs K x (4)) (Zs K x (6)))))))
                        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 10))))) := A1.Dn K O x hD (3) (w + 6) (3) (4) (5) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (4))) (K.neg (K.mul (K.add (Zs K x (3)) (Zs K x (5))) (Zs K x (w + 12))))) := A1.Dn K O x hD (3) (w + 8) (3) (4) (5) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 10)) (Zs K x (w + 12))) (Zs K x (5))) (K.neg (K.mul (K.add (Zs K x (4)) (Zs K x (6))) (Zs K x (w + 11))))) := A1.Dn K O x hD (4) (w + 6) (4) (5) (6) (w + 10) (w + 11) (w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 9)) (Zs K x (w + 11))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 10))))) := A1.Dn K O x hD (5) (w + 4) (5) (6) (7) (w + 9) (w + 10) (w + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (w + 11)) (Zs K x (w + 13))) (Zs K x (6))) (K.neg (K.mul (K.add (Zs K x (5)) (Zs K x (7))) (Zs K x (w + 12))))) := A1.Dn K O x hD (5) (w + 6) (5) (6) (7) (w + 11) (w + 12) (w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
            | succ a =>
              cases w with
              | zero =>
                rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 = a + 7 by lib_nat]
                show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))) (K.add (Zs K x (a + 6)) (Zs K x (a + 8)))) (K.neg (K.mul (K.add (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9))) (K.add (Zs K x (a + 5)) (Zs K x (a + 7)))))))
                have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 6))))) := A1.Dn K O x hD (a + 4) (1) (a + 4) (a + 5) (a + 6) (a + 5) (a + 6) (a + 7) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 4) (3) (a + 4) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 6) (1) (a + 6) (a + 7) (a + 8) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) (by lib_ring)
              | succ w =>
                cases w with
                | zero =>
                  rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1) + 1 = a + 8 by lib_nat]
                  show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))) (K.add (Zs K x (a + 7)) (Zs K x (a + 9)))) (K.neg (K.mul (K.add (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 10))) (K.add (Zs K x (a + 5)) (Zs K x (a + 7)))))))
                  have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 7))))) := A1.Dn K O x hD (a + 4) (2) (a + 4) (a + 5) (a + 6) (a + 6) (a + 7) (a + 8) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 4) (4) (a + 4) (a + 5) (a + 6) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 5) (2) (a + 5) (a + 6) (a + 7) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 6) (2) (a + 6) (a + 7) (a + 8) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                  exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) (by lib_ring)
                | succ w =>
                  cases w with
                  | zero =>
                    rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1) + 1 = a + 9 by lib_nat]
                    show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))) (K.add (Zs K x (a + 8)) (Zs K x (a + 10)))) (K.neg (K.mul (K.add (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 11))) (K.add (Zs K x (a + 5)) (Zs K x (a + 7)))))))
                    have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 4) (3) (a + 4) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 4) (5) (a + 4) (a + 5) (a + 6) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 5) (3) (a + 5) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 7)) (Zs K x (a + 9))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 8))))) := A1.Dn K O x hD (a + 6) (1) (a + 6) (a + 7) (a + 8) (a + 7) (a + 8) (a + 9) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 6) (3) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                    exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
                  | succ w =>
                    cases w with
                    | zero =>
                      rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1) + 1 = a + 10 by lib_nat]
                      show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))) (K.add (Zs K x (a + 9)) (Zs K x (a + 11)))) (K.neg (K.mul (K.add (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 12))) (K.add (Zs K x (a + 5)) (Zs K x (a + 7)))))))
                      have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 4) (4) (a + 4) (a + 5) (a + 6) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 4) (6) (a + 4) (a + 5) (a + 6) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 5) (4) (a + 5) (a + 6) (a + 7) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 8)) (Zs K x (a + 10))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 9))))) := A1.Dn K O x hD (a + 6) (2) (a + 6) (a + 7) (a + 8) (a + 8) (a + 9) (a + 10) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 6) (4) (a + 6) (a + 7) (a + 8) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                      exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
                    | succ w =>
                      cases w with
                      | zero =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (0 + 1 + 1 + 1 + 1) + 1 = a + 11 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))) (K.add (Zs K x (a + 10)) (Zs K x (a + 12)))) (K.neg (K.mul (K.add (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 13))) (K.add (Zs K x (a + 5)) (Zs K x (a + 7)))))))
                        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 4) (5) (a + 4) (a + 5) (a + 6) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 4) (7) (a + 4) (a + 5) (a + 6) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 10)) (Zs K x (a + 12))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + 11))))) := A1.Dn K O x hD (a + 5) (5) (a + 5) (a + 6) (a + 7) (a + 10) (a + 11) (a + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 9)) (Zs K x (a + 11))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 10))))) := A1.Dn K O x hD (a + 6) (3) (a + 6) (a + 7) (a + 8) (a + 9) (a + 10) (a + 11) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + 11)) (Zs K x (a + 13))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + 12))))) := A1.Dn K O x hD (a + 6) (5) (a + 6) (a + 7) (a + 8) (a + 11) (a + 12) (a + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)
                      | succ w =>
                        rw [show a + 1 + 1 + 1 + 1 + 1 + 1 + (w + 1 + 1 + 1 + 1 + 1) + 1 = a + w + 12 by lib_nat]
                        show O.le K.zero (K.neg (K.add (K.mul (K.add (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + 8))) (K.add (Zs K x (a + w + 11)) (Zs K x (a + w + 13)))) (K.neg (K.mul (K.add (K.add (Zs K x (a + w + 10)) (Zs K x (a + w + 12))) (Zs K x (a + w + 14))) (K.add (Zs K x (a + 5)) (Zs K x (a + 7)))))))
                        have t0 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 10)) (Zs K x (a + w + 12))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + w + 11))))) := A1.Dn K O x hD (a + 4) (w + 6) (a + 4) (a + 5) (a + 6) (a + w + 10) (a + w + 11) (a + w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t1 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 12)) (Zs K x (a + w + 14))) (Zs K x (a + 5))) (K.neg (K.mul (K.add (Zs K x (a + 4)) (Zs K x (a + 6))) (Zs K x (a + w + 13))))) := A1.Dn K O x hD (a + 4) (w + 8) (a + 4) (a + 5) (a + 6) (a + w + 12) (a + w + 13) (a + w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t2 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 11)) (Zs K x (a + w + 13))) (Zs K x (a + 6))) (K.neg (K.mul (K.add (Zs K x (a + 5)) (Zs K x (a + 7))) (Zs K x (a + w + 12))))) := A1.Dn K O x hD (a + 5) (w + 6) (a + 5) (a + 6) (a + 7) (a + w + 11) (a + w + 12) (a + w + 13) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t3 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 10)) (Zs K x (a + w + 12))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + w + 11))))) := A1.Dn K O x hD (a + 6) (w + 4) (a + 6) (a + 7) (a + 8) (a + w + 10) (a + w + 11) (a + w + 12) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        have t4 : O.le K.zero (K.add (K.mul (K.add (Zs K x (a + w + 12)) (Zs K x (a + w + 14))) (Zs K x (a + 7))) (K.neg (K.mul (K.add (Zs K x (a + 6)) (Zs K x (a + 8))) (Zs K x (a + w + 13))))) := A1.Dn K O x hD (a + 6) (w + 6) (a + 6) (a + 7) (a + 8) (a + w + 12) (a + w + 13) (a + w + 14) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat) (by lib_nat)
                        exact A1.nn_of_eq K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ (A1.nn_add K O _ _ t0 t1) t2) t3) t4) (by lib_ring)

end signs

section final

variable (O : ORing K)

/-- **(A) at n = 3 for every length** (generated): a v-good X gives 25 c_3 c_5 ≤ 24 c_4² -/
theorem prod_lc (F : OField.OF K O) (h1 : O.le K.zero K.one) (h10 : K.one ≠ K.zero) (X : List R) (hXg : L1Full.Good K O X) (M : Nat) (hX : X.length = M + 2) :
    O.le (K.mul (LibRing.castN K 75) (K.mul (cgc K X X 3) (cgc K X X 5)))
      (K.mul (LibRing.castN K 72) (K.mul (cgc K X X 4) (cgc K X X 4))) := by
  have ⟨hb, hpos, hv, h0⟩ := hXg
  let x := co K X
  have hzY : ∀ t, M + 3 ≤ t → Zs K x t = K.zero := fun t ht => by
    cases t with
    | zero => exact absurd ht (Nat.not_succ_le_zero _)
    | succ t => exact HeatLR.co_out K X t (by rw [hX]; exact Nat.le_of_succ_le_succ ht)
  have hY : ∀ j, O.le K.zero (Zs K x j) := fun j => by cases j with
    | zero => exact O.le_refl _
    | succ j => exact hb j
  have hD : ∀ a k, O.le K.zero (Window.Dl K (Zs K x) a (a + k)) := fun a k =>
    Window.dl_nn_t K O F (Zs K x) hY (M + 3)
      (fun j hj => hpos j (by rw [hX]; exact Nat.lt_of_succ_lt_succ hj))
      hzY (CgWindow.VV_Zs K O x hv h0) a k
  have hT : ∀ a w, O.le K.zero (K.add (K.mul (Zs K x (a + 1)) (Zs K x (a + w))) (K.neg (K.mul (Zs K x a) (Zs K x (a + w + 1))))) := by
    intro a w
    rw [← Lagrange.tail_minor K (Zs K x) (M + 3) hzY a w (M + 3) (by lib_nat_le)]
    exact CauchyBinet2.sum_nn K O _ (fun i => by rw [show a + w + i = a + i + w by lib_nat]; exact hD (a + i) w) _
  have hxz : ∀ t, M + 1 + 1 ≤ t → x t = K.zero := A1C.hzX K X (M + 1) hX
  have cb0 := CauchyBinet2.cb_nonneg K O (Zs K (Zs K (Zs K x))) (Zs K (Zs K x)) (fun i => x (i + 1)) (fun i => x (i + 2)) (M + 1 + 1 + 8) (A1.split_lt _ (fun i w => A1.prod_np K O _ _ (A1.nn_neg K O _ (sg0 K O x hb hT hD h1 h10 i w)) (A1.nn_neg K O _ (sg1 K O x hb hT hD h1 h10 i w))))
  have cn0 := SU2CharExp.cN_nn K O h1 16
  have cb1 := CauchyBinet2.cb_nonneg K O (Zs K (Zs K (Zs K x))) (fun i => x (i + 3)) x (fun i => x (i + 2)) (M + 1 + 1 + 8) (A1.split_lt _ (fun i w => A1.prod_np K O _ _ (A1.nn_neg K O _ (sg2 K O x hb hT hD h1 h10 i w)) (A1.nn_neg K O _ (sg3 K O x hb hT hD h1 h10 i w))))
  have cn1 := SU2CharExp.cN_nn K O h1 8
  have cb2 := CauchyBinet2.cb_nonneg K O (Zs K (Zs K (Zs K x))) (Zs K (c1v K x)) (fun i => x (i + 1)) (fun i => x (i + 2)) (M + 1 + 1 + 8) (A1.split_lt _ (fun i w => A1.prod_np K O _ _ (A1.nn_neg K O _ (sg4 K O x hb hT hD h1 h10 i w)) (A1.nn_neg K O _ (sg1 K O x hb hT hD h1 h10 i w))))
  have cn2 := SU2CharExp.cN_nn K O h1 24
  have cb3 := CauchyBinet2.cb_nonneg K O (Zs K (Zs K (Zs K x))) (pv2 K x) (fun i => x (i + 1)) (fun i => x (i + 2)) (M + 1 + 1 + 8) (A1.split_lt _ (fun i w => A1.prod_np K O _ _ (A1.nn_neg K O _ (sg5 K O x hb hT hD h1 h10 i w)) (A1.nn_neg K O _ (sg1 K O x hb hT hD h1 h10 i w))))
  have cn3 := SU2CharExp.cN_nn K O h1 24
  have cb4 := CauchyBinet2.cb_nonneg K O (Zs K x) x (Zs K (pv4 K x)) (Zs K (pv3 K x)) (M + 1 + 1 + 8) (A1.split_lt _ (fun i w => A1.prod_np K O _ _ (A1.nn_neg K O _ (sg6 K O x hb hT hD h1 h10 i w)) (A1.nn_neg K O _ (sg7 K O x hb hT hD h1 h10 i w))))
  have cn4 := SU2CharExp.cN_nn K O h1 36
  have cb5 := CauchyBinet2.cb_nonneg K O (Zs K x) (Zs K (c1v K x)) (fun i => x (i + 3)) (fun i => x (i + 2)) (M + 1 + 1 + 8) (A1.split_lt _ (fun i w => O.mul_nonneg _ _ (sg8 K O x hb hT hD h1 h10 i w) (sg9 K O x hb hT hD h1 h10 i w)))
  have cn5 := SU2CharExp.cN_nn K O h1 32
  have cb6 := CauchyBinet2.cb_nonneg K O x (fun i => x (i + 1)) (Zs K (pv3 K x)) (Zs K (pv2 K x)) (M + 1 + 1 + 8) (A1.split_lt _ (fun i w => A1.prod_np K O _ _ (A1.nn_neg K O _ (sg10 K O x hb hT hD h1 h10 i w)) (A1.nn_neg K O _ (sg11 K O x hb hT hD h1 h10 i w))))
  have cn6 := SU2CharExp.cN_nn K O h1 32
  have cb7 := CauchyBinet2.cb_nonneg K O x (fun i => x (i + 1)) (Zs K (pv3 K x)) (pv3 K x) (M + 1 + 1 + 8) (A1.split_lt _ (fun i w => A1.prod_np K O _ _ (A1.nn_neg K O _ (sg10 K O x hb hT hD h1 h10 i w)) (A1.nn_neg K O _ (sg12 K O x hb hT hD h1 h10 i w))))
  have cn7 := SU2CharExp.cN_nn K O h1 4
  have cb8 := CauchyBinet2.cb_nonneg K O (fun i => x (i + 1)) (fun i => x (i + 2)) (fun i => x (i + 2)) (fun i => x (i + 3)) (M + 1 + 1 + 8) (A1.split_lt _ (fun i w => A1.prod_np K O _ _ (A1.nn_neg K O _ (sg1 K O x hb hT hD h1 h10 i w)) (A1.nn_neg K O _ (sg13 K O x hb hT hD h1 h10 i w))))
  have cn8 := SU2CharExp.cN_nn K O h1 32
  have cb9 := CauchyBinet2.cb_nonneg K O (fun i => x (i + 1)) (fun i => x (i + 2)) (pv1 K (fun i => x (i + 1))) (fun i => x (i + 3)) (M + 1 + 1 + 8) (A1.split_lt _ (fun i w => A1.prod_np K O _ _ (A1.nn_neg K O _ (sg1 K O x hb hT hD h1 h10 i w)) (A1.nn_neg K O _ (sg14 K O x hb hT hD h1 h10 i w))))
  have cn9 := SU2CharExp.cN_nn K O h1 20
  have cb10 := CauchyBinet2.cb_nonneg K O (fun i => x (i + 1)) (fun i => x (i + 2)) (Zs K (pv2 K x)) (Zs K (c1v K x)) (M + 1 + 1 + 8) (A1.split_lt _ (fun i w => A1.prod_np K O _ _ (A1.nn_neg K O _ (sg1 K O x hb hT hD h1 h10 i w)) (A1.nn_neg K O _ (sg15 K O x hb hT hD h1 h10 i w))))
  have cn10 := SU2CharExp.cN_nn K O h1 84
  have tot := (A1.nn_add K O _ _ (A1.pos_mul K O _ _ cn0 cb0) (A1.nn_add K O _ _ (A1.pos_mul K O _ _ cn1 cb1) (A1.nn_add K O _ _ (A1.pos_mul K O _ _ cn2 cb2) (A1.nn_add K O _ _ (A1.pos_mul K O _ _ cn3 cb3) (A1.nn_add K O _ _ (A1.pos_mul K O _ _ cn4 cb4) (A1.nn_add K O _ _ (A1.pos_mul K O _ _ cn5 cb5) (A1.nn_add K O _ _ (A1.pos_mul K O _ _ cn6 cb6) (A1.nn_add K O _ _ (A1.pos_mul K O _ _ cn7 cb7) (A  -- (+173 chars; full line in the Zenodo source)
  have id := ident K x (M + 1 + 1) hxz
  apply A1.le_of_sub_nn K O
  rw [A1C.cgc_ip K X (M + 1) 3 hX (pv3 K (co K X)) (psi3 K X) 8]
  rw [A1C.cgc_ip K X (M + 1) 4 hX (pv4 K (co K X)) (psi4 K X) 8]
  rw [A1C.cgc_ip K X (M + 1) 5 hX (pv5 K (co K X)) (psi5 K X) 8]
  show O.le K.zero _
  rw [id]; exact tot

end final

end GenA3

#print axioms GenA3.ident
#print axioms GenA3.prod_lc