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

SSL UnsetOption.lean   Interaktion und
PortierbarkeitLean

 

module

public import Mathlib.Tactic.UnsetOption

set_option linter.style.setOption false
set_option linter.unusedTactic false
set_option pp.all true

example : True := by
  run_tac
    let t : Option Bool := (← Lean.MonadOptions.getOptions).get? `pp.all
    -- should be true as set
    guard (t == true)
  trivial

section

unset_option pp.all

example : True := by
  run_tac
    let t : Option Bool := (← Lean.MonadOptions.getOptions).get? `pp.all
    -- should be none as unset
    guard (t == Option.none)
  trivial

end

example : True := by
  run_tac
    let t : Option Bool := (← Lean.MonadOptions.getOptions).get? `pp.all
    -- should be true as only unset within section
    guard (t == true)
  trivial

Messung
CHZG
8710010095

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.0Angebot  (Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-11-24) ¤

*Eine klare Vorstellung vom Zielzustand