lean4-htt/tests/lean/run/9624.lean
Cameron Zwarich 5b5bb5174b
fix: check for recursive decls before instance proj inlining (#9847)
This PR adds a check for reursive decls in this bespoke inlining path,
which fixes a regression from the old compiler.

Fixes #9624.
2025-08-11 13:50:26 +00:00

28 lines
640 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

set_option warn.sorry false
inductive T : Type u where
| node : T → T
open Lean.Order
class O α where
compare : αα → Ordering
instance : PartialOrder (O α) := sorry
noncomputable instance : CCPO (O α) := sorry
def instOrdT : O T :=
{ compare := fun | .node x, .node y => (@O.compare _ instOrdT x y) }
partial_fixpoint monotonicity by sorry
structure S α where
compare : αα → Ordering
instance : PartialOrder (S α) := sorry
noncomputable instance : CCPO (S α) := sorry
def instST : S T :=
{ compare := fun | .node x, .node y => (@S.compare _ instST x y) }
partial_fixpoint monotonicity by sorry