blob: 5232f195076d1e17e6cf041635d8111389ef1884 [file]
set_option warn.classDefReducibility false
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