Eine aufbereitete Darstellung der Quelle

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


Quelle  Instances.lean   Sprache: Lean

 

module

public import Mathlib.RingTheory.UniqueFactorizationDomain.Nat
public import Mathlib.Tactic.Convert

private axiom test_sorry : ∀ {α}, α

/-! `convert` should not pop up goals about instances. -/
example {a b c : ℕ} (hab : instLTNat.lt a b) : Nat.instLinearOrder.toLT.lt a c := by
  convert (preTransparency := .reducible) hab
  · guard_target =ₛ Nat.instLinearOrder.toLT = instLTNat
    exact test_sorry
  · guard_target =ₛ c = b
    exact test_sorry

example {a b c : ℕ} (hab : instLTNat.lt a b) : Nat.instLinearOrder.toLT.lt a c := by
  convert (preTransparency := .instances) hab
  guard_target =ₛ c = b
  exact test_sorry

example (q z : Nat) : semigroupDvd.dvd q z := by
  convert_to (preTransparency := .reducible) q ^ 1 ∣ z
  · guard_target =ₛ semigroupDvd = Nat.instDvd
    exact test_sorry
  · guard_target =ₛ q = q ^ 1
    exact test_sorry
  · guard_target =ₛ q ^ 1 ∣ z
    exact test_sorry

example (q z : Nat) : semigroupDvd.dvd q z := by
  convert_to (preTransparency := .instances) q ^ 1 ∣ z
  · guard_target =ₛ q = q ^ 1
    exact test_sorry
  · guard_target =ₛ q ^ 1 ∣ z
    exact test_sorry

Messung
CHZG
9310010097

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,088
#Domains=862,458