Documentation

IMOSLLean4.Main.IMO2009.A3.A3

IMO 2009 A3 (P5) #

Find all functions $f : ℕ → ℕ$ such that for any $x, y ∈ ℕ$, the non-negative integers $x$, $f(y)$, and $f(y + f(x))$ form the sides of a possibly degenerate triangle.

Extra notes #

The original version using signature $ℕ^+ → ℕ^+$ is that $x$, $f(y)$, and $f(y + f(x) - 1)$ for the sides of a non-degenerate triangle.

Extra structure #

  • side_x : x y + z
  • side_y : y z + x
  • side_z : z x + y
Instances For

    Nat version #

    Equations
    Instances For
      theorem IMOSL.IMO2009A3.final_solution_Nat {f : } :
      good f f = fun (x : ) => x

      Final solution, Nat version

      PNat version #

      theorem IMOSL.IMO2009A3.PNat_to_Nat_Prop {P : ℕ+Prop} :
      (∀ (n : ℕ+), P n) ∀ (n : ), P n.succPNat
      theorem IMOSL.IMO2009A3.PNat_to_Nat_Prop2 {P : ℕ+ℕ+Prop} :
      (∀ (m n : ℕ+), P m n) ∀ (m n : ), P m.succPNat n.succPNat
      • side_x : x < y + z
      • side_y : y < z + x
      • side_z : z < x + y
      Instances For
        theorem IMOSL.IMO2009A3.isPNatTriangleSide_iff (x y z : ℕ+) :
        isPNatTriangleSide x y z x < y + z y < z + x z < x + y
        Equations
        Instances For
          theorem IMOSL.IMO2009A3.final_solution {f : ℕ+ℕ+} :
          goodPNat f f = fun (x : ℕ+) => x

          Final solution