statement
stringlengths
1
2.2k
proof
stringlengths
0
99.7k
type
stringclasses
11 values
symbolic_name
stringlengths
1
63
library
stringclasses
9 values
filename
stringclasses
122 values
imports
listlengths
0
35
deps
listlengths
0
64
docstring
stringlengths
0
1.91k
source_url
stringclasses
1 value
commit
stringclasses
1 value
runDuperInstance5 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := FullPreprocessing) (includeExpensiveRules := false) (selFunction := some 13)
def
Duper.runDuperInstance5
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Third instance called by portfolio mode. Has the following options: - preprocessing = full - inhabitationReasoning = false - selFunction = 13 (which corresponds to E's SelectComplexG and Zipperposition's e_sel3) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance6 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := FullPreprocessing) (includeExpensiveRules := false) (selFunction := some 13)
def
Duper.runDuperInstance6
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 5 except inhabitation reasoning is enabled. Has the following options: - preprocessing = full - inhabitationReasoning = true - selFunction = 13 (which corresponds to E's SelectComplexG and Zipperposition's e_sel3) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance7 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := NoPreprocessing) (includeExpensiveRules := true) (selFunction := some 2)
def
Duper.runDuperInstance7
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Fourth instance called by portfolio mode. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = true - selFunction = 2 (NoSelection) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance8 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := NoPreprocessing) (includeExpensiveRules := true) (selFunction := some 2)
def
Duper.runDuperInstance8
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 7 except inhabitation reasoning is disabled. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = false - selFunction = 2 (NoSelection) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance9 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := NoPreprocessing) (includeExpensiveRules := false) (selFunction := some 4)
def
Duper.runDuperInstance9
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 1 except preprocessing is disabled. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = false - selFunction = 4 (which corresponds to Zipperposition's default selection function) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance10 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := NoPreprocessing) (includeExpensiveRules := false) (selFunction := some 4)
def
Duper.runDuperInstance10
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 2 except preprocessing is disabled. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = true - selFunction = 4 (which corresponds to Zipperposition's default selection function) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance11 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := NoPreprocessing) (includeExpensiveRules := true) (selFunction := some 11)
def
Duper.runDuperInstance11
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 3 except preprocessing is disabled. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = false - selFunction = 11 (which corresponds to E's SelectMaxLComplexAvoidPosPred and Zipperposition's e_sel) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance12 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := NoPreprocessing) (includeExpensiveRules := true) (selFunction := some 11)
def
Duper.runDuperInstance12
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 4 except preprocessing is disabled. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = true - selFunction = 11 (which corresponds to E's SelectMaxLComplexAvoidPosPred and Zipperposition's e_sel) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance13 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := NoPreprocessing) (includeExpensiveRules := false) (selFunction := some 13)
def
Duper.runDuperInstance13
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 5 except preprocessing is disabled. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = false - selFunction = 13 (which corresponds to E's SelectComplexG and Zipperposition's e_sel3) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance14 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := NoPreprocessing) (includeExpensiveRules := false) (selFunction := some 13)
def
Duper.runDuperInstance14
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 6 except preprocessing is disabled. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = true - selFunction = 13 (which corresponds to E's SelectComplexG and Zipperposition's e_sel3) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance15 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := FullPreprocessing) (includeExpensiveRules := true) (selFunction := some 2)
def
Duper.runDuperInstance15
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 7 except preprocessing is enabled. Has the following options: - preprocessing = full - inhabitationReasoning = true - selFunction = 2 (NoSelection) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance16 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := FullPreprocessing) (includeExpensiveRules := true) (selFunction := some 2)
def
Duper.runDuperInstance16
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 8 except preprocessing is enabled. Has the following options: - preprocessing = full - inhabitationReasoning = false - selFunction = 2 (NoSelection) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance17 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := Monomorphization) (includeExpensiveRules := false) (selFunction := some 4)
def
Duper.runDuperInstance17
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 1 except preprocessing is set to monomorphization only. Has the following options: - preprocessing = monomorphization - inhabitationReasoning = false - selFunction = 4 (which corresponds to Zipperposition's default selection function) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance18 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := Monomorphization) (includeExpensiveRules := false) (selFunction := some 4)
def
Duper.runDuperInstance18
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 2 except preprocessing is set to monomorphization only. Has the following options: - preprocessing = monomorphization - inhabitationReasoning = true - selFunction = 4 (which corresponds to Zipperposition's default selection function) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance19 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := Monomorphization) (includeExpensiveRules := true) (selFunction := some 11)
def
Duper.runDuperInstance19
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 3 except preprocessing is set to monomorphization only. Has the following options: - preprocessing = monomorphization - inhabitationReasoning = false - selFunction = 11 (which corresponds to E's SelectMaxLComplexAvoidPosPred and Zipperposition's e_sel) - includeExpensiveRules = tr...
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance20 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := Monomorphization) (includeExpensiveRules := true) (selFunction := some 11)
def
Duper.runDuperInstance20
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 4 except preprocessing is set to monomorphization only. Has the following options: - preprocessing = monomorphization - inhabitationReasoning = true - selFunction = 11 (which corresponds to E's SelectMaxLComplexAvoidPosPred and Zipperposition's e_sel) - includeExpensiveRules = tru...
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance21 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := Monomorphization) (includeExpensiveRules := false) (selFunction := some 13)
def
Duper.runDuperInstance21
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 5 except preprocessing is set to monomorphization only. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = false - selFunction = 13 (which corresponds to E's SelectComplexG and Zipperposition's e_sel3) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance22 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := Monomorphization) (includeExpensiveRules := false) (selFunction := some 13)
def
Duper.runDuperInstance22
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 6 except preprocessing is set to monomorphization only. Has the following options: - preprocessing = monomorphization - inhabitationReasoning = true - selFunction = 13 (which corresponds to E's SelectComplexG and Zipperposition's e_sel3) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance23 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := Monomorphization) (includeExpensiveRules := true) (selFunction := some 2)
def
Duper.runDuperInstance23
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 7 except preprocessing is set to monomorphization only. Has the following options: - preprocessing = monomorphization - inhabitationReasoning = true - selFunction = 2 (NoSelection) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance24 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := Monomorphization) (includeExpensiveRules := true) (selFunction := some 2)
def
Duper.runDuperInstance24
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 8 except preprocessing is set to monomorphization only. Has the following options: - preprocessing = monomorphization - inhabitationReasoning = false - selFunction = 2 (NoSelection) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance25 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := FullPreprocessing) (includeExpensiveRules := true) (selFunction := some 4)
def
Duper.runDuperInstance25
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 1 except includeExpensiveRules is set to true. Has the following options: - preprocessing = full - inhabitationReasoning = false - selFunction = 4 (which corresponds to Zipperposition's default selection function) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance26 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := FullPreprocessing) (includeExpensiveRules := true) (selFunction := some 4)
def
Duper.runDuperInstance26
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 2 except includeExpensiveRules is set to true. Has the following options: - preprocessing = full - inhabitationReasoning = true - selFunction = 4 (which corresponds to Zipperposition's default selection function) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance27 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := FullPreprocessing) (includeExpensiveRules := false) (selFunction := some 11)
def
Duper.runDuperInstance27
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 3 except includeExpensiveRules is set to false. Has the following options: - preprocessing = full - inhabitationReasoning = false - selFunction = 11 (which corresponds to E's SelectMaxLComplexAvoidPosPred and Zipperposition's e_sel) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance28 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := FullPreprocessing) (includeExpensiveRules := false) (selFunction := some 11)
def
Duper.runDuperInstance28
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 4 except includeExpensiveRules is set to false. Has the following options: - preprocessing = full - inhabitationReasoning = true - selFunction = 11 (which corresponds to E's SelectMaxLComplexAvoidPosPred and Zipperposition's e_sel) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance29 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := FullPreprocessing) (includeExpensiveRules := true) (selFunction := some 13)
def
Duper.runDuperInstance29
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 5 except includeExpensiveRules is set to true. Has the following options: - preprocessing = full - inhabitationReasoning = false - selFunction = 13 (which corresponds to E's SelectComplexG and Zipperposition's e_sel3) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance30 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := FullPreprocessing) (includeExpensiveRules := true) (selFunction := some 13)
def
Duper.runDuperInstance30
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 6 except includeExpensiveRules is set to true. Has the following options: - preprocessing = full - inhabitationReasoning = true - selFunction = 13 (which corresponds to E's SelectComplexG and Zipperposition's e_sel3) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance31 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := NoPreprocessing) (includeExpensiveRules := false) (selFunction := some 2)
def
Duper.runDuperInstance31
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 7 except includeExpensiveRules is set to false. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = true - selFunction = 2 (NoSelection) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance32 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := NoPreprocessing) (includeExpensiveRules := false) (selFunction := some 2)
def
Duper.runDuperInstance32
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 8 except includeExpensiveRules is set to false. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = false - selFunction = 2 (NoSelection) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance33 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := NoPreprocessing) (includeExpensiveRules := true) (selFunction := some 4)
def
Duper.runDuperInstance33
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 9 except includeExpensiveRules is set to true. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = false - selFunction = 4 (which corresponds to Zipperposition's default selection function) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance34 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := NoPreprocessing) (includeExpensiveRules := true) (selFunction := some 4)
def
Duper.runDuperInstance34
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 10 except includeExpensiveRules is set to true. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = true - selFunction = 4 (which corresponds to Zipperposition's default selection function) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance35 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := NoPreprocessing) (includeExpensiveRules := false) (selFunction := some 11)
def
Duper.runDuperInstance35
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 11 except includeExpensiveRules is set to false. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = false - selFunction = 11 (which corresponds to E's SelectMaxLComplexAvoidPosPred and Zipperposition's e_sel) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance36 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := NoPreprocessing) (includeExpensiveRules := false) (selFunction := some 11)
def
Duper.runDuperInstance36
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 12 except includeExpensiveRules is set to false. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = true - selFunction = 11 (which corresponds to E's SelectMaxLComplexAvoidPosPred and Zipperposition's e_sel) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance37 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := NoPreprocessing) (includeExpensiveRules := true) (selFunction := some 13)
def
Duper.runDuperInstance37
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 13 except includeExpensiveRules is set to true. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = false - selFunction = 13 (which corresponds to E's SelectComplexG and Zipperposition's e_sel3) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance38 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := NoPreprocessing) (includeExpensiveRules := true) (selFunction := some 13)
def
Duper.runDuperInstance38
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 14 except includeExpensiveRules is set to true. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = true - selFunction = 13 (which corresponds to E's SelectComplexG and Zipperposition's e_sel3) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance39 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := FullPreprocessing) (includeExpensiveRules := false) (selFunction := some 2)
def
Duper.runDuperInstance39
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 15 except includeExpensiveRules is set to false. Has the following options: - preprocessing = full - inhabitationReasoning = true - selFunction = 2 (NoSelection) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance40 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := FullPreprocessing) (includeExpensiveRules := false) (selFunction := some 2)
def
Duper.runDuperInstance40
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 16 except includeExpensiveRules is set to false. Has the following options: - preprocessing = full - inhabitationReasoning = false - selFunction = 2 (NoSelection) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance41 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := Monomorphization) (includeExpensiveRules := true) (selFunction := some 4)
def
Duper.runDuperInstance41
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 17 except includeExpensiveRules is set to true. Has the following options: - preprocessing = monomorphization - inhabitationReasoning = false - selFunction = 4 (which corresponds to Zipperposition's default selection function) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance42 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := Monomorphization) (includeExpensiveRules := true) (selFunction := some 4)
def
Duper.runDuperInstance42
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 18 except includeExpensiveRules is set to true. Has the following options: - preprocessing = monomorphization - inhabitationReasoning = true - selFunction = 4 (which corresponds to Zipperposition's default selection function) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance43 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := Monomorphization) (includeExpensiveRules := false) (selFunction := some 11)
def
Duper.runDuperInstance43
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 19 except includeExpensiveRules is set to false. Has the following options: - preprocessing = monomorphization - inhabitationReasoning = false - selFunction = 11 (which corresponds to E's SelectMaxLComplexAvoidPosPred and Zipperposition's e_sel) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance44 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := Monomorphization) (includeExpensiveRules := false) (selFunction := some 11)
def
Duper.runDuperInstance44
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 20 except includeExpensiveRules is set to false. Has the following options: - preprocessing = monomorphization - inhabitationReasoning = true - selFunction = 11 (which corresponds to E's SelectMaxLComplexAvoidPosPred and Zipperposition's e_sel) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance45 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := NoPreprocessing) (includeExpensiveRules := true) (selFunction := some 13)
def
Duper.runDuperInstance45
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 21 except includeExpensiveRules is set to true. Has the following options: - preprocessing = no_preprocessing - inhabitationReasoning = false - selFunction = 13 (which corresponds to E's SelectComplexG and Zipperposition's e_sel3) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance46 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := Monomorphization) (includeExpensiveRules := true) (selFunction := some 13)
def
Duper.runDuperInstance46
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 22 except includeExpensiveRules is set to true. Has the following options: - preprocessing = monomorphization - inhabitationReasoning = true - selFunction = 13 (which corresponds to E's SelectComplexG and Zipperposition's e_sel3) - includeExpensiveRules = true
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance47 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := true) (preprocessing := Monomorphization) (includeExpensiveRules := false) (selFunction := some 2)
def
Duper.runDuperInstance47
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 23 except includeExpensiveRules is set to false. Has the following options: - preprocessing = monomorphization - inhabitationReasoning = true - selFunction = 2 (NoSelection) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperInstance48 (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (instanceMaxHeartbeats : Nat) : MetaM Expr
mkDuperInstance formulas extraFormulas declName? instanceMaxHeartbeats (inhabitationReasoning := false) (preprocessing := Monomorphization) (includeExpensiveRules := false) (selFunction := some 2)
def
Duper.runDuperInstance48
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Same as duper instance 24 except includeExpensiveRules is set to false. Has the following options: - preprocessing = monomorphization - inhabitationReasoning = false - selFunction = 2 (NoSelection) - includeExpensiveRules = false
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
instanceHasInhabitationReasoning [Monad m] [MonadError m] (n : Nat) : m Bool
do match n with | 0 => throwError "instanceHasInhabitationReasoning should not be given instance 0. Instance 0 not meant to be used with portfolio mode" | 1 => return false | 2 => return true | 3 => return false | 4 => return true | 5 => return false | 6 => return true | 7 => return true | 8 => retu...
def
Duper.instanceHasInhabitationReasoning
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Returns true iff the given duper instance `n` has inhabitation reasoning enabled. Returns false iff the given duper instance `n` has inhabitation reasoning disabled. Throws an error if given an invalid duper instance.
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
getInstanceWithInhabitationReasoning (n : Nat) : Option (Nat × (List (Expr × Expr × Array Name × Bool × Option Term) → List (Expr × Expr × Array Name × Bool × Option Term) → Option Name → Nat → MetaM Expr))
do match n with | 1 => some (2, runDuperInstance2) | 3 => some (4, runDuperInstance4) | 5 => some (6, runDuperInstance6) | 8 => some (7, runDuperInstance7) | 9 => some (10, runDuperInstance10) | 11 => some (12, runDuperInstance12) | 13 => some (14, runDuperInstance14) | 16 => some (15, runDuperInstanc...
def
Duper.getInstanceWithInhabitationReasoning
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
If the given duper instance `n` has inhabitation reasoning disabled and there is another instance `m` that is identical except that it has inhabitation reasoning enabled, then `getInstanceWithInhabitationReasoning` returns `some m`. Otherwise, `getInstanceWithInhabitationReasoning` returns `none`.
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
getInstanceWithoutInhabitationReasoning (n : Nat) : Option (Nat × (List (Expr × Expr × Array Name × Bool × Option Term) → List (Expr × Expr × Array Name × Bool × Option Term) → Option Name → Nat → MetaM Expr))
do match n with | 2 => some (1, runDuperInstance1) | 4 => some (3, runDuperInstance3) | 6 => some (5, runDuperInstance5) | 7 => some (8, runDuperInstance8) | 10 => some (9, runDuperInstance9) | 12 => some (11, runDuperInstance11) | 14 => some (13, runDuperInstance13) | 15 => some (16, runDuperInstance...
def
Duper.getInstanceWithoutInhabitationReasoning
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
If the given duper instance `n` has inhabitation reasoning enabled and there is another instance `m` that is identical except that it has inhabitation reasoning disabled, then `getInstanceWithoutInhabitationReasoning` returns `some m`. Otherwise, `getInstanceWithoutInhabitationReasoning` returns `none`.
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
getInstanceWithExpensiveRules (n : Nat) : Option (Nat × (List (Expr × Expr × Array Name × Bool × Option Term) → List (Expr × Expr × Array Name × Bool × Option Term) → Option Name → Nat → MetaM Expr))
do match n with | 1 => some (25, runDuperInstance25) | 2 => some (26, runDuperInstance26) | 5 => some (29, runDuperInstance29) | 6 => some (30, runDuperInstance30) | 9 => some (33, runDuperInstance33) | 10 => some (34, runDuperInstance34) | 13 => some (37, runDuperInstance37) | 14 => some (38, runDupe...
def
Duper.getInstanceWithExpensiveRules
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
If the given duper instance `n` has includeExpensiveRules set to false and there is another instance `m` that is identical except that it has includeExpensiveRules set to true, then `getInstanceWithExpensiveRules` returns `some m`. Otherwise, `getInstanceWithExpensiveRules` returns `none`.
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
getInstanceWithoutExpensiveRules (n : Nat) : Option (Nat × (List (Expr × Expr × Array Name × Bool × Option Term) → List (Expr × Expr × Array Name × Bool × Option Term) → Option Name → Nat → MetaM Expr))
do match n with | 25 => some (1, runDuperInstance1) | 26 => some (2, runDuperInstance2) | 29 => some (5, runDuperInstance5) | 30 => some (6, runDuperInstance6) | 33 => some (9, runDuperInstance9) | 34 => some (10, runDuperInstance10) | 37 => some (13, runDuperInstance13) | 38 => some (14, runDuperInst...
def
Duper.getInstanceWithoutExpensiveRules
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
If the given duper instance `n` has includeExpensiveRules set to true and there is another instance `m` that is identical except that it has includeExpensiveRules set to false, then `getInstanceWithoutExpensiveRules` returns `some m`. Otherwise, `getInstanceWithoutExpensiveRules` returns `none`.
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
runDuperPortfolioMode (formulas : List (Expr × Expr × Array Name × Bool × Option Term)) (extraFormulas : List (Expr × Expr × Array Name × Bool × Option Term)) (declName? : Option Name) (configOptions : ConfigurationOptions) (duperStxInfo : Option (Syntax × Syntax × Syntax.TSepArray `term "," × Option (Syntax.TSepAr...
do let initHeartbeats ← IO.getNumHeartbeats let maxHeartbeats ← getMaxHeartbeats -- Use the preprocessing option to determine the set of portfolio instances let instances := match configOptions.preprocessing with | none => #[(1, runDuperInstance1 formulas extraFormulas declName?), (3, runD...
def
Duper.runDuperPortfolioMode
Root
Duper/Interface.lean
[ "Duper.ProofReconstruction", "Auto.Tactic" ]
[]
Implements duper calls when portfolio mode is enabled. If `duperStxInfo` is not none and `runDuperPortfolioMode` succeeds in deriving a contradiction, then `Std.Tactic.TryThis.addSuggestion` will be used to give the user a more specific invocation of duper that can reproduce the proof (without having to run dup...
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
Lean.Meta.performMatch (l : Array (Expr × Expr)) (protected_mvars : Array MVarId) : MetaM Bool
do Core.checkMaxHeartbeats "match" let state ← saveState try trace[duper.match.debug] "About to attempt to match {l}" for (match_target, e) in l do let match_target_type ← betaEtaReduceInstMVars $ ← inferType match_target let e_type ← betaEtaReduceInstMVars $ ← inferType e if not (← mat...
def
Lean.Meta.performMatch
Root
Duper/Match.lean
[ "Lean", "Duper.Util.Reduction" ]
[]
Given an array of expression pairs (match_target, e), attempts to assign mvars in e to make e equal to match_target (without making any assignments to mvars that appear in protected_mvars). Returns true and performs mvar assignments if successful, returns false and does not perform any mvar assignments otherwis...
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
MClause where (lits : Array Lit) deriving Inhabited, BEq, Hashable
structure
Duper.MClause
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
toExpr (c : MClause) : Expr
litsToExpr c.lits.toList where litsToExpr : List Lit → Expr | [] => mkConst ``False | [l] => l.toExpr | l :: ls => mkApp2 (mkConst ``Or) l.toExpr (litsToExpr ls)
def
Duper.MClause.toExpr
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
fromExpr (e : Expr) : MClause
MClause.mk (litsFromExpr e).toArray where litsFromExpr : Expr → List Lit | .app (.app (.const ``Or _) litexpr) other => Lit.fromExpr litexpr :: litsFromExpr other | .const ``False _ => [] | e@(_) => [Lit.fromExpr e]
def
Duper.MClause.fromExpr
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
appendLits (c : MClause) (lits : Array Lit) : MClause
⟨c.lits.append lits⟩
def
Duper.MClause.appendLits
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
eraseLit (c : MClause) (idx : Nat) : MClause
⟨c.lits.eraseIdxIfInBounds idx⟩
def
Duper.MClause.eraseLit
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
replaceLit? (c : MClause) (idx : Nat) (l : Lit) : Option MClause
if idx >= c.lits.size then none else some ⟨c.lits.set! idx l⟩
def
Duper.MClause.replaceLit?
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
replaceLit! (c : MClause) (idx : Nat) (l : Lit) : MClause
⟨c.lits.set! idx l⟩
def
Duper.MClause.replaceLit!
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
map (f : Expr → Expr) (c : MClause) : MClause
⟨c.lits.map (fun l => l.map f)⟩
def
Duper.MClause.map
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
mapWithPos (f : Expr → Expr × Array ExprPos) (c : MClause) : MClause × Array ClausePos
let mapres := c.lits.map (fun l => l.mapWithPos f) let c' := ⟨mapres.map (fun x => x.fst)⟩ let cps := mapres.mapIdx (fun i x => x.snd.map (fun pos => {pos with lit := i})) (c', cps.flatMap id)
def
Duper.MClause.mapWithPos
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
mapMWithPos [Monad m] [MonadLiftT MetaM m] (f : Expr → m (Expr × Array ExprPos)) (c : MClause) : m (MClause × Array ClausePos)
do let mapres ← c.lits.mapM (fun l => l.mapMWithPos f) let c' := ⟨mapres.map (fun x => x.fst)⟩ let cps := mapres.mapIdx (fun i x => x.snd.map (fun pos => {pos with lit := i})) return (c', cps.flatMap id)
def
Duper.MClause.mapMWithPos
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
mapM {m : Type → Type w} [Monad m] (f : Expr → m Expr) (c : MClause) : m MClause
do return ⟨← c.lits.mapM (fun l => l.mapM f)⟩
def
Duper.MClause.mapM
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
fold {β : Type v} (f : β → Expr → β) (init : β) (c : MClause) : β
Id.run $ do let mut acc := init for i in [:c.lits.size] do let f' := fun acc e => f acc e acc := c.lits[i]!.fold f' acc return acc
def
Duper.MClause.fold
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
foldM {β : Type v} {m : Type v → Type w} [Monad m] (f : β → Expr → ClausePos → m β) (init : β) (c : MClause) : m β
do let mut acc := init for i in [:c.lits.size] do let f' := fun acc e pos => f acc e {pos with lit := i} acc ← c.lits[i]!.foldM f' acc return acc
def
Duper.MClause.foldM
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
foldGreenM {β : Type} [Monad m] [MonadLiftT MetaM m] (f : β → Expr → ClausePos → m β) (init : β) (c : MClause) : m β
do let mut acc := init for i in [:c.lits.size] do let f' := fun acc e pos => f acc e {pos with lit := i} acc ← c.lits[i]!.foldGreenM f' acc return acc
def
Duper.MClause.foldGreenM
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
getAtPos! [Monad m] [MonadLiftT MetaM m] (c : MClause) (pos : ClausePos) : m Expr
c.lits[pos.lit]!.getAtPos! ⟨pos.side, pos.pos⟩
def
Duper.MClause.getAtPos!
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
replaceAtPos? [Monad m] [MonadLiftT MetaM m] (c : MClause) (pos : ClausePos) (replacement : Expr) : m (Option MClause)
do if (pos.lit ≥ c.lits.size) then return none else let litPos : LitPos := {side := pos.side, pos := pos.pos} match ← c.lits[pos.lit]!.replaceAtPos? litPos replacement with | some newLit => return some {lits := Array.set! c.lits pos.lit newLit} | none => return none
def
Duper.MClause.replaceAtPos?
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
replaceAtPos! [Monad m] [MonadLiftT MetaM m] [MonadError m] (c : MClause) (pos : ClausePos) (replacement : Expr) : m MClause
do let litPos : LitPos := {side := pos.side, pos := pos.pos} let replacedLit ← c.lits[pos.lit]!.replaceAtPos! litPos replacement return {lits := Array.set! c.lits pos.lit $ replacedLit}
def
Duper.MClause.replaceAtPos!
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
replaceAtPosUpdateType? (c : MClause) (pos : ClausePos) (replacement : Expr) : MetaM (Option MClause)
do let litPos : LitPos := {side := pos.side, pos := pos.pos} if let some replacedLit ← c.lits[pos.lit]!.replaceAtPosUpdateType? litPos replacement then return some {lits := Array.set! c.lits pos.lit $ replacedLit} else return none
def
Duper.MClause.replaceAtPosUpdateType?
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
abstractAtPos! (c : MClause) (pos : ClausePos) : MetaM MClause
do let litPos : LitPos := {side := pos.side, pos := pos.pos} return {lits := Array.set! c.lits pos.lit $ ← c.lits[pos.lit]!.abstractAtPos! litPos}
def
Duper.MClause.abstractAtPos!
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
This function acts as Meta.kabstract except that it takes a ClausePos rather than Occurrences and expects the given expression to consist only of applications up to the given ExprPos. Additionally, since the exact position is given, we don't need to pass in Meta.kabstract's second argument p
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
append (c : MClause) (d : MClause) : MClause
⟨c.lits.append d.lits⟩
def
Duper.MClause.append
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
eraseIdx (i : Nat) (c : MClause) : MClause
⟨c.lits.eraseIdxIfInBounds i⟩
def
Duper.MClause.eraseIdx
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
isTrivial (c : MClause) : Bool
Id.run do -- TODO: Also check if it contains the same literal positively and negatively? for lit in c.lits do if lit.sign ∧ lit.lhs == lit.rhs then return true return false
def
Duper.MClause.isTrivial
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
getMinimalLits (ord : Expr → Expr → Bool → MetaM Comparison) (alreadyReduced : Bool) (c : MClause) (filter_fn : Lit → Bool) : MetaM (Array Nat)
do let c ← if alreadyReduced then pure c else c.mapM (fun e => betaEtaReduceInstMVars e) let mut minLits : Array Nat := #[] for i in [:c.lits.size] do let curLit := c.lits[i]! if !filter_fn curLit then continue -- Only consider literals that satisfy filter_fn if minLits.isEmpty then minLits :=...
def
Duper.MClause.getMinimalLits
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
Returns the list of minimal literal indices that satisfy the provided filter_fn
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
getMaximalLits (ord : Expr → Expr → Bool → MetaM Comparison) (alreadyReduced : Bool) (c : MClause) (filter_fn : Lit → Bool) : MetaM (Array Nat)
do let c ← if alreadyReduced then pure c else c.mapM (fun e => betaEtaReduceInstMVars e) let mut maxLits : Array Nat := #[] for i in [:c.lits.size] do let curLit := c.lits[i]! if !filter_fn curLit then continue -- Only consider literals that satisfy filter_fn if maxLits.isEmpty then maxLits :=...
def
Duper.MClause.getMaximalLits
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
Returns the list of maximal literal indices that satisfy the provided filter_fn
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
getMaxDiffLits (getNetWeight : Expr → Expr → Bool → MetaM Order.Weight) (alreadyReduced : Bool) (c : MClause) (filter_fn : Lit → Nat → Bool) : MetaM (Array Nat)
do let c ← if alreadyReduced then pure c else c.mapM (fun e => betaEtaReduceInstMVars e) let mut maxDiffLits : Array Nat := #[] let mut maxDiff : Order.Weight := 0 for i in [:c.lits.size] do let curLit := c.lits[i]! if !filter_fn curLit i then continue -- Only consider literals that satisfy filt...
def
Duper.MClause.getMaxDiffLits
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
Returns the list of literals (that satisfy the provided filter_fn) for which the size difference between the lhs and rhs is maximal. Note: For getMaxDiffLits, the filter_fn takes in both the lit and its index because filtering by index is more convenient for some selection functions.
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
isMaximalLit (ord : Expr → Expr → Bool → MetaM Comparison) (alreadyReduced : Bool) (c : MClause) (idx : Nat) (strict := false) : MetaM Bool
do let c ← if alreadyReduced then pure c else c.mapM (fun e => betaEtaReduceInstMVars e) for j in [:c.lits.size] do if j == idx then continue let cmp ← Lit.compare ord true c.lits[idx]! c.lits[j]! if cmp == GreaterThan || (not strict && cmp == Equal) || cmp == Incomparable then continue ...
def
Duper.MClause.isMaximalLit
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
Determines whether c.lits[idx]! is maximal in c. If strict is set to true, then there can be no idx' such that c.lits[idx]! and c.lits[idx']! are evaluated as equal by the comparison function
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
canNeverBeMaximal (ord : Expr → Expr → Bool → MetaM Comparison) (alreadyReduced : Bool) (c : MClause) (idx : Nat) : MetaM Bool
do let c ← if alreadyReduced then pure c else c.mapM (fun e => betaEtaReduceInstMVars e) for j in [:c.lits.size] do if j != idx && (← Lit.compare ord true c.lits[idx]! c.lits[j]!) == LessThan then return true else continue return false
def
Duper.MClause.canNeverBeMaximal
Root
Duper/MClause.lean
[ "Duper.Clause" ]
[]
Returns true if there may be some assignment in which the given idx is maximal, and false if there is some idx' that is strictly greater than idx (in this case, since idx < idx', for any subsitution σ, idx σ < idx' σ so idx can never be maximal) Note that for this function, strictness does not actually matter,...
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
Comparison | GreaterThan | LessThan | Equal | Incomparable deriving BEq, Inhabited
inductive
Duper.Comparison
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
Symbol | FVarId : FVarId → Symbol | Const : Name → Symbol deriving BEq, Inhabited, Hashable
inductive
Duper.Symbol
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
Symbol.format : Symbol → MessageData
| FVarId fVarId => m!"FVarId {fVarId.name}" | Const name => m!"Const {name}"
def
Duper.Symbol.format
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
Symbol.toString : Symbol → String
| FVarId fVarId => s!"FVarId {fVarId.name}" | Const name => s!"Const {name}"
def
Duper.Symbol.toString
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
SymbolPrecMap
Std.HashMap Symbol Nat
abbrev
Duper.SymbolPrecMap
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
flip : Comparison → Comparison
| GreaterThan => LessThan | LessThan => GreaterThan | Incomparable => Incomparable | Equal => Equal
def
Duper.Comparison.flip
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
Weight
Int × Int deriving Inhabited, DecidableEq
def
Duper.Order.Weight
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
absWeight (w : Weight) : Weight
(Int.natAbs w.1, Int.natAbs w.2)
def
Duper.Order.absWeight
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
VarBalance
Std.HashMap (Expr × Bool) Weight
def
Duper.Order.VarBalance
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
VarBalance.addPosVar (vb : VarBalance) (t : Expr × Bool) : VarBalance
vb.insert t $ vb.getD t 0 + 1
def
Duper.Order.VarBalance.addPosVar
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
VarBalance.addNegVar (vb : VarBalance) (t : Expr × Bool) : VarBalance
vb.insert t $ vb.getD t 0 - 1
def
Duper.Order.VarBalance.addNegVar
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
LAM : Prop
opaque
Duper.Order.LAM
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
FORALL : Prop
opaque
Duper.Order.FORALL
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
EXISTS : Prop
opaque
Duper.Order.EXISTS
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
getHead (t : Expr)
match t with | Expr.lam .. => mkConst ``LAM | Expr.forallE .. => mkConst ``FORALL | Expr.app (Expr.app (Expr.const ``Exists _) _) _ => mkConst ``EXISTS | Expr.mdata _ t => getHead t | _ => t.getAppFn'
def
Duper.Order.getHead
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
getArgs (t : Expr)
match t with | Expr.lam _ ty b _ => [ty, b] | Expr.forallE _ ty b _ => [ty, b] | Expr.app (Expr.app (Expr.const ``Exists _) ty) b => match b with | .lam _ _ b _ => [ty, b] | _ => [ty, .app (b.liftLooseBVars 0 1) (.bvar 0)] | Expr.mdata _ t => getArgs t | _ => t.getAppArgs.toList
def
Duper.Order.getArgs
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
headWeight (f : Expr) (symbolPrecMap : SymbolPrecMap) (highesetPrecSymbolHasArityZero : Bool) (belowLam : Bool) : Weight
match f with | Expr.const name _ => if name == ``FORALL || name == ``EXISTS then if belowLam then 1 else ω else let fSymbol := Symbol.Const name match symbolPrecMap.get? fSymbol with | some 0 => -- The symbol with the highest precedence in symbolPrecMap is mapped to 0 (unless it has ar...
def
Duper.Order.headWeight
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
Computes headWeight according to firstmaximal0 weight generation scheme. The head is given weight 1 unless if the head is the unique symbol with the highest precedence in symbolPrecMap, in which case, it is given weight 0. Note: In order to make the firstmaximal0 weight generation scheme compliant with KBO...
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
weightVarHeaded : Weight
1
def
Duper.Order.weightVarHeaded
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
VarBalance.noNegatives (vb : VarBalance) : Bool
Id.run do for (_, b) in vb.toArray do if b < 0 then return False return True
def
Duper.Order.VarBalance.noNegatives
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
VarBalance.noPositives (vb : VarBalance) : Bool
Id.run do for (_, b) in vb.toArray do if b > 0 then return False return True
def
Duper.Order.VarBalance.noPositives
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
nameCompare (n1 : Name) (n2 : Name) : Comparison
match n1, n2 with | Name.anonymous, Name.anonymous => Equal | Name.num pre1 n1, Name.num pre2 n2 => if n1 < n2 then LessThan else if n1 > n2 then GreaterThan else nameCompare pre1 pre2 | Name.str pre1 s1, Name.str pre2 s2 => if s1 < s2 then LessThan else if s1 > s2 then GreaterThan else na...
def
Duper.Order.nameCompare
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[]
A last resort comparison function to use if symbolPrecCompare needs to compare two symbols, neither of which appeared in symbolPrecMap. We use the convention: Anonymous < Num < Str
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3
symbolPrecCompare (e1 : Expr) (e2 : Expr) (s1 : Symbol) (s2 : Symbol) (symbolPrecMap : SymbolPrecMap) : MetaM Comparison
/- Note: We don't need hardcode checks to see if e1 or e2 is True/False because precCompare already checks for that However, we do need to hardcode that the highest precedence symbol in symbolPrecMap has the highest precedence symbol overall so that the firstmaximal0 weight generation scheme can determine ...
def
Duper.Order.symbolPrecCompare
Root
Duper/Order.lean
[ "Lean", "Duper.Util.Misc", "Duper.Util.Reduction", "Duper.Expr" ]
[ "getArity" ]
A comparison function for comparing fvars and consts based on precomputed precedences. Note that lower numbers in symbolPrecMap correspond to higher precedences. e1 is the expression that produces symbol s1 and e2 is the expression that produces symbol s2 (e1 and e2 need to be included in addition to s1 and s2 ...
https://github.com/leanprover-community/duper
3e56459ec9cc7a1b2f6465f5a4208564f9d9d9c3