blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 139 | content_id stringlengths 40 40 | detected_licenses listlengths 0 16 | license_type stringclasses 2
values | repo_name stringlengths 7 55 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 6
values | visit_date int64 1,471B 1,694B | revision_date int64 1,378B 1,694B | committer_date int64 1,378B 1,694B | github_id float64 1.33M 604M ⌀ | star_events_count int64 0 43.5k | fork_events_count int64 0 1.5k | gha_license_id stringclasses 6
values | gha_event_created_at int64 1,402B 1,695B ⌀ | gha_created_at int64 1,359B 1,637B ⌀ | gha_language stringclasses 19
values | src_encoding stringclasses 2
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 3 6.4M | extension stringclasses 4
values | content stringlengths 3 6.12M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ffe382f7ba81b49db2b6d48c84dac2df231fdda7 | fe84e287c662151bb313504482b218a503b972f3 | /src/undergraduate/MAS114/Semester 2/Q01.lean | f0386ead5b8df094a22a84d3b43e2fbeeb0a77e3 | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 7,817 | lean | import data.fintype.basic
import algebra.power_mod
import group_theory.group_action
import algebra.group_power
import algebra.big_operators
import data.zmod.basic
import tactic.ring tactic.abel
import group_theory.self_map
import group_theory.action_instances
import group_theory.burnside_count
import group_theory.... |
69b70063ad93a542d733e0c5c782a850346a6735 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/elim2.lean | 7d51cf1a5ab13098e9ea4f4fb290c90585afdb7a | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 266 | lean | import logic
open tactic
constant p : num → num → num → Prop
axiom H1 : ∃ x y z, p x y z
axiom H2 : ∀ {x y z : num}, p x y z → p x x x
theorem tst : ∃ x, p x x x
:= obtain a b c H [visible], from H1,
by (apply exists_intro; apply H2; eassumption)
|
3cfdc753d5f1f961d13846d7f6fe51ff8c4abb9d | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/data/set/basic.lean | bca603e2ad9351b6f59e6f18f9c58178b1df3ddb | [
"Apache-2.0"
] | permissive | leanprover-fork/mathlib-backup | 8b5c95c535b148fca858f7e8db75a76252e32987 | 0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0 | refs/heads/master | 1,585,156,056,139 | 1,548,864,430,000 | 1,548,864,438,000 | 143,964,213 | 0 | 0 | Apache-2.0 | 1,550,795,966,000 | 1,533,705,322,000 | Lean | UTF-8 | Lean | false | false | 46,635 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Leonardo de Moura
-/
import tactic.ext tactic.finish data.subtype tactic.interactive
open function
/- set coercion to a type -/
namespace set
instance {α : Type*} : has_... |
30acd4995a1887bcf5f1e550cd0b9b2d23a47514 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/category_theory/functor/epi_mono.lean | 2ed2ad6f30291514adee3e5c205352d1c148320e | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 7,358 | lean | /-
Copyright (c) 2022 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.epi_mono
/-!
# Preservation and reflection of monomorphisms and epimorphisms
We provide typeclasses that state that a functor preserves or refl... |
e71dfd063c3d4bd45ef214d5b5d9a2a9c668649c | dd4e652c749fea9ac77e404005cb3470e5f75469 | /src/missing_mathlib/algebra/big_operators.lean | e3aa637cd6ffeb921d14cfc11b5b9e355e5400a1 | [] | no_license | skbaek/cvx | e32822ad5943541539966a37dee162b0a5495f55 | c50c790c9116f9fac8dfe742903a62bdd7292c15 | refs/heads/master | 1,623,803,010,339 | 1,618,058,958,000 | 1,618,058,958,000 | 176,293,135 | 3 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 570 | lean | import algebra.big_operators
universes u v w
variables {α : Type u} {β : Type v} {γ : Type w}
namespace finset
variables {s s₁ s₂ : finset α} {a : α} {f g : α → β}
section comm_monoid
variables [comm_monoid β]
@[to_additive finset.sum_filter']
lemma prod_filter' [decidable_eq β] (s : finset α) (f : α → β) :
finse... |
536cd29f18576ea219087843b183ca39602dcb0f | 1a9d3677cccdaaccacb163507570e75d34043a38 | /src/week_1/Part_C_functions.lean | 3a763a6c6eb35e1150d127ad29371cc23c92d4ce | [
"Apache-2.0"
] | permissive | alreadydone/formalising-mathematics | 687d386a72065795e784e270f5c05ea3948b67dd | 65869362cd7a2ac74dd1a97c7f9471835726570b | refs/heads/master | 1,680,260,936,332 | 1,616,563,371,000 | 1,616,563,371,000 | 348,780,769 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,372 | lean | import tactic
-- injective and surjective functions are already in Lean.
-- They are called `function.injective` and `function.surjective`.
-- It gets a bit boring typing `function.` a lot so we start
-- by opening the `function` namespace
open function
-- We now move into the `xena` namespace
namespace xena
-- le... |
41270de1f22fb566e1d5d0a016d6e0ceb278ae26 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/semiquot_auto.lean | 0a10415dc7e4bd1e677dd7f3aa3d4ffcaddea0a6 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,850 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
A data type for semiquotients, which are classically equivalent to
nonempty sets, but are useful for programming; the idea is that
a semiquotient set `S` represents som... |
f75a24b0015f0662b97182a6d7e14647da28a818 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/PrettyPrinter/Parenthesizer.lean | deddcaf363fa219275c171718953d5dd36b7bcec | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 29,525 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.Parser.Extension
import Lean.Parser.StrInterpolation
import Lean.ParserCompiler.Attribute
import Lean.PrettyPrinter.Basic
/-!
The parenthesizer in... |
c745b8afa366231f8fe852758034b5ab4da0b72f | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/tactic/interactive.lean | 5278d57cd421a3de9cf8f45efbb9c406c788394d | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 41,749 | lean |
/-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Sebastien Gouezel, Scott Morrison
-/
import tactic.lint
open lean
open lean.parser
local postfix `?`:9001 := optional
local postfix *:9001 := many
name... |
3c9835ea3e07ffb3300b3a27f6b0269e9a9f4803 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/algebra/direct_limit.lean | dfc997c81c6f80d86aa22e46ade663db12003f80 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 25,324 | lean | /-
Copyright (c) 2019 Kenny Lau, Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes
-/
import ring_theory.free_comm_ring
import linear_algebra.direct_sum_module
import data.finset.order
/-!
# Direct limit of modules, abelian groups, ri... |
b7b791699d9a6dc13ff8f96d5adee29c371ea84e | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/defeq_simp3.lean | 9768789142dfce3727eb9f0299fd5ce3edc2ed0b | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 492 | lean | attribute [reducible]
definition nat_has_add2 : has_add nat :=
has_add.mk (λ x y : nat, x + y)
attribute [reducible]
definition nat_has_add3 : nat → has_add nat :=
λ n, has_add.mk (λ x y : nat, x + y)
open tactic
set_option pp.all true
example (a b : nat) (H : (λ x : nat, @has_add.add nat nat_has_add2 a x) = (λ x : ... |
0cae54386713a6a12153f88fb3e5569e8ac0c456 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/have4.lean | 1c23eff0b0dcbef954dd7d836570c6f619b53b13 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 232 | lean | definition Prop : Type.{1} := Type.{0}
constants a b c : Prop
axiom Ha : a
axiom Hb : b
axiom Hc : c
check have H1 : a, from Ha,
then have H2 : a, from H1,
have H3 : a, from H2,
then have H4 : a, from H3,
H4
|
1010c03bc1ef1e12ee20147e0f3ad605c407abba | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/generalize_proofs.lean | 205f46294d8a6c8534348c7c9fcc4dd41045fb2b | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 3,146 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import tactic.doc_commands
/-!
# `generalize_proofs`
A simple tactic to find and replace all occurrences of proof terms in the
context and goal with new variables.
... |
ca68e87a3716703fac47dc221b341e6e752600c0 | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world7/level4.lean | b939bdee0a93aa5058679ae8189c10f96872c7ab | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 665 | lean | /-
# Advanced proposition world.
## Level 4: `iff_trans`.
The mathematical statement $P\iff Q$ is equivalent to $(P\implies Q)\land(Q\implies P)$. The `cases`
and `split` tactics work on hypotheses and goals (respectively) of the form `P ↔ Q`. If you need
to write an `↔` arrow you can do so by typing `\iff`, but y... |
57e3a089b3c4a122e2635f117f8c4eeec1c8acb7 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/data/equiv/basic.lean | 996dea42570d3a103a26ff1fb3b4f203e0f307b1 | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 42,847 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
In the standard library we cannot assume the univalence axiom.
We say two types are equivalent if they are isomorphic.
Two equivalent types h... |
1fa7e9271e7abe17c4281164dde886a7443661bc | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Lean/Elab/Match.lean | 4a58d5d88ee122c0f80ab9d9c27ec9d3c5abd74a | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 52,004 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.CollectFVars
import Lean.Meta.Match.MatchPatternAttr
import Lean.Meta.Match.Match
import Lean.Meta.SortLocalDecls
import Lean.Meta.Generali... |
9e86606f5f5ef1e15592cf75a21dffa7aa02a638 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/group_theory/perm/sign.lean | a2722421263f9ed39129e892fb043a8fa35bb8c3 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,688 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.fintype.basic
import Mathlib.data.finset.sort
import Mathlib.group_theory.perm.basic
impor... |
9f22486de16c5d635af25253bd46c58b50d01359 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/elab_failure.lean | 8a8bcdf42973566c94637b49cd1a2cd03486a672 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 436 | lean | import data.nat.basic data.bool
open bool nat
attribute nat.rec_on [reducible]
definition is_eq (a b : nat) : bool :=
nat.rec_on a
(λ b, nat.cases_on b tt (λb₁, ff))
(λ a₁ r₁ b, nat.cases_on b ff (λb₁, r₁ b₁))
b
example (a₁ : nat) (b : nat) : true :=
@nat.cases_on (λ (n : nat), true) b
true.intro
(λ (b₁ : _)... |
0325cd2014d87215dc814fc96569374e34fb322d | 947b78d97130d56365ae2ec264df196ce769371a | /doc/examples/compiler/test.lean | f162825b9eb281a3062e569c06e90fb10564b1b1 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 80 | lean | def main (n : List String) : IO UInt32 :=
do IO.println (toString n);
pure 0
|
db3c6a5369f8707ae9d8191606dd453be2f21e5a | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/linear_algebra/multilinear.lean | 6475cb711f032ec466d241694531b1df39b0c1ab | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 36,917 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import linear_algebra.basic
import algebra.algebra.basic
import tactic.omega
import data.fintype.sort
/-!
# Multilinear maps
We define multilinear maps as map... |
be92761a83aa1c06bc7131f697998277c2d2c91d | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/category_theory/equivalence.lean | beb39d8ac7e528c1cf7bb5a1045a9a09c8fc53c5 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 15,247 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.fully_faithful
import category_theory.whiskering
import category_theory.natural_isomorphism
impo... |
8ddad79bc50a50dd77ac0b474fbb2bad8572af7b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/combinatorics/pigeonhole_auto.lean | 3582002153a15f73c22eb5503f6adcda5a904579 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,592 | lean | /-
Copyright (c) 2020 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.fintype.basic
import Mathlib.algebra.big_operators.order
import Mathlib.Pos... |
9d768747f5f2fcedc0ccbbd4eab57bdc11fb4a02 | 2fbe653e4bc441efde5e5d250566e65538709888 | /src/measure_theory/integration.lean | 3ae0b717a9570a865b8cd3ed3b9eac3f61355e6e | [
"Apache-2.0"
] | permissive | aceg00/mathlib | 5e15e79a8af87ff7eb8c17e2629c442ef24e746b | 8786ea6d6d46d6969ac9a869eb818bf100802882 | refs/heads/master | 1,649,202,698,930 | 1,580,924,783,000 | 1,580,924,783,000 | 149,197,272 | 0 | 0 | Apache-2.0 | 1,537,224,208,000 | 1,537,224,207,000 | null | UTF-8 | Lean | false | false | 56,446 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
Lebesgue integral on `ennreal`.
We define simple functions and show that each Borel measurable function on `ennreal` can be
approximated by a sequence ... |
78d799c1dc562a867c1c7261199b00bdd49a32d8 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/logic/examples/propositional/soundness.lean | a8e7ae84c7413bbcf2ae12ca369b327c49312b18 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 6,389 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Define propositional calculus, valuation, provability, validity, prove soundness.
This file is based on Floris van Doorn Coq files.
-/
import data.nat data.l... |
57b3b198c36574094133686ac5f55cd52f5757f6 | 367134ba5a65885e863bdc4507601606690974c1 | /src/topology/algebra/ordered.lean | 9423a17e38b06b090c55c2780eaba13b55c60576 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 157,379 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Yury Kudryashov
-/
import tactic.linarith
import tactic.tfae
import algebra.archimedean
import algebra.group.pi
import algebra.ordered_ring
import order... |
96addeb9c7d222ac9041b11d28727053dda1fff9 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Init/Data/Nat/Log2.lean | 5bacca9e682feedf15b78c51b4b1b09b75caf570 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 762 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
prelude
import Init.NotationExtra
import Init.Data.Nat.Linear
namespace Nat
private theorem log2_terminates : ∀ n, n ≥ 2 → n / 2 < n
| 2, _ => by decide
|... |
2663046255048906de3c6b3bcba21e111fa0f49e | 4aca55eba10c989f0d58647d3c2f371e7da44355 | /src/main1.lean | 177bd5cfa5cd157abb399c8ab6754b2756e81eef | [] | no_license | eric-wieser/l534zhan-my_project | f9fc75fb5454405e1a2fa9b56cf96c355f6f2336 | febc91e76b7b00fe2517f258ca04d27b7f35fcf3 | refs/heads/master | 1,689,218,910,420 | 1,630,439,440,000 | 1,630,439,440,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,604 | lean | /-
Copyright (c) 2021 Lu-Ming Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Lu-Ming Zhang.
-/
import data.matrix.notation
import symmetric_matrix
/-!
# Hadamard product and Kronecker product.
This file defines the Hadamard product `matrix.Hadamard` and the Kro... |
419d9f3e258b02563caaa298c09e4692bbd58499 | 5a5e1bb8063d7934afac91f30aa17c715821040b | /lean3SOS/src/test/float.lean | 0347093c23253346d7da7ecb6dc72c2b1f7c95c8 | [] | no_license | ramonfmir/leanSOS | 1883392d73710db5c6e291a2abd03a6c5b44a42b | 14b50713dc887f6d408b7b2bce1f8af5bb619958 | refs/heads/main | 1,683,348,826,105 | 1,622,056,982,000 | 1,622,056,982,000 | 341,232,766 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,755 | lean | import float.basic
import float.round
import float.div
set_option profiler true
-- Test add 1: 0 + 1
#eval rat.mk 0 1 + rat.mk 1 1
#eval float.mk 0 0 + float.mk 1 0 -- OK
-- Test add 2: 1/1024 + 3/4096
#eval rat.mk 1 1024 + rat.mk 3 4096
#eval float.mk 1 (-10) + float.mk 3 (-12)
-- Test add 3: 12345/1048576 + -6... |
fb295087408d07acd0408e71afd437a373ef9fe8 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/ac_expr.lean | ee8ce1c51c540d75d80ebf81dd4e7bd8911cf61e | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 5,288 | lean | import Std
inductive Expr where
| var (i : Nat)
| op (lhs rhs : Expr)
deriving Inhabited, Repr
def List.getIdx : List α → Nat → α → α
| [], i, u => u
| a::as, 0, u => a
| a::as, i+1, u => getIdx as i u
structure Context (α : Type u) where
op : α → α → α
assoc : (a b c : α) → op (op a b... |
f9ed648b7eaf3cc0023cf615396b6f3bd176f038 | 2914802b4ed2844bcc7ef2a02cda40ec82fb975f | /hott/algebra/category/constructions/functor.hlean | 974cc3b8b62c072cd5f0768cacff46dd7d9b85b4 | [
"Apache-2.0"
] | permissive | UlrikBuchholtz/lean | 60a81367f049cddb37083d3fe3e6fd2f96b7d5e7 | cc70845332e63a1f1be21dc1f96d17269fc85909 | refs/heads/master | 1,586,129,615,121 | 1,467,727,039,000 | 1,468,085,570,000 | 30,432,484 | 0 | 0 | null | 1,423,255,902,000 | 1,423,255,902,000 | null | UTF-8 | Lean | false | false | 15,970 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jakob von Raumer
Functor precategory and category
-/
import ..nat_trans ..category .opposite
open eq category is_trunc nat_trans iso is_equiv category.hom
names... |
f1ce551af57aa2e76a81f1c8fe1d676daf4bdbc1 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /test/library_search/basic.lean | c78f735c5dc5cfe8a045d65b2d091ca27a574ed3 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 2,422 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.nat.basic
import tactic.library_search
/- Turn off trace messages so they don't pollute the test build: -/
set_option trace.silence_library_search true
/... |
b6931ddae6d479e12fa1940693753050c1b3eb94 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/number_theory/bernoulli_polynomials.lean | 51929522e22af46f622bb1b7007cf81737323548 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 7,128 | lean | /-
Copyright (c) 2021 Ashvni Narayanan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ashvni Narayanan
-/
import data.polynomial.algebra_map
import data.nat.choose.cast
import number_theory.bernoulli
/-!
# Bernoulli polynomials
The Bernoulli polynomials (defined her... |
fe495beec0c7e594e63e9a998752aa3095ecbaa7 | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/data/tree_paths.lean | 4ec26c03b5ae6c1542effd010da3927b9dcc146e | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,737 | lean | import .lptree_to_tree
universes u
namespace binary_tree
section paths
parameter A : Type
/-- We use lr to denote a direction a path follows from the root-/
inductive lr : Type
| left
| right
/-- A path through a tree is a left or right direction, and the siblings that
weren't visited-/
@[reducible]
def path :... |
6e6d7d827b711307b4df3902c1f01eb10a8ec923 | 0d2e44896897eda703992595d71a0b19ed30b8a1 | /uexp/tactic_paper_supplemental_material/monoid_cancellation/benchmark.lean | 3582dd9259b1ab0c8fb8987ceaa8b17ab082300c | [
"BSD-2-Clause"
] | permissive | wwombat/Cosette | a87312aabefdb53ea8b67c37731bd58c7485afb6 | 4c5dc6172e24d3546c9818ac1fad06f72fe1c991 | refs/heads/master | 1,619,479,568,051 | 1,520,292,502,000 | 1,520,292,502,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,144 | lean | -- You need to run this file using `lean -j0`, otherwise the timings
-- will be influenced by parallel compilation.
import .monoid .smt .simp .cancellation_solver .cancellation_solver_opt
local infix * := star
meta def build_plus_l : ℕ → expr
| 0 := `(asM 0)
| (n+1) := `(asM %%(reflect n.succ) * %%(build_plus_l n... |
a3d230a9fbaf7d2bb152441ddd810d51f9d7bf29 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /library/data/nat/order.lean | 400363b0a66851203451d37be25dc88075bf01a6 | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,285 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.nat.order
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad
The order relation on the natural numbers.
-/
import data.nat.basic data.nat.comm_semiring algebra.ordere... |
efa52dee77ef056710f309099129932c3c7b929c | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/analysis/normed_space/basic.lean | bd3124eae38fa44b7d65ad10f2622aed4becc202 | [
"Apache-2.0"
] | permissive | benjamindavidson/mathlib | 8cc81c865aa8e7cf4462245f58d35ae9a56b150d | fad44b9f670670d87c8e25ff9cdf63af87ad731e | refs/heads/master | 1,679,545,578,362 | 1,615,343,014,000 | 1,615,343,014,000 | 312,926,983 | 0 | 0 | Apache-2.0 | 1,615,360,301,000 | 1,605,399,418,000 | Lean | UTF-8 | Lean | false | false | 58,313 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
-/
import topology.instances.nnreal
import topology.algebra.module
import topology.metric_space.antilipschitz
/-!
# Normed spaces
-/
variables {α : Typ... |
fac034e1078dc1a9202bb1163b7ed216a03692ca | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Elab/BuiltinTerm.lean | cd9cebafa755b229125672f76392c460693d5cfd | [
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 14,539 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Open
import Lean.Elab.SetOption
import Lean.Elab.Eval
namespace Lean.Elab.Term
open Meta
@[builtin_term_elab «prop»] def elabProp : TermE... |
8e00f02b76c608559333423fd0f930e005add9a1 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/topology/opens.lean | 75219abc35b106e8e3fa26a91b2286a111691271 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 6,358 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Subtype of open subsets in a topological space.
-/
import topology.bases topology.subset_properties topology.constructions
open filter lattice
variable... |
64306ece22322b4b534a13356e53e455aff392d1 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/field_theory/abel_ruffini.lean | e36d7378ab3d76f8270f0c4d91e1b7d1adcd447e | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,435 | lean | /-
Copyright (c) 2020 Thomas Browning and Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning, Patrick Lutz
-/
import group_theory.solvable
import field_theory.polynomial_galois_group
import ring_theory.roots_of_unity
/-!
# The Abel-Ruffini T... |
2e0c0004dabf2fe5617613403a48f9a531e5efa4 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/complex/re_im_topology.lean | 5410395907c29062bbf72a35503353c4b5401910 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 7,729 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.complex.basic
import topology.fiber_bundle.is_homeomorphic_trivial_bundle
/-!
# Closure, interior, and frontier of preimages under `re` and `im`
I... |
c7ad738d5a1a209be10f7c39efc599c0f31315c8 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/data/rat/default.lean | 1c022cc0186240ebf82860aa053f4d8b52479a6c | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 300 | lean | /-
Copyright (c) 2019 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import data.rat.basic
import data.rat.order
import data.rat.cast
import data.rat.floor
/-!
# Default Imports to Work With Rational Numbers
-/
|
9936b91e3312ce1864b6a11387e7bcbc14c4b41d | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/topology/basic.lean | 85fb347b865b6857403d69c5ea3882246fbb3044 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 60,801 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Jeremy Avigad
-/
import order.filter.ultrafilter
import order.filter.partial
import algebra.support
/-!
# Basic theory of topological spaces.
The main... |
f1b5a53e5ac6fdff35d6d1e191e39083eb831dea | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Elab/Log.lean | 592d97722c51e5529f9d971872fee2c56071ac42 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,844 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Util
import Lean.Elab.Exception
namespace Lean.Elab
class MonadLog (m : Type → Type) :=
(getRef : m Syntax)
(getFileMap : m F... |
e218dc6e88fc78b1b2e664c18d7c8919c6fe57bb | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/group_theory/coset.lean | db354293d1be9136a7434cccc975fca0deec91d3 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,544 | lean | /-
Copyright (c) 2018 Mitchell Rowett. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mitchell Rowett, Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.group_theory.subgroup
import Mathlib.PostPort
universes u_1
namespace ... |
7edd788480b15e4a72c1f04a817986738bcb0ff1 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/int/units.lean | 925c287d972faf5f5b991f8bd80d47e04b9ef6de | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,672 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
-/
import data.nat.units
import data.int.basic
import algebra.ring.units
/-!
# Lemmas about units in `ℤ`.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.co... |
a3700312b6a1921fc826c02cd9dbdeea0f7bb3b3 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/unif_issue.lean | 555c348e5a61a400d097b204ac6a7b1493f10ab4 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,406 | lean | import Lean
new_frontend
open Lean
#eval toString $
Unhygienic.run do
let a ← `(Nat.one);
let rhs_0 : _ := fun (a : Lean.Syntax) (b : Lean.Syntax) => pure Syntax.missing;
let rhs_1 : _ := fun (_a : _) => pure Lean.Syntax.missing;
let discr_2 : _ := a;
ite (Lean.Syntax.isOfKind discr_2 (Lean.mkNam... |
e1328c144519c96b4fc87bf8000ee9546ec9dac0 | 37da0369b6c03e380e057bf680d81e6c9fdf9219 | /hott/types/pointed2.hlean | 8e2d145d53e729ce25c09974748439b1f3ba0fcf | [
"Apache-2.0"
] | permissive | kodyvajjha/lean2 | 72b120d95c3a1d77f54433fa90c9810e14a931a4 | 227fcad22ab2bc27bb7471be7911075d101ba3f9 | refs/heads/master | 1,627,157,512,295 | 1,501,855,676,000 | 1,504,809,427,000 | 109,317,326 | 0 | 0 | null | 1,509,839,253,000 | 1,509,655,713,000 | C++ | UTF-8 | Lean | false | false | 47,240 | hlean | /-
Copyright (c) 2017 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
More results about pointed types.
Contains
- squares of pointed maps,
- equalities between pointed homotopies and
- squares between pointed homotopies
- pointed ma... |
17f1048f4d14669c54b99532216b5c49132c0245 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/if_dollar_prec.lean | 5a07d154da3b938b57f71171fdd90119b50aab4f | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 34 | lean | #check if tt then tt else id $ ff
|
cc3f6b3637e4c0e2cad956dfa66083cd45625f36 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/measure_theory/prod.lean | 9c011771168af9b9f248f166ecba88e1d1e9e0aa | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 45,481 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.measure_theory.giry_monad
import Mathlib.measure_theory.set_integral
import Mathlib.Pos... |
74a150b199aed6d99ee76a0f6c21d4ea0803f86d | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/tst13.lean | 56367f5836fb4608b1aaf44f6bd56bc96805b723 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 267 | lean | print fun x : Bool, (fun x : Bool, x).
print let x := true,
y := true
in (let z := x /\ y,
f := (fun x y : Bool, x /\ y =
y /\ x =
x \/ y \/ y)
in (f x y) \/ z)
|
555e3855a0e755510201598222aa1dd2a7a95d63 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0716.lean | 31a7a9bbfd999984d676a043ca01aa3e90047f3f | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 538 | lean | import data.list.basic
open list
universe u
variables {α : Type} (x y z : α) (xs ys zs : list α)
def mk_symm (xs : list α) := xs ++ reverse xs
theorem reverse_mk_symm (xs : list α) :
reverse (mk_symm xs) = mk_symm xs :=
by simp [mk_symm]
example (xs ys : list ℕ) :
reverse (xs ++ mk_symm ys) = mk_symm ys ++ rev... |
47331266c718a2acec93c472b5cafea0768143e4 | 420f29e297b60897d18482fe0761beb846b855a3 | /src/demo.lean | d22dbc356eacf656ccaebe0e733b4e14a4b601fb | [] | no_license | robertylewis/simons | 73d577779f10179a5c15ff9bf5ce7d3d7576e93e | 3b49971f17470a0a28f889153c55caa9dbfe6986 | refs/heads/master | 1,692,960,422,913 | 1,636,199,246,000 | 1,636,208,322,000 | 424,988,327 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,817 | lean | import analysis.special_functions.trigonometric.arctan
import ring_theory.witt_vector.compare
noncomputable theory
local notation `ℤ/3ℤ` := zmod 3
open real
open_locale real
/-!
# Machine-Checked proofs in Lean
## Introduction
I'm Rob Lewis. Just joined the Brown CS department this fall.
My goal with this talk:... |
8cf226285611325d1809ca0d5b5bc1ea48bcafe3 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/matrix/polynomial.lean | 3f3dec4c871b98386b034f01242156db1d8b96fc | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,060 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import linear_algebra.matrix.determinant
import data.polynomial.eval
import data.polynomial.monic
import algebra.polynomial.big_operators
/-!
# Matrices of polynom... |
bc5110d0c0613029fd33011ce29cef2081af5b78 | df561f413cfe0a88b1056655515399c546ff32a5 | /5-advanced-proposition-world/l1.lean | ba0a2ef927833fff54b27e10d668ce56587575fc | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 84 | lean | example (P Q : Prop) (p : P) (q : Q) : P ∧ Q :=
begin
split,
exact p,
exact q,
end |
fb3827709021ed443798178e453fee3450fa2788 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/set/constructions_auto.lean | 3bcb49dd0cd3bbbbf5dabd724cd742a20ebdac34 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,355 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.default
import Mathlib.data.finset.basic
import Mathlib.PostPort
universes u_1 l
namespac... |
d33ac2eb18b046c0e5154e6b7eb0e0c15767a0c2 | 9e90bb7eb4d1bde1805f9eb6187c333fdf09588a | /src/lib/basic.lean | 15ed0755a80e002025ceadd1677c36523298c71d | [
"Apache-2.0"
] | permissive | alexjbest/stump-learnable | 6311d0c3a1a1a0e65ce83edcbb3b4b7cecabb851 | f8fd812fc646d2ece312ff6ffc2a19848ac76032 | refs/heads/master | 1,659,486,805,691 | 1,590,454,024,000 | 1,590,454,024,000 | 266,173,720 | 0 | 0 | Apache-2.0 | 1,590,169,884,000 | 1,590,169,883,000 | null | UTF-8 | Lean | false | false | 11,403 | lean | /-
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
-/
import lib.attributed.probability_theory
import lib.attributed.dvector lib.attributed.to_mathlib
import measure_theory.giry_monad
import measure_theory.measure_space
import data.complex.exponential
local attribute [instance] classical.prop_dec... |
452e4722f9ce61df34c1babddf60fb149cd59578 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/normed_space/star/exponential.lean | 1a23c9643dee91ceb2236343236d64decb305961 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 2,416 | lean | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import analysis.normed_space.star.basic
import algebra.star.module
import analysis.special_functions.exponential
/-! # The exponential map from selfadjoint to unitary
... |
ca471743796211eca2c32c7029e4aba3af215622 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebraic_geometry/presheafed_space_auto.lean | fe0e7b75e4f215f0ff9b89a8183c7fee908d68e4 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,612 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.sheaves.presheaf
import Mathlib.PostPort
universes v u l
namespace Mathlib
/-!... |
62ccda64dbf7d0834a770c4223a59b303eb26e7a | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Data/SMap.lean | 4714b5654177a48f1e50942702260686635ad733 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,196 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Std.Data.HashMap
import Std.Data.PersistentHashMap
universes u v w w'
namespace Lean
open Std (HashMap PHashMap)
/- Staged map for implementing th... |
123dcf448bf5e8ce0a0ca162dc0f054b5986652e | 6b10c15e653d49d146378acda9f3692e9b5b1950 | /examples/basic_skills/unnamed_399.lean | 186c042cd8243b7dd1a7b0aa612acad1c23b1d8e | [] | no_license | gebner/mathematics_in_lean | 3cf7f18767208ea6c3307ec3a67c7ac266d8514d | 6d1462bba46d66a9b948fc1aef2714fd265cde0b | refs/heads/master | 1,655,301,945,565 | 1,588,697,505,000 | 1,588,697,505,000 | 261,523,603 | 0 | 0 | null | 1,588,695,611,000 | 1,588,695,610,000 | null | UTF-8 | Lean | false | false | 280 | lean | import data.real.basic
variables a b c d : ℝ
-- BEGIN
example (a b c d : ℝ) (hyp : c = d * a + b) (hyp' : b = a * d) :
c = 2 * a * d :=
begin
rw hyp' at hyp,
rw mul_comm d a at hyp,
rw ← two_mul (a*d) at hyp,
rw ← mul_assoc 2 a d at hyp,
exact hyp
end
-- END |
71dd71ba5370b6c7d136fabd80a21b2a43dd7100 | 367134ba5a65885e863bdc4507601606690974c1 | /src/linear_algebra/prod.lean | 67ce80059f119364f049df48140e7b0f53f2fa89 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 15,093 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Kevin Buzzard, Yury Kudryashov, Eric Wieser
-/
import linear_algebra.basic
/-! ### Products of semimodules
This file defines constructors for linear m... |
6f7c078edac4bff41c8c37d0ce90ef6abdfa689f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/448.lean | 404a08d322d75e5de12c2c6b44cbe700b3d93cab | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 905 | lean | namespace TryCatchWithAutolift
structure M (α : Type) where
σ : ExceptT String IO α
instance : Monad M where
pure x := { σ := pure x }
bind x f := { σ := do (f (← x.σ)).σ }
map f x := { σ := return f (← x.σ) }
instance : MonadLiftT IO M where
monadLift {α : Type} (act : IO α) : M α :=
{ σ := monadLi... |
2bab630ebb6de816c4e70ec06091f7b3098284e2 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/linear_algebra/pi_tensor_product.lean | 6652b11e06b4af714888236743760167281a7b07 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 21,341 | lean | /-
Copyright (c) 2020 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis, Eric Wieser
-/
import group_theory.congruence
import linear_algebra.multilinear
/-!
# Tensor product of an indexed family of modules over commutative semirings
We ... |
fe1bef2526dbe295038d55d7a1d57a6123369035 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/order/ring/lemmas.lean | 6427b131a1b0a6db33c83cf2730fcc76a470a2ca | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 38,001 | lean | /-
Copyright (c) 2022 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa, Yuyang Zhao
-/
import algebra.covariant_and_contravariant
import algebra.group_with_zero.defs
/-!
# Multiplication by ·positive· elements is monotonic
> THIS FILE IS SY... |
4aca4c2540c275239b97736eb2f8ce9624af60ef | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/ring_theory/int/basic.lean | 63eb8f83119ffbad844bef1768e47b937f20866a | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,418 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jens Wagemaker, Aaron Anderson
-/
import ring_theory.coprime.basic
import ring_theory.unique_factorization_domain
/-!
# Divisibility over ℕ and ℤ
This file collects r... |
3e4258ac707482fe7a55ef3e73382cdbd43e90fa | 3863d2564418bccb1859e057bf5a4ef240e75fd7 | /hott/init/trunc.hlean | 3c53f2794594782cdeab1a6e2fb1731f177dc126 | [
"Apache-2.0"
] | permissive | JacobGross/lean | 118bbb067ff4d4af48a266face2c7eb9868fa91c | eb26087df940c54337cb807b4bc6d345d1fc1085 | refs/heads/master | 1,582,735,011,532 | 1,462,557,826,000 | 1,462,557,826,000 | 46,451,196 | 0 | 0 | null | 1,462,557,826,000 | 1,447,885,161,000 | C++ | UTF-8 | Lean | false | false | 12,498 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Floris van Doorn
Definition of is_trunc (n-truncatedness)
Ported from Coq HoTT.
-/
prelude
import .nat .logic .equiv .pathover
open eq nat sigma unit sigma.ops... |
54218ddd6d596f9c4323afa0a91eecdc56433afa | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/algebra/group/pi.lean | ade5c063af191549ec118a628b919580ae15bd41 | [
"Apache-2.0"
] | permissive | ntzwq/mathlib | ca50b21079b0a7c6781c34b62199a396dd00cee2 | 36eec1a98f22df82eaccd354a758ef8576af2a7f | refs/heads/master | 1,675,193,391,478 | 1,607,822,996,000 | 1,607,822,996,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,788 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import data.pi
import tactic.pi_instances
import algebra.group.defs
import algebra.group.hom
/-!
# Pi instances for groups and monoids
This file defines in... |
a5d0fcb28c72e95b50ebf56f9869808376c4abaa | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/print_sorry.lean | 790b9f0f4da294ad3c369da4c809322a682414c4 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 867 | lean | import tactic.print_sorry
axiom my_sorry : false -- we avoid using noisy code in the test folder, so we use an axiom instead
def foo1 : false := my_sorry
def foo2 : false ∧ false := ⟨my_sorry, foo1⟩
def foo3 : false ∧ false := ⟨foo2.1, my_sorry⟩
def foo4 : true := trivial
def foo5 : true ∧ false := ⟨foo4, foo3.2⟩
met... |
7e650a7dfb4b5c12849ccdab7fd702f09f3b16b2 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/group_with_zero.lean | 237ef16ec4407612bbe8ace0b4a7a18fa3c97550 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 38,346 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import logic.nontrivial
import algebra.group.units_hom
import algebra.group.inj_surj
/-!
# Groups with an adjoined zero element
This file describes structures that ... |
e497e5c9983e30a7517734d1c986d741908f7527 | 29cc89d6158dd3b90acbdbcab4d2c7eb9a7dbf0f | /3.2/x32_library.lean | ef36e4b3c1818d1d1744750c2a55aade73f71686 | [] | no_license | KjellZijlemaker/Logical_Verification_VU | ced0ba95316a30e3c94ba8eebd58ea004fa6f53b | 4578b93bf1615466996157bb333c84122b201d99 | refs/heads/master | 1,585,966,086,108 | 1,549,187,704,000 | 1,549,187,704,000 | 155,690,284 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,628 | lean | /- Library 3.2: Program Semantics — Hoare Logic -/
/- This file contains some basic material for the Hoare logic lecture, exercise, and homework.
This file contains the following concepts:
* `state`: representing the state space of an imperative program (defined as `string → ℕ`)
* `∅` is the empty state; mapping e... |
00a1d56fbf5239f2d506ae34e4565dc4a1d1460e | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/analysis/normed_space/units.lean | 3a2d725f11e76dfeea5a427e4e378fdf85feed2d | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 12,220 | lean | /-
Copyright (c) 2020 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.specific_limits
/-!
# The group of units of a complete normed ring
This file contains the basic theory for the group of units (invertible elements... |
7ea8a7d210aac34ea60d177fdc71d883748bc9cb | b2c4bd81ed12cc14c20704365f094339d4c894a2 | /src/graph_theory/subgraph.lean | 3f300c256dbfe5ddb387b55475be5163439f658d | [] | no_license | agusakov/graph_theory_2020 | 711639d9d9b25fd83899620da11ae1753d11d48b | 83a8afc31aa28dbec39a768d6042d3cb515f7a16 | refs/heads/master | 1,669,901,277,114 | 1,596,931,643,000 | 1,596,931,643,000 | 285,154,458 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,726 | lean | /-
Copyright (c) 2020 Alena Gusakov, Jalex Stark. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Alena Gusakov, Jalex Stark.
-/
import .basic
noncomputable theory
open_locale classical
universes u
variables {V : Type u}
namespace simple_graph
-- define map from gr... |
83fd93ff95dafb668e711f0b6d59c92da84d6252 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/topology/metric_space/emetric_paracompact.lean | 5048b2434f82d6924a4b7cbe65078869b760cc3b | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 8,367 | lean | /-
Copyright (c) 202 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import set_theory.ordinal.basic
import topology.metric_space.emetric_space
import topology.paracompact
/-!
# (Extended) metric spaces are paracompact
In this... |
f6e01fe4342dfca9356bbf698c71978cb92a6ed9 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/init/types.hlean | 708092271808d2fa4e8ba7f09da60ce5f3361d03 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,263 | hlean | /-
Copyright (c) 2014-2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Floris van Doorn, Jakob von Raumer
-/
prelude
import init.num init.relation
open iff
-- Empty type
-- ----------
protected definition e... |
632eaa875de715d2ca2bc64ad81548c480e72a42 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/keyword_tactics.lean | 0e3b549cfcf6a578b7de87d3a1e30372dee8ba49 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 641 | lean | example : ℕ → ℕ → ℕ :=
begin
assume n m,
apply n
end
example : ℕ → ℕ → ℕ :=
begin
assume (n m : ℕ),
apply n
end
example : ¬false :=
begin
assume contr,
apply contr
end
example : Π α : Type, α → α :=
begin
assume α,
assume a : α,
apply a
end
example : ℕ → ℕ → ℕ :=
begin
assume n m : bool,
apply... |
a8c5c88bf806f568a1df038faca961d8271aad98 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/field_theory/finite/polynomial.lean | 2728230cb2c792c375b76596b8451eacd7d7e767 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,552 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import field_theory.finite.basic
import field_theory.mv_polynomial
import data.mv_polynomial.expand
import linear_algebra.basic
import linear_algebra.finite_dimensio... |
33741f121de5d2b9a66c2604b45cd2cb47284220 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/field_theory/minpoly.lean | 3a001cd5372969b2a8b202b4b9e883a62e64fffe | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,608 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johan Commelin
-/
import data.polynomial.field_division
import ring_theory.integral_closure
import ring_theory.polynomial.gauss_lemma
/-!
# Minimal polynomials
This file ... |
12f9b01770f2fe516848dd392b823ad33cab92fd | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /library/standard/piext.lean | a8f4411a61e6ce02c75b6dae617501b08b7e414a | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,295 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Leonardo de Moura
import logic cast
-- Pi extensionality
axiom piext {A : Type} {B B' : A → Type} {H : inhabited (Π x, B x)} : (Π x, B x) = (Π x, B' x) → B = B'
theorem c... |
dd32874302f845f181b3017a3bd09f1ba7b07913 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/topology/metric_space/completion.lean | e5dae51338c9ba4d2d9abc3fb4e978a7fd2486f4 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 8,709 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sébastien Gouëzel
-/
import topology.uniform_space.completion
import topology.metric_space.isometry
/-!
# The completion of a metric space
Completion of uniform spaces are already ... |
b55939c758d1e9e22fde8679b69c8f669e12e1cb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/continuous_function/compact.lean | fbf02f9ec680bfd17717e8fd08f01362f8ee017f | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 18,928 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import topology.continuous_function.bounded
import topology.uniform_space.compact
import topology.compact_open
import topology.sets.compacts
/-!
# Continuous functio... |
2f48a00f081b1f2dde7ada82267462bfafa8c7d9 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/sequences.lean | 1ec0d97328d2ac13528aa3479ca698c42c62491f | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 16,569 | lean | /-
Copyright (c) 2018 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Patrick Massot
-/
import topology.subset_properties
import topology.metric_space.basic
/-!
# Sequences in topological spaces
In this file we define sequences in... |
9c9e8810cc695f14139d006efaab01456c4a0f29 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebra/ordered_group.lean | 7b9ce868d27e79c943968fce2bd6c07d8b55c989 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 44,953 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.ordered_monoid
import order.rel_iso
import order.order_dual
/-!
# Ordered groups
This file develops ... |
70a2ee7b55dd7ac6ce0ba5200acefe8ff778deb2 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Parser/Command.lean | 8284902f6ef173d523e233824f0164784b237104 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 9,660 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Parser.Term
import Lean.Parser.Do
namespace Lean
namespace Parser
/--
Syntax quotation for terms and (lists of) commands.... |
d60343616bff4596c9cc9f10aeba891deb396de2 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/support.lean | 70b944fef407a5275422f3a76a14049e728e07ba | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 5,293 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import order.conditionally_complete_lattice
import algebra.big_operators.basic
import algebra.group.prod
/-!
# Support of a function
In this file we define `funct... |
f112c2838e24a8c259c18dcc6abdfa3277e9b7df | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/renameI.lean | 70173877f6716453a6c18b43f0b0159e5cb212d6 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 284 | lean | example : (m n : Nat) → m = n := by
intro y y
rename_i x
trace_state
admit
example : (m n : Nat) → m = n := by
intro a.b a.b
rename_i x
trace_state
admit
example : (m o p n: Nat) → m + p = n + o := by
intro a.b _ _ a.b
rename_i x _ y
trace_state
admit
|
3a0862c7f5b46422a9550ff0bcd8665340f8b4a9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/transfer_auto.lean | 62c1f10edffa30033eb0a57283246812bc8bec0e | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,367 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl (CMU)
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.tactic
import Mathlib.Lean3Lib.init.meta.match_tactic
import Mathlib.Lean3Lib.init.meta.mk_dec_eq_instan... |
d1ce1d054e44aaf6e02b6ea44989c17faff99def | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/measure_theory/ae_eq_fun.lean | b4994b0c8f054c5394b2ba78058af082b8db99e9 | [
"Apache-2.0"
] | permissive | ratmice/mathlib | 93b251ef5df08b6fd55074650ff47fdcc41a4c75 | 3a948a6a4cd5968d60e15ed914b1ad2f4423af8d | refs/heads/master | 1,599,240,104,318 | 1,572,981,183,000 | 1,572,981,183,000 | 219,830,178 | 0 | 0 | Apache-2.0 | 1,572,980,897,000 | 1,572,980,896,000 | null | UTF-8 | Lean | false | false | 12,511 | lean | /-
Copyright (c) 2019 Johannes Hölzl, Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Zhouhang Zhou
We define almost everywhere equal functions, and show that
• they form a vector space if the codomain is a vector space
• they form an... |
a26e7d02c956119483257b32a37dc94f6e6a7aab | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/641.lean | 51101a5d35ad8083a21fd3d9ef74fc0288d227f6 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 66 | lean | example : true := by do tactic.set_goals [`(true)] >> tactic.triv
|
7ecd1e7173398408ede85f2a3fcbf49b3d5579de | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/function/egorov.lean | 63bfb80eb9b2c0be245b9fdec9c7523d6e0d9d98 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 10,810 | lean | /-
Copyright (c) 2022 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.function.strongly_measurable.basic
/-!
# Egorov theorem
This file contains the Egorov theorem which states that an almost everywhere convergent
sequ... |
c4aefb66d0d12b62e13b30c270f86acf7be7f38e | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Elab/BuiltinTerm.lean | 344b4f5c1657677fac35090fd08e4515dc755489 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 13,595 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Open
import Lean.Elab.SetOption
import Lean.Elab.Eval
namespace Lean.Elab.Term
open Meta
@[builtinTermElab «prop»] def elabProp : TermEla... |
28f4aef251cf306543a35f63d2965ce8a10f521b | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_891.lean | e28516b30d8db61a399473c8c1e1eedc5a99c86e | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 367 | lean | import tactic
variables {α : Type*} [comm_ring α]
def sum_of_squares (x : α) := ∃ a b, x = a^2 + b^2
-- BEGIN
theorem sum_of_squares_mul {x y : α}
(sosx : sum_of_squares x) (sosy : sum_of_squares y) :
sum_of_squares (x * y) :=
begin
rcases sosx with ⟨a, b, rfl⟩,
rcases sosy with ⟨c, d, rfl⟩,
use [a*c - b... |
c8b0afdbaf711ffaf33abd8c25e91b3aafc0887c | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/analysis/normed_space/operator_norm.lean | 91744d66af6fc77ea9f89e3f0b3384b4fae8d797 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 37,059 | lean | /-
Copyright (c) 2019 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo
-/
import linear_algebra.finite_dimensional
import analysis.normed_space.riesz_lemma
import analysis.asymptotics
/-!
# Operator norm o... |
f18cf704b4cdef996b9b2b69def1c442c2767c90 | 1446f520c1db37e157b631385707cc28a17a595e | /stage0/src/Init/Data/String.lean | 88da4da7080b51ac0893bb666121b5cd0daf0af6 | [
"Apache-2.0"
] | permissive | bdbabiak/lean4 | cab06b8a2606d99a168dd279efdd404edb4e825a | 3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac | refs/heads/master | 1,615,045,275,530 | 1,583,793,696,000 | 1,583,793,696,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 202 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.String.Basic
|
d6df3966c55b7f517d8cc90f9e3772cb346ea6d8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/number_theory/number_field/class_number.lean | 4958f37408dfee0e113345b42c6c203adaefd735 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,787 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import number_theory.class_number.admissible_abs
import number_theory.class_number.finite
import number_theory.number_field.basic
/-!
# Class numbers of number fields
> T... |
ccf71f1171b0d8befe384445d8342aef9acf03b3 | ed2fefcfa8b4fe534e01e6245f2696fd7c890d95 | /2019-02-25_aula1.lean | 28fe7fde63c8e1621751960110dca407db55cb54 | [] | no_license | Bpalkmim/EstOrientadoLean | 2036194e2211badb8ae18c1440edfe557b8e11d2 | 05a11f20cb5d0da612c9767fd97d0dbf698a405a | refs/heads/master | 1,588,562,078,354 | 1,557,777,940,000 | 1,557,777,940,000 | 178,943,165 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,200 | lean | -- Matéria de estudo orientado de L∃∀N com o Hermann
-- 2019.1
-- autor: Bernardo Alkmim
-- Objetivo geral: implementação de provas formais para NP=PSPACE
-- Discussão: futuro do L∃∀N indo mais para linguagem de programação e
-- saindo um pouco da característica de provador,
-- comparação com outros provadores como A... |
8556c68017c5d611fcabdefdad15853b4c2eba67 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/control/functor/multivariate.lean | 18394bd93ff122c9ad1104f6a44d4e0ab8033765 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 6,714 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro, Simon Hudon
-/
import data.fin2
import data.typevec
import logic.function.basic
import tactic.basic
/-!
Functors between the category of tuples of types... |
ac59f02f117fd9b5d8ba2a7d4d45b5551c7a75ff | 94e33a31faa76775069b071adea97e86e218a8ee | /src/set_theory/zfc.lean | 9dc531408f980a60c7fe4c3ae398a719623256a0 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 35,238 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.set.lattice
/-!
# A model of ZFC
In this file, we model Zermelo-Fraenkel set theory (+ Choice) using Lean's underlying type theory.
We do this in four m... |
61cdd127762f19b0f2dcb4ce87abe4349cf93fc2 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/tactic/monotonicity/basic.lean | e91824f2995abcbc6b19af661957719d7eb60024 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,761 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import algebra.ordered_ring
import order.bounded_lattice
namespace tactic.interactive
open tactic list
open lean lean.parser interactive
open interactive.types
@[derive i... |
5e8d2e821f148167e591ab068b3195780d231a83 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/adjunction/over.lean | 9d74adc21d6ea63526764f349705e7fed5c255f3 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 1,688 | lean | /-
Copyright (c) 2021 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.over
import category_theory.limits.preserves.basic
import category_theory.limits.creates
import category_theory.limits.shapes.binary_products
impor... |
21f55598592681be1991d48db1cd52149ce5cb4a | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/algebra/group.lean | 8f55d804365902fab45a694898e1dad67c7b7d8b | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 60,262 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import group_theory.group_action.conj_act
import group_theory.quotient_group
import order.filter.pointwise
import topology.algebra.mon... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.