Zulip Chat Archive

Stream: new members

Topic: Theorem Proving in Lean 4, Exercise 4.6.2


Nathan (Sep 22 2025 at 17:43):

variable (α : Type) (p q : α → Prop) variable (r : Prop) example : α → ((∀ x : α, r) ↔ r) := sorry

How do I solve this? λ h => ⟨λ hax => hax h, λ hr => λ _ => hr⟩ works, but I get an "unused variable" warning. Also, I don't understand the mathematical interpretation of this statement. If we were to say (∀ x ∈ S, r) ↔ r, this could be false if S were empty.

Ruben Van de Velde (Sep 22 2025 at 18:03):

The meaning is: "given some element of alpha, 'r is true for all elements of alpha' is equivalent to just 'r'"

Nathan (Sep 22 2025 at 18:19):

I guess my proof is correct then, but how do I avoid the warning?

Ruben Van de Velde (Sep 22 2025 at 18:29):

You can write a _ like you did at the end there

Ruben Van de Velde (Sep 22 2025 at 18:29):

Wait, where is the warning?

Nathan (Sep 22 2025 at 18:35):

Screenshot 2025-09-22 at 2.34.43 PM.png

Ruben Van de Velde (Sep 22 2025 at 18:36):

Oh, not in the proof. Yeah, you can replace the x by _

Nathan (Sep 22 2025 at 18:38):

thanks :)


Last updated: Dec 20 2025 at 21:32 UTC