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

Quelle  NonemptyIntervalLex.lean   Sprache: Lean

 

module

public meta import Mathlib.Order.Interval.Lex

-- Sanity check on the lexicographic ordering of `NonemptyInterval`.
/-- info: [(3, 3), (2, 2), (2, 3), (1, 1), (1, 2), (1, 3)] -/
#guard_msgs in
#eval [
  NonemptyInterval.mk (1, 1) (by grind),
  NonemptyInterval.mk (1, 2) (by grind),
  NonemptyInterval.mk (1, 3) (by grind),
  NonemptyInterval.mk (2, 2) (by grind),
  NonemptyInterval.mk (2, 3) (by grind),
  NonemptyInterval.mk (3, 3) (by grind)].map toLex |>.mergeSort.map (·.toProd)

Messung
CHZG
869810094

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

*© Formatika GbR, Deutschland