lean4-htt/tests/elab/1342.lean
Garmelon 08eb78a5b2
chore: switch to new test/bench suite (#12590)
This PR sets up the new integrated test/bench suite. It then migrates
all benchmarks and some related tests to the new suite. There's also
some documentation and some linting.

For now, a lot of the old tests are left alone so this PR doesn't become
even larger than it already is. Eventually, all tests should be migrated
to the new suite though so there isn't a confusing mix of two systems.
2026-02-25 13:51:53 +00:00

58 lines
1.2 KiB
Text

example (a b c : Nat) (h1 : a <= b) (h2 : b <= c) : a <= c :=
calc a
<= b := h1
_ <= c := h2
_ <= c := Nat.le_refl _
example (a b c : Nat) (h1 : a <= b) (h2 : b <= c) : a <= c :=
calc a
<= b := h1
_ <= c := h2
example (a b c : Nat) (h1 : a <= b) (h2 : b <= c) : a <= c :=
calc a <= b := h1
_ <= c := h2
example (a b c : Nat) (h1 : a <= b) (h2 : b <= c) : a <= c :=
calc
a <= b := h1
_ <= c := h2
example (a b c : Nat) (h1 : a <= b) (h2 : b <= c) : a <= c :=
calc
a <= b := sorry
_ <= c := h2
example (a b c : Nat) (h1 : a <= b) (h2 : b <= c) : a <= c := by
calc a
<= b := ?h
_ <= c := h2
case h => exact h1
example (a b c : Nat) (h1 : a <= b) (h2 : b <= c) : a <= c := by
calc a
= a + 0 := rfl
_ <= b := ?h
_ = b := rfl
case h => exact h1
exact h2
example (a b c : Nat) (h1 : a <= b) (h2 : b <= c) : a <= c := by
calc _
<= b := ?h
_ = b := rfl
case h => exact h1
exact h2
example (a b c : Nat) (h1 : a <= b) (h2 : b <= c) : a <= c := by
calc _
<= b := h1
_ = b + 0 := rfl
exact h2
example (a b c : Nat) (h1 : a <= b) (h2 : b <= c) : a <= c := by
calc a
<= b := h1
_ = b + 0 := rfl
exact h2