Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/MathlibTest/     Datei vom 15.10.2026 mit Größe 1 kB image not shown  

Quelle  SlowInstances.lean   Sprache: Lean

 

module
import Mathlib

variable {K : Type*} [Field K] {x : K}

set_option maxHeartbeats 1000 in -- uses about 850 as of 2025-09-10
/--
error: failed to synthesize
  Lean.Grind.NoNatZeroDivisors K

Hint: Additional diagnostic information may be available using the `set_option diagnostics true` command.
-/

#guard_msgs in
#synth Lean.Grind.NoNatZeroDivisors K

set_option maxHeartbeats 3000 in -- uses about 2300 as of 2025-09-11
example : x ^ 3 * x ^ 42 = x ^ 45 := by grind

-- This one is dismally slow (~0.5s, 18_000 heartbeats). However it doesn't affect `grind` directly.
set_option maxHeartbeats 20_000 in
/--
error: failed to synthesize
  NoZeroSMulDivisors ℕ K

Hint: Additional diagnostic information may be available using the `set_option diagnostics true` command.
-/

#guard_msgs in
#synth NoZeroSMulDivisors ℕ K

variable {d : Type*} in
set_option maxHeartbeats 5000 in -- uses about 2400 as of 2026-02-20,
                                 -- and then about 3200 as of 2026-03-04
                                 -- and then about 4400 as of 2026-03-10
/--
error: failed to synthesize
  Lean.Grind.OrderedAdd (Submodule ℂ (WithLp 2 (d → ℂ)))

Hint: Additional diagnostic information may be available using the `set_option diagnostics true` command.
-/

#guard_msgs in
#synth Lean.Grind.OrderedAdd (Submodule ℂ (WithLp 2 (d → ℂ)))

Messung
CHZG
909910096

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland