Zulip Chat Archive

Stream: new members

Topic: ext_iff not getting defined


ROCKY KAMEN-RUBIO (Jul 02 2020 at 21:03):

I've been trying some variations of Kevin's livestream today, I'm confused why ext_iff isn't getting defined for some of my structures.

import tactic
import data.nat.basic

structure silly (n : ) :=
(k : )
(h : k = n)
(l : )

def x : silly 1 := silly.mk 1 (by refl) 2
def y : silly 1 := silly.mk 1 (by refl) 3
example : x  y :=
begin
  unfold x,
  unfold y,
  intro h,
  --rw silly.ext_iff at h,
  sorry,
end

structure silly2 :=
(k : )

def x' : silly2 := silly2.mk 1
def y' : silly2 := silly2.mk 2
example : x'  y' :=
begin
  intro h,
  --rw silly2.ext_iff at h,
  sorry
end

Alex J. Best (Jul 02 2020 at 21:09):

ext_iff  is generated by adding the @[ext] attribute to your structures I believe

ROCKY KAMEN-RUBIO (Jul 02 2020 at 21:30):

Alex J. Best said:

ext_iff  is generated by adding the @[ext] attribute to your structures I believe

Thank you! Just seeing now that I missed that part of the video when I went back to this section. Thanks!


Last updated: Dec 20 2023 at 11:08 UTC