Documentation

Projects.Esolangs.AxOrThm.Depth

@[irreducible]
noncomputable def Esolangs.AxOrThm.Expr.sdepth (e : Expr) :
Equations
Instances For
    @[simp]
    theorem Esolangs.AxOrThm.Expr.sdepth_arg {d i : ℕ} :
    { depth := d, expr := Expr'.arg i }.sdepth = 0
    @[simp]
    theorem Esolangs.AxOrThm.Expr.sdepth_call {d : ℕ} {name : String} {es : List Expr} :
    { depth := d, expr := Expr'.call name es }.sdepth = (List.map sdepth es).max! + 1
    @[simp]
    theorem Esolangs.AxOrThm.Stat.sdepth_eq {d : ℕ} {a b : Expr} :
    { depth := d, stat := Stat'.eq a b }.sdepth = 0
    @[simp]
    theorem Esolangs.AxOrThm.Stat.sdepth_rel {d : ℕ} {name : String} {args : List Expr} :
    { depth := d, stat := Stat'.rel name args }.sdepth = 0
    @[simp]
    theorem Esolangs.AxOrThm.Stat.sdepth_not {d : ℕ} {p : Stat} :
    { depth := d, stat := Stat'.not p }.sdepth = p.sdepth + 1
    @[simp]
    theorem Esolangs.AxOrThm.Stat.sdepth_imp {d : ℕ} {p q : Stat} :
    { depth := d, stat := Stat'.imp p q }.sdepth = max p.sdepth q.sdepth + 1
    @[simp]
    theorem Esolangs.AxOrThm.Stat.sdepth_all {d : ℕ} {p : Stat} :
    { depth := d, stat := Stat'.all p }.sdepth = p.sdepth + 1
    theorem Esolangs.AxOrThm.Expr.sizeOf_lt_call {e e₁ : Expr} {name : String} {args : List Expr} (h : e.expr = Expr'.call name args) (h₁ : e₁ ∈ args) :
    sizeOf e₁ < sizeOf e
    theorem Esolangs.AxOrThm.Expr.sdepth_lt_call {e e₁ : Expr} {name : String} {args : List Expr} (h : e.expr = Expr'.call name args) (h₁ : e₁ ∈ args) :
    e₁.sdepth < e.sdepth