OAI/Computability/TypeSystem/Pairs.lean
190 declarations, 0 contain sorry, 0 declared as axioms
- theorem
OAI.PureTypeSystem.Labelled.DataWrapper.reencodeBody_substline 11 - theorem
OAI.PureTypeSystem.Labelled.Expr.liftSub_succ_naturalline 19 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.pred_substline 31 - def
OAI.PureTypeSystem.Labelled.ChannelCode.classTagline 37Source documentation
Class and edge query tags in the source's fixed seven structural tags.
def classTag (t : Fin 3) : Fin 7 := ⟨t.val+1,by omega⟩
- def
OAI.PureTypeSystem.Labelled.ChannelCode.edgeTagline 38 - def
OAI.PureTypeSystem.Labelled.ChannelCode.isClassline 40 - def
OAI.PureTypeSystem.Labelled.ChannelCode.edgeline 43 - def
OAI.PureTypeSystem.Labelled.ChannelCode.formExBodyline 48 - def
OAI.PureTypeSystem.Labelled.ChannelCode.pairFormline 54 - def
OAI.PureTypeSystem.Labelled.ChannelCode.pairBodyline 58 - def
OAI.PureTypeSystem.Labelled.ChannelCode.pairPredline 63 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.classBody_substline 66 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.classPred_substline 76 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.unionBody_substline 80 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.unionPred_substline 85 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.isClass_renameline 90 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.isClass_substline 95 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.edge_renameline 100 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.edge_substline 105 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.formExBody_renameline 111 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.formExBody_substline 119 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.formExBody_instantiateline 128 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.pairForm_renameline 137 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.pairForm_substline 143 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.pairBody_renameline 149 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.pairBody_instantiateline 157 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.pairBody_substline 164 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.pairPred_renameline 174 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.pairPred_substline 180 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.Formed.isClass_formulaline 198 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.Formed.edge_formulaline 203 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.Formed.formExBody_familyline 211 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.Formed.pairForm_formulaline 232 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.Formed.pairBody_familyline 240 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.Formed.pairPred_typedline 260 - theorem
OAI.PureTypeSystem.Labelled.ChannelCode.Formed.pairPred_evaluationline 266 - theorem
OAI.PureTypeSystem.Labelled.queryBits_beqline 276 - theorem
OAI.PureTypeSystem.Labelled.queryTag_injectiveline 281 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.tagged_tagline 294 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.encode_evaluationline 303 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.encode_markline 317 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.encode_payloadline 342 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.decode_encodeline 365 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.bitBody_substline 386 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.recBody_substline 393 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.recoveryBody_substline 407 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.tagBody_substline 413 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.big_renameline 425 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.big_substline 427 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.bpType_renameline 429 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.bpType_substline 432 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.embedBody_substline 436 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.decoderBody_renameline 443 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.decode_renameline 449 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.decoderBody_substline 454 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.decode_substline 460 - def
OAI.PureTypeSystem.Labelled.DoubleCode.decodeMapline 466Source comment
This body exposes the decoded predicate as a data map on exact BP values.def decodeMap (U : DataWrapper S true) (L : LogicCode S) (T : Expr S) := …
Mentions: OAI.PureTypeSystem.Labelled.DataWrapper, OAI.PureTypeSystem.Labelled.Expr
- theorem
OAI.PureTypeSystem.Labelled.DoubleCode.decodeMap_instantiateline 469 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.decodeMap_typedline 479 - def
OAI.PureTypeSystem.Labelled.DoubleCode.bpBottomline 489 - def
OAI.PureTypeSystem.Labelled.DoubleCode.dummyline 490 - def
OAI.PureTypeSystem.Labelled.DoubleCode.isDummyline 491 - def
OAI.PureTypeSystem.Labelled.DoubleCode.markBodyline 492 - def
OAI.PureTypeSystem.Labelled.DoubleCode.pointBodyline 494 - def
OAI.PureTypeSystem.Labelled.DoubleCode.pointline 497 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.markBody_instantiateline 500 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.pointBody_instantiateline 503 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.bpBottom_typedline 514 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.dummy_typedline 517 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.isDummy_formulaline 520 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.markBody_familyline 524 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.pointBody_familyline 531 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.point_typedline 538 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.dummy_lawline 553 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.bottom_markline 562 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.point_evaluationline 576 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.point_not_dummyline 587 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.point_queryline 605 - def
OAI.PureTypeSystem.Labelled.DoubleCode.bundleBodyline 632Source documentation
Source Bundle is a fixed data term; no non-dummy proof enters its code.
def bundleBody (L : LogicCode S) (A d m y : Expr S) := …
Mentions: OAI.PureTypeSystem.Labelled.Expr
- def
OAI.PureTypeSystem.Labelled.DoubleCode.bundleline 635 - def
OAI.PureTypeSystem.Labelled.DoubleCode.accessBodyline 637Source documentation
The outer access predicate, with the exact inner data callback
fi.def accessBody (L : LogicCode S) (A guard w fi : Expr S) := …
Mentions: OAI.PureTypeSystem.Labelled.Expr
- def
OAI.PureTypeSystem.Labelled.DoubleCode.accessProbeline 640 - def
OAI.PureTypeSystem.Labelled.DoubleCode.accessline 642 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.bundleBody_instantiateline 645 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.accessBody_instantiateline 652 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.bundleBody_familyline 667 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.bundle_typedline 674 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.bundle_evaluationline 682 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.accessBody_familyline 692 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.accessProbe_typedline 698 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.accessProbe_evaluationline 704 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.bundle_select_trueline 719 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.bundle_select_falseline 735 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.accessProbe_trueline 751 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.accessProbe_falseline 763 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.access_bundleline 780Source documentation
The exact-parameter access calculation. The inner callback is raw typed data, not a selected term depending on the non-dummy proof.
theorem access_bundle {A d m y guard fi : Expr S} (hA : SortedAt P Γ A I) (mA : WellModed γ A .data) (hd : HasType P Γ d A) (md : WellModed γ d .data) (hm : HasType P Γ m A) (mm : WellModed γ m .data) (hy : HasType P Γ y A) (my : WellModed γ y .data) (hg : L.Family A guard) (hfi : DataMap P Γ γ A (R.first.apply A) fi) {s : S} (hs : HasType P Γ A (.sort s)) (hgd : Proves P Γ γ (guard.instantiate d)) (hgm : Proves P Γ γ (L.neg (guard.instantiate m))) (hid : Proves P Γ γ (L.neg (R.first.observe A (fi.instantiate m) d))) : Equivalent P Γ γ (R.access L.code A guard (R.bundle L.code A d m y) fi) (R.first.observe A (fi.instantiate m) y) := by …Mentions: OAI.PureTypeSystem.Labelled.Expr, OAI.PureTypeSystem.Labelled.SortedAt, OAI.PureTypeSystem.Labelled.WellModed, OAI.PureTypeSystem.Labelled.HasType, OAI.PureTypeSystem.Labelled.Proves, OAI.PureTypeSystem.Labelled.Equivalent
- def
OAI.PureTypeSystem.Labelled.DoubleCode.dummyBodyline 809 - def
OAI.PureTypeSystem.Labelled.DoubleCode.queryBodyline 811 - def
OAI.PureTypeSystem.Labelled.DoubleCode.innerBodyline 813 - def
OAI.PureTypeSystem.Labelled.DoubleCode.innerProbeline 816 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.dummyBody_instantiateline 819 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.queryBody_instantiateline 822 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.innerBody_instantiateline 825 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.dummyBody_familyline 839 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.queryBody_familyline 844 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.innerBody_familyline 849 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.innerProbe_typedline 854 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.innerProbe_evaluationline 859 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.innerProbe_dummyline 868 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.innerProbe_pointline 882 - theorem
OAI.PureTypeSystem.Labelled.DataMap.composeline 908 - theorem
OAI.PureTypeSystem.Labelled.LogicCode.rename_bottomline 915 - theorem
OAI.PureTypeSystem.Labelled.LogicCode.subst_bottomline 916 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.rename_firstline 922 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.subst_firstline 923 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.rename_secondline 924 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.subst_secondline 925 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.bpBottom_renameline 926 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.bpBottom_substline 930 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.paramType_renameline 935 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.paramType_substline 938 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.encode_renameline 941 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.encodeBody_substline 946 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.encode_substline 952 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.dummyBody_renameline 957 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.dummyBody_substline 961 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.innerBody_renameline 965 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.innerBody_substline 971 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.innerProbe_renameline 978 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.innerProbe_substline 983 - def
OAI.PureTypeSystem.Labelled.DoubleCode.innerMapline 989 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.innerMap_instantiateline 991 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.innerMap_typedline 1001 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.query_renameline 1012 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.query_substline 1017 - def
OAI.PureTypeSystem.Labelled.DoubleCode.queryPredBodyline 1024Source documentation
The genuine predicate binder of qry_t(m,P), distinct from the parameter binder used by Access.
def queryPredBody (U : DataWrapper S true) (L : LogicCode S) (t : Fin 8) (T m : Expr S) := …
Mentions: OAI.PureTypeSystem.Labelled.DataWrapper, OAI.PureTypeSystem.Labelled.Expr
- theorem
OAI.PureTypeSystem.Labelled.DoubleCode.queryPredBody_renameline 1027 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.queryPredBody_substline 1033 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.queryPredBody_instantiateline 1039 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.query_formulaline 1048 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.queryPredBody_familyline 1055 - def
OAI.PureTypeSystem.Labelled.DoubleCode.accessMapline 1067 - def
OAI.PureTypeSystem.Labelled.DoubleCode.recoverAccessline 1069 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.accessMap_instantiateline 1071 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.accessMap_typedline 1079 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.Formed.access_recoveryline 1087 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.carrier_convertsline 1132 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.tower_convertsline 1134 - theorem
OAI.PureTypeSystem.Labelled.DoubleCode.paramType_convertsline 1138 - def
OAI.PureTypeSystem.Labelled.ProbeCode.atTypeline 1145 - def
OAI.PureTypeSystem.Labelled.ProbeCode.specializeline 1146 - def
OAI.PureTypeSystem.Labelled.ProbeCode.readBodyline 1147 - def
OAI.PureTypeSystem.Labelled.ProbeCode.observeline 1148 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.atType_renameline 1150 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.atType_substline 1153 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.funType_convertsline 1156 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.atType_convertsline 1159 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.at_body_convertline 1161 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.readBody_instantiateline 1166 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.Formed.at_sortedline 1177 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.Formed.at_modeline 1179 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.Formed.at_typedline 1181 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.Formed.at_dataline 1186 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.Formed.readBody_familyline 1189 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.Formed.observe_formulaline 1209 - def
OAI.PureTypeSystem.Labelled.ProbeCode.funBuildline 1220Source documentation
Ordinary data abstraction on the single bundle, before even wrapping.
def funBuild (A Q : Expr S) : Expr S := .lam .dd (R.singleType A) ((R.tail.rename Nat.succ).send Q)
Mentions: OAI.PureTypeSystem.Labelled.Expr
- def
OAI.PureTypeSystem.Labelled.ProbeCode.wrappedBuildline 1221 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.funBuild_betaline 1223 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.funBuild_renameline 1230 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.funBuild_substline 1236 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.wrappedBuild_renameline 1243 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.wrappedBuild_substline 1250 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.Formed.funBuild_typedline 1262 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.Formed.wrappedBuild_typedline 1274 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.Formed.funBuild_evaluationline 1280 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.Formed.wrappedBuild_evaluationline 1295 - theorem
OAI.PureTypeSystem.Labelled.Converts.lamline 1321 - theorem
OAI.PureTypeSystem.Labelled.PositiveDataWrapper.inject_convertsline 1328 - theorem
OAI.PureTypeSystem.Labelled.DataTail.send_convertsline 1335 - theorem
OAI.PureTypeSystem.Labelled.DataWrapper.congr_build_observeline 1339 - theorem
OAI.PureTypeSystem.Labelled.DataWrapper.build_congrline 1374 - theorem
OAI.PureTypeSystem.Labelled.DataWrapper.observe_congrline 1377 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.singleType_convertsline 1382 - def
OAI.PureTypeSystem.Labelled.ProbeCode.uniformline 1394Source documentation
Uniform V constructor. Q binds w:Single(z-down), then z:Z.
def uniform (Q : Expr S) : Expr S := .lam .dd R.domain …
Mentions: OAI.PureTypeSystem.Labelled.Expr
- theorem
OAI.PureTypeSystem.Labelled.ProbeCode.uniform_specializeline 1397 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.Formed.project_typedline 1412 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.Formed.project_modeline 1414 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.Formed.raised_projectline 1416 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.Formed.uniform_typedline 1421 - theorem
OAI.PureTypeSystem.Labelled.ProbeCode.Formed.uniform_evaluationline 1432