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

37 lines
813 B
Lean4

variable (R A : Type) [One R] [One A]
class OneHom where
toFun : R A
map_one : toFun One.one = One.one
structure Subone where
mem : R Prop
one_mem : mem One.one
structure Subalgebra [OneHom R A] : Type extends Subone A where
algebraMap_mem : r : R, mem (OneHom.toFun r)
one_mem := OneHom.map_one (R := R) (A := A) algebraMap_mem One.one
set_option pp.mvars false
/--
error: don't know how to synthesize placeholder
context:
R A : Type
inst✝² : One R
inst✝¹ : One A
inst✝ : OneHom R A
⊢ ∀ (r : R), ?_ R A _example (OneHom.toFun r)
---
error: don't know how to synthesize placeholder
context:
R A : Type
inst✝² : One R
inst✝¹ : One A
inst✝ : OneHom R A
⊢ A → Prop
-/
#guard_msgs in
example [OneHom R A] : Subalgebra R A where
mem := _
algebraMap_mem := _