Lean으로 배우는 증명가능한 프로그래밍

C.2 정리 참조표🔗

1~9장 본문에서 theorem으로 선언하고 증명을 완성한 정리 133개를 장별로 모았다. 이름은 본문에 적힌 그대로이며, 각 항목의 소절 번호를 선택하면 해당 증명을 찾을 수 있다.

1장

정리 이름

증명이 나오는 소절

orFalse

1.1.2

4장

정리 이름

증명이 나오는 소절

hP

4.5.3

keepProof

4.5.3

checkSum

4.5.3

proofIdentity

4.5.4

applyProof

4.5.4

sumIsFive

4.5.5

anotherProof

4.5.5

truth1

4.5.5

truth2

4.5.5

positiveValueProof

4.5.5

evenFour

4.6.3

evenProperty

4.6.3

5장

정리 이름

증명이 나오는 소절

fiveSelf

5.1.4

addSwapRight

5.5.4

addSwapMiddle

5.5.4

myAddZero

5.6.3

myAddSucc

5.6.3

myZeroAdd

5.6.3

myAddAssoc

5.6.4

mySuccAdd

5.6.5

myAddComm

5.6.5

myAppendNil

5.6.6

addTwoEq

5.7.3

6장

정리 이름

증명이 나오는 소절

sumEq

6.1.1

impTrans

6.2.4

andOrDistribForward

6.3.4

andOrDistrib

6.3.4

contraposition

6.4.4

addZeroA

6.5.4

addZeroB

6.5.4

forallAnd

6.5.4

evenAdd

6.6.3

existsOr

6.6.4

zeroOrNonzero

6.7.2

doubleNegIntro

6.7.3

doubleNegElim

6.7.3

contrapositiveIff

6.7.4

classicalExists

6.7.4

decideCorrect

6.8.3

isInRangeCorrect

6.8.4

7장

정리 이름

증명이 나오는 소절

zeroAdd

7.2.1

addAssoc

7.2.3

succAdd

7.2.3

addComm

7.2.3

doubleRecEq

7.3.1

factorialPos

7.3.2

triangularFormula

7.3.3

triangularStep

7.3.4

triangularFormula'

7.3.4

appendNil

7.4.2

appendLength

7.4.2

reverseLength

7.4.2

mirrorMirror

7.4.3

mirrorNodeCount

7.4.3

renameVarsSize

7.4.4

sumAccGeneral

7.5.3

sumAccEq

7.5.3

revAccGeneral

7.5.4

revAccEq

7.5.4

strongInduction

7.6.2

fibUpperBound

7.6.3

fibUpperBoundFun

7.7.2

8장

정리 이름

증명이 나오는 소절

maxOfTwo_correct

8.1.2

maxOfTwo_satisfies_spec

8.2.1

triangular_correct

8.2.2

maxOfTwo_eq_max

8.2.2

maxSpec_iff_eq_max

8.2.3

betweenSpec_has_result

8.2.3

maxCandidate_correct

8.2.4

divMod_correct

8.3.3

subtract_correct

8.3.3

subtractPair_correct

8.3.4

double_correct

8.3.4

functions_eq

8.4.1

reverseAux_correct

8.4.3

reverse_correct

8.4.4

reverseSlow_eq_reverse

8.4.4

reverseFast_eq_reverse

8.4.4

correct_of_equiv

8.4.4

linearSearch_sound

8.5.3

linearSearch_complete

8.5.4

linearSearch_correct

8.5.4

insert_perm

8.6.3

insert_preserves_lowerBound

8.6.3

insert_sorted

8.6.3

insertionSort_sorted

8.6.4

insertionSort_perm

8.6.5

insertionSort_correct

8.6.6

eval_mkConj

8.7.5

eval_simplify

8.7.5

simplify_correct

8.7.5

9장

정리 이름

증명이 나오는 소절

listLengthCost_eq_length

9.3.2

reverseSlowCost_eq_bySize

9.3.2

reverseCostBySize_formula

9.3.2

reverseCostBySize_eq_div

9.3.2

reverseSlowCost_formula

9.3.2

linearSearchCost_eq_withCost

9.3.3

linearSearchCost_le_length

9.3.3

linearSearchWithCost_snd_le_length

9.3.3

linearSearchCost_ge_one

9.3.4

linearSearchCost_best

9.3.4

linearSearchCost_replicate_of_ne

9.3.4

linearSearchCost_worst

9.3.4

linearSearchCost_attains_worst

9.3.4

linearCost_bigO

9.4.4

quadraticCost_bigO

9.4.4

linearSearchWorstCost_eq

9.4.4

linearSearch_bigO

9.4.4

reverseSlow_bigO

9.4.4

reverseFastCost_eq_length

9.5.2

reverseSlow_bigOmega

9.5.3

reverseSlow_bigTheta

9.5.3

reverseFast_bigO

9.5.3

reverseFast_bigOmega

9.5.3

reverseFast_bigTheta

9.5.3

reverseCost_improved

9.5.4

reverse_optimization_verified

9.5.4

insertCost_le_length

9.6.2

insertionSort_length

9.6.4

insertionSortCost_le_bound

9.6.4

insertionSortBound_succ

9.6.4

insertionSortBound_formula

9.6.4

insertionSortBound_eq_div

9.6.4

insertionSortCost_le_formula

9.6.4

descendingList_length

9.6.5

lt_of_mem_descendingList

9.6.5

insertCost_eq_length_of_all_lt

9.6.5

insertionSortCost_descending

9.6.5

insertionSortWorstCost_isMaximum

9.6.5

insertionSort_bigO

9.6.6

insertionSort_bigOmega

9.6.6

insertionSort_bigTheta

9.6.6