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

Quelle  MessageDataForExprs.lean   Sprache: Lean

 

module

public meta import Mathlib.Lean.MessageData.ForExprs
public import Qq

open Qq

/--
info: ["quo" ++ "ted", 37, ¬True]
---
info: some (37)
-/

#guard_msgs in
run_meta do
  let msg ← Lean.addMessageContext
    m!"Hello {q("quo" ++ "ted")} world {q(37)} {.lazy fun _ => return m!"{q(¬True)}"}"
  Lean.logInfo m!"{← msg.getExprs}"
  let s : Option Q(Nat) ← msg.firstExpr? fun e => do
    let ⟨1, ~q(Nat), e⟩ ← inferTypeQ e | return none
    return some e
  Lean.logInfo m!"{s}"

Messung
CHZG
100100100100

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

*© Formatika GbR, Deutschland