chore: pp.proofs defaults to false
This commit is contained in:
parent
00a33e2662
commit
48d5c0d2a6
2 changed files with 3 additions and 1 deletions
|
|
@ -190,7 +190,7 @@ def getPPFullNames (o : Options) : Bool := o.get pp.fullNames.name (getPPAll o)
|
|||
def getPPPrivateNames (o : Options) : Bool := o.get pp.privateNames.name (getPPAll o)
|
||||
def getPPInstantiateMVars (o : Options) : Bool := o.get pp.instantiateMVars.name pp.instantiateMVars.defValue
|
||||
def getPPSafeShadowing (o : Options) : Bool := o.get pp.safeShadowing.name pp.safeShadowing.defValue
|
||||
def getPPProofs (o : Options) : Bool := o.get pp.proofs.name (getPPAll o || getPPAnalyze o)
|
||||
def getPPProofs (o : Options) : Bool := o.get pp.proofs.name (getPPAll o)
|
||||
def getPPProofsWithType (o : Options) : Bool := o.get pp.proofs.withType.name pp.proofs.withType.defValue
|
||||
def getPPMotivesPi (o : Options) : Bool := o.get pp.motives.pi.name pp.motives.pi.defValue
|
||||
def getPPMotivesNonConst (o : Options) : Bool := o.get pp.motives.nonConst.name pp.motives.nonConst.defValue
|
||||
|
|
@ -349,6 +349,7 @@ partial def delab : Delab := do
|
|||
try
|
||||
let ty ← Meta.inferType (← getExpr)
|
||||
if ← Meta.isProp ty then
|
||||
-- TODO: make sure the type is analyzed before this delab
|
||||
let stx ← withType delab
|
||||
if ← getPPOption getPPProofsWithType then
|
||||
return ← ``((_ : $stx))
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ universe u v
|
|||
|
||||
set_option pp.analyze true
|
||||
set_option pp.analyze.checkInstances true
|
||||
set_option pp.proofs true
|
||||
|
||||
#testDelab @Nat.brecOn (fun x => Nat) 0 (fun x ih => x)
|
||||
expecting Nat.brecOn (motive := fun x => Nat) 0 fun x ih => x
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue