Zulip Chat Archive
Stream: Is there code for X?
Topic: eexists as in Rocq
Ka Wing Li (Dec 21 2025 at 19:56):
Is there any tactic like eexists in Rocq?
Jakub Nowak (Dec 21 2025 at 19:57):
You mean choose?
Ka Wing Li (Dec 21 2025 at 19:57):
I tried existsi _ but throws "don't know how to synthesize placeholder for argument w"
Ka Wing Li (Dec 21 2025 at 19:58):
I would like a metavar to be generated and instantiated later.
Henrik Böving (Dec 21 2025 at 19:59):
apply Exists.intro
Ka Wing Li (Dec 21 2025 at 19:59):
Something like
theorem f {P : ℕ → Prop} : P 0 → ∃ x, P x := by
intro h
apply Exists.intro _
exact h
that I have to write apply Exists.intro _ everywhere
Ruben Van de Velde (Dec 21 2025 at 20:00):
use ?_, maybe
Ka Wing Li (Dec 21 2025 at 20:26):
Oh, I don't know about the trick of ?_. That is helpful!
Kyle Miller (Dec 21 2025 at 20:44):
The constructor tactic puts the goals in the order you're looking for.
Last updated: Feb 28 2026 at 14:05 UTC