OAI/Computability/TypeSystem/Congruence.lean
68 declarations, 0 contain sorry, 0 declared as axioms
- theorem
OAI.PureTypeSystem.ObservationValues.lambdaValue_congrline 11 - theorem
OAI.PureTypeSystem.ObservationValues.applyValue_congrline 23 - theorem
OAI.PureTypeSystem.ObservationValues.withBase_congrline 38 - theorem
OAI.PureTypeSystem.ObservationValues.distinguished_congrline 46 - theorem
OAI.PureTypeSystem.ObservationValues.PreResult.parameter_congrline 58 - theorem
OAI.PureTypeSystem.ObservationValues.PreResult.val_congrline 67 - theorem
OAI.PureTypeSystem.ObservationValues.PreResult.baseRead_congrline 78Source documentation
A cross-context form of base projection congruence. The literal-sort condition is retained: arbitrary retargeting preserves Val, not every unused Read coordinate.
theorem baseRead_congr (h : HasType P Γ M T) (h' : HasType P Δ M' T') (hM : (M.subst e.images).normalForm = (M'.subst f.images).normalForm) (hT : (T.subst e.images).normalForm = (T'.subst f.images).normalForm) (hS : (∃ s : S, T = .sort s ∧ ({s} : Set S) ∈ C) ↔ (∃ s : S, T' = .sort s ∧ ({s} : Set S) ∈ C)) (v : ActiveLayer P C (Ω.profile (T.subst e.images).normalForm) → Value (hw := hw) Ω C hno (T.subst e.images).normalForm) …Mentions: OAI.PureTypeSystem.HasType, OAI.PureTypeSystem.ObservationValues.PreResult.sort, OAI.PureTypeSystem.ActiveLayer, OAI.PureTypeSystem.ObservationValues.Value
- theorem
OAI.PureTypeSystem.ObservationValues.PreResult.abstractionAction_congrline 113 - theorem
OAI.PureTypeSystem.ObservationValues.PreResult.abstraction_val_congrline 133 - theorem
OAI.PureTypeSystem.ObservationValues.PreResult.application_val_congrline 151 - theorem
OAI.PureTypeSystem.ObservationValues.PreResult.productCandidate_congrline 180 - theorem
OAI.PureTypeSystem.ObservationValues.PreResult.product_val_congrline 200 - theorem
OAI.PureTypeSystem.ObservationValues.PreResult.product_read_congrline 231 - theorem
OAI.PureTypeSystem.Expr.Scoped.subst_congrline 259 - theorem
OAI.PureTypeSystem.Expr.rename_eq_sortline 280 - def
OAI.PureTypeSystem.ObservationValues.Environment.Reindexedline 294Source documentation
Matching old raw images and parameters under declaration reindexing. No equality is imposed on undeclared indices.
def Reindexed (e : Environment (hw := hw) Ω C hno Γ) …
- theorem
OAI.PureTypeSystem.ObservationValues.Environment.Reindexed.raw_eqline 302 - theorem
OAI.PureTypeSystem.ObservationValues.Environment.Reindexed.expr_eqline 307 - theorem
OAI.PureTypeSystem.ObservationValues.Environment.Reindexed.type_eqline 310 - theorem
OAI.PureTypeSystem.ObservationValues.Environment.Reindexed.consline 313 - theorem
OAI.PureTypeSystem.ObservationValues.preEvaluate_renameline 326 - def
OAI.PureTypeSystem.TypingTree.recontextline 413Source documentation
Context conversion retains every nonvariable core and all sort choices.
noncomputable def recontext (t : TypingTree P Γ M T) (h : ContextEquivalent P Γ Δ) : TypingTree P Δ M T := by …Mentions: OAI.PureTypeSystem.TypingTree, OAI.PureTypeSystem.ContextEquivalent
- def
OAI.PureTypeSystem.ObservationValues.Environment.SameDataline 434 - theorem
OAI.PureTypeSystem.ObservationValues.Environment.SameData.raw_eqline 440 - theorem
OAI.PureTypeSystem.ObservationValues.Environment.SameData.expr_eqline 441 - theorem
OAI.PureTypeSystem.ObservationValues.Environment.SameData.consline 443 - theorem
OAI.PureTypeSystem.ObservationValues.preEvaluate_recontextline 459 - def
OAI.PureTypeSystem.Expr.consSubline 541 - theorem
OAI.PureTypeSystem.ContextTower.profile_sortline 547 - theorem
OAI.PureTypeSystem.FeasibleProfile.singletonline 560 - def
OAI.PureTypeSystem.ObservationValues.baseGoodline 572Source documentation
Goodness is deliberately independent of observation parameters.
def baseGood (M T : Expr S) (σ : Nat → Expr S) (v : Prop) : Prop := …
Mentions: OAI.PureTypeSystem.Expr
- def
OAI.PureTypeSystem.ObservationValues.goodnessline 578 - abbrev
OAI.PureTypeSystem.ObservationValues.ValGoodline 599 - abbrev
OAI.PureTypeSystem.ObservationValues.ReadGoodline 601 - def
OAI.PureTypeSystem.ObservationValues.Relevantline 604 - theorem
OAI.PureTypeSystem.ObservationValues.Relevant.predline 608 - theorem
OAI.PureTypeSystem.ObservationValues.relevant_actual_memline 616 - theorem
OAI.PureTypeSystem.ObservationValues.normal_baseGoodline 626 - theorem
OAI.PureTypeSystem.ObservationValues.normal_goodline 636 - theorem
OAI.PureTypeSystem.ObservationValues.normal_tree_independenceline 714Source documentation
Normal-syntax values forget all stored generation choices; normal Reads also forget their literal sort choice. No functionality hypothesis is used.
theorem normal_tree_independence {Γ : List (Expr S)} {M T : Expr S} (t : TypingTree P Γ M T) : Normal M → ∀ {U : Expr S} (t' : TypingTree P Γ M U) (e : Environment (hw := hw) Ω C hno Γ), …Mentions: OAI.PureTypeSystem.Expr, OAI.PureTypeSystem.TypingTree, OAI.PureTypeSystem.Normal, OAI.PureTypeSystem.ObservationValues.Environment
- def
OAI.PureTypeSystem.ContextTower.TypedSubstitution.Compatibleline 817 - theorem
OAI.PureTypeSystem.ContextTower.TypedSubstitution.Compatible.expr_eqline 822 - theorem
OAI.PureTypeSystem.ContextTower.TypedSubstitution.Compatible.type_eqline 827 - theorem
OAI.PureTypeSystem.ContextTower.TypedSubstitution.Compatible.expr_profileline 832 - theorem
OAI.PureTypeSystem.ContextTower.TypedSubstitution.Compatible.type_profileline 836 - theorem
OAI.PureTypeSystem.ContextTower.TypedSubstitution.Compatible.consline 841 - theorem
OAI.PureTypeSystem.ContextTower.TypedSubstitution.Compatible.cons_sameline 848 - theorem
OAI.PureTypeSystem.ObservationValues.baseGood_congrline 859 - theorem
OAI.PureTypeSystem.ObservationValues.goodness_compatibleline 865 - theorem
OAI.PureTypeSystem.Neutral.of_renameline 932 - theorem
OAI.PureTypeSystem.Neutral.rename_iffline 939 - theorem
OAI.PureTypeSystem.Expr.consSub_liftRenline 943 - theorem
OAI.PureTypeSystem.ObservationValues.baseGood_renameline 951 - theorem
OAI.PureTypeSystem.ObservationValues.goodness_renameline 955 - theorem
OAI.PureTypeSystem.ObservationValues.valGood_retargetline 1025 - theorem
OAI.PureTypeSystem.ContextTower.profile_convertsline 1033 - theorem
OAI.PureTypeSystem.ContextTower.instantiate_profile_ascentline 1040 - theorem
OAI.PureTypeSystem.ContextTower.neutral_profile_ascentline 1051 - def
OAI.PureTypeSystem.ObservationValues.SubstitutionGuardline 1080Source documentation
Only nonneutral replacements need the activity guard. Variables that remain neutral are harmless even at a skipped clause.
def SubstitutionGuard (Γ : List (Expr S)) (σ ξ : Nat → Expr S) : Prop := …
Mentions: OAI.PureTypeSystem.Expr
- theorem
OAI.PureTypeSystem.ObservationValues.neutral_subst_of_inactiveline 1085 - theorem
OAI.PureTypeSystem.ObservationValues.skipped_application_substline 1099 - theorem
OAI.PureTypeSystem.ObservationValues.skipped_read_substline 1115 - theorem
OAI.PureTypeSystem.ObservationValues.distinguished_baseline 1134 - theorem
OAI.PureTypeSystem.ObservationValues.PreResult.baseRead_eqline 1146 - theorem
OAI.PureTypeSystem.ObservationValues.PreResult.product_read_baseline 1155 - theorem
OAI.PureTypeSystem.ObservationValues.preEvaluate_read_baseline 1172 - theorem
OAI.PureTypeSystem.ObservationValues.baseGood_active_iffline 1190 - theorem
OAI.PureTypeSystem.ObservationValues.readGood_active_iffline 1202