AFTD Auto-Formalizing Theoretical Domains

Cslib.Logic.InferenceSystem.DerivableIn.toDerivation

defimported Lean

Extracts (noncomputably) a derivation from the fact that a conclusion is derivable.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
noncomputable def Cslib.Logic.InferenceSystem.DerivableIn.toDerivation [InferenceSystem S α] {a : α} (d : DerivableIn S a) :
    S⇓a
Defined in
CSLib, `Cslib.Logic.InferenceSystem.DerivableIn.toDerivation`
Lean proof
By Fabrizio Montesi, from github.com/leanprover/cslib at 3951377e5a3f (Copyright (c) 2026 Fabrizio Montesi. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.33.0.
Verified
08 Oct 2026
Axioms
none listed
Built on 3
Used by 1

Lean source view module on GitHub

set_option quotPrecheck false
open Cslib Cslib.Logic Cslib.Logic.InferenceSystem
@[inherit_doc] local notation S:90 "⇓" a:90 => InferenceSystem.derivation S a

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
/-- Extracts (noncomputably) a derivation from the fact that a conclusion is derivable. -/
noncomputable def Cslib.Logic.InferenceSystem.DerivableIn.toDerivation [InferenceSystem S α] {a : α} (d : DerivableIn S a) :
    S⇓a :=
  Classical.choice d
See it in the graphDiscuss this resultChallenge it