Zulip Chat Archive

Stream: new members

Topic: How does introv work?


Kenny Lau (Jul 23 2025 at 00:38):

import Mathlib.Tactic

universe u

def foo : Prop :=
  ∀ ⦃R : Type u⦄ (S : Type u) [CommRing R] [CommRing S], R = S → S = R

theorem bar : foo.{u} := by
  introv R hR hS h
/-
R S : Type u
hR : CommRing R
hS : CommRing S
h : R = S
⊢ S = R
-/

example : ∀ a b : Nat, a = b → b = a := by
  introv h
/-
a b : ℕ
h : a = b
⊢ b = a
-/

Kenny Lau (Jul 23 2025 at 00:38):

I am very confused on how introv works. What's a dependent hypothesis?


Last updated: Feb 28 2026 at 14:05 UTC