Documentation

Init.WF

inductive Acc {α : Sort u} (r : ααProp) :
αProp
  • intro: ∀ {α : Sort u} {r : ααProp} (x : α), (∀ (y : α), r y xAcc r y) → Acc r x
@[inline]
abbrev Acc.ndrec {α : Sort u2} {r : ααProp} {C : αSort u1} (m : (x : α) → (∀ (y : α), r y xAcc r y) → ((y : α) → r y xC y) → C x) {a : α} (n : Acc r a) :
C a
Equations
@[inline]
abbrev Acc.ndrecOn {α : Sort u2} {r : ααProp} {C : αSort u1} {a : α} (n : Acc r a) (m : (x : α) → (∀ (y : α), r y xAcc r y) → ((y : α) → r y xC y) → C x) :
C a
Equations
noncomputable def Acc.inv {α : Sort u} {r : ααProp} {x : α} {y : α} (h₁ : Acc r x) (h₂ : r y x) :
Acc r y
Equations
inductive WellFounded {α : Sort u} (r : ααProp) :
Prop
  • intro: ∀ {α : Sort u} {r : ααProp}, (∀ (a : α), Acc r a) → WellFounded r
class WellFoundedRelation (α : Sort u) :
Sort (max 1 u)
Instances
noncomputable def WellFounded.apply {α : Sort u} {r : ααProp} (wf : WellFounded r) (a : α) :
Acc r a
Equations
theorem WellFounded.recursion {α : Sort u} {r : ααProp} (hwf : WellFounded r) {C : αSort v} (a : α) (h : (x : α) → ((y : α) → r y xC y) → C x) :
C a
theorem WellFounded.induction {α : Sort u} {r : ααProp} (hwf : WellFounded r) {C : αProp} (a : α) (h : (x : α) → ((y : α) → r y xC y) → C x) :
C a
noncomputable def WellFounded.fixF {α : Sort u} {r : ααProp} {C : αSort v} (F : (x : α) → ((y : α) → r y xC y) → C x) (x : α) (a : Acc r x) :
C x
Equations
noncomputable def WellFounded.fixFEq {α : Sort u} {r : ααProp} {C : αSort v} (F : (x : α) → ((y : α) → r y xC y) → C x) (x : α) (acx : Acc r x) :
WellFounded.fixF F x acx = F x fun y p => WellFounded.fixF F y (_ : Acc (fun y x => r y x) y)
Equations
noncomputable def WellFounded.fix {α : Sort u} {C : αSort v} {r : ααProp} (hwf : WellFounded r) (F : (x : α) → ((y : α) → r y xC y) → C x) (x : α) :
C x
Equations
theorem WellFounded.fix_eq {α : Sort u} {C : αSort v} {r : ααProp} (hwf : WellFounded r) (F : (x : α) → ((y : α) → r y xC y) → C x) (x : α) :
WellFounded.fix hwf F x = F x fun y h => WellFounded.fix hwf F y
noncomputable def emptyWf {α : Sort u} :
Equations
  • emptyWf = { rel := emptyRelation, wf := (_ : WellFounded emptyRelation) }
noncomputable def Subrelation.accessible {α : Sort u} {r : ααProp} {q : ααProp} {a : α} (h₁ : Subrelation q r) (ac : Acc r a) :
Acc q a
Equations
noncomputable def Subrelation.wf {α : Sort u} {r : ααProp} {q : ααProp} (h₁ : Subrelation q r) (h₂ : WellFounded r) :
Equations
noncomputable def InvImage.accessible {α : Sort u} {β : Sort v} {r : ββProp} {a : α} (f : αβ) (ac : Acc r (f a)) :
Acc (InvImage r f) a
Equations
noncomputable def InvImage.wf {α : Sort u} {β : Sort v} {r : ββProp} (f : αβ) (h : WellFounded r) :
Equations
noncomputable def invImage {α : Sort u_1} {β : Sort u_2} (f : αβ) (h : WellFoundedRelation β) :
Equations
noncomputable def TC.accessible {α : Sort u} {r : ααProp} {z : α} (ac : Acc r z) :
Acc (TC r) z
Equations
noncomputable def TC.wf {α : Sort u} {r : ααProp} (h : WellFounded r) :
Equations
noncomputable def Nat.lt_wfRel :
Equations
noncomputable def Measure {α : Sort u} :
(αNat) → ααProp
Equations
@[inline]
abbrev measure {α : Sort u} (f : αNat) :
Equations
noncomputable def SizeOfRef (α : Sort u) [inst : SizeOf α] :
ααProp
Equations
@[inline]
abbrev sizeOfWFRel {α : Sort u} [inst : SizeOf α] :
Equations
noncomputable instance instWellFoundedRelation {α : Sort u_1} [inst : SizeOf α] :
Equations
  • instWellFoundedRelation = sizeOfWFRel
inductive Prod.Lex {α : Type u} {β : Type v} (ra : ααProp) (rb : ββProp) :
α × βα × βProp
  • left: ∀ {α : Type u} {β : Type v} {ra : ααProp} {rb : ββProp} {a₁ : α} (b₁ : β) {a₂ : α} (b₂ : β), ra a₁ a₂Prod.Lex ra rb (a₁, b₁) (a₂, b₂)
  • right: ∀ {α : Type u} {β : Type v} {ra : ααProp} {rb : ββProp} (a : α) {b₁ b₂ : β}, rb b₁ b₂Prod.Lex ra rb (a, b₁) (a, b₂)
inductive Prod.RProd {α : Type u} {β : Type v} (ra : ααProp) (rb : ββProp) :
α × βα × βProp
  • intro: ∀ {α : Type u} {β : Type v} {ra : ααProp} {rb : ββProp} {a₁ : α} {b₁ : β} {a₂ : α} {b₂ : β}, ra a₁ a₂rb b₁ b₂Prod.RProd ra rb (a₁, b₁) (a₂, b₂)
noncomputable def Prod.lexAccessible {α : Type u} {β : Type v} {ra : ααProp} {rb : ββProp} (aca : ∀ (a : α), Acc ra a) (acb : ∀ (b : β), Acc rb b) (a : α) (b : β) :
Acc (Prod.Lex ra rb) (a, b)
Equations
noncomputable def Prod.lex {α : Type u} {β : Type v} (ha : WellFoundedRelation α) (hb : WellFoundedRelation β) :
Equations
noncomputable instance Prod.instWellFoundedRelationProd {α : Type u} {β : Type v} [ha : WellFoundedRelation α] [hb : WellFoundedRelation β] :
Equations
  • Prod.instWellFoundedRelationProd = Prod.lex ha hb
noncomputable def Prod.RProdSubLex {α : Type u} {β : Type v} {ra : ααProp} {rb : ββProp} (a : α × β) (b : α × β) (h : Prod.RProd ra rb a b) :
Prod.Lex ra rb a b
Equations
noncomputable def Prod.rprod {α : Type u} {β : Type v} (ha : WellFoundedRelation α) (hb : WellFoundedRelation β) :
Equations
inductive PSigma.Lex {α : Sort u} {β : αSort v} (r : ααProp) (s : (a : α) → β aβ aProp) :
PSigma βPSigma βProp
  • left: ∀ {α : Sort u} {β : αSort v} {r : ααProp} {s : (a : α) → β aβ aProp} {a₁ : α} (b₁ : β a₁) {a₂ : α} (b₂ : β a₂), r a₁ a₂PSigma.Lex r s { fst := a₁, snd := b₁ } { fst := a₂, snd := b₂ }
  • right: ∀ {α : Sort u} {β : αSort v} {r : ααProp} {s : (a : α) → β aβ aProp} (a : α) {b₁ b₂ : β a}, s a b₁ b₂PSigma.Lex r s { fst := a, snd := b₁ } { fst := a, snd := b₂ }
noncomputable def PSigma.lexAccessible {α : Sort u} {β : αSort v} {r : ααProp} {s : (a : α) → β aβ aProp} {a : α} (aca : Acc r a) (acb : ∀ (a : α), WellFounded (s a)) (b : β a) :
Acc (PSigma.Lex r s) { fst := a, snd := b }
Equations
noncomputable def PSigma.lex {α : Sort u} {β : αSort v} (ha : WellFoundedRelation α) (hb : (a : α) → WellFoundedRelation (β a)) :
Equations
noncomputable instance PSigma.instWellFoundedRelationPSigma {α : Sort u} {β : αSort v} [ha : WellFoundedRelation α] [hb : (a : α) → WellFoundedRelation (β a)] :
Equations
  • PSigma.instWellFoundedRelationPSigma = PSigma.lex ha hb
noncomputable def PSigma.lexNdep {α : Sort u} {β : Sort v} (r : ααProp) (s : ββProp) :
(_ : α) ×' β(_ : α) ×' βProp
Equations
noncomputable def PSigma.lexNdepWf {α : Sort u} {β : Sort v} {r : ααProp} {s : ββProp} (ha : WellFounded r) (hb : WellFounded s) :
Equations
inductive PSigma.RevLex {α : Sort u} {β : Sort v} (r : ααProp) (s : ββProp) :
(_ : α) ×' β(_ : α) ×' βProp
  • left: ∀ {α : Sort u} {β : Sort v} {r : ααProp} {s : ββProp} {a₁ a₂ : α} (b : β), r a₁ a₂PSigma.RevLex r s { fst := a₁, snd := b } { fst := a₂, snd := b }
  • right: ∀ {α : Sort u} {β : Sort v} {r : ααProp} {s : ββProp} (a₁ : α) {b₁ : β} (a₂ : α) {b₂ : β}, s b₁ b₂PSigma.RevLex r s { fst := a₁, snd := b₁ } { fst := a₂, snd := b₂ }
noncomputable def PSigma.revLexAccessible {α : Sort u} {β : Sort v} {r : ααProp} {s : ββProp} {b : β} (acb : Acc s b) (aca : ∀ (a : α), Acc r a) (a : α) :
Acc (PSigma.RevLex r s) { fst := a, snd := b }
Equations
noncomputable def PSigma.revLex {α : Sort u} {β : Sort v} {r : ααProp} {s : ββProp} (ha : WellFounded r) (hb : WellFounded s) :
Equations
noncomputable def PSigma.SkipLeft (α : Type u) {β : Type v} (s : ββProp) :
(_ : α) ×' β(_ : α) ×' βProp
Equations
noncomputable def PSigma.skipLeft (α : Type u) {β : Type v} (hb : WellFoundedRelation β) :
WellFoundedRelation ((_ : α) ×' β)
Equations
noncomputable def PSigma.mkSkipLeft {α : Type u} {β : Type v} {b₁ : β} {b₂ : β} {s : ββProp} (a₁ : α) (a₂ : α) (h : s b₁ b₂) :
PSigma.SkipLeft α s { fst := a₁, snd := b₁ } { fst := a₂, snd := b₂ }
Equations