Zulip Chat Archive
Stream: general
Topic: how to use ext
Frederick Pu (Dec 16 2024 at 20:17):
when doing ext for proving two arrays equal you get the following
example (A B : Array Nat) : A = B := by
ext
/- case h₁
A B : Array Nat
⊢ A.size = B.size
case h₂
A B : Array Nat
i✝ : Nat
hi₁✝ : i✝ < A.size
hi₂✝ : i✝ < B.size
⊢ A[i✝] = B[i✝]
-/
how do you get access to the implicit variables in the second goal?
Kyle Miller (Dec 16 2024 at 20:21):
You could use the rename_i
tactic to rename these inaccessible variables
Frederick Pu (Dec 16 2024 at 20:22):
but is there a way to like match each goal when using ext?
Kyle Miller (Dec 16 2024 at 20:22):
I think you can also do ext i h1 h2
to name the variables that appear
Frederick Pu (Dec 16 2024 at 20:23):
thx
Last updated: May 02 2025 at 03:31 UTC