Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • 1
    $\begingroup$ Not a very elegant solution, but try to replace part of your proof by sorry and see what happens. Of course this will add sorry as an axiom, but at some point choice should disappear. $\endgroup$
    – Ricky
    Commented Feb 18 at 11:28
  • 2
    $\begingroup$ I would even start by replacing the full proof by sorry, to check that the statement doesn't somehow uses choice. $\endgroup$
    – Ricky
    Commented Feb 18 at 11:29
  • 2
    $\begingroup$ I hate to say, this but the are many ways the axiom of choice can sneak into a Lean proof. Trying to do constructive math in Lean 4 is very painful. $\endgroup$
    – Jason Rute
    Commented Feb 18 at 12:29
  • $\begingroup$ Well, if you start using a lot of mathlib then I agree, but otherwise it should be more or less fine. $\endgroup$
    – Ricky
    Commented Feb 18 at 12:37
  • 2
    $\begingroup$ @Ricky. No. It is true in even base lean. Macros, automatic termination proofs, and common tactics can all add choice unexpectedly. $\endgroup$
    – Jason Rute
    Commented Feb 18 at 14:54