Zulip Chat Archive

Stream: new members

Topic: Finding constructors


Nathan (Sep 29 2025 at 06:25):

Where can I find the constructor for Equiv.Perm?

Ruben Van de Velde (Sep 29 2025 at 07:10):

docs#Equiv.Perm

Notification Bot (Sep 29 2025 at 07:11):

A message was moved here from #new members > mvcgen doesn't produce any invariant goals by Ruben Van de Velde.

Nathan (Sep 29 2025 at 07:29):

I don't get it, which part shows the constructor?

Ruben Van de Velde (Sep 29 2025 at 07:30):

Depends on what you mean by "constructor"

Ruben Van de Velde (Sep 29 2025 at 07:31):

That shows it's an abbrev, and if you click "Equations" it shows (α α), so you need to construct it as if it was a docs#Equiv

Nathan (Sep 29 2025 at 07:33):

so i need two functions and a proof of left inverse and a proof of right inverse?

Ruben Van de Velde (Sep 29 2025 at 07:55):

Yep

Kevin Buzzard (Sep 29 2025 at 12:02):

Screenshot 2025-09-29 at 13.01.18.png

(screenshot didn't capture it but my cursor was just before the s of sorry)

and then click on the blue lightbulb, select "generate a skeleton..." and you get

import Mathlib

def e : Equiv.Perm  where
  toFun := sorry
  invFun := sorry
  left_inv := sorry
  right_inv := sorry

Nathan (Sep 29 2025 at 13:06):

oh perfect, thanks


Last updated: Dec 20 2025 at 21:32 UTC