Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  star.lean   Sprache: Lean

 

module
import Mathlib

/-!
Test that `exact?` now also tries all un-indexable lemmas in a second pass.
-/


/-- error: `exact?` could not close the goal. -/
#guard_msgs in
example {α : Sort u} (h : Prop) [Decidable h] {x y : α} {p : α → Prop} (hx : h → p x) (hy : ¬h → p y) :
    p (if h then x else y) := by
  exact? -star

/--
info: Try this:
  [apply] exact iteInduction hx hy
-/

#guard_msgs in
example {α : Sort u} (h : Prop) [Decidable h] {x y : α} {p : α → Prop} (hx : h → p x) (hy : ¬h → p y) :
    p (if h then x else y) := by
  exact?

/-- error: `exact?` could not close the goal. -/
#guard_msgs in
example [Subsingleton α] (x y : α) : x = y := by
  exact? -star

/--
info: Try this:
  [apply] exact of_decide_eq_true rfl
-/

#guard_msgs in
example [Subsingleton α] (x y : α) : x = y := by
  exact?

Messung
CHZG
9410010097

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,077
#Domains=862,103