Zulip Chat Archive

Stream: new members

Topic: IMO 2002 #4


Nathan (Oct 06 2025 at 02:39):

I proved the first part of this problem. I think I could delete a lot of the lemmas if I could prove

example {α : Type} (l : List α) (i : ) (h : i < l.length) :
    have : i < l.reverse.length := by simp[h]
    l[l.length-1-i] = l.reverse[i] := sorry

and use it in conjunction with Nat.reverse_divisorsAntidiagonalList. I also had trouble with Fin/Finsets and a with casting naturals to rationals, so I think there's room for improvement there. The casting in theorem t1 is such a mess.

I'm happy with how lemma telescope turned out, which is a lemma for telescoping sums.

Nathan (Oct 06 2025 at 02:44):

This is the proof
IMO.lean

Nathan (Oct 06 2025 at 02:48):

this is the problem
Screenshot 2025-10-05 at 10.47.23 PM.png

Henrik Böving (Oct 06 2025 at 07:29):

Nathan said:

I proved the first part of this problem. I think I could delete a lot of the lemmas if I could prove

example {α : Type} (l : List α) (i : ) (h : i < l.length) :
    have : i < l.reverse.length := by simp[h]
    l[l.length-1-i] = l.reverse[i] := sorry

That theorem is just by simp

Nathan (Oct 06 2025 at 14:54):

no way :joy: oh yeah and there's List.getElem_reverse how did i miss this

Nathan (Oct 06 2025 at 14:56):

thanks


Last updated: Dec 20 2025 at 21:32 UTC