lean4-htt/tests/lean/run/2079.lean
Gabriel Ebner d4b9a532d2 fix: calc: synthesize default instances
This is necessary to figure out the types with exponentiations.

Fixes #2079
2023-02-02 14:29:21 -08:00

10 lines
239 B
Text

@[default_instance] instance : Pow Int Nat where
pow m n := m ^ n
instance : @Trans Int Int Int (· < ·) (· < ·) (· < ·) where
trans := sorry
example {n : Int} : n ^ 2 < 1 :=
calc
n ^ 2 < 1 ^ 2 := sorry
_ < 1 := sorry