Zulip Chat Archive

Stream: lean4

Topic: A dependent `forall_const`?


Jovan Gerbscheid (Mar 22 2025 at 20:34):

I ran into the issue that the simp lemma

theorem forall_const (α : Sort _) [i : Nonempty α] : (α  b)  b

is non-dependent, so it didn't apply to my dependent forall. Should the definition be changed to be about an actual forall?

Aaron Liu (Mar 22 2025 at 20:39):

How can it be both dependent and constant?

Jovan Gerbscheid (Mar 22 2025 at 20:40):

Ah sorry, in my case the α was equal to True.

Aaron Liu (Mar 22 2025 at 20:40):

So like docs#forall_true_left

Jovan Gerbscheid (Mar 22 2025 at 20:41):

Ah, thank you, I didn't have mathlib imported and thought this sort of thing would be in core lean

Eric Wieser (Mar 22 2025 at 22:03):

There might be a version for Inhabited where the RHS is b default

Aaron Liu (Mar 22 2025 at 22:29):

docs#Unique.forall_iff


Last updated: May 02 2025 at 03:31 UTC