Files
lean4/tests/elab/convInConv.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

27 lines
486 B
Lean4

def twice : Nat Nat := λ n => 2*n
def foo1 : (λ x : Nat => id (twice (id x))) = twice := by
conv in (id _) =>
trace_state
conv =>
enter [1,1]
trace_state
simp
trace_state
trace_state -- `id (twice x)`
rfl
theorem foo2 (y : Nat) : (fun x => x + y = 0) = (fun x => False) := by
conv =>
trace_state
conv =>
lhs
trace_state
intro x
rw [Nat.add_comm]
trace_state
trace_state
trace_state
sorry