Zulip Chat Archive

Stream: new members

Topic: failed to generate instance


Alex Zhang (Jul 24 2021 at 16:46):

Why can't lean infer instance in the following cases?

import field_theory.finite.basic
example (h :  (I : Type*) (inst : fintype I), true) : true :=
begin
  rcases h with I, inst⟩,
  have g : fintype (I  I),
  {apply_instance}
end

error : tactic.mk_instance failed to generate instance for fintype (I ⊕ I)

Eric Wieser (Jul 24 2021 at 17:05):

tactic#resetI


Last updated: Dec 20 2023 at 11:08 UTC